Nova requires python-libguestfs in Kilo

Bug #1428639 reported by Kevin Carter
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Medium
Kevin Carter

Bug Description

For Nova in Kilo as of "2015.1.dev672" the system package "python-guestfs" which brings in "libguestfs0" is required. While we may be able to get around requiring in later releases, as this looks like it may be an issue with the dev release of Nova for Kilo, it did not function in fallback mode at all. Without that package installed this was the error:

-- stacktrace --
2015-03-05 04:21:11.003 12875 INFO nova.virt.disk.vfs.api [req-9ded04fa-52dd-4814-8d72-7c57e7b309ab - - - - -] Unable to import guestfs, falling back to VFSLocalFS
2015-03-05 04:21:11.164 12875 ERROR nova.compute.manager [req-9ded04fa-52dd-4814-8d72-7c57e7b309ab - - - - -] [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] Instance failed to spawn
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] Traceback (most recent call last):
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] File "/usr/local/lib/python2.7/dist-packages/nova/compute/manager.py", line 2301, in _build_resources
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] yield resources
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] File "/usr/local/lib/python2.7/dist-packages/nova/compute/manager.py", line 2171, in _build_and_run_instance
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] flavor=flavor)
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] File "/usr/local/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2349, in spawn
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] admin_pass=admin_password)
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] File "/usr/local/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2750, in _create_image
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] instance, size, fallback_from_host)
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] File "/usr/local/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 5836, in _try_fetch_image_cache
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] size=size)
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] File "/usr/local/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line 230, in cache
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] *args, **kwargs)
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] File "/usr/local/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line 507, in create_image
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] copy_qcow2_image(base, self.path, size)
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 431, in inner
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] return f(*args, **kwargs)
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] File "/usr/local/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line 473, in copy_qcow2_image
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] disk.extend(target, size, use_cow=True)
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] File "/usr/local/lib/python2.7/dist-packages/nova/virt/disk/api.py", line 183, in extend
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] if not is_image_extendable(image, use_cow):
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] File "/usr/local/lib/python2.7/dist-packages/nova/virt/disk/api.py", line 235, in is_image_extendable
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] if fs.get_image_fs() in SUPPORTED_FS_TO_EXTEND:
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] File "/usr/local/lib/python2.7/dist-packages/nova/virt/disk/vfs/localfs.py", line 167, in get_image_fs
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] run_as_root=True)
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] File "/usr/local/lib/python2.7/dist-packages/nova/utils.py", line 199, in execute
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] return processutils.execute(*cmd, **kwargs)
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/processutils.py", line 233, in execute
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] cmd=sanitized_cmd)
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] ProcessExecutionError: Unexpected error while running command.
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] Command: sudo nova-rootwrap /etc/nova/rootwrap.conf blkid -o value -s TYPE /dev/nbd2
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] Exit code: 2
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] Stdout: u''
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c] Stderr: u''
2015-03-05 04:21:11.164 12875 TRACE nova.compute.manager [instance: cc067af9-fcdf-4214-9ad7-c3d94176fc9c]

Changed in openstack-ansible:
importance: Undecided → Medium
Changed in openstack-ansible:
status: New → In Progress
assignee: nobody → Kevin Carter (kevin-carter)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to os-ansible-deployment (master)

Fix proposed to branch: master
Review: https://review.openstack.org/166986

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on os-ansible-deployment (master)

Change abandoned by Nolan Brubaker (<email address hidden>) on branch: master
Review: https://review.openstack.org/166868
Reason: As Matt pointed out, this is being done in another review which is getting more attention. I started this one before realizing the other was in progress.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-ansible-deployment (master)

Reviewed: https://review.openstack.org/166986
Committed: https://git.openstack.org/cgit/stackforge/os-ansible-deployment/commit/?id=33f0c13ef40f8972a434019514be0d504e4a22ce
Submitter: Jenkins
Branch: master

commit 33f0c13ef40f8972a434019514be0d504e4a22ce
Author: Kevin Carter <email address hidden>
Date: Sun Mar 22 09:09:53 2015 -0500

    Updated repository for minimum viable kilo install

    * Updated Keystone wsgi and paste files from upstream.
    * Updated all clients in the openstack_client.yml file.
    * Kilo services are tracking the head of master.
    * Removed pinned middleware because they're pinned else where.
    * Added additional service references for neutron vpnaas, fwaas, and
      lbaas which have now been moved into their own repos and no longer
      exist within the core neutron repository.
    * The neutron vpnaas, fwaas, and lbaas have been removed from the
      basic plugins being loaded and a comment has been added to describe
      how one might add them back in.
    * Updated rootwrap filters for neutron dhcp and l3.
    * Updated heat policy.json
    * Added the `python-libguestfs` to the nova-compute installation
      packages.
    * Updates all services to point to the latest kilo tag

    Services updated due to deprecated configs:
    * Keystone
    * Glance
    * Nova
    * Neutron (is still using the deprecated nova auth plugin)
    * Heat
    * Tempest

    Items for future work post initial release:
    * roles/os_neutron/files/post-up-checksum-rules:25:
      TODO(cloudnull) remove this script once the bug is fixed.
    * roles/rabbitmq_server/tasks/rabbitmq_cluster_join.yml:17:
      TODO(someone): implement a more robust way of checking

    Implements: blueprint minimal-kilo

    Closes-Bug: 1428421
    Closes-Bug: 1428431
    Closes-Bug: 1428437
    Closes-Bug: 1428445
    Closes-Bug: 1428451
    Closes-Bug: 1428469
    Closes-Bug: 1428639

    Change-Id: I28a305d9e40a9cf70148ef7d7b00d467a65ca076

Changed in openstack-ansible:
status: In Progress → Fix Committed
Revision history for this message
randhir singh (randhirsingh21) wrote :

Hi,
 I am facing the same issue. which package I need to install to correct this issue?

Revision history for this message
Kevin Carter (kevin-carter) wrote :

@randhirsingh21 i was able to resolve this issue by installing "python-guestfs".

Revision history for this message
randhir singh (randhirsingh21) wrote :

Thanks Kevin, I have installed python-libguestfs, libguestfs-tools and it working.

Changed in openstack-ansible:
status: Fix Committed → Fix Released
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/nova 14.0.0.0b1

This issue was fixed in the openstack/nova 14.0.0.0b1 development milestone.

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.