Feat: Process orphaned coe clusters for K8S jobs 95/69595/6 v0.74.0
authorAnil Belur <abelur@linuxfoundation.org>
Mon, 31 Jan 2022 00:48:51 +0000 (10:48 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 2 Feb 2022 03:38:41 +0000 (13:38 +1000)
commit70b380fccde98eaf35cc894795ff6736561ce6ce
tree40504bba4337a695773311174aeb4d1be74128ed
parent8cbf2bea2228326391595c4ebc20d4a9e1a0dd19
Feat: Process orphaned coe clusters for K8S jobs

K8s jobs by default creates stacks names that does not match
JOB_NAME, therefore ignore them while processing orphaned stacks
and handle them separatly when cleaning up the orphaned clusters.

The stack naming scheme is limited to take first 20 chars from the
JOB_NAME while the rest is randomly generated for uniqueness which
breaks the openstack cron jobs.

Ref: https://github.com/openstack/magnum/blob/master/magnum/
drivers/heat/driver.py#L202-L212

Issue-ID: RELENG-4106
Change-Id: Id3d9b74c3e6e2a0abbddb771b7fc7d5ba2b59ca5
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jjb/lf-ci-jobs.yaml
releasenotes/notes/cleanup-coe-k8s-clusters-ac491a6ebc0ba7db.yaml [new file with mode: 0644]
shell/openstack-cleanup-orphaned-k8s-clusters.sh [new file with mode: 0644]
shell/openstack-cleanup-orphaned-stacks.sh