[integration tests] Conflict: Multiple security_group matches found for name 'security_nova', use an ID to be more specific.

Bug #1584728 reported by Georgy Dyuldin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
High
MOS QA Team

Bug Description

Test result:

https://mirantis.testrail.com/index.php?/tests/view/6048713

Trace:

self = <mos_tests.nova.nova_test.NovaIntegrationTests testMethod=test_resize_down_an_instance_booted_from_volume[(543355)]>

    @pytest.mark.testrail_id('543355')
    def test_resize_down_an_instance_booted_from_volume(self):
        """This test checks that nova allows
                resize down an instance booted from volume
                Steps:
                1. Create bootable volume
                2. Boot instance from newly created volume
                3. Resize instance from m1.small to m1.tiny
            """

        # 1. Create bootable volume
        image_id = [image.id for image in self.nova.images.list() if
                    image.name == 'TestVM'][0]

        volume = common_functions.create_volume(self.cinder, image_id,
                                                timeout=60)
        self.volumes.append(volume)

        # 2. Create instance from newly created volume, associate floating_ip
        name = 'TestVM_543355_instance_to_resize'
        networks = self.neutron.list_networks()['networks']
        net = [net['id'] for net in networks if not net['router:external']][0]
        flavor_list = {f.name: f.id for f in self.nova.flavors.list()}
        initial_flavor = flavor_list['m1.small']
        resize_flavor = flavor_list['m1.tiny']
        bdm = {'vda': volume.id}
        instance = common_functions.create_instance(self.nova,
                                                    name, initial_flavor, net,
                                                    [self.sec_group.name],
                                                    block_device_mapping=bdm,
> inst_list=self.instances)

mos_tests/nova/nova_test.py:204:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
mos_tests/functions/common.py:370: in create_instance
    key_name=key_name)
.tox/nova/local/lib/python2.7/site-packages/novaclient/v2/servers.py:1242: in create
    **boot_kwargs)
.tox/nova/local/lib/python2.7/site-packages/novaclient/v2/servers.py:676: in _boot
    return_raw=return_raw, **kwargs)
.tox/nova/local/lib/python2.7/site-packages/novaclient/base.py:333: in _create
    resp, body = self.api.client.post(url, body=body)
.tox/nova/local/lib/python2.7/site-packages/keystoneauth1/adapter.py:179: in post
    return self.request(url, 'POST', **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <novaclient.client.SessionClient object at 0x7f005224edd0>
url = '/os-volumes_boot', method = 'POST'
kwargs = {'body': {'server': {'block_device_mapping': [{'device_name': 'vda', 'volume_id': 'a963ec1a-4edf-4834-87de-3d673b26643...cNhYFMgLnOOg1ebGotcuPHBsauSQG-jm38Q0fFj24TBOmFznetof-GEuM7ZQ7IG87D1bHXwT2wTmMDzCke9E2x9FAMgyA8bKqJngokW1Mu9Ktc4Zax_A'}}
raise_exc = True, resp = <Response [409]>
body = {'conflictingRequest': {'code': 409, 'message': "Multiple security_group matches found for name 'security_nova', use an ID to be more specific."}}

    def request(self, url, method, **kwargs):
        kwargs.setdefault('headers', kwargs.get('headers', {}))
        api_versions.update_headers(kwargs["headers"], self.api_version)
        # NOTE(jamielennox): The standard call raises errors from
        # keystoneauth1, where we need to raise the novaclient errors.
        raise_exc = kwargs.pop('raise_exc', True)
        with utils.record_time(self.times, self.timings, method, url):
            resp, body = super(SessionClient, self).request(url,
                                                            method,
                                                            raise_exc=False,
                                                            **kwargs)
        # TODO(andreykurilin): uncomment this line, when we will be able to
        # check only nova-related calls
        # api_versions.check_headers(resp, self.api_version)
        if raise_exc and resp.status_code >= 400:
> raise exceptions.from_response(resp, body, url, method)
E Conflict: Multiple security_group matches found for name 'security_nova', use an ID to be more specific. (HTTP 409) (Request-ID: req-1415c2b8-6694-47f9-a983-ab8b17beb19e)

.tox/nova/local/lib/python2.7/site-packages/novaclient/client.py:100: Conflict

Tags: area-qa
Changed in mos:
assignee: nobody → MOS QA Team (mos-qa)
Changed in mos:
milestone: 10.0 → 9.0
Revision history for this message
Alexander Koryagin (akoryagin) wrote :
Changed in mos:
status: Confirmed → Fix Committed
Changed in mos:
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.