A user following the Openshift Ansible instructions was unable to use the run_once functionality. After digging into the code a bit I found that _inspect_system_branch(..) loads the manifest and assumes it will have the labels:
labels = {}
manifest = self._image_manifest(repo, commit_rev)
virtual_size = None
if manifest:
manifest = json.loads(manifest)
virtual_size = self._get_virtual_size(repo, manifest)
if 'Labels' in manifest:
labels = manifest['Labels']
image_id = SystemContainers._get_image_id(repo, commit_rev, manifest) or image_id
However, the manifest may not have the labels. The manifest output for the openshift ansible image renders as such:
Using skopeo inspect --raw on the image shows the information in question is stored in history[0].v1Compatibility.
Looking at self.get_manifest(..) I was hoping we could grab the data but it looks like the same issue exists there. When attempting to pull the remote manifest the labels don't come down either.
A user following the Openshift Ansible instructions was unable to use the run_once functionality. After digging into the code a bit I found that
_inspect_system_branch(..)
loads the manifest and assumes it will have the labels:However, the manifest may not have the labels. The manifest output for the openshift ansible image renders as such:
Using
skopeo inspect --raw
on the image shows the information in question is stored inhistory[0].v1Compatibility
.Looking at
self.get_manifest(..)
I was hoping we could grab the data but it looks like the same issue exists there. When attempting to pull the remote manifest the labels don't come down either.