今天测试openstack 对建好的虚拟机更改内存、cpu等大小时  虚拟机的状态值一直显示 VERIFY_RESIZE
查看nova-compute.log 日志发现周期性的报错:

2012-05-30 15:46:01 ERROR nova.manager [-] Error during ComputeManager._run_p_w_picpath_cache_manager_pass: 'NoneType' object has no attribute 'startswith'
2012-05-30 15:46:01 TRACE nova.manager Traceback (most recent call last):
2012-05-30 15:46:01 TRACE nova.manager File "/usr/lib/python2.7/site-packages/nova/manager.py", line 167, in periodic_tasks
2012-05-30 15:46:01 TRACE nova.manager task(self, context)
2012-05-30 15:46:01 TRACE nova.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2679, in _run_p_w_picpath_cache_manager_pass
2012-05-30 15:46:01 TRACE nova.manager self.driver.manage_p_w_picpath_cache(context)
2012-05-30 15:46:01 TRACE nova.manager File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/connection.py", line 2476, in manage_p_w_picpath_cache
2012-05-30 15:46:01 TRACE nova.manager self.p_w_picpath_cache_manager.verify_base_p_w_picpaths(context)
2012-05-30 15:46:01 TRACE nova.manager File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/p_w_picpathcache.py", line 389, in verify_base_p_w_picpaths
2012-05-30 15:46:01 TRACE nova.manager inuse_backing_p_w_picpaths = self._list_backing_p_w_picpaths()
2012-05-30 15:46:01 TRACE nova.manager File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/p_w_picpathcache.py", line 171, in _list_backing_p_w_picpaths
2012-05-30 15:46:01 TRACE nova.manager backing_file)
2012-05-30 15:46:01 TRACE nova.manager File "/usr/lib64/python2.7/posixpath.py", line 66, in join
2012-05-30 15:46:01 TRACE nova.manager if b.startswith('/'):
2012-05-30 15:46:01 TRACE nova.manager AttributeError: 'NoneType' object has no attribute 'startswith'
2012-05-30 15:46:01 TRACE nova.manager

 
VERIFY_RESIZE    这个状态就是 resize 之后的状态,在运行 nova  resize-confirm    如果不运行 resize-confirm 24小时之后自动resize-confirm ,在这个状态下可以把 resize撤销, 也可以把resize 确认