Implementation of the configuration of the workers nodes
for the STANDARD installation.
Test Case:
PASS - Workers are being properly configured
PASS - host_bulk_add file is being correctly generated
Story: 2005051
Task: 49183
Task: 49184
Change-Id: I46368655616a727f3900c4eb0b107ef79387d133
Signed-off-by: Daniel Caires <daniel.caires@encora.com>
Implementation of the function that configures
the OSDs in controller-0 and controller-1
Test Plan:
PASS - OSDs are configured in both controllers
in the STANDARD installation.
Story: 2005051
Task: 49185
Change-Id: If0c5ef02da705165bc01f7db2236e8bf727eefb8
Signed-off-by: Daniel Caires <daniel.caires@encora.com>
Before creating the labs, the code tries
to create the NatNetwork, if it already exists
it skips, if it doesn't it creates the NatNet
using the subnet defined in the localhost.yaml as CIDR.
Test Plan:
PASS: If NatNetwork doesn't exists, it is successfully created
PASS: If NatNetwork exists with different IP for CIDR, installation
is terminated.
Story: 2005051
Task: 48920
Change-Id: I80e361e66c5a936da019aa55ff7aa26643819b6f
Signed-off-by: Daniel Caires <daniel.caires@encora.com>
Allow the installer to re-use the paramiko SSH Client instead of creating a new one every time, resulting in slightly lower install time.
Regression: Tested by installing a AIO-SX system, PASS
Story: 2005051
Task: 48502
Change-Id: I1fcb0df2a0a04a2983c7f7f32bf12f3351c0e8d9
Signed-off-by: Felipe Freire <felipe.freire@encora.com>
These files might be helpful for some guide or
instructions, but currently are just serving as
an unnecessary noise in a repo that's already
complicated enough.
The commands removed have to do with the recent
memory allocation analysis (not necessary here
anymore).
Story: 2005051
Task: 48373
Change-Id: Ic710d56d0881b0c08ee81d3642dfb0017a97912c
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 <daniel.caires@encora.com>
Additional changes were necessary. Now it's possible to use either
-y or --yes-to-all to get a 'y' answers on all yes/no questions.
The result of the parser is explicitly stored on a variable called
'y' on the namespace that the argparse returns.
Task: 48626
Story: 2005051
Change-Id: I4760ea2f1f77bee7c11cf7e0e76ee2566f383b19
Users can now install stx-openstack in an automated manner
by using the --openstack-helm-location parameter when running
the script installation, and by increasing the node storage
to at least 360 GB.
Story: 2005051
Task: 48149
Change-Id: I2eade54dca3328fa5fe5282355e9a1b9f33b059f
Signed-off-by: Tomás Barros <tomas.barros@encora.com>
Fixes an issue with overwriting portfowarding rules.
Closes-Bug: 2031930
Task: 48624
Adds a new argument: --y
Automatically answers yes to all prompts improving the autonomy of the installation
Task: 48626
Story: 2005051
Change-Id: I426be7486c59f2163c32227da83924b61e40ea30
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>
TCP port is being uptaded to a value based on the
ssh port of controller-0
Test Plan:
PASS: VMs created with TCP port based on the ssh port
of controller-0
Story: 2005051
Task: 48375
Change-Id: I67d284a4e41a42de641670eb3bc7326bdcc432c9
Signed-off-by: Daniel Caires <daniel.caires@encora.com>
-Minimal changes so the script works for the
installation of a AIO-DX setup type.
-Addition of a lab_setup2 for the configuration
of the controller-1.
-Change of serial port configuration so VMs can boot
without the need of a socat connection.
Regression: AIO-SX successfully provisioned using
modified code.
Test Plan:
PASS: StarlingX is succesful deployed in a AIO Duplex
configuration.
PASS: Both controllers are set with TCP as Port Mode
in serial ports configuration.
Story: 2005051
Task: 48261
Task: 48275
Change-Id: I5fd5c6d413270867424a30768b0ad7ff91d296b8
Signed-off-by: Daniel Caires <daniel.caires@encora.com>
- Lock Kubernetes Dashboard version in automated install
- Lock StarlingX ISO version to download on the README instructions
The new Kubernetes Dashboard version (3.0.0) has a breaking change
which is related to its dependencies of nginx and cert-manager.
This commit locks the Kubernetes Dashboard version to 2.7.0, which
corresponds to the Helm Chart version 6.0.8. There's a new Task,
number 48393, to investigate all the changes necessary to allow a
new version of the Kubernetes Dashboard to be used.
Test Plan:
PASS: Verify end-to-end installation for AIO-SX
Closes-Bug: 2027722
Change-Id: I1330a133f344746b791067b1b12c29029be238f5
Signed-off-by: Bruno Muniz <bruno.muniz@encora.com>
Ensure that if given local port is already in use,
rather than stopping installation, the script asks
if the user would like to overwrite or no the currently
rule using the local port.
Test Plan:
PASS: User press y to override the rule
PASS: User press n or any other key to ignore the creation
of a port forwarding rule and continue installation
Story: 2005051
Task: 48091
Change-Id: Iaabf0d5b713cf6d73a9fccdcf7da6962ac5620c2
Signed-off-by: Daniel Caires <daniel.caires@encora.com>
Allow user to choose a headless start
for the VMs
Story: 2005051
Task: 47899
Change-Id: Iec6ab9ea2a2b0544f99cd6a4028173706a9c4896
Signed-off-by: Daniel Caires <daniel.caires@encora.com>
-Add a new stage that install Kubernetes
dashboard and saves a file with the access
token in the $HOME of the user.
-Change config files folder structure.
Test Plan:
PASS: kubernetes dashboard is successfully initiated
PASS: token.txt is sent to $HOME
Story: 2005051
Task: 47937
Change-Id: Id5a872e14c2620e6064e8593ce28d177a113ffaf
Signed-off-by: Daniel Caires <daniel.caires@encora.com>
-stx_config.ini_centos file and all
code related to it deleted.
-localhost.yml updates ansible_become_pass
value based on password parameter.
-Ip's used in the VM are now set from the
localhost.yml
-ruamel.yaml added to requirementes.txt
Test Plan:
PASS: localhost.yml is succesfully overriten
PASS: ip variables are set from localhost.yml
Story: 2005051
Task: 47953
Change-Id: Ieb5fe5d6c0a7da5ef1b6aa7488d6edf48f4cc527
Signed-off-by: Daniel Caires <daniel.caires@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>