Commit Graph

14 Commits

Author SHA1 Message Date
Zuul e149c057e0 Merge "Standard Controller Configurations" 2019-01-28 22:11:11 +00:00
Zuul a2d1955870 Merge "All In One Configurations" 2019-01-28 22:11:09 +00:00
Zuul b2cb51b295 Merge "[Doc] Check and Include Configuration Names" 2019-01-28 22:07:45 +00:00
Abraham Arce 09c07804b7 Standard Controller Configurations
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>
2019-01-21 04:27:34 -06:00
Abraham Arce c2a1cc2930 All In One Configurations
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>
2019-01-21 04:27:17 -06:00
Abraham Arce ce407f198e [Doc] Check and Include Configuration Names
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>
2019-01-21 04:26:38 -06:00
Abraham Arce 24a925328a [Installation] Controller Minimum Disk Size
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>
2019-01-17 04:48:34 -06:00
Zuul 33faccc082 Merge "Setup Configurations Clean Up" 2019-01-11 15:50:14 +00:00
Abraham Arce 3db9d36e85 Setup Configurations Clean Up
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>
2019-01-08 06:26:37 -06:00
Erich Cordoba 3645b8517f Fix check for ISO file in deployment script.
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>
2018-12-03 15:33:47 -06:00
Abraham Arce 1b534e77b0 [Doc] Compute Identity Nodes Common Code +
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>
2018-11-20 08:54:09 -06:00
Abraham Arce 787d7f1f2e [Doc] Controller Identity Nodes Common Code
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>
2018-11-20 07:43:51 -06:00
Abraham Arce 3c0f9b11ea [Doc] Usage and ISO Check Common Code
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>
2018-11-20 07:34:06 -06:00
Michel Thebeau 0a924bc76a deployment: libvirt: make use of rm command safer
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>
2018-09-11 11:49:50 -04:00