Unable to create or use a subcloud group called "patch" but can use (almost) any other value
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Gustavo Herzmann |
Bug Description
Brief Description
-----------------
Unable to use the command "dcmanager subcloud-group list-subclouds --<name of subcloud group>" if name of the subcloud is patch, index, get, etc.
This is a conflict with how pecan routes the request.
Severity
--------
Minor: System/Feature is usable with minor issue
Steps to Reproduce
------------------
(We create 2 groups. ‘patch’ and ‘foo’)
Steps:
dcmanager subcloud-group add --name patch
-------
Field Value
-------
id 2
name patch
description No description provided
update apply type parallel
max parallel subclouds 2
created_at 2022-09-16 19:34:27.526813
updated_at None
-------
dcmanager subcloud-group add --name foo
-------
Field Value
-------
id 3
name foo
description No description provided
update apply type parallel
max parallel subclouds 2
created_at 2022-09-16 20:43:57.607121
updated_at None
-------
dcmanager subcloud-group list
{}{}{}{
id name description
{}{}{}{
1 Default Default Subcloud Group
2 patch No description provided
3 foo No description provided
{}{}{}{
dcmanager subcloud-group list-subclouds patch
ERROR (app) b'<html>\n <head>\n <title>404 Not Found</title>\n </head>\n <body>\n <h1>404 Not Found</h1>\n The resource could not be found.<br /><br />\n\n\n\n </body>\n</html>'
dcmanager subcloud-group list-subclouds foo
----{}{
id name description location software_version management availability deploy_status management_subnet management_start_ip management_end_ip management_
----{}{
<none> <none> <none> <none> <none> <none> <none> <none> <none> <none> <none> <none> <none> <none> <none> <none>
----{}{
Expected Behavior
------------------
The information about the patch group should be returned correctly.
Actual Behavior
----------------
Command fails stating that the resource could not be found.
Reproducibility
---------------
Reproducible
System Configuration
-------
Distributed Cloud
Branch/Pull Time/Commit
-------
Various builds: confirmed on 21.12 and latest Debian build (22.12 dev)
Last Pass
---------
Not sure, probably a new test scenario.
Workaround
----------
No workaround besides not using those specific names.
Changed in starlingx: | |
assignee: | nobody → Gustavo Herzmann (gherzman) |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.8.0 stx.distcloud |
Fix proposed to branch: master /review. opendev. org/c/starlingx /distcloud/ +/864414
Review: https:/