Description of problem: Volume detach fails with: nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/volume/cinder.py", line 178, in begin_detaching nova.api.openstack cinderclient(context).volumes.begin_detaching(volume['id']) nova.api.openstack AttributeError: 'VolumeManager' object has no attribute 'begin_detaching' This is due to a mismatch between the nova code and the python-cinderclient, specifically the following commit is missing from the latter: https://github.com/openstack/python-cinderclient/commit/a4d46014 Version-Release number of selected component (if applicable): python-cinderclient-0.2-2.fc18.noarch How reproducible: 100% Steps to Reproduce: 1. Create a volume 2. Attach volume to an instance 3. Detach volume Actual results: Attempt to detach fails with 500 Server Error. Expected results: Detach should suceed with 202 Accepted. Additional info:
Initial work-around pending rebuild of python-cinderclient packages: sudo yum install git git clone https://github.com/openstack/python-cinderclient.git $HOME/git sudo mv /lib/python2.7/site-packages/cinderclient /lib/python2.7/site-packages/cinderclient.old sudo ln -s $HOME/git/python-cinderclient/cinderclient/ /lib/python2.7/site-packages/cinderclient sudo service openstack-nova-api restart
The same versioning problem causes boot-from-volume to fail with: Build error: ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 493, in _run_instance\n instance)\n', ' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 725, in _prep_block_device\n return self._setup_block_device_mapping(context, instance)\n', ' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 432, in _setup_block_device_mapping\n \'\', \'\', snapshot)\n', ' File "/usr/lib/python2.7/site-packages/nova/volume/cinder.py", line 218, in create\n', "TypeError: create() got an unexpected keyword argument 'imageRef'\n"]
Fixed in latest cinderclient package: http://kojipkgs.fedoraproject.org/packages/python-cinderclient/0.2.26/1.fc18/noarch/python-cinderclient-0.2.26-1.fc18.noarch.rpm
python-cinderclient-0.2.26-1.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/python-cinderclient-0.2.26-1.fc18
Package python-cinderclient-0.2.26-1.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing python-cinderclient-0.2.26-1.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-14859/python-cinderclient-0.2.26-1.fc18 then log in and leave karma (feedback).
python-cinderclient-0.2.26-1.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.