After upgrade subcloud linux prompt is different from installed subcloud
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Karla Felix |
Bug Description
Brief Description
After DC-9 upgrade sub clouds have different prompts compared to the installed sub-cloud with the same build. This is causing Automation test cases to fail.
The installed system has prompt sysadmin@
The Upgraded system has a prompt is [sysadmin@
Severity
Minor: Unable to use Automation script after the upgrade. Or need to handle this by extra code.
Steps to Reproduce
Follow DC upgrade procedure
Expected Behavior
Uniform prompt across upgrade and install.
Actual Behavior
Different prompt between upgrade and installed system
Reproducibility
System Configuration
DC-9
2022-11-20_18-00-09
Last Pass
Not sure which build.
Timestamp/Logs
Alarms
Test Activity
Workaround
Describe workaround if available
Changed in starlingx: | |
status: | New → In Progress |
summary: |
After upgrade subcloud linux prompt is different from installed subcloud - Edit Add comment Assign More On Hold Check In Resolve Share this issue - Pivot Report Export |
Changed in starlingx: | |
assignee: | nobody → Karla Felix (kkarolin) |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.8.0 stx.config stx.security |
Reviewed: https:/ /review. opendev. org/c/starlingx /config- files/+ /865324 /opendev. org/starlingx/ config- files/commit/ b2f15301ee8e360 a5d09a7a08995bd ee3cd7c2ec
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit b2f15301ee8e360 a5d09a7a08995bd ee3cd7c2ec
Author: Karla Felix <email address hidden>
Date: Tue Nov 22 15:42:48 2022 -0300
After upgrade subcloud linux prompt is different
The regex in prompt.sh is incorrectly adding [] to around
user@hostname. This commit removes those brackets in order
to have the expected format.
Test Plan:
PASS: Enter "sudo su -" and verify if the prompt shows
"root@ controller- 0:~$".
"root@ controller- 0:~$".
"sysadmin@ controller- 0:~$ "
PASS: Generate a new .iso with the changes and verify
if when entering sudo with "sudo su -" it is showing
PASS: Install system and verify if prompt show
Closes-Bug: 1997972 9679e227c9406aa f200514977a
Related-Bug: 1995988
Signed-off-by: Karla Felix <email address hidden>
Change-Id: Idfd3b03f2ce1eb