Ask Your Question

Resizing Instances on NFS Shared Storage

asked 2013-12-20 10:16:34 -0500

abdi ibrahim gravatar image

updated 2013-12-20 16:25:16 -0500

smaffulli gravatar image

I'm running Havana multi node deployment: 1 Controller and 3 Compute Nodes. NFS is the back-end shared storage where /var/lib/nova/instances are exported to the compute nodes. Spawning instances and live migrating (using CLI) works great. However; when I do a resize of an instance either from the Dashboard or from CLI it returns an error with the following exit code:

 stdr: error while executing command ssh <*ip address> to <remote server>.... Invalid Host Key

Not sure why the resize command is trying to create another folder to another compute node where the storage is already shared. The source and destination directory are hosted on the same storage. I've configured the following:


restarted the compute services on the compute nodes and the same error occurs.

edit retag flag offensive close merge delete


You can solve the host key issue by creating a key for the nova user and propagating it to all your compute nodes. Basically passwordless ssh needs to work, however, that won't solve the issue of why it's trying to copy at all when it's shared storage. That's where I'm at, did you ever solve it?

mfischer gravatar imagemfischer ( 2014-05-07 17:18:01 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2013-12-31 14:14:39 -0500

abdi ibrahim gravatar image

So here is a quick update. After making the changes in above I restarted all the nova compute services and I am now able to run the resize command either in the CLI and in the dashboard. As expected the resize does occur on the same host rather than the previously attempting to move to another host where it error out.

However the migrate option now does the same thing (migrating on the same host). I'm assuming that I need to set the following option in the nova.conf: allow_migrate_to_same_host=false

Does this means that migration would produce the similar error? meaning SSH key issues? the reality is that the instances disks and config files are on the shared storage and should not be a problem. I'll test it out and post my results.

Thanks, Abdi

edit flag offensive delete link more


Here is my update after changing the config flag allow_migrate_to_same_host to false the same error does occur which makes me think that there is a bug in the code that does not allow the command to understand that the instances are hosted in a shared storage (NFS in my case). Here is the nova-compute.log entries at pastbin: ""

abdi ibrahim gravatar imageabdi ibrahim ( 2014-01-02 11:26:55 -0500 )edit

answered 2013-12-21 23:33:29 -0500

DennyZhang gravatar image

updated 2013-12-21 23:34:33 -0500

What's the console output, if

 - ssh from  "<*ip address>" to <remote server>
 - qemu-img resize /var/lib/nova/instances/XXX/disk
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2013-12-20 10:16:34 -0500

Seen: 833 times

Last updated: Dec 31 '13