Impossible to run cinder-volume from folsom testing packages or archive

Bug #1045438 reported by Emilien Macchi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cinder (Ubuntu)
Fix Released
High
Unassigned
Quantal
Fix Released
High
Unassigned

Bug Description

Using Folsom testing packages [1], cinder.conf with default values has an error :

rootwrap_config = sudo /usr/bin/cinder-rootwrap /etc/cinder/rootwrap.conf

You need to modify with :

rootwrap_config = /etc/cinder/rootwrap.conf

And it's working !

[1] https://launchpad.net/~openstack-ubuntu-testing/+archive/folsom-trunk-testing

summary: - Impossible tun run cinder-volume from Folsom Testing Packages
+ Impossible to run cinder-volume from Folsom Testing Packages
Changed in cinder:
status: New → Triaged
Revision history for this message
James Page (james-page) wrote : Re: Impossible to run cinder-volume from Folsom Testing Packages

Unexpected error while running command.
Command: sudo cinder-rootwrap sudo /usr/sbin/cinder-rootwrap /etc/cinder/rootwrap.conf vgs --noheadings -o name
Exit code: 97
Stdout: '/usr/bin/cinder-rootwrap: Incorrect configuration file: sudo /usr/sbin/cinder-rootwrap /etc/cinder/rootwrap.conf\n'
Stderr: ''
2012-09-06 14:25:39 TRACE cinder Traceback (most recent call last):
2012-09-06 14:25:39 TRACE cinder File "/usr/bin/cinder-volume", line 48, in <module>
2012-09-06 14:25:39 TRACE cinder service.wait()
2012-09-06 14:25:39 TRACE cinder File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 422, in wait
2012-09-06 14:25:39 TRACE cinder _launcher.wait()
2012-09-06 14:25:39 TRACE cinder File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 127, in wait
2012-09-06 14:25:39 TRACE cinder service.wait()
2012-09-06 14:25:39 TRACE cinder File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, in wait
2012-09-06 14:25:39 TRACE cinder return self._exit_event.wait()
2012-09-06 14:25:39 TRACE cinder File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2012-09-06 14:25:39 TRACE cinder return hubs.get_hub().switch()
2012-09-06 14:25:39 TRACE cinder File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch
2012-09-06 14:25:39 TRACE cinder return self.greenlet.switch()
2012-09-06 14:25:39 TRACE cinder File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main
2012-09-06 14:25:39 TRACE cinder result = function(*args, **kwargs)
2012-09-06 14:25:39 TRACE cinder File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 88, in run_server
2012-09-06 14:25:39 TRACE cinder server.start()
2012-09-06 14:25:39 TRACE cinder File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 159, in start
2012-09-06 14:25:39 TRACE cinder self.manager.init_host()
2012-09-06 14:25:39 TRACE cinder File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 92, in init_host
2012-09-06 14:25:39 TRACE cinder self.driver.check_for_setup_error()
2012-09-06 14:25:39 TRACE cinder File "/usr/lib/python2.7/dist-packages/cinder/volume/driver.py", line 109, in check_for_setup_error
2012-09-06 14:25:39 TRACE cinder run_as_root=True)
2012-09-06 14:25:39 TRACE cinder File "/usr/lib/python2.7/dist-packages/cinder/utils.py", line 228, in execute
2012-09-06 14:25:39 TRACE cinder cmd=' '.join(cmd))
2012-09-06 14:25:39 TRACE cinder ProcessExecutionError: Unexpected error while running command.
2012-09-06 14:25:39 TRACE cinder Command: sudo cinder-rootwrap sudo /usr/sbin/cinder-rootwrap /etc/cinder/rootwrap.conf vgs --noheadings -o name
2012-09-06 14:25:39 TRACE cinder Exit code: 97
2012-09-06 14:25:39 TRACE cinder Stdout: '/usr/bin/cinder-rootwrap: Incorrect configuration file: sudo /usr/sbin/cinder-rootwrap /etc/cinder/rootwrap.conf\n'
2012-09-06 14:25:39 TRACE cinder Stderr: ''
2012-09-06 14:25:39 TRACE cinder

Changed in cinder (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Changed in cinder (Ubuntu Quantal):
status: Confirmed → Triaged
summary: - Impossible to run cinder-volume from Folsom Testing Packages
+ Impossible to run cinder-volume from folsom testing packages or archive
Revision history for this message
James Page (james-page) wrote :

I also notices that cinder-volume has a dependency on python-glanceclient as well - I had to install this first to get the above confirmation of the original error report.

Revision history for this message
Emilien Macchi (emilienm) wrote :

@James : I have the same error.

To fix it, you need to modify default cinder.conf with "rootwrap_config = /etc/cinder/rootwrap.conf"

Chuck Short (zulcss)
Changed in cinder (Ubuntu Quantal):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cinder - 2012.2~rc1~20120907.230-0ubuntu4

---------------
cinder (2012.2~rc1~20120907.230-0ubuntu4) quantal; urgency=low

  [Chuck Short]
  * New upstream version.
  * debian/cinder.conf: Fix path for cinder-rootwrap. (LP: #1045438)
  * debian/control: Add python-glanceclient as a dep.
  * debian/cinder-common.postinst: Fix chmod thinko.
  * debian/*.upstart: Specify the configuration files.

  [Soren Hansen]
  * Update debian/watch to account for symbolically named tarballs and
    use newer URL.
  * Fix Launchpad URLs in debian/watch.
 -- Chuck Short <email address hidden> Fri, 07 Sep 2012 11:27:55 -0500

Changed in cinder (Ubuntu Quantal):
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
no longer affects: cinder
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.