Automated virtualbox script fails when --username is passed

Bug #2028861 reported by Daniel Marques Caires
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Daniel Marques Caires

Bug Description

Brief Description
-----------------
The automated installation script found in https://opendev.org/starlingx/virtual-deployment for VirtualBox fails if the parameter --username is passed in the python call.

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.

Revision history for this message
Bruno Drugowick Muniz (brunomuniz) wrote :

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.

Changed in starlingx:
assignee: nobody → Daniel Marques Caires (daniel-caires)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to virtual-deployment (master)
Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to virtual-deployment (master)

Reviewed: https://review.opendev.org/c/starlingx/virtual-deployment/+/893745
Committed: https://opendev.org/starlingx/virtual-deployment/commit/fc8508e97a18cc8b30b8abcf8ea8850620a75a60
Submitter: "Zuul (22348)"
Branch: master

commit fc8508e97a18cc8b30b8abcf8ea8850620a75a60
Author: Daniel Caires <email address hidden>
Date: Tue Sep 5 11:22:45 2023 -0300

    Remove username from Parser

    Removal of the --username argument from Parser and
    pass V_BOX_OPTIONS.username value in the install_vbox.py

    Closes-Bug: 2028861

    Change-Id: I68422f5b436ea1d1f75a9272fb0ee3811453e846
    Signed-off-by: Daniel Caires <email address hidden>

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