From 287f110d187b7fe508858e157d9c9ddb6b398f1e Mon Sep 17 00:00:00 2001 From: Brent Eagles Date: Thu, 10 May 2018 13:59:47 -0230 Subject: [PATCH] Increase services project quotas when deploying Octavia Octavia currently launches load balancer VMs in the services tenant which has very low quotas by default. This patch increases the values through the API for the services project to permit lots of load balancers. Closes Bug: #1769896 Change-Id: I6b87b147d301dea3251fe4509b04cd4b9b27ddba --- playbooks/octavia-files.yaml | 1 + playbooks/roles/octavia-overcloud-config/tasks/main.yml | 1 + playbooks/roles/octavia-overcloud-config/tasks/quotas.yml | 4 ++++ workbooks/octavia_post.yaml | 1 + 4 files changed, 7 insertions(+) create mode 100644 playbooks/roles/octavia-overcloud-config/tasks/quotas.yml diff --git a/playbooks/octavia-files.yaml b/playbooks/octavia-files.yaml index a1112858d..3f8096c26 100644 --- a/playbooks/octavia-files.yaml +++ b/playbooks/octavia-files.yaml @@ -35,6 +35,7 @@ ca_private_key_path: "{{ ca_private_key_path }}" ca_passphrase: "{{ ca_passphrase }}" client_cert_path: "{{ client_cert_path }}" + auth_project_name: "{{ auth_project_name }}" environment: OS_USERNAME: "{{ os_username }}" OS_USER_DOMAIN_NAME: "Default" diff --git a/playbooks/roles/octavia-overcloud-config/tasks/main.yml b/playbooks/roles/octavia-overcloud-config/tasks/main.yml index 568337764..cafc7c32c 100644 --- a/playbooks/roles/octavia-overcloud-config/tasks/main.yml +++ b/playbooks/roles/octavia-overcloud-config/tasks/main.yml @@ -1,5 +1,6 @@ --- # Previously was a stack in the overcloud - include_tasks: network.yml + - include_tasks: quotas.yml - include_tasks: certs_gen.yml when: generate_certs diff --git a/playbooks/roles/octavia-overcloud-config/tasks/quotas.yml b/playbooks/roles/octavia-overcloud-config/tasks/quotas.yml new file mode 100644 index 000000000..caa513022 --- /dev/null +++ b/playbooks/roles/octavia-overcloud-config/tasks/quotas.yml @@ -0,0 +1,4 @@ +--- + - name: increase quotas for project used for amphora + shell: | + openstack quota set --cores -1 --ram -1 --ports -1 --instances -1 --secgroups -1 {{ auth_project_name }} diff --git a/workbooks/octavia_post.yaml b/workbooks/octavia_post.yaml index f0f141dee..56a6d2ccb 100644 --- a/workbooks/octavia_post.yaml +++ b/workbooks/octavia_post.yaml @@ -142,6 +142,7 @@ workflows: client_cert_path: <% $.client_cert_path %> generate_certs: <% $.generate_certs %> mgmt_port_dev: <% $.mgmt_port_dev %> + auth_project_name: <% $.auth_project_name %> on-complete: purge_local_temp_dir purge_local_temp_dir: action: tripleo.files.remove_temp_dir path=<% $.undercloud_local_dir %>