From 0bf005b3c3e5fb49925fd798d01c47d1ee543743 Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Tue, 17 Dec 2019 16:36:15 +0100 Subject: [PATCH] Disable not needed services in grenade jobs Things like swift, cinder and etcd aren't needed in neutron grenade jobs so lets try to disable it to save some resources on test node. Change-Id: Id9dd91b50506670da8fb7485e2adbd5b9b6031b4 --- .../legacy/neutron-grenade-dvr-multinode/run.yaml | 12 ++++++++++++ playbooks/legacy/neutron-grenade-multinode/run.yaml | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/playbooks/legacy/neutron-grenade-dvr-multinode/run.yaml b/playbooks/legacy/neutron-grenade-dvr-multinode/run.yaml index 39bacf3e5c9..9e96b297f1f 100644 --- a/playbooks/legacy/neutron-grenade-dvr-multinode/run.yaml +++ b/playbooks/legacy/neutron-grenade-dvr-multinode/run.yaml @@ -41,6 +41,18 @@ fi export DEVSTACK_GATE_TOPOLOGY="multinode" + # Disable some services to use less memory + # Cinder-backup + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-bak" + # Etcd + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service etcd3" + # Swift + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container-sync" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash diff --git a/playbooks/legacy/neutron-grenade-multinode/run.yaml b/playbooks/legacy/neutron-grenade-multinode/run.yaml index 32071a43ed0..c30bfecf809 100644 --- a/playbooks/legacy/neutron-grenade-multinode/run.yaml +++ b/playbooks/legacy/neutron-grenade-multinode/run.yaml @@ -41,6 +41,18 @@ fi export DEVSTACK_GATE_TOPOLOGY="multinode" + # Disable some services to use less memory + # Cinder + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-bak" + # Etcd + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service etcd3" + # Swift + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container-sync" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash