Creating default SG fails with RefsExistError exception

Bug #1775716 reported by Petr Jediný
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.2
Fix Committed
Undecided
Unassigned
R3.2.3.x
In Progress
Undecided
Unassigned
R4.0
Fix Committed
Undecided
Unassigned
R4.1
Fix Committed
Undecided
Unassigned
R5.0
Fix Committed
Undecided
Unassigned
Trunk
Fix Committed
Undecided
Unassigned
OpenContrail
New
Undecided
Unassigned

Bug Description

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/__init__.py", line 1108, in handler_trap_exception
    response = handler(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_interface.py", line 686, in plugin_http_post_securitygroup
    return self.plugin_get_sec_groups(context, sg)
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_interface.py", line 665, in plugin_get_sec_groups
    sgs_info = cfgdb.security_group_list(context, filters)
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_db.py", line 2521, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_db.py", line 4239, in security_group_list
    self._ensure_default_security_group_exists(context['tenant_id'])
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_db.py", line 249, in _ensure_default_security_group_exists
    vnc_openstack.ensure_default_security_group(self._vnc_lib, proj_obj)
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/__init__.py", line 212, in ensure_default_security_group
    _create_default_security_group(vnc_lib, proj_obj)
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/__init__.py", line 202, in _create_default_security_group
    vnc_lib.security_group_create(sg_obj)
  File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 42, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 387, in _object_create
    data=json_body)
  File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 750, in _request_server
    retry_count=retry_count)
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/context.py", line 37, in wrapper
    return fn(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_db.py", line 76, in _request
    op, url, data, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 828, in _request
    raise RefsExistError(content)
RefsExistError: ['default-domain', 'XXXXXXX', 'default'] already exists with uuid: c9537380-5f5c-497a-98c3-980b6ba6999e

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/43630
Submitter: Petr Jediný (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2.3.x

Review in progress for https://review.opencontrail.org/43641
Submitter: Petr Jediný (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/43642
Submitter: Petr Jediný (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/43643
Submitter: Petr Jediný (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R5.0

Review in progress for https://review.opencontrail.org/43644
Submitter: Petr Jediný (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/43645
Submitter: Petr Jediný (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/43645
Committed: http://github.com/Juniper/contrail-controller/commit/3b9564bb96e2226ea41e7397ff3e193b6a665cb9
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 3b9564bb96e2226ea41e7397ff3e193b6a665cb9
Author: Petr Jediný <email address hidden>
Date: Fri Jun 8 00:02:14 2018 +0200

Do not fail in ensure_default_security_group

There can be situation where the default SG is created in the
meantime on other config node.

Change-Id: Ie9227008e3781f9ed4d4e1a1eb9398aff91c2d48
Closes-Bug: #1775716

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/43643
Committed: http://github.com/Juniper/contrail-controller/commit/9d0bdddcc49fa3b7ccb17448e7372903b4a4df0d
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 9d0bdddcc49fa3b7ccb17448e7372903b4a4df0d
Author: Petr Jediný <email address hidden>
Date: Fri Jun 8 00:02:14 2018 +0200

Do not fail in ensure_default_security_group

There can be situation where the default SG is created in the
meantime on other config node.

Change-Id: Ie9227008e3781f9ed4d4e1a1eb9398aff91c2d48
Closes-Bug: #1775716

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/43644
Committed: http://github.com/Juniper/contrail-controller/commit/c9bb259b8568d2a820ddcfb1c81e29f35411cb6d
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0

commit c9bb259b8568d2a820ddcfb1c81e29f35411cb6d
Author: Petr Jediný <email address hidden>
Date: Fri Jun 8 00:02:14 2018 +0200

Do not fail in ensure_default_security_group

There can be situation where the default SG is created in the
meantime on other config node.

Change-Id: Ie9227008e3781f9ed4d4e1a1eb9398aff91c2d48
Closes-Bug: #1775716

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/43630
Committed: http://github.com/Juniper/contrail-controller/commit/01e7f29d13a12b56a59a97de3d1be13dc86fea52
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit 01e7f29d13a12b56a59a97de3d1be13dc86fea52
Author: Petr Jediný <email address hidden>
Date: Fri Jun 8 00:02:14 2018 +0200

Do not fail in ensure_default_security_group

There can be situation where the default SG is created in the
meantime on other config node.

Change-Id: Ie9227008e3781f9ed4d4e1a1eb9398aff91c2d48
Closes-Bug: #1775716

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/43642
Committed: http://github.com/Juniper/contrail-controller/commit/46086383abaada3158917ef35ea00ee512498d82
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit 46086383abaada3158917ef35ea00ee512498d82
Author: Petr Jediný <email address hidden>
Date: Fri Jun 8 00:02:14 2018 +0200

Do not fail in ensure_default_security_group

There can be situation where the default SG is created in the
meantime on other config node.

Change-Id: Ie9227008e3781f9ed4d4e1a1eb9398aff91c2d48
Closes-Bug: #1775716

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.