← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1216178] Re: IndexError in get_non_legacy_network_template

 

** Changed in: nova
       Status: Fix Committed => 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/1216178

Title:
  IndexError in get_non_legacy_network_template

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Adding a pure ipv6 network using

      nova network-create public --fixed-range-v6 fd00:1::/48

  and then trying a DevStack deploy with just Nova Network Flat Manager
  ends up with the following stack trace

      2013-08-23 21:53:22.880 ERROR nova.compute.manager [req-134b686d-83ad-4024-b10b-01fd23c55f37 admin demo] [instance: 6bd8d19e-f420-4397-abc8-041d4cd69437] Instance failed to spawn
      2013-08-23 21:53:22.880 TRACE nova.compute.manager [instance: 6bd8d19e-f420-4397-abc8-041d4cd69437] Traceback (most recent call last):
      2013-08-23 21:53:22.880 TRACE nova.compute.manager [instance: 6bd8d19e-f420-4397-abc8-041d4cd69437]   File "/opt/stack/nova/nova/compute/manager.py", line 1288, in _spawn
      2013-08-23 21:53:22.880 TRACE nova.compute.manager [instance: 6bd8d19e-f420-4397-abc8-041d4cd69437]     block_device_info)
      2013-08-23 21:53:22.880 TRACE nova.compute.manager [instance: 6bd8d19e-f420-4397-abc8-041d4cd69437]   File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 204, in spawn
      2013-08-23 21:53:22.880 TRACE nova.compute.manager [instance: 6bd8d19e-f420-4397-abc8-041d4cd69437]     admin_password, network_info, block_device_info)
      2013-08-23 21:53:22.880 TRACE nova.compute.manager [instance: 6bd8d19e-f420-4397-abc8-041d4cd69437]   File "/opt/stack/nova/nova/virt/vmwareapi/vmops.py", line 427, in spawn
      2013-08-23 21:53:22.880 TRACE nova.compute.manager [instance: 6bd8d19e-f420-4397-abc8-041d4cd69437]     cookies)
      2013-08-23 21:53:22.880 TRACE nova.compute.manager [instance: 6bd8d19e-f420-4397-abc8-041d4cd69437]   File "/opt/stack/nova/nova/virt/vmwareapi/vmops.py", line 470, in _create_config_drive
      2013-08-23 21:53:22.880 TRACE nova.compute.manager [instance: 6bd8d19e-f420-4397-abc8-041d4cd69437]     extra_md=extra_md)
      2013-08-23 21:53:22.880 TRACE nova.compute.manager [instance: 6bd8d19e-f420-4397-abc8-041d4cd69437]   File "/opt/stack/nova/nova/api/metadata/base.py", line 157, in __init__
      2013-08-23 21:53:22.880 TRACE nova.compute.manager [instance: 6bd8d19e-f420-4397-abc8-041d4cd69437]     cfg = netutils.get_injected_network_template(network_info)
      2013-08-23 21:53:22.880 TRACE nova.compute.manager [instance: 6bd8d19e-f420-4397-abc8-041d4cd69437]   File "/opt/stack/nova/nova/virt/netutils.py", line 166, in get_injected_network_template
      2013-08-23 21:53:22.880 TRACE nova.compute.manager [instance: 6bd8d19e-f420-4397-abc8-041d4cd69437]     template)
      2013-08-23 21:53:22.880 TRACE nova.compute.manager [instance: 6bd8d19e-f420-4397-abc8-041d4cd69437]   File "/opt/stack/nova/nova/virt/netutils.py", line 92, in get_non_legacy_network_template
      2013-08-23 21:53:22.880 TRACE nova.compute.manager [instance: 6bd8d19e-f420-4397-abc8-041d4cd69437]     subnet_v4 = [i for i in network['subnets'] if i['version'] == 4][0]
      2013-08-23 21:53:22.880 TRACE nova.compute.manager [instance: 6bd8d19e-f420-4397-abc8-041d4cd69437] IndexError: list index out of range
      2013-08-23 21:53:22.880 TRACE nova.compute.manager [instance: 6bd8d19e-f420-4397-abc8-041d4cd69437]

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