Bug 1548085
| Summary: | OSP13: Discover tag command not working due to no label version-release. Available labels: version 2018-02-22.1 | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Omri Hochman <ohochman> |
| Component: | python-tripleoclient | Assignee: | Steve Baker <sbaker> |
| Status: | CLOSED ERRATA | QA Contact: | Omri Hochman <ohochman> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 13.0 (Queens) | CC: | aschultz, dbecker, dpeacock, emacchi, hbrock, jcoufal, jschluet, jslagle, mburns, morazi, rhel-osp-director-maint, sasha |
| Target Milestone: | beta | Keywords: | TestOnly, Triaged |
| Target Release: | 13.0 (Queens) | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-06-27 13:45:38 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1543707 | ||
| Bug Blocks: | |||
|
Description
Omri Hochman
2018-02-22 16:36:58 UTC
This is a regression in skopeo-0.1.28 that I've already raised a bug against skopeo w/a as internal redhat employee was to set manually tag=2018-02-22.1, customer won't have this information about the latest tag, therefore we're raising blocker for this issue. I've set a NEEDINFO for mitr in the skopeo bug #1543707 The fix exists in the unmerged branch https://github.com/mtrmac/skopeo/commits/305-cleanup As a workaround the following command will downgrade skopeo to the working version in RHEL-7.4
sudo yum downgrade http://download.devel.redhat.com/rel-eng/EXTRAS-7.4-RHEL-7-Update-4.2/compose/Server/x86_64/os/Packages/skopeo-0.1.27-3.dev.git14245f2.el7.x86_64.rpm http://download.devel.redhat.com/rel-eng/EXTRAS-7.4-RHEL-7-Update-4.2/compose/Server/x86_64/os/Packages/skopeo-containers-0.1.27-3.dev.git14245f2.el7.x86_64.rpm
Upstream master skopeo now returns labels for inspect calls skopeo-0.1.29-1 has been pushed to rhel-7.5-extras, so it's ready to be verified. skopeo-0.1.29-1 has been pushed to rhel-7.5-extras, see https://bugzilla.redhat.com/show_bug.cgi?id=1543707 Also, skopeo-0.1.29-1.dev.gitb08350d is in the rhelosp-rhel-7.5-extras repo which is set up by current puddles. That's what I'm getting with latest puddle "has no label version-release". openstack overcloud container image tag discover --image docker-registry.engineering.redhat.com/rhosp13/openstack-base:2018-03-20.2 --tag-from-label version-release Image docker-registry.engineering.redhat.com/rhosp13/openstack-base:2018-03-20.2 has no label version-release. Available labels: io.k8s.description, tripleo-common_version, vcs-ref, authoritative-source-url, io.k8s.display-name, kolla_version, version, Kolla-SHA, com.redhat.component, distribution-scope, vendor, description, vcs-type, com.redhat.build-host, build-date, name, url, batch, summary, architecture, release, io.openshift.tags please let me know if there anything I'm doing wrong on the command, meanwhile switching to failed_QA /Assigned. The above is spotted with: skopeo-0.1.29-1.dev.gitb08350d.el7.x86_64 This looks like there really is no label version-release on the image, but I don't think we should be fixing the image building to add it back.
Discover now supports using multiple labels, so can you please retest with the following instead:
--tag-from-label {version}-{release}
Any internal docs which refer to version-release need to be updated to {version}-{release}.
Here is my docs change to stop using the separate discover command, and switching to {version}-{release}
https://gitlab.cee.redhat.com/sbaker/docs-Red_Hat_Enterprise_Linux_OpenStack_Platform/commit/9ae8d5481fde7f4e21d9891786be3dc61568a60b
Verified:
Version: skopeo-0.1.29-1.dev.gitb08350d.el7.x86_64
The proper argument is: --tag-from-label {version}-{release}
Need to use the brackets!
Filed a doc bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1560734
Works thanks
[stack@undercloud75 ~]$ openstack overcloud container image tag discover --image docker-registry.engineering.redhat.com/rhosp13/openstack-base:2018-03-20.2 --tag-from-label {version}-{release}
13.0-20
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2018:2086 |