Change throughout the code every mention of
"compute" as a node to "worker".
Test Plan:
PASS: worker nodes are being configurated as expected
PASS: worker nodes are being deleted when portion of
the code is executed
Story: 2005051
Task: 48726
Change-Id: I6dda10c3b188f14e03dba514cb2063c4c7d1dda4
Signed-off-by: Daniel Caires <daniel.caires@encora.com>
The lab-setup files are refactored, as detailed below.
In addition, recovery, administration and logging improvements are
implemented.
The following lab-setup files are removed:
- lab_setup1.sh
- lab_setup2.sh
The corresponding code, previously run locally in the VM, is now
integrated to the main Python code.
The files lab_setup.sh and lab_setup.conf are kept, because they
are useful to populate the stx-openStack application. These should be
reviewed by a new task under the context of stx-openStack.
Test Plan
- AIO-SX Virtual Deployment (PASS)
- AIO-DX Virtual Deployment (PASS)
Story: 2005051
Task: 48402
Change-Id: I940e5a16ea98a4325efe1ee0dd45127674d6b192
Signed-off-by: Roger Ferraz <rogerio.ferraz@encora.com>
- Additionally, add password validation function.
- Breaks Parser.py into more manageable functions.
- Changes where defaults are set (Parser.py instead of class under
/consts)
The goal is to not have any reference to a password in the code
itself, only in configuration files or README files, if strictly
necessary.
The new password validation function, besides failing fast at the
argument parser, makes sure the password will be allowed by Debian
later on the installation.
This commit is not touching any Shell script because they will
probably be removed or change in follow-up commits.
Test Plan:
PASS: Operating system password should be set to value passed via
--password
Failure Path:
PASS: Script fails fast without the parameter --password
PASS: Script fails fast if password requirements are not met
Regression:
PASS: AIO-SX install works
Story: 2005051
Task: 47960
Task: 48230
Change-Id: Ibf42b792ef825cee61cc69d1b5afa807361037b7
Signed-off-by: Bruno Muniz <bruno.muniz@encora.com>
Enabling automatic pylint with tox and zull for each new patchset.
Test plan:
PASS: Run "tox -e pylint" in the terminal, this will:
- Run pylint in all python files
- Show the report
Story: 2005051
Task: 47900
Change-Id: I2f66a5f72e3f8746c00aae96287ad3e4edb88e28
Signed-off-by: Lindley Werner <lindley.vieira@encora.com>
This commit brings this script back to life. It does so by changing as little
as possible of the existing code, given how complex the code itself is but also
how complex the StarlingX setup can be.
The current working setup is AIO-SX, the most common setup among developers.
This commit also makes sure that not much of the design is changed because we
might reuse some of it in the subsequent commits (there's already a few changes
being worked on top of this one).
Apart from what's already being worked on, some follow-up commits might address
other installation setups.
The minimal changes were:
- Replacing old username from wrsroot to sysadmin
- Replacing old path from /etc/nova/openrc to /etc/platform/openrc
- Fixing menu_selector according to new options:
- Selecting Controller Install
- Selecting All-in-one Install
- Selecting All-in-one (lowlatency) Install
- Fixing first login to change password
- Fixing lab-setup command to use Ansible's bootstrap playbook
- Adding Ansible 'localhost.yml' config file in 'stage_config_controller'
- Adds a bit of "boy scouting" that will help in a future task of enabling
pylint in /deployment/virtualbox/pybox
- Fixing PATH variables in install_vbox.py
- New separated lab_setup script for configuration of OAM interface extracted
from existing script.
Test Plan:
PASS: script install_vbox.py works for base option (--setup-type AIO-SX)
with additional options according to new section in README.md
Closes-Bug: 2016035
Story: 2005051
Task: 47914
Change-Id: I77401bced509b547648fba6441ba586c3292251f
Signed-off-by: Virginia Martins Perozim <virginia.perozim@encora.com>
Signed-off-by: Bruno Muniz <bruno.muniz@encora.com>
Signed-off-by: Daniel Marques <daniel.caires@encora.com>