container image prepare fails due to tag mismatch

Bug #1864924 reported by Jeroen van Bemmel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Invalid
Undecided
Unassigned

Bug Description

Using OSP13:

(undercloud) [stack@vim1 ~]$ source /home/stack/stackrc && openstack overcloud container image prepare --namespace=registry.access.redhat.com/rhosp13 --push-destination=172.31.1.1:8787 --prefix=openstack- --output-images-file /home/stack/local_registry_images.yaml --output-env-file=/home/stack/templates/overcloud_images.yaml --tag-from-label {version}-{release} -r ~/templates/roles_data.yaml -e ~/templates/generated/environments/neutron-sriov.yaml
Image registry.access.redhat.com/rhosp13/openstack-aodh-notifier has no tag 13.0-100.1582098610.
Available tags: 13.0-85, 13.0-86, 13.0-83, 13.0-100, 13.0, 13.0-56, 13.0-55, 13.0-76, 13.0-72, 13.0-39, 13.0-96, 13.0-100.1580118203, 13.0-62.1543534128, 13.0-68, 13.0-72.1557945115, 13.0-46, 13.0-62, 13.0-60, 13.0-61, 13.0-66, 13.0-64, 13.0-68.1554788878, latest

The error is due to a mismatch between the url and the available tags:
(undercloud) [stack@vim1 ~]$ skopeo inspect docker://registry.access.redhat.com/rhosp13/openstack-aodh-notifier:latest
{
    "Name": "registry.access.redhat.com/rhosp13/openstack-aodh-notifier",
    "Digest": "sha256:764c4ebd99a2425a4aaecc16fce1ce3ff76bb390aa527694e2c723c8c764ef84",
    "RepoTags": [
        "13.0-85",
        "13.0-86",
        "13.0-83",
        "13.0-100",
        "13.0",
        "13.0-56",
        "13.0-55",
        "13.0-76",
        "13.0-72",
        "13.0-39",
        "13.0-96",
        "13.0-100.1580118203", <-- this tag is latest, but URL below contains 100.1582098610
        "13.0-62.1543534128",
        "13.0-68",
        "13.0-72.1557945115",
        "13.0-46",
        "13.0-62",
        "13.0-60",
        "13.0-61",
        "13.0-66",
        "13.0-64",
        "13.0-68.1554788878",
        "latest"
    ],
    "Created": "2020-02-19T08:26:07.877231Z",
    "DockerVersion": "1.13.1",
    "Labels": {
        "architecture": "x86_64",
        "authoritative-source-url": "registry.access.redhat.com",
        "batch": "20191212.1",
        "build-date": "2020-02-19T08:25:15.768684",
        "com.redhat.build-host": "cpt-1001.osbs.prod.upshift.rdu2.redhat.com",
        "com.redhat.component": "openstack-aodh-notifier-container",
        "com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements",
        "description": "Red Hat OpenStack Platform 13.0 aodh-notifier",
        "distribution-scope": "public",
        "io.k8s.description": "Red Hat OpenStack Platform 13.0 aodh-notifier",
        "io.k8s.display-name": "Red Hat OpenStack Platform 13.0 aodh-notifier",
        "io.openshift.tags": "rhosp osp openstack osp-13.0",
        "name": "rhosp13/openstack-aodh-notifier",
        "release": "100.1582098610",
        "summary": "Red Hat OpenStack Platform 13.0 aodh-notifier",
        "url": "https://access.redhat.com/containers/#/registry.access.redhat.com/rhosp13/openstack-aodh-notifier/images/13.0-100.1582098610",
        "vcs-ref": "ac08eb5c2368f11119081d30cb7a8506ce0340f7",
        "vcs-type": "git",
        "vendor": "Red Hat, Inc.",
        "version": "13.0"
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Layers": [
        "sha256:6c85ac87d44df4b64d7c273886fc5aed55a28422df33dcb641884ffa419db218",
        "sha256:51e9f237b750efcda2d5755785cdb8dd080d51585ae35d368e4f9b29a11b1994",
        "sha256:9601c2c471a92300e7ac785f75843cc13909fbc273376ff895eb97bc7c00df48",
        "sha256:6a7d70144959b4e94f455a3f6dfe7c3a852f38e6ad61e497410748041a5ee376",
        "sha256:d22e2bc67d3f3ec649db7182798a0bf83eea92c17c701ed36aac1194ef6a7a8a",
        "sha256:ca7b6dd85e845cc583bedf4dd41706f8468af290b5cff808c05941564a522dce"
    ]
}

I can make it work by using "--exclude openstack-aodh-notifier --exclude openstack-nova-api", or by removing --tag-from-label

Revision history for this message
wes hayutin (weshayutin) wrote :

OSP issues need to be opened in https://bugzilla.redhat.com/

Changed in tripleo:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.