Cinder ImportError: No module named rootwrap.cmd

Bug #1309028 reported by Mike Scherbakov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Unassigned

Bug Description

Can't create Cinder volume.
VERSION:
  mirantis: "yes"
  production: "dev"
  release: "5.0"
  build_number: "409"
  build_id: "2014-04-16_18-56-19"
  fuellib_sha: <custom>
  nailgun_sha: "0c10dcd94505962d0a7402bc1f60039a0ce3d39e"
  astute_sha: "0cb0b26773bd269000a14748e8ba49419462ecaf"
  ostf_sha: "1ac04769cc8034438ccf1176860b25d0f5601c4a"
  fuelmain_sha: "4a8ce0db6fbb23b6b8d5cccfae430ecce0952b73"

<155>Apr 17 13:52:58 node-8 cinder-cinder.volume.manager ERROR: Error encountered during initialization of driver: LVMISCSIDriver
<155>Apr 17 13:52:58 node-8 cinder-cinder.volume.manager ERROR: Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C vgs --noheadings -o name cinder
Exit code: 1
Stdout: ''
Stderr: 'Traceback (most recent call last):\n File "/usr/bin/cinder-rootwrap", line 6, in <module>\n from oslo.rootwrap.cmd import main\nImportError: No module named rootwrap.cmd\n'
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 243, in init_host
    self.driver.check_for_setup_error()
  File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 83, in check_for_setup_error
    executor=self._execute)
  File "/usr/lib/python2.6/site-packages/cinder/brick/local_dev/lvm.py", line 81, in __init__
    if self._vg_exists() is False:
  File "/usr/lib/python2.6/site-packages/cinder/brick/local_dev/lvm.py", line 106, in _vg_exists
    self.vg_name, root_helper=self._root_helper, run_as_root=True)
  File "/usr/lib/python2.6/site-packages/cinder/utils.py", line 136, in execute
    return processutils.execute(*cmd, **kwargs)
  File "/usr/lib/python2.6/site-packages/cinder/openstack/common/processutils.py", line 173, in execute
    cmd=' '.join(cmd))
ProcessExecutionError: Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C vgs --noheadings -o name cinder
Exit code: 1
Stdout: ''
Stderr: 'Traceback (most recent call last):\n File "/usr/bin/cinder-rootwrap", line 6, in <module>\n from oslo.rootwrap.cmd import main\nImportError: No module named rootwrap.cmd\n'
<158>Apr 17 13:52:59 node-8 cinder-oslo.messaging._drivers.impl_rabbit INFO: Connected to AMQP server on 192.168.0.2:5672
<158>Apr 17 13:53:20 node-8 cinder-cinder.volume.manager INFO: Updating volume status

Tags: icehouse
Revision history for this message
Mike Scherbakov (mihgen) wrote :

After I installed
yum install python-oslo-rootwrap.noarch
on the cinder-volume node, I was able to create volume.

So it looks like there is broken dependency in packages, or we simply need to add this package in puppet packages installation list.

Changed in fuel:
status: New → Triaged
description: updated
Mike Scherbakov (mihgen)
summary: - ImportError: No module named rootwrap.cmd
+ Cinder ImportError: No module named rootwrap.cmd
Roman Vyalov (r0mikiam)
Changed in fuel:
status: Triaged → Fix Committed
Revision history for this message
Tatyanka (tatyana-leontovich) wrote :

verified on {"build_id": "2014-05-05_00-15-43", "mirantis": "yes", "build_number": "180", "ostf_sha": "134765fcb5a07dce0cd1bb399b2290c988c3c63b", "nailgun_sha": "2de1dcf9fa3fc1521999bff6377eaa6f01d825aa", "production": "docker", "api": "1.0", "fuelmain_sha": "95c35c199c2efc03fb105d090c5a42525430b7b3", "astute_sha": "3cffebde1e5452f5dbf8f744c6525fc36c7afbf3", "release": "5.0", "fuellib_sha": "2348fae80b21c3ec9e5f520395eea2943a510f3d"}

Changed in fuel:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
Changed in fuel:
assignee: Registry Administrators (registry) → nobody
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.