Make nodepool image export forward/backward compatible
As we rollout Noble nodes we have to maintain compatiblity between focal with docker-compose and noble with docker compose. One difference is the default container names change between them. We can work around that by using docker compose commands to refer to the logical container rather than the specific container. Update the nodepool builder image export cron job to use docker-compose exec instead of docker exec for this reason. Change-Id: Iba2e395cf1792096c629ab74f849d55e96d74329
This commit is contained in:
parent
643a10226f
commit
fbf92789f2
@ -49,4 +49,4 @@
|
||||
hour: '{{ 23 | random(seed=inventory_hostname) }}'
|
||||
# Note we backup to /var/log/nodepool because that is what we have bind
|
||||
# mounted in the container and we are operating relative to that context
|
||||
job: docker exec nodepool-builder-compose_nodepool-builder_1 nodepool export-image-data /var/log/nodepool/nodepool-image-backup.json
|
||||
job: docker-compose -f /etc/nodepool-builder-compose/docker-compose.yaml exec nodepool-builder nodepool export-image-data /var/log/nodepool/nodepool-image-backup.json
|
||||
|
Loading…
x
Reference in New Issue
Block a user