#1221 doc: mention 'cleanup-vms-aws --kill-also-unused'
Merged 4 years ago by praiskup. Opened 4 years ago by praiskup.
Unknown source doc-cleanup-aws  into  master

@@ -180,6 +180,11 @@

  The remaining step is to configure ``copr_builder_images.aws.{aarch64,x86_64}``

  options in `Ansible git repo`_, in file ``inventory/group_vars/copr_back_dev``.

  

+ You can try to kill all the old currently unused builders, and check the spawner

+ log what is happening::

+ 

+     [copr@copr-be-dev ~][STG]$ cleanup-vms-aws --kill-also-unused

+     [copr@copr-be-dev ~][STG]$ tail -f /var/log/copr-backend/spawner.log

  

  Prepare libvirt source images

  -----------------------------
@@ -314,6 +319,12 @@

          -l copr-be.cloud.fedoraproject.org groups/copr-backend.yml \

          -t provision_config

  

+ Optionally, when you need to propagate the builders quickly, you can terminate

+ the old currently unused builders by::

+ 

+     $ cleanup_vm_nova.py --kill-also-unused

+     $ cleanup-vms-aws --kill-also-unused

+ 

  .. _`staging backend box`: https://copr-be-dev.cloud.fedoraproject.org

  .. _`Fedora Infra OpenStack`: https://fedorainfracloud.org

  .. _`Fedora Cloud page`: https://alt.fedoraproject.org/cloud

no initial comment

+1, looks really good.
AFAIK we already had something like this in the documentation but it threw away all builders, not just the unused ones. I missed something like that because occasionally it was useful on dev instance. This change is appreciated.

thanks for the review!

rebased onto 747c367

4 years ago

Pull-Request has been merged by praiskup

4 years ago
Metadata