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>
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>
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>
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>