Heat test fails because of multiple "default" security groups

Bug #1428066 reported by Alexander Evseev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
Fix Released
Wishlist
Kairat Kushaev

Bug Description

$ rally --version
0.0.1

Scenario "HeatStacks.create_and_delete_stack" fails with error:

Traceback (most recent call last):
  File "/opt/stack/.venv/lib/python2.7/site-packages/rally/benchmark/runners/base.py", line 77, in _run_scenario_once
    method_name)(**kwargs) or scenario_output
  File "/opt/stack/.venv/lib/python2.7/site-packages/rally/benchmark/scenarios/heat/stacks.py", line 73, in create_and_delete_stack
    stack = self._create_stack(stack_name, template)
  File "/opt/stack/.venv/lib/python2.7/site-packages/rally/benchmark/scenarios/base.py", line 254, in func_atomic_actions
    f = func(self, *args, **kwargs)
  File "/opt/stack/.venv/lib/python2.7/site-packages/rally/benchmark/scenarios/heat/utils.py", line 100, in _create_stack
    check_interval=CONF.benchmark.heat_stack_create_poll_interval)
  File "/opt/stack/.venv/lib/python2.7/site-packages/rally/benchmark/utils.py", line 104, in wait_for
    resource = update_resource(resource)
  File "/opt/stack/.venv/lib/python2.7/site-packages/rally/benchmark/utils.py", line 67, in _get_from_manager
    status=status, fault=msg)
GetResourceErrorStatus: Resource <Stack {u'parent': None, u'disable_rollback': True, u'description': u'No description', u'links': [{u'href': u'http://172.16.45.101:8004/v1/46a8570fa8534ec7980c563413adb90a/stacks/rally_stack_pcyhfrp/5146c099-a2c1-44ec-9646-2fadcfe4c732', u'rel': u'self'}], u'stack_status_reason': u'Resource CREATE failed: ResourceInError: Went to status ERROR due to "Message: No valid host was found. Exceeded max scheduling attempts 3 for instance b094af5b-ab2b-46ed-b96c-7eafc2139002. Last exception: [u\'Traceback (most recent call last):\\n\', u\' Fil', u'stack_name': u'rally_stack_pcyhfrp', u'outputs': [], u'timeout_mins': None, u'creation_time': u'2015-03-03T04:58:09Z', u'capabilities': [], u'notification_topics': [], u'parameters': {u'public_net': u'net04_ext', u'OS::stack_name': u'rally_stack_pcyhfrp', u'image': u'TestVM', u'OS::stack_id': u'5146c099-a2c1-44ec-9646-2fadcfe4c732', u'cidr': u'11.11.11.0/24', u'flavor': u'm1.nano'}, u'stack_owner': None, u'stack_status': u'CREATE_FAILED', u'updated_time': None, u'id': u'5146c099-a2c1-44ec-9646-2fadcfe4c732', u'template_description': u'No description'}> has CREATE_FAILED status:

Nova logs contains errors like:

2015-03-03T04:59:04.014114+00:00 err: Error from last host: node-61 (node node-61.domain.tld): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2033, in _do_build_and_run_instance\n filter_properties)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2164, in _build_and_run_instance\n instance_uuid=instance.uuid, reason=six.text_type(e))\n', u"RescheduledException: Build of instance 9841cbe6-ffd7-4448-9f66-ce956831fbdc was re-scheduled: Multiple security groups found matching 'default'. Use an ID to be more specific.\n"]

2015-03-03T04:59:07.687949+00:00 err: Error from last host: node-40 (node node-40.domain.tld): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2033, in _do_build_and_run_instance\n filter_properties)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2164, in _build_and_run_instance\n instance_uuid=instance.uuid, reason=six.text_type(e))\n', u"RescheduledException: Build of instance b8c75e34-a005-4a54-9723-8d61fba0d3b7 was re-scheduled: Multiple security groups found matching 'default'. Use an ID to be more specific.\n"]

Pay attention on message "Multiple security groups found matching 'default'. Use an ID to be more specific."

Tags: scale
Changed in rally:
status: New → Triaged
importance: Undecided → Wishlist
assignee: nobody → Kairat Kushaev (kkushaev)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to rally (master)

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

Changed in rally:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to rally (master)

Reviewed: https://review.openstack.org/161669
Committed: https://git.openstack.org/cgit/stackforge/rally/commit/?id=de3c40ffedf78b9cb84149e9a7220c8bc5009961
Submitter: Jenkins
Branch: master

commit de3c40ffedf78b9cb84149e9a7220c8bc5009961
Author: kairat_kushaev <email address hidden>
Date: Thu Mar 5 13:32:02 2015 +0300

    Add security group for neutron ports

    During testing of scale heat rally test for neutron
    (HeatStack.create_and_delete_stack) is falling because neutron
    creates multiple security groups but nova cannot define which one
    should it use. As a result nova cannot boot an instance.
    The fix defines default security group in the
    server_with_ports.yaml.template, so nova will choose
    the one specific group.
    In addition, the deprecated attribute network_id in the template
    has been replaced with the network attribute.

    Change-Id: I5e610f0fe3817fdbf6acd1e62ef7a5de3273874a
    Closes-bug: #1428066

Changed in rally:
status: In Progress → Fix Committed
Changed in rally:
milestone: none → 0.0.2
Changed in rally:
status: Fix Committed → Fix Released
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.