After upgrade subcloud linux prompt is different from installed subcloud

Bug #1997972 reported by Karla Felix
6
This bug affects 1 person
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@controller-0:~$ which is correct

The Upgraded system has a prompt is [sysadmin@controller-0]$

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
Karla Felix (kkarolin)
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)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config-files (master)

Reviewed: https://review.opendev.org/c/starlingx/config-files/+/865324
Committed: https://opendev.org/starlingx/config-files/commit/b2f15301ee8e360a5d09a7a08995bdee3cd7c2ec
Submitter: "Zuul (22348)"
Branch: master

commit b2f15301ee8e360a5d09a7a08995bdee3cd7c2ec
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:~$".
    PASS: Generate a new .iso with the changes and verify
          if when entering sudo with "sudo su -" it is showing
          "root@controller-0:~$".
    PASS: Install system and verify if prompt show
          "sysadmin@controller-0:~$ "

    Closes-Bug: 1997972
    Related-Bug: 1995988
    Signed-off-by: Karla Felix <email address hidden>
    Change-Id: Idfd3b03f2ce1eb9679e227c9406aaf200514977a

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Low
Ghada Khalil (gkhalil)
tags: added: stx.8.0 stx.config stx.security
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.