← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1407643] Re: Setting network bandwidth quota in extra_specs causes a VM creation to fail in devstack

 

This is an automated cleanup. This bug report has been closed because it
is older than 18 months and there is no open code change to fix this.
After this time it is unlikely that the circumstances which lead to
the observed issue can be reproduced.

If you can reproduce the bug, please:
* reopen the bug report (set to status "New")
* AND add the detailed steps to reproduce the issue (if applicable)
* AND leave a comment "CONFIRMED FOR: <RELEASE_NAME>"
  Only still supported release names are valid (LIBERTY, MITAKA, OCATA, NEWTON).
  Valid example: CONFIRMED FOR: LIBERTY


** Changed in: nova
   Importance: Low => Undecided

** Changed in: nova
       Status: Confirmed => Expired

-- 
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/1407643

Title:
  Setting network bandwidth quota in extra_specs causes a VM creation to
  fail in devstack

Status in OpenStack Compute (nova):
  Expired

Bug description:
  https://blueprints.launchpad.net/nova/+spec/quota-instance-resource
  added a number of resource managment capabilites via extra_specs foe
  libvirt - but at least one of these causes VMs to fail on devstcak
  with Neutron (so I'm guessing that they aren't covered in Tempest ?)

  
  On a devstack system with Neutron Networking:

  nova flavor-key m1.tiny set quota:vif_inbound_average=10240000
  ubuntu@devstack-forced-shutdown:/mnt/devstack$ nova boot --image  02985e98-a163-4ce9-afb8-098c41c6573c --flavor 1 phil.limit
   +--------------------------------------+----------------------------------------------------------------+
   | Property                             | Value                                                          |
   +--------------------------------------+----------------------------------------------------------------+
   | OS-DCF:diskConfig                    | MANUAL                                                         |
   | OS-EXT-AZ:availability_zone          | nova                                                           |
   | OS-EXT-SRV-ATTR:host                 | -                                                              |
   | OS-EXT-SRV-ATTR:hypervisor_hostname  | -                                                              |
   | OS-EXT-SRV-ATTR:instance_name        | instance-00000003                                              |
   | OS-EXT-STS:power_state               | 0                                                              |
   | OS-EXT-STS:task_state                | scheduling                                                     |
   | OS-EXT-STS:vm_state                  | building                                                       |
   | OS-SRV-USG:launched_at               | -                                                              |
   | OS-SRV-USG:terminated_at             | -                                                              |
   | accessIPv4                           |                                                                |
   | accessIPv6                           |                                                                |
   | adminPass                            | 3SrCw22q8Prz                                                   |
   | config_drive                         |                                                                |
   | created                              | 2015-01-05T11:21:10Z                                           |
   | flavor                               | m1.tiny (1)                                                    |
   | hostId                               |                                                                |
   | id                                   | 72c953c8-9bd3-4e94-8fbb-db54f77509b7                           |
   | image                                | cirros-0.3.2-x86_64-uec (02985e98-a163-4ce9-afb8-098c41c6573c) |
   | key_name                             | -                                                              |
   | metadata                             | {}                                                             |
   | name                                 | phil.limit                                                     |
   | os-extended-volumes:volumes_attached | []                                                             |
   | progress                             | 0                                                              |
   | security_groups                      | default                                                        |
   | status                               | BUILD                                                          |
   | tenant_id                            | 0c1ece771f3f43958d010dfbfba52b83                               |
   | updated                              | 2015-01-05T11:21:10Z                                           |
   | user_id                              | b311b86b7fe2424e89508d1af73260ec                               |
   +--------------------------------------+----------------------------------------------------------------+

  ubuntu@devstack-forced-shutdown:/mnt/devstack$ nova list 
   +--------------------------------------+------------+--------+------------+-------------+-------------------+
   | ID                                   | Name       | Status | Task State | Power State | Networks          |
   +--------------------------------------+------------+--------+------------+-------------+-------------------+
   | 72c953c8-9bd3-4e94-8fbb-db54f77509b7 | phil.limit | ERROR  | -          | NOSTATE     | public=172.24.4.4 | 
   +--------------------------------------+------------+--------+------------+-------------+-------------------+

  Stack trace on nova-compute shows:

  2015-01-05 11:46:46.598 ERROR nova.virt.libvirt.driver [-] Error launching a defined domain with XML: <domain type='qemu'>
    <name>instance-00000004</name>
    <uuid>07fe9d59-cfe0-4937-b6c1-aead2cd2e23d</uuid>
    <metadata>
      <nova:instance xmlns:nova="http://openstack.org/xmlns/libvirt/nova/1.0";>
        <nova:package version="2015.1"/>
        <nova:name>phil.limit</nova:name>
        <nova:creationTime>2015-01-05 11:46:43</nova:creationTime>
        <nova:flavor name="m1.tiny">
          <nova:memory>512</nova:memory>
          <nova:disk>1</nova:disk>
          <nova:swap>0</nova:swap>
          <nova:ephemeral>0</nova:ephemeral>
          <nova:vcpus>1</nova:vcpus>
        </nova:flavor>
        <nova:owner>
          <nova:user uuid="b311b86b7fe2424e89508d1af73260ec">admin</nova:user>
          <nova:project uuid="0c1ece771f3f43958d010dfbfba52b83">admin</nova:project>
        </nova:owner>
        <nova:root type="image" uuid="02985e98-a163-4ce9-afb8-098c41c6573c"/>
      </nova:instance>
    </metadata>
    <memory unit='KiB'>524288</memory>
    <currentMemory unit='KiB'>524288</currentMemory>
    <vcpu placement='static' cpuset='0-3'>1</vcpu>
    <cputune>
      <quota>10000</quota>
    </cputune>
    <sysinfo type='smbios'>
      <system>
        <entry name='manufacturer'>OpenStack Foundation</entry>
        <entry name='product'>OpenStack Nova</entry>
        <entry name='version'>2015.1</entry>
        <entry name='serial'>45537be9-b863-443c-955a-5f5df1744a17</entry>
        <entry name='uuid'>07fe9d59-cfe0-4937-b6c1-aead2cd2e23d</entry>
      </system>
    </sysinfo>
    <os>
      <type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type>
      <kernel>/opt/stack/data/nova/instances/07fe9d59-cfe0-4937-b6c1-aead2cd2e23d/kernel</kernel>
      <initrd>/opt/stack/data/nova/instances/07fe9d59-cfe0-4937-b6c1-aead2cd2e23d/ramdisk</initrd>
      <cmdline>root=/dev/vda console=tty0 console=ttyS0 no_timer_check</cmdline>
      <boot dev='hd'/>
      <smbios mode='sysinfo'/>
    </os>
    <features>
      <acpi/>
      <apic/>
    </features>
    <cpu>
      <topology sockets='1' cores='1' threads='1'/>
    </cpu>
    <clock offset='utc'/>
    <on_poweroff>destroy</on_poweroff>
    <on_reboot>restart</on_reboot>
    <on_crash>destroy</on_crash>
    <devices>
      <emulator>/usr/bin/qemu-system-x86_64</emulator>
      <disk type='file' device='disk'>
        <driver name='qemu' type='qcow2' cache='none'/>
        <source file='/opt/stack/data/nova/instances/07fe9d59-cfe0-4937-b6c1-aead2cd2e23d/disk'/>
        <target dev='vda' bus='virtio'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
      </disk>
      <disk type='file' device='cdrom'>
        <driver name='qemu' type='raw' cache='none'/>
        <source file='/opt/stack/data/nova/instances/07fe9d59-cfe0-4937-b6c1-aead2cd2e23d/disk.config'/>
        <target dev='hdd' bus='ide'/>
        <readonly/>
        <address type='drive' controller='0' bus='1' target='0' unit='1'/>
      </disk>
      <controller type='usb' index='0'>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
      </controller>
      <controller type='pci' index='0' model='pci-root'/>
      <controller type='ide' index='0'>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
      </controller>
      <interface type='bridge'>
        <mac address='fa:16:3e:a6:d9:61'/>
        <source bridge='qbr146d0450-48'/>
        <bandwidth>
          <inbound average='10240000'/>
        </bandwidth>
        <target dev='tap146d0450-48'/>
        <model type='virtio'/>
        <driver name='qemu'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
      </interface>
      <serial type='file'>
        <source path='/opt/stack/data/nova/instances/07fe9d59-cfe0-4937-b6c1-aead2cd2e23d/console.log'/>
        <target port='0'/>
      </serial>
      <serial type='pty'>
        <target port='1'/>
      </serial>
      <console type='file'>
        <source path='/opt/stack/data/nova/instances/07fe9d59-cfe0-4937-b6c1-aead2cd2e23d/console.log'/>
        <target type='serial' port='0'/>
      </console>
      <input type='mouse' bus='ps2'/>
      <input type='keyboard' bus='ps2'/>
      <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' keymap='en-us'>
        <listen type='address' address='127.0.0.1'/>
      </graphics>
      <video>
        <model type='cirrus' vram='9216' heads='1'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
      </video>
      <memballoon model='virtio'>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
        <stats period='10'/>
      </memballoon>
    </devices>
  </domain>

  2015-01-05 11:46:46.599 ERROR nova.compute.manager [-] [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d] Instance failed to spawn
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d] Traceback (most recent call last):
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]   File "/mnt/stack/nova/nova/compute/manager.py", line 2289, in _build_resources
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]     yield resources
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]   File "/mnt/stack/nova/nova/compute/manager.py", line 2159, in _build_and_run_instance
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]     flavor=flavor)
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]   File "/mnt/stack/nova/nova/virt/libvirt/driver.py", line 2389, in spawn
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]     block_device_info=block_device_info)
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]   File "/mnt/stack/nova/nova/virt/libvirt/driver.py", line 4268, in _create_domain_and_network
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]     power_on=power_on)
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]   File "/mnt/stack/nova/nova/virt/libvirt/driver.py", line 4201, in _create_domain
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]     LOG.error(err)
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]   File "/usr/local/lib/python2.7/dist-packages/oslo/utils/excutils.py", line 82, in __exit__
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]     six.reraise(self.type_, self.value, self.tb)
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]   File "/mnt/stack/nova/nova/virt/libvirt/driver.py", line 4191, in _create_domain
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]     domain.createWithFlags(launch_flags)
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]   File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 183, in doit
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]     result = proxy_call(self._autowrap, f, *args, **kwargs)
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]   File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 141, in proxy_call
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]     rv = execute(f, *args, **kwargs)
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]   File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 122, in execute
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]     six.reraise(c, e, tb)
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]   File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 80, in tworker
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]     rv = meth(*args, **kwargs)
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]   File "/usr/lib/python2.7/dist-packages/libvirt.py", line 896, in createWithFlags
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d]     if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d] libvirtError: internal error: cannot set bandwidth limits on tap146d0450-48
  2015-01-05 11:46:46.599 TRACE nova.compute.manager [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d] 
  2015-01-05 11:46:46.600 AUDIT nova.compute.manager [req-f4737d92-6989-462a-9767-d614b3114679 admin admin] [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d] Terminating instance
  2015-01-05 11:46:46.613 INFO nova.virt.libvirt.driver [-] [instance: 07fe9d59-cfe0-4937-b6c1-aead2cd2e23d] Instance destroyed successfully.

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


References