-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When root container is not Tenant, cv_container fails #113
Labels
module: cv_container
Issue related to cv_container module
status: in-progress
Currently under investigation or implementation
type: bug
Something isn't working
Milestone
Comments
titom73
added
type: bug
Something isn't working
status: in-progress
Currently under investigation or implementation
module: cv_container
Issue related to cv_container module
labels
Jan 9, 2020
titom73
added a commit
that referenced
this issue
Jan 9, 2020
Implement a fucntion to get container's name acting as root container. If not found, returns Tenant as it is default CVP value.
Need to remove references to modules/cv_container.py: default_containers = ['Tenant', 'Undefined', 'root'] |
titom73
added a commit
that referenced
this issue
Jan 10, 2020
Identify root container from CV facts and use it dynamically instead of relying on Tenant which can be changed - Implement a function to identify root container - Build list of builtin containers at startup - Remove tenant references - Implement baseline for debug outputs
Dynamic root container identification tested in lab sucessfuly:
Must be tested in a setup with custom root container |
Thanks Thomas,
I'll test it today and confirm
Best Regards
Hugh
…On 10/Jan/20 09:47, Thomas Grimonet wrote:
Dynamic root container identification tested in lab sucessfuly:
|2020-01-10 10:19:16,240 -> CloudVision container {'Key': 'root',
'Name': 'Tenant', 'CreatedBy': 'cvp system', 'CreatedOn':
1569850167062, 'Mode': 'expand', 'name': 'Tenant', 'key': 'root',
'parentName': None, 'parentId': None, 'type': None, 'id': 21,
'factoryId': 1, 'userId': None, 'childContainerId': None, 'devices':
[], 'configlets': [], 'imageBundle': ''} 2020-01-10 10:19:16,240 ->
CloudVision ROOT container has name Tenant |
Must be tested in a setup with custom root container
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#113?email_source=notifications&email_token=ACWTZX5KWXS62E3MDZJ3LJLQ5A72XA5CNFSM4KEZW6P2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEITJTQQ#issuecomment-572955074>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACWTZX7LCQCSMD5ZN4YUWITQ5A72XANCNFSM4KEZW6PQ>.
|
Tested with following scenario:
|
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
module: cv_container
Issue related to cv_container module
status: in-progress
Currently under investigation or implementation
type: bug
Something isn't working
Issue Type
Module Name
cv_container
Description
Module assumes root container is always named
Tenant
as it is the default value. But some design have this value changed.When root container is not Tenant then, module starts an infinite loop as it is looking for a non-existing key.
Instead of assuming root is Tenant, module should identify the root container and use it as base for the tree representation
The text was updated successfully, but these errors were encountered: