X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fopenstack-cleanup-old-images.sh;h=79eee278254748754a9736327eeb7b0dacd0c1ea;hb=refs%2Ftags%2Fv0.86.0;hp=cbb2ef8e71ab9125181a3c759c58212b233000ca;hpb=af8e2b4d31bbeae125bd09290acd0b55fa6ff7a7;p=releng%2Fglobal-jjb.git diff --git a/shell/openstack-cleanup-old-images.sh b/shell/openstack-cleanup-old-images.sh index cbb2ef8e..79eee278 100644 --- a/shell/openstack-cleanup-old-images.sh +++ b/shell/openstack-cleanup-old-images.sh @@ -11,6 +11,20 @@ # Removes openstack images older than X days in the cloud echo "---> Cleanup old images" +# shellcheck disable=SC1090 +source ~/lf-env.sh + +# TODO: "openstacksdk<0.99" AttributeError: 'Image' object has no +# attribute 'protected' +lf-activate-venv --python python3 "lftools[openstack]" \ + kubernetes \ + niet \ + "openstacksdk<0.99" \ + python-heatclient \ + python-openstackclient \ + python-magnumclient \ + yq + os_cloud="${OS_CLOUD:-vex}" os_image_cleanup_age="${OS_IMAGE_CLEANUP_AGE:-30}"