Ask Your Question
0

Deleted image, cannot boot VM

asked 2014-07-02 00:52:42 -0500

Y Sertdemir gravatar image

Hello,

I just need to move instance's /var/lib/nova/instances directory to another storage, so I have done it with this way: Shutdown the VM, mount the new volume to /var/lib/nova/instances directory and copy the VM files to here from old storage. The problem is there were deleted images of some of the instances, so they gave me "image not found" error on nova-compute logs. I investigated the issue and found out that _base directory includes old images of VM. I wonder why do the instances needs these files? Secondly, If there are lots of deleted images, how can I evacuate the server to the another host? It will give same error on new host. Lastly, I found that "Members" who are given permission to see specific project cannot see the image name in the instances list in dashboard. It is written "(not found)". When I check the same instances with admin rights, the image name written there. I checked the glance commands and I can list the deleted image ID with "deleted" tag.

My openstack environment is based on Ubuntu 12.04/havana.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-07-04 02:23:13 -0500

foexle gravatar image

Hi,

to prevent to mess up deleted instance images you can configure your com nodes ith these parameters:

running_deleted_instance_action=reep
remove_unused_base_images=True
remove_unused_resized_minimum_age_seconds=3600
remove_unused_original_minimum_age_seconds=86400

Yes you can evacuate a host to an other, you should check the CLI command

nova evacuate

Cheers Heiko

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

2 followers

Stats

Asked: 2014-07-02 00:52:42 -0500

Seen: 467 times

Last updated: Jul 04 '14