← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1122316] Re: Restarting nova-compute with source groups lead to traceback.

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => grizzly-3

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

Title:
  Restarting nova-compute with source groups lead to traceback.

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Repro:

   nova secgroup-create groupa
   nova secgroup-create groupa groupa
   nova secgroup-create groupb
   nova secgroup-create groupb groupb
   nova boot --flavor 1 --key-name mykey --image <image> --security-group=groupa a
   nova boot --flavor 1 --key-name mykey --image <image> --security-group=groupb b
   nova secgroup-add-group-rule groupb groupa icmp -1 -1
   nova secgroup-add-group-rule groupa groupb icmp -1 -1

  restart nova-compute

  2013-02-11 10:59:20.263 CRITICAL nova [-] string indices must be integers
  2013-02-11 10:59:20.263 TRACE nova Traceback (most recent call last):
  2013-02-11 10:59:20.263 TRACE nova   File "/opt/stack/nova/bin/nova-compute", line 84, in <module>
  2013-02-11 10:59:20.263 TRACE nova     service.wait()
  2013-02-11 10:59:20.263 TRACE nova   File "/opt/stack/nova/nova/service.py", line 689, in wait
  2013-02-11 10:59:20.263 TRACE nova     _launcher.wait()
  2013-02-11 10:59:20.263 TRACE nova   File "/opt/stack/nova/nova/service.py", line 209, in wait
  2013-02-11 10:59:20.263 TRACE nova     super(ServiceLauncher, self).wait()
  2013-02-11 10:59:20.263 TRACE nova   File "/opt/stack/nova/nova/service.py", line 179, in wait
  2013-02-11 10:59:20.263 TRACE nova     service.wait()
  2013-02-11 10:59:20.263 TRACE nova   File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, in wait
  2013-02-11 10:59:20.263 TRACE nova     return self._exit_event.wait()
  2013-02-11 10:59:20.263 TRACE nova   File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
  2013-02-11 10:59:20.263 TRACE nova     return hubs.get_hub().switch()
  2013-02-11 10:59:20.263 TRACE nova   File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch
  2013-02-11 10:59:20.263 TRACE nova     return self.greenlet.switch()
  2013-02-11 10:59:20.263 TRACE nova   File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main
  2013-02-11 10:59:20.263 TRACE nova     result = function(*args, **kwargs)
  2013-02-11 10:59:20.263 TRACE nova   File "/opt/stack/nova/nova/service.py", line 147, in run_server
  2013-02-11 10:59:20.263 TRACE nova     server.start()
  2013-02-11 10:59:20.263 TRACE nova   File "/opt/stack/nova/nova/service.py", line 429, in start
  2013-02-11 10:59:20.263 TRACE nova     self.manager.init_host()
  2013-02-11 10:59:20.263 TRACE nova   File "/opt/stack/nova/nova/compute/manager.py", line 516, in init_host
  2013-02-11 10:59:20.263 TRACE nova     self._init_instance(context, instance)
  2013-02-11 10:59:20.263 TRACE nova   File "/opt/stack/nova/nova/compute/manager.py", line 497, in _init_instance
  2013-02-11 10:59:20.263 TRACE nova     self._legacy_nw_info(net_info))
  2013-02-11 10:59:20.263 TRACE nova   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2667, in ensure_filtering_rules_for_instance
  2013-02-11 10:59:20.263 TRACE nova     network_info)
  2013-02-11 10:59:20.263 TRACE nova   File "/opt/stack/nova/nova/virt/firewall.py", line 188, in prepare_instance_filter
  2013-02-11 10:59:20.263 TRACE nova     ipv4_rules, ipv6_rules = self.instance_rules(instance, network_info)
  2013-02-11 10:59:20.263 TRACE nova   File "/opt/stack/nova/nova/virt/firewall.py", line 403, in instance_rules
  2013-02-11 10:59:20.263 TRACE nova     instance)
  2013-02-11 10:59:20.263 TRACE nova   File "/opt/stack/nova/nova/network/api.py", line 88, in wrapped
  2013-02-11 10:59:20.263 TRACE nova     return func(self, context, *args, **kwargs)
  2013-02-11 10:59:20.263 TRACE nova   File "/opt/stack/nova/nova/network/api.py", line 338, in get_instance_nw_info
  2013-02-11 10:59:20.263 TRACE nova     result = self._get_instance_nw_info(context, instance)
  2013-02-11 10:59:20.263 TRACE nova   File "/opt/stack/nova/nova/network/api.py", line 347, in _get_instance_nw_info
  2013-02-11 10:59:20.263 TRACE nova     'rxtx_factor': instance['instance_type']['rxtx_factor'],
  2013-02-11 10:59:20.263 TRACE nova TypeError: string indices must be integers
  2013-02-11 10:59:20.263 TRACE nova

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