Remove "deployment/", which is now in its own repo,
starlingx/virtual-deployment.
Story: 2010807
Task: 48291
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
Change-Id: I267e7b58e8a3b3c69c6a7122dbba5ab314275261
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>
Zuul jobs use a recently released version of bashate, which causes tox
errors. This patch fixes the whitespace errors to prevent Zuul jobs from
failing.
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
Change-Id: Icf46eb4cbff7f15392291f06e0628bc7c1798e17
Add apparmor model to install_packages.sh for deploying simplex
in system without apparmor model.
Closes-Bug: 1821699
Change-Id: Ia3dc596be53376822c6d9639ea9b506a9a5d178e
Signed-off-by: hutianhao <hu.tianhao@99cloud.net>
Change cpu feature policy for vmx to start VM successfully in AMD environment.
Closes-Bug: 1821572
Change-Id: I9dfaf4cc05efa86e76e3ef53351b88c07529e114
Signed-off-by: hutianhao <hu.tianhao@99cloud.net>
Change for Libvirt the "compute" personality to "worker".
Story: 2004022
Task: 28799
Depends-On: https://review.openstack.org/#/c/628341
Change-Id: Icba19b252b22765c7f64990fd92af19cb748fd6a
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
Standard Controller can be configured as:
- Controller Storage
- Dedicated Storage
This includes reusing same function to create and destroy
compute nodes for the added storage nodes, renamed to:
- create_node
- destroy_node
Story: 2004780
Task: 28996
Change-Id: I00745db16c936c11564dbc961728e86a541cc907
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
All In One can be configured as:
- Simplex
- Duplex
Story: 2004780
Task: 28996
Change-Id: I8a1ec35a525babdc44fe0df65fa58d49257d83f4
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
In preparation to support more configurations, use existing allinone
and standardcontroller configurations names to:
- check if configuration is available via a function before it is
created.
- to identify what configuration the compute node belongs to.
Additional:
- Fix linters issues
Story: 2004780
Task: 28996
Change-Id: I94ca268760c2cf12072de676dbd19413ef96a1ab
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
Due to changes in docker-lv size the MINIMUM_DISK_SIZE for the
Controller has been increased.
Story: 2004520
Task: 28968
Depends-On: https://review.openstack.org/628053
Change-Id: I8fdc2e707405bcb35797e915ef71b506346905b2
Co-authored-by: Juan Carlos Alonso <juan.carlos.alonso@intel.com>
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
Combine setup_allinone.sh and setup_standard_controller.sh to have one
single setup script to configure via input parameter allinone and
standardcontroller configurations:
- setup_configuration.sh
- destroy_configuration.sh
Change-Id: Id29d3eeeff43f0c0f43ab710a1179eaacdfb330d
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
ifconfig and brctl are deprecated commands.
They are replaced with ip command.
Story: 2004646
Task: 28598
Change-Id: I4a9b63f5437fc9372a169216ee62f239bce55b3c
Signed-off-by: Felipe de Jesus Ruiz Garcia <felipe_57@live.com.mx>
Signed-off-by: Felipe de Jesus Ruiz Garcia <felipe.de.jesus.ruiz.garcia@intel.com>
ifconfig and brctl are deprecated commands.
They are replaced with ip command.
Story: 2004646
Task: 28597
Change-Id: I24e2d53ae7f8b866eef665a85d1785df0527c82a
Signed-off-by: Felipe de Jesus Ruiz Garcia <felipe_57@live.com.mx>
Signed-off-by: Felipe de Jesus Ruiz Garcia <felipe.de.jesus.ruiz.garcia@intel.com>
The checking for ISO files was made through the mime type. However
this method can fail as the mime type can be set differently by the
browser or tool used to download the file. An example of this
behavior can be found on Fedora 28 where the file command returns
application/octect-stream.
The fix is to avoid using the mime type for checking and just verify
that if a DOS/MBR file.
Closes-Bug: 1804610
Change-Id: I69f09df66215d405720801fbcbe3d43aac668564
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
The default name of the first controller is controller-0
Change-Id: I3dc2221d8ec062677f0d69f99916868d5180e24f
Story: 2004088
Task: 28135
Signed-off-by: zhangkunpeng <zhang.kunpeng@99cloud.net>
After config_controller is executed in simplex Starlingx, fail to execute
simplex_stage_1.sh in stx-tools/deployment/provision/ because that the
partition size to be created is not an integer.
Change-Id: I61947fe98950a9097632aedb9725b5ffd2685de0
Story: 2004088
Task: 28063
Signed-off-by: zhangkunpeng <zhang.kunpeng@99cloud.net>
Compute identity nodes are required for Standard Controller configuration
setups. Move their creation and removal functions to common file:
- create_compute
- destroy_compute
Allow also to specify the number of Compute nodes to be created.
Change-Id: I5d687b4daf16745758c65ed0d44eec5307e0f7f4
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
The creation and removal of the Controller identity nodes are common
between all-in-one and standard controller configuration setups:
- create_controller
- destroy_controller
Make both scripts shared same code located at a common functions
file.
Change-Id: I2ff7d43bd01a2a40264c442d8031a83e1dbbfadb
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
Usage function and ISO file checking are common between all-in-one
and standard controller setups.
Make both scripts shared same code located at a functions file.
Change-Id: Ic47072be8f9d646ef1dcaf9193453dfcd4534783
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
This lets the deployment scripts not care about the current working
dir. It also puts the vms directory in wherever the current working
directory actually is, allowing more than one set of stx VMs to be
controlled at a time.
Change-Id: I21ae6f4e7ea327c62cf04fc877161032daf1223e
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
According to the wiki instructions for all-in-one, an extra disk is
required:
StarlingX/Installation_Guide_Virtual_Environment/Duplex
Partial-Bug: #1793214
Change-Id: I146c601493db6eab8871796b67061132cc6f4f30
Signed-off-by: Michel Thebeau <michel.thebeau@windriver.com>
All-in-one with 18G will provide over 2G of RAM for instances. For
example, a test configuration with two instances each with 1G RAM.
This amount is less than the 24G listed in controller_allinone.xml,
however all-in-one had been setup to use controller.xml, which provides
16G, so technically the series of related commits is increasing the RAM
for all-in-one from 16 to 18G.
Partial-Bug: #1793214
Change-Id: Id6556da171f43ba52375c33b8ab85b6d6d60c74d
Signed-off-by: Michel Thebeau <michel.thebeau@windriver.com>
The all-in-one configuration has both controller and compute function on
the controller nodes. More cores are required to run instances.
Six cores allows 2 cores for instances.
Partial-Bug: #1793214
Change-Id: I1f2da957eb25eba1c488f58a6e94a74202b02a6b
Signed-off-by: Michel Thebeau <michel.thebeau@windriver.com>
Listing the MACs in xml will cause both controllers to have the same MAC
addresses.
Libvirt will fill in mac addresses when the domains are defined.
Partial-Bug: #1793214
Change-Id: Ie8a5ea746dde61a2c8db7b8f48ff9948078de76f
Signed-off-by: Michel Thebeau <michel.thebeau@windriver.com>
Refer also to commit 7abcd94a, which applies the change to
controller.xml
Tests should run on a comparably newer model of CPU and should be fixed
for all tests under virtualization.
Nehalem cpu model is recommended as one that has been used for this
purpose for a few years.
Specifying 'forbid' for fallback and 'exact' for mode will ensure that
hosts the Qemu emulator is up-to-date on the host, capable of emulating
the expect model. The consistency will make test results reliable
across host machines.
The newer machine type supports ACPI for example.
The feature "vmx" is required on computes to support nesting.
Related-Bug: #1793214
Change-Id: Ib3e72d8c9fc528978358a7054b337672284f2908
Signed-off-by: Michel Thebeau <michel.thebeau@windriver.com>
Refer also to commit 10daff0c, which applies the change to
controller.xml
Some of the entries are invalid when changing the machine type, which is
the next commit to follow this one.
Libvirt will fill these things in correctly for the specified hardware.
Related-Bug: #1793214
Change-Id: I43593a7014713ab6ea9bfe73346fc0c6d0c41300
Signed-off-by: Michel Thebeau <michel.thebeau@windriver.com>
File controller_allinone.xml was modified in order to add a new DISK
File setup_allinone.sh was modified for new Disk implementation
Partial-Bug: 1793214
Change-Id: I2953a74d3c78a87b4437bea550f645ec3838af38
Signed-off-by: Juan Pablo Gomez <juan.p.gomez@intel.com>
Fix typo and align the line identation
Change-Id: I0acafb4638019b1301ffc1d4ce1b4ec6c74157fc
Signed-off-by: Felipe de Jesus Ruiz Garcia <felipe.de.jesus.ruiz.garcia@intel.com>
Add sanity around the use of 'rm' in script. Make sure the file to be
deleted is the correct type, and that its content also meets
expectation.
An example of dangerous outcome in this code from using "sudo rm -rf" is
that if the CONTROLLER or COMPUTE variables are preceded by a space
character then the directory /var/lib/libvirt/images/ will be deleted.
Refrain from using recursive and force options, and in this case because
they are not needed.
Related-Bug: #1790716
Change-Id: I76797133589d993dca2b2aac3c97184bac0457ca
Signed-off-by: Michel Thebeau <michel.thebeau@windriver.com>
In the event that someone clones the stx-tools repo without
fore-knowledge of the wiki, this is handy. The author prepares this
commit from the experience doing just that.
Related-Bug: #1790716
Change-Id: If3d1e250e1c2c246ac894117fc649d6f145f22f1
Signed-off-by: Michel Thebeau <michel.thebeau@windriver.com>
The INTERNAL and EXTERNAL networks configured by destroy and setup
network scripts are inverted with reference to the default
config_controller selections as well as the wiki
StarlingX/Installation_Guide_Virtual_Environment/Controller_Storage.
The most pressing concern in this is that what was actually the internal
management network was being nat'd.
Also, under normal testing it is not recommended to address the internal
management network from the virtualization host. There are unlikely to be
configurations that will have external devices addressing the management
network.
Delete what was "EXTERNAL", actually internal, and rename "INTERNAL" to
be EXTERNAL.
Related-Bug: #1790716
Change-Id: I08f9e7712fed120001c864903880e13e9478764d
Signed-off-by: Michel Thebeau <michel.thebeau@windriver.com>