aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/destroy
AgeCommit message (Collapse)AuthorFilesLines
2026-04-02Merge "destroy: fix Octavia interface cleanup permissions"Zuul1-0/+1
2026-03-20ansible-lint: Fix fqcn[actions-core] for destroyMichal Nasiadka5-11/+11
Change-Id: Ib3eaa610209348c0bc728ffd26f3612a2b8c6313 Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
2026-03-04destroy: fix Octavia interface cleanup permissionsShapovalov, Pavel1-0/+1
The destroy task 'Clean up Octavia interface service' requires root privileges to remove the systemd service file. Without privilege escalation the task fails, causing the destroy workflow to stop. Add become: true to ensure the task runs with the required permissions. Closes-Bug: #2143078 Change-Id: If3c005b076f6e086cdb2f83dab954c77bd81d888 Signed-off-by: Shapovalov, Pavel <pshapovalov@itkey.com>
2026-01-23influxdb/telegraf: Drop deploymentMichal Nasiadka1-1/+0
Kolla delivers InfluxDB v1, which is EOL (unless you have paid support). There are no plans in upgrading InfluxDB to v2 - so let's drop it. Telegraf was deprecated in June 2025. Removing both in one patch for convenience. Change-Id: Ieee2be3a06a5ac9504a822cc0a727e662146b260 Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
2025-12-10ansible-lint: fix unnamed-task in destroyBertrand Lanson2-5/+10
Change-Id: Ic072a789014c8b1c42eef771b7c4740b95246257 Signed-off-by: Bertrand Lanson <bertrand.lanson@protonmail.com>
2025-11-22ansible-lint: Fix yaml[truthy] in destroy roleMichal Nasiadka1-1/+1
Change-Id: I3d914a24e047a337cea82d7ebdf544e780363b98 Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
2025-11-17ansible-lint: Remove key-order[task] excludeMichal Nasiadka1-6/+6
Change-Id: I77cce57f3f2b05455e8bd4e7093081ef4ed25d59 Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
2025-03-21Remove Swift roleMichal Nasiadka1-1/+0
Since Swift is broken and since deprecation nobody did pick up the work to make it working - let's remove swift role and associated integrations/CI scripts. Change-Id: I08e92aaeea644053fd25f80ce1f276a495cebbfc
2024-10-31Fix destroy command with new python CLIRoman Krček1-1/+1
One task in destroy role was missing arguments that were supplied by the old bash CLI but not supplied by the new python CLI. Closes-Bug: #2086187 Change-Id: I6ced070ca10b63c4d27ac76c1e82dc4312c1b165 Signed-off-by: Roman Krček <roman.krcek@tietoevry.com>
2024-09-16Do not remove inventory file if placed in /etc/kollaMichal Arbet1-0/+1
This patch fix issue when inventory file is deleted by kolla-ansible -i /etc/kolla/inventory destroy call. Now, inventories are available in tools/cleanup-host so we can ignore their removal. Closes-Bug: #2052706 Change-Id: If89e94356de515b40ca4e8c023979cd498146303
2023-04-28Add container engine option to scriptsMartin Hiner3-2/+4
This patch add a way to choose container engine inside tool and test scripts. This is in preparation for Podman introduction but still leaves Docker as default container engine. Signed-off-by: Martin Hiner <m.hiner@partner.samsung.com> Change-Id: I395d2bdb0dfb4b325b6ad197c8893c8a0f768324
2022-12-08Remove kafka, storm, zookeeperMichal Nasiadka1-1/+0
Their cleanup has been added to monasca cleanup command. Change-Id: I19a846e2683ae70b33ca64d2aba7ac71eb724588
2022-12-01Replace ElasticSearch and Kibana with OpenSearchMichal Nasiadka1-1/+1
This change replaces ElasticSearch with OpenSearch, and Kibana with OpenSearch Dashboards. It migrates the data from ElasticSearch to OpenSearch upon upgrade. No TLS support is in this patch (will be a followup). A replacement for ElasticSearch Curator will be added as a followup. Depends-On: https://review.opendev.org/c/openstack/kolla/+/830373 Co-authored-by: Doug Szumski <doug@stackhpc.com> Co-authored-by: Kyle Dean <kyle@stackhpc.com> Change-Id: Iab10ce7ea5d5f21a40b1f99b28e3290b7e9ce895
2022-09-21Fix issues introduced by ansible-lint 6.6.0Michal Nasiadka1-3/+3
mainly jinja spacing and jinja[invalid] related Change-Id: I6f52f2b0c1ef76de626657d79486d31e0f47f384
2021-03-03octavia: support tenant management networkMark Goddard1-0/+23
- bind health manager port to ovs - create a octavia-interface.service (used for creating health manager interface after reboot) - used for ci, test or poc Implements: blueprint implement-automatic-deploy-of-octavia Change-Id: I8ac30dea6c8402d97189c6b05032c608936b0ff2 Co-Authored-By: wu.chunyang <wuchunyang@yovole.com>
2020-08-22remove useless files from destroy rolewu.chunyang2-2/+0
precheck.yml and check.yml not used by destroy role. Change-Id: Ic3c0b52dba15308a605c30abdd6d63d4dea5f25b
2020-03-30Support setting Kafka storage volumeDoug Szumski1-0/+1
Not everyone wants Kafka data stored on a Docker volume. This change allows a user to flexibly control where the data is stored. Change-Id: I2ba8c7a85c7bf2564f954a43c6e6dbb3257fe902
2020-02-19Introduce influxdb_datadir_volumeWill Szumski1-0/+1
This allows you to tune the performance of InfluxDB by locating the volume on a drive that is separate to the default docker storage. Change-Id: Iea555a2702b225b30f5d7035b8a703d4f3376ee7
2019-02-25Add elasticsearch_datadir_volumeChristian Berendt1-0/+1
Change-Id: Id8276448c6e779b2b4a0aafee45d953c4f009fc1
2019-01-02Add customizable gnocchi volumeZijianGuo1-0/+1
Change-Id: I8d21546847a2f5fa418e07cfe79016a349af4783 Signed-off-by: ZijianGuo <guozijn@gmail.com>
2018-07-25Use include_tasks instead of includeJeffrey Zhang1-4/+4
include is marked as deprecated since ansible 2.4[0] [0] https://docs.ansible.com/ansible/2.4/include_module.html#deprecated Co-Authored-By: confi-surya <singh.surya64mnnit@gmail.com> Change-Id: Ic9d71e1865d1c728890625aeddf424a5734c0a8a
2018-07-05Make nova nova_instance_datadir_volume configurable.MinSun1-0/+1
User can use custom directory for nova instance. For example using a shared file system as backend. Change-Id: I11fe4891719a2e2a34888d8b798df5602e294e4f
2018-03-26Verify YAML syntax in gatesEduardo Gonzalez1-1/+1
This patchset implements yamllint test to all *.yml files. Also fixes syntax errors to make jobs to pass. Change-Id: I3186adf9835b4d0cada272d156b17d1bc9c2b799
2018-03-07Optimise the destroy role by script modulecaoyuan6-50/+12
Ansible provide script module to run shell script, The local script at path will be transferred to the remote node and then executed, so no need to copy script to remote node and use shell moulde to run it. this patch optimise it. Change-Id: If774502b66652f25593cda137cc8a5baefbd9695
2018-01-08Ensure docker running before execute the destroy actioncaoyuan2-0/+5
Before cleanup containers and hosts, it should be ensure the docker serivce running but the destroy action missing it, this patch to fix it Change-Id: I85ca806c1fd395daf937b585d466e16fbad4e20c Closes-Bug: #1741852
2017-09-25Specify 'become' to necessary tasks (general roles)Duong Ha-Quang1-0/+1
Add config_owner_user and config_owner_group to group_vars/all, which is user and group of Kolla configuration files in /etc/kolla. Add become to post-deploy playbook. Add become to only neccesary tasks in roles: - certificate - common - destroy - haproxy - mariadb - memcached - rabbitmq Change-Id: I2aba745a6e3928c52642f64551470fd08cbfd058 Partial-Implements: blueprint ansible-specific-task-become
2017-07-10Make glance filesystem_store_datadir configurable.jimmygc1-0/+1
User can use custom directory to store images. For example using a shared file system as backend. Change-Id: Iab7a9a51e619bdbf8f7bd4626ebe4d703e6d4819
2017-06-27Merge "Add cli options to cleanup-images"Jenkins1-1/+1
2017-06-08Add a Kolla 'devstack' modePaul Bourke2-0/+3
Add a new variable 'kolla_devmode', which when enabled, clones and bindmounts service source code into the containers. This commit adds the relevant changes for Heat, more services can be added and built upon. Usage: * Set 'kolla_devmode: yes' * Code is cloned to /opt/stack/{{ project_name }} on target node(s) * Users can develop in these repos, and simply restart the container to pick up / test changes. Debugging can be done from the host via 'remote_pdb'[0]. [0] https://pypi.python.org/pypi/remote-pdb Implements: blueprint mount-sources Change-Id: Ic0431b10d723bf84eeefc72039376fe0058dd902
2017-05-08Remove /etc/fstab Swift references during cleanup-hostjeckxie1-0/+1
During cleanup-host, we need remove swift references from fstab. Change-Id: I18e9a84b0664eb834cf397bcf6d2406abcab47a7 Closes-Bug: #1689285
2017-04-24Add cli options to cleanup-imagesEduardo Gonzalez1-1/+1
Allow remove all kolla images Allow remove specific kolla version images Allow remove dangling images Allow remove single images, all images matched Usage examples: * cleanup-images --all - Remove all kolla images * cleanup-images --image-version 4.0.0 - Remove all images matching 4.0.0 kolla_version * cleanup-images --dangling - Remove all dangling images * cleanup-images --image nova - Remove all nova images * cleanup-images --image nova-scheduler - Only remove nova-scheduler image Implements: blueprint add-cleanup-images-cli-options Change-Id: I997272098879350e13e0ac00762ae3485e618355
2017-03-09Enable sanity checks from kolla-ansiblePaul Bourke1-0/+1
Add a new subcommand 'check' to kolla-ansible, used to run the smoke/sanity checks. Add stub files to all services that don't currently have checks. Change-Id: I9f661c5fc51fd5b9b266f23f6c524884613dee48 Partially-implements: blueprint sanity-check-container
2017-01-25Merge "Fix cleanup-containers script"Jenkins1-8/+1
2017-01-21Rename task in destroy role that removes imagesChristian Berendt1-1/+1
Change-Id: Id8f9881a4991da085cec93d7e38e8911dce043f0
2017-01-17Fix cleanup-containers scriptEduardo Gonzalez1-8/+1
kolla-ansible destroy properly fails if qemu processes are running in compute nodes. Manually executing ./cleanup-container won't because $COMPUTE variable is not defined anywhere. Change-Id: I304c59ec682a93035e631490bbba7b355b1fcae2 Closes-Bug: #1656864
2016-11-24Move the "enable_destroy_images" into configure filecaoyuan1-1/+1
TrivialFix Change-Id: I179e8bf99d406e612b6a0db096892654d1228b9f
2016-11-03Move precheck into its own roleJeffrey Zhang1-0/+1
* Merge prechecks.yml and site.yml playbook * Create empty precheck.yml into all roles. Change-Id: I8a138558a26c0a2a66c5fd48ed37be657c99c1dd Implements: blueprint condition-pre-check
2016-10-13Cleanup container script improvementliyingjun1-1/+8
Currently, when there are some qemu processes which may be some useful virtual machines running by the operator running on non compute node, the cleanup script will fail the cleanup operation for that node. We need to ignore the qemu process check for non compute nodes. Change-Id: If49a1a30764063935b2a65312de8f3b2357c7fbc Closes-bug: 1633005
2016-09-07Keepalived leaves VIP on the host in case of accidental removal.Takashi Sogabe1-1/+5
This patch removes VIPs when 'kolla-ansible destroy' is invoked. Change-Id: I263b9bc852c7bc3448a6a15b3115b1f226071afc Closes-Bug: #1605442
2016-08-08Change cleanup to destroy as cleanup is a misnomerDuane DeCapite6-0/+57
The cleanup command in the external API is a misnomer and should be called destroy. Change-Id: I083e80699e09bb24266ce1bf549772a5de92a49e Closes-Bug: 1610364