From e9c9aaa4870e29f215ee5f47a0de2149b6afe610 Mon Sep 17 00:00:00 2001 From: Pawel Wieczorek Date: Fri, 19 Jun 2020 19:20:50 +0200 Subject: Use external volumes for OpenStack virtual machines This allows easier storage quota changes (without the need to modify flavors). Issue-ID: INT-1601 Change-Id: I0fe7557ff6f23eb0e29314ee0d4819893583a294 Signed-off-by: Pawel Wieczorek --- deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sample | 1 + .../noheat/infra-openstack/ansible/group_vars/all.yml.sm-onap | 6 ++++++ .../roles/openstack/create_devstack_hosts/tasks/create_host.yml | 3 +++ 3 files changed, 10 insertions(+) (limited to 'deployment') diff --git a/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sample b/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sample index 40fdabf94..07488aa57 100644 --- a/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sample +++ b/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sample @@ -17,3 +17,4 @@ hosts: keypair: *keypair_name network: *network_name securitygroup: *securitygroup_name + volume_size: 5 diff --git a/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sm-onap b/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sm-onap index 6e95fdf33..fac94c58d 100644 --- a/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sm-onap +++ b/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sm-onap @@ -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 diff --git a/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_hosts/tasks/create_host.yml b/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_hosts/tasks/create_host.yml index 4c6759fd7..2a78e82e3 100644 --- a/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_hosts/tasks/create_host.yml +++ b/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_hosts/tasks/create_host.yml @@ -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) }}" -- cgit 1.2.3-korg