Security group is created but nova unable to find it

Bug #1664555 reported by Alexander Kurenyshev
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Confirmed
High
MOS Nova

Bug Description

Found here [0]
One OSTF test failed with error:
 Check network connectivity from instance via floating IP (failure) Server can not be created. Please refer to OpenStack logs for more details.

At the OSTF logs:
2017-02-13 04:00:03 ERROR (test_mixins) Unable to find security_group with name or id 'ost1_test-secgroup-smoke-netw193333349' (HTTP 400) (Request-ID: req-1aebe1e9-79fa-468d-a05b-fe81d0f838bc)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/fuel_health/common/test_mixins.py", line 174, in verify
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/fuel_health/nmanager.py", line 778, in _create_server
    **create_kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 1353, in create
    **boot_kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 753, in _boot
    return_raw=return_raw, **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 356, in _create
    resp, body = self.api.client.post(url, body=body)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 483, in post
    return self._cs_request(url, 'POST', **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 458, in _cs_request
    resp, body = self._time_request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 431, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 425, in request
    raise exceptions.from_response(resp, body, url, method)
BadRequest: Unable to find security_group with name or id 'ost1_test-secgroup-smoke-netw193333349' (HTTP 400) (Request-ID: req-1aebe1e9-79fa-468d-a05b-fe81d0f838bc)
2017-02-13 04:00:03 ERROR (nose_storage_plugin) fuel_health.tests.smoke.test_neutron_actions.TestNeutron.test_check_neutron_objects_creation
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 67, in testPartExecutor
    yield
  File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 601, in run
    testMethod()
  File "/usr/lib/python2.7/site-packages/fuel_health/tests/smoke/test_neutron_actions.py", line 95, in test_check_neutron_objects_creation
    net_id=network['id'])
  File "/usr/lib/python2.7/site-packages/fuel_health/common/test_mixins.py", line 180, in verify
    " Please refer to OpenStack logs for more details.")
  File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 666, in fail
    raise self.failureException(msg)
AssertionError: Step 6 failed: Server can not be created. Please refer to OpenStack logs for more details.

At the nova-logs:

var/log/remote/controller-7991.test.domain.local/nova-api.log:2017-02-13T03:59:50.670638+00:00 debug: 2017-02-13 03:59:50.669 9785 DEBUG nova.api.openstack.wsgi [req-5a1de2b7-60d4-4f54-af3b-03a7ffc53412 c0d06114f23d49e7a98651f395d985ba 6dc73d4497c649fb836195e41fc9d045 - default default] Action: 'create', calling method: <function version_select at 0x7fc31de49500>, body: {"security_group": {"name": "ost1_test-secgroup-smoke-netw193333349", "description": "ost1_test-secgroup-smoke-netw193333349 description"}} _process_stack /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:633

var/log/remote/controller-7991.test.domain.local/nova-api.log:RESP BODY: {"security_group": {"description": "ost1_test-secgroup-smoke-netw193333349 description", "tenant_id": "6dc73d4497c649fb836195e41fc9d045", "created_at": "2017-02-13T03:59:51Z", "updated_at": "2017-02-13T03:59:51Z", "security_group_rules": [{"direction": "egress", "protocol": null, "description": null, "port_range_max": null, "updated_at": "2017-02-13T03:59:51Z", "revision_number": 1, "id": "87b9271a-67ef-4915-8a22-de4e24a97033", "remote_group_id": null, "remote_ip_prefix": null, "created_at": "2017-02-13T03:59:51Z", "security_group_id": "49acccde-f3b4-443a-b27b-001390a1f9f0", "tenant_id": "6dc73d4497c649fb836195e41fc9d045", "port_range_min": null, "ethertype": "IPv4", "project_id": "6dc73d4497c649fb836195e41fc9d045"}, {"direction": "egress", "protocol": null, "description": null, "port_range_max": null, "updated_at": "2017-02-13T03:59:51Z", "revision_number": 1, "id": "06bad88c-ff42-43b2-9b52-b5963a106853", "remote_group_id": null, "remote_ip_prefix": null, "created_at": "2017-02-13T03:59:51Z", "security_group_id": "49acccde-f3b4-443a-b27b-001390a1f9f0", "tenant_id": "6dc73d4497c649fb836195e41fc9d045", "port_range_min": null, "ethertype": "IPv6", "project_id": "6dc73d4497c649fb836195e41fc9d045"}], "revision_number": 1, "project_id": "6dc73d4497c649fb836195e41fc9d045", "id": "49acccde-f3b4-443a-b27b-001390a1f9f0", "name": "ost1_test-secgroup-smoke-netw193333349"}}

But at the same time:
var/log/remote/controller-7991.test.domain.local/nova-api.log:2017-02-13T04:00:03.526350+00:00 debug: 2017-02-13 04:00:03.524 9785 DEBUG nova.network.security_group.neutron_driver [req-1aebe1e9-79fa-468d-a05b-fe81d0f838bc c0d06114f23d49e7a98651f395d985ba 6dc73d4497c649fb836195e41fc9d045 - default default] Neutron security group ost1_test-secgroup-smoke-netw193333349 not found get /usr/lib/python2.7/dist-packages/nova/network/security_group/neutron_driver.py:153

Snapshot is here [1]

[0] https://product-ci.infra.mirantis.net/job/10.0.system_test.ubuntu.custom_hostname/181/testReport/junit/(root)/set_custom_hostname/set_custom_hostname/
[1] https://drive.google.com/file/d/0BzdDsIW-ymG2eGNhcFYzdjh2ekE/view?usp=sharing

Tags: area-nova
tags: added: area-nova
Changed in fuel:
status: New → Confirmed
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.