Use external volumes for OpenStack virtual machines 87/109687/5
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Fri, 19 Jun 2020 17:20:50 +0000 (19:20 +0200)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Thu, 30 Jul 2020 09:04:21 +0000 (09:04 +0000)
This allows easier storage quota changes (without the need to modify
flavors).

Issue-ID: INT-1601
Change-Id: I0fe7557ff6f23eb0e29314ee0d4819893583a294
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sample
deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sm-onap
deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_hosts/tasks/create_host.yml

index 40fdabf..07488aa 100644 (file)
@@ -17,3 +17,4 @@ hosts:
     keypair: *keypair_name
     network: *network_name
     securitygroup: *securitygroup_name
+    volume_size: 5
index 6e95fdf..fac94c5 100644 (file)
@@ -17,12 +17,14 @@ hosts:
     keypair: *keypair_name
     network: *network_name
     securitygroup: *securitygroup_name
+    volume_size: 20
   - name: "control0"
     image: "Ubuntu_18.04"
     flavor: "m1.xlarge"
     keypair: *keypair_name
     network: *network_name
     securitygroup: *securitygroup_name
+    volume_size: 50
   - name: "worker0a"
     image: "Ubuntu_18.04"
     flavor: "m1.2xlarge"
@@ -30,6 +32,7 @@ hosts:
     network: *network_name
     auto_ip: false
     securitygroup: *securitygroup_name
+    volume_size: 80
   - name: "worker0b"
     image: "Ubuntu_18.04"
     flavor: "m1.2xlarge"
@@ -37,6 +40,7 @@ hosts:
     network: *network_name
     auto_ip: false
     securitygroup: *securitygroup_name
+    volume_size: 80
   - name: "worker0c"
     image: "Ubuntu_18.04"
     flavor: "m1.2xlarge"
@@ -44,6 +48,7 @@ hosts:
     network: *network_name
     auto_ip: false
     securitygroup: *securitygroup_name
+    volume_size: 80
   - name: "nfs0"
     image: "Ubuntu_18.04"
     flavor: "m1.large"
@@ -51,3 +56,4 @@ hosts:
     network: *network_name
     auto_ip: false
     securitygroup: *securitygroup_name
+    volume_size: 150
index 4c6759f..2a78e82 100644 (file)
@@ -10,3 +10,6 @@
     security_groups:
       - "{{ host.securitygroup }}"
     auto_ip: "{{ host.auto_ip | default(true) }}"
+    boot_from_volume: true
+    terminate_volume: true
+    volume_size: "{{ host.volume_size | default(10) }}"