Automated virtualbox script fails when --username is passed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Daniel Marques Caires |
Bug Description
Brief Description
-----------------
The automated installation script found in https:/
Severity
--------
Minor: System/Feature is usable with minor issue
Steps to Reproduce
------------------
Run the script as in the README file and additionally pass --username parameter with value different from "sysadmin"
Expected Behavior
------------------
Automated installation script runs from end to end
Actual Behavior
----------------
Script fails in initial log in
Reproducibility
---------------
100%
System Configuration
-------
NA
Branch/Pull Time/Commit
-------
NA
Last Pass
---------
NA
Timestamp/Logs
--------------
2023-07-27 09:58:04,096: Expecting text within 60.0 minutes: login:
2023-07-27 10:02:22,501: Found expected text: login:
2023-07-27 10:02:23,502: >>> expect_bytes: Buffer has bytes!
2023-07-27 10:02:23,503: Completed installation of controller-0.
2023-07-27 10:02:43,519: Changing password to Li69nux*
2023-07-27 10:02:45,524: Sending text: daniel
2023-07-27 10:02:46,526: Expecting text within 3.0 minutes: Password:
2023-07-27 10:02:46,526: Found expected text: Password:
2023-07-27 10:02:50,534: Sending text: daniel
2023-07-27 10:02:51,535: Expecting text within 3.0 minutes: Current password:
Login incorrect
2023-07-27 10:05:51,539: Did not find expected text
2023-07-27 10:05:51,539: INSTALL FAILED, ABORTING!
Test Activity
-------------
NA
Workaround
----------
The script works fine if no username is passed.
Changed in starlingx: | |
assignee: | nobody → Daniel Marques Caires (daniel-caires) |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.virtual-deployment |
Just to register our discussion here, we agree that the best option is to completely remove the `username` input from the script to align it with how the expected password after the first boot with the StarlingX iso is treated.
Another option would be to completely externalize the initial username and password that the script needs to use when installing the ISO.