Ask Your Question

resize VM error

asked 2015-10-10 03:01:47 -0500

fresher gravatar image


I am facing the following issue while resizing a VM on a multi node openstack juno setup.

{"message": "Unexpected error while running command.                                             |
|                                      | Command: ssh mkdir -p /disk1/nova/instances/ee99f8a4-3c10-403d-a73c-566266e919b7    |
|                                      | Exit code: 1                                                                                     |
|                                      | Stdout: u''                                                                                      |
|                                      | Stderr: 'mkdir: cannot create directory \\xe2\\x80\\x98/disk1\\xe2\\x80\\x99: Permission denied\ |
|                                      | '", "code": 500, "created": "2015-10-10T07:43:54Z"}

The state_path of the compute nodes are different. That is on the original compute node the state_path in nova.conf is /disk1/nova and on the compute node on which it is trying to migrate it is /home/nova/. I have set the SSH passwordless authentication on both the compute nodes.

How can I resolve this issue. Please help.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2015-10-13 03:16:47 -0500


if you have two or more compute nodes you have to configure SSH key to permit the resize or block migration of a VM to a different compute node.

You can follow this guide that for me is very helpful



If you think that answer is correct for you please click on green button.

edit flag offensive delete link more


This "Howto" has been already suggested. Post
in my answer is referencing it at the top.

dbaxps gravatar imagedbaxps ( 2015-10-13 04:08:51 -0500 )edit

sorry for this

salvorapi gravatar imagesalvorapi ( 2015-10-13 04:25:00 -0500 )edit

answered 2015-10-10 09:35:42 -0500

cbruf82 gravatar image

Looks to be a permission issue. The directory should already exist and have the correct ownership and permissions before you try to run the resize command.

edit flag offensive delete link more


Yup, check the perm issue first

vblando gravatar imagevblando ( 2015-10-10 21:14:25 -0500 )edit

answered 2015-10-10 04:25:02 -0500

dbaxps gravatar image

The only solution I have :-

There are a couple of assumptions which will be made:

    Nova and qemu user both have the same UID on all compute nodes
    The path for your instances is the same on all of your compute nodes


edit flag offensive delete link more

Comments path is different. Can I just copy the nova folder from disk1 to the /home? Or do I have to make some other changes too? Thanks

fresher gravatar imagefresher ( 2015-10-11 23:15:05 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-10-10 03:01:47 -0500

Seen: 1,427 times

Last updated: Oct 13 '15