Browse Source

Fix ostree_* upgrade

Currently, the code assumes that both
ostree_commit and ostree_remote are present
in cluster_template.labels. If one of them are
missing, the ostree upgrade fails [1] and leaves
the cluster with UPDATE_FAILED status.

By the docs[2], it is understood that users have
the ability to choose only one of the labels.

[1] https://gist.github.com/guilhermesteinmuller/7bf9f51e421283783cf737900797232c
[2] https://github.com/openstack/magnum/blob/master/doc/source/user/rolling-upgrade.rst

Change-Id: I0f65169305ba74c082b65bf39083def278404b93
changes/17/764817/2
guilhermesteinmuller 4 months ago
committed by Feilong Wang
parent
commit
439548e3de
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      magnum/drivers/heat/driver.py

+ 2
- 0
magnum/drivers/heat/driver.py View File

@ -332,6 +332,8 @@ class FedoraKubernetesDriver(KubernetesDriver):
"valid kube_tag"), cluster_template.name)
for ostree_tag in ["ostree_commit", "ostree_remote"]:
if ostree_tag not in cluster_template.labels:
continue
try:
ostree_param = {
ostree_tag: cluster_template.labels[ostree_tag]


Loading…
Cancel
Save