Unmanage/manage a subcloud causes sysinv api exception in subcloud

Bug #1860558 reported by Bart Wensley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Jessica Castelino

Bug Description

Brief Description
-----------------
In a distributed cloud deployment, when a subcloud is unmanaged and then managed again, the following exception appears in the sysinv logs on each subcloud:
sysinv 2020-01-22 14:00:03.016 99413 ERROR sysinv.api.controllers.v1.trapdest [-] A TrapDest with UUID e6f1dca1-6fa0-4272-997c-945bd366aec6 already exists.: TrapDestAlreadyExists: A TrapDest with UUID e6f1dca1-6fa0-4272-997c-945bd366aec6 already exists.
2020-01-22 14:00:03.016 99413 ERROR sysinv.api.controllers.v1.trapdest Traceback (most recent call last):
2020-01-22 14:00:03.016 99413 ERROR sysinv.api.controllers.v1.trapdest File "/usr/lib64/python2.7/site-packages/sysinv/api/controllers/v1/trapdest.py", line 189, in post
2020-01-22 14:00:03.016 99413 ERROR sysinv.api.controllers.v1.trapdest new_itrapdest = pecan.request.dbapi.itrapdest_create(itrapdest.as_dict())
2020-01-22 14:00:03.016 99413 ERROR sysinv.api.controllers.v1.trapdest File "/usr/lib64/python2.7/site-packages/sysinv/objects/__init__.py", line 106, in wrapper
2020-01-22 14:00:03.016 99413 ERROR sysinv.api.controllers.v1.trapdest result = fn(*args, **kwargs)
2020-01-22 14:00:03.016 99413 ERROR sysinv.api.controllers.v1.trapdest File "/usr/lib64/python2.7/site-packages/sysinv/db/sqlalchemy/api.py", line 3332, in itrapdest_create
2020-01-22 14:00:03.016 99413 ERROR sysinv.api.controllers.v1.trapdest raise exception.TrapDestAlreadyExists(uuid=values['uuid'])
2020-01-22 14:00:03.016 99413 ERROR sysinv.api.controllers.v1.trapdest TrapDestAlreadyExists: A TrapDest with UUID e6f1dca1-6fa0-4272-997c-945bd366aec6 already exists.
2020-01-22 14:00:03.016 99413 ERROR sysinv.api.controllers.v1.trapdest

Severity
--------
Unknown - I don't know the functional impact of this exception

Steps to Reproduce
------------------
Install a distributed cloud system with at least one subcloud.
Unmanage and manage the subcloud.

Expected Behavior
------------------
Managing a subcloud should not result in exceptions.

Actual Behavior
----------------
Managing the subcloud causes an exception in the sysinv API in the subcloud.

Reproducibility
---------------
Reproducible

System Configuration
--------------------
Distributed cloud with AIO-DX system controller and AIO-SX subcloud.

Branch/Pull Time/Commit
-----------------------
Designer load built on January 16, 2020.

Last Pass
---------
Unknown

Timestamp/Logs
--------------
See above

Test Activity
-------------
Developer Testing

Workaround
----------
None

Revision history for this message
Ghada Khalil (gkhalil) wrote :

stx.4.0 / medium priority - unexpected exception on DC.

tags: added: stx.4.0 stx.distcloud
Changed in starlingx:
importance: Undecided → Medium
status: New → Triaged
assignee: nobody → Tao Liu (tliu88)
Revision history for this message
Dariush Eslimi (deslimi) wrote :

There has been many improvement in this area, please retest.

Changed in starlingx:
assignee: Tao Liu (tliu88) → Yang Liu (yliu12)
status: Triaged → Fix Released
Dariush Eslimi (deslimi)
Changed in starlingx:
status: Fix Released → Triaged
assignee: Yang Liu (yliu12) → nobody
Changed in starlingx:
assignee: nobody → Jessica Castelino (jcasteli)
Revision history for this message
Jessica Castelino (jcasteli) wrote :

Unable to reproduce this on a load built on 29th April 2020 using the below mentioned steps:

1) Manage a subcloud
2) Added a community on the system controller. Added a trapdest in SystemController region and passed the community created in the previous step as an argument
4) Unmanaged the subcloud once the audit has been completed (verified trapdest is synched to the subcloud)
5) Managed the subcloud again

Changed in starlingx:
status: Triaged → 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.