← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1559579] Re: NovaException: Unable to get host UUID: /etc/machine-id is empty

 

Reviewed:  https://review.openstack.org/295118
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=107ae91ed6ab17400909a4f37024112aeeacbdf7
Submitter: Jenkins
Branch:    master

commit 107ae91ed6ab17400909a4f37024112aeeacbdf7
Author: Wenzhi Yu <wenzhi_yu@xxxxxxx>
Date:   Mon Mar 21 16:28:24 2016 +0800

    Set 'libvirt.sysinfo_serial' to 'none' in RealTimeServersTest
    
    During execution of nova test case 'nova.tests.functional.libvirt.
    test_rt_servers.RealTimeServersTest.test_success', 'LibvirtDriver.
    _sysinfo_serial_func' method will be called to get information from
    the compute host[1] if value of 'CONF.libvirt.sysinfo_serial' is
    not 'none', this is not expected during test run.
    
    We should set 'CONF.libvirt.sysinfo_serial' to 'none' in test case
    so that it would not try to get info from compute host during execution.
    
    [1]https://github.com/openstack/nova/blob/13.0.0.0rc1/nova/virt/libvirt/driver.py#L569-L577
    
    Change-Id: I0f6c7fcea34c3ecaa9b19861a7640fda551f040f
    Closes-bug: #1559579


** Changed in: nova
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1559579

Title:
  NovaException: Unable to get host UUID: /etc/machine-id is empty

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  This is in a functional test locally:

  Traceback (most recent call last):
        File "nova/compute/manager.py", line 2218, in _build_resources
          yield resources
        File "nova/compute/manager.py", line 2064, in _build_and_run_instance
          block_device_info=block_device_info)
        File "nova/virt/libvirt/driver.py", line 2767, in spawn
          write_to_disk=True)
        File "nova/virt/libvirt/driver.py", line 4714, in _get_guest_xml
          context)
        File "nova/virt/libvirt/driver.py", line 4563, in _get_guest_config
          root_device_name)
        File "nova/virt/libvirt/driver.py", line 4370, in _configure_guest_by_virt_type
          guest.sysinfo = self._get_guest_config_sysinfo(instance)
        File "nova/virt/libvirt/driver.py", line 3716, in _get_guest_config_sysinfo
          sysinfo.system_serial = self._sysinfo_serial_func()
        File "nova/virt/libvirt/driver.py", line 3705, in _get_host_sysinfo_serial_auto
          return self._get_host_sysinfo_serial_os()
        File "nova/virt/libvirt/driver.py", line 3699, in _get_host_sysinfo_serial_os
          raise exception.NovaException(msg)
      NovaException: Unable to get host UUID: /etc/machine-id is empty

  
  From: nova.tests.functional.libvirt.test_rt_servers.RealTimeServersTest.test_success

  The test should be mocking something out since it shouldn't expect
  actual files to exist on the host system during test runs.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1559579/+subscriptions


References