Bug 1726374 - oc describe istag a:b no longer prints image metadata in 4.2
Summary: oc describe istag a:b no longer prints image metadata in 4.2
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.2.0
Assignee: Michal Fojtik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-02 17:26 UTC by Clayton Coleman
Modified: 2019-10-16 06:32 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-16 06:32:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:2922 0 None None None 2019-10-16 06:32:59 UTC

Description Clayton Coleman 2019-07-02 17:26:13 UTC
The docker image metadata is no longer being printed in image describe (fields are all empty).

Probably caused by a regression in decoding the internal info, or another bug.

This is high severity because it blocks common debugging actions on images.

$ oc describe isimage -n ocp release@sha256:1510013b577e7a7b08d01c8c52ae3c2680a41e77058afd8d0aa95278c0e5651e

Image Name:	sha256:1510013b577e7a7b08d01c8c52ae3c2680a41e77058afd8d0aa95278c0e5651e
Docker Image:	docker-registry.default.svc:5000/ocp/release@sha256:1510013b577e7a7b08d01c8c52ae3c2680a41e77058afd8d0aa95278c0e5651e
Name:		sha256:1510013b577e7a7b08d01c8c52ae3c2680a41e77058afd8d0aa95278c0e5651e
Created:	7 hours ago
Annotations:	image.openshift.io/dockerLayersOrder=ascending
		image.openshift.io/manifestBlobStored=true
		openshift.io/image.managed=true
Image Size:	98.64MB in 6 layers
Layers:		75.83MB	sha256:777f298e915fef78cf1ab9f6140b94ff6baf3e0cd11e48b304c61a9c320b32e5
		1.577kB	sha256:6f2e36072a1104829eb7fd6295fa7634caff7dcea682d6232a73dd3aee7aadf7
		3.397MB	sha256:86eb9664129a503b7bd8d396f29504fd3e8db67f143752238e1a05fabb2a5164
		7.77MB	sha256:712829d1807741e5202ddda5a86ec1cd7df84428b2a6b7e1250ddc0a21713fc7
		11.3MB	sha256:f85c7f035d712068b3c7cfdbfcc25397aa5b94e0183b97c6266542b2995204bf
		341.9kB	sha256:d5f1418b88dfc3b7a849394b92a75d1e4162577de6cd910dcacbbffed5d6b8ef
Image Created:	7 hours ago
Author:		<none>
Arch:		amd64
Command:	<none>
Working Dir:	<none>
User:		<none>
Exposes Ports:	<none>
Docker Labels:	<none>

^ should have been populated with labels from the image metadata.

Comment 1 Michal Fojtik 2019-07-03 08:54:45 UTC
Fix: https://github.com/openshift/origin/pull/23318

Comment 2 zhou ying 2019-07-24 02:43:00 UTC
Confirmed with latest payload: 4.2.0-0.nightly-2019-07-22-160516, the issue has fixed:

[root@dhcp-140-138 ~]# oc describe istag  ruby:2.5 
Image Name:	sha256:10a52f42936ccccdd29e1f4064bd997bcab2acc00c2e7e1a65c1a4633f92f8ec
Docker Image:	image-registry.openshift-image-registry.svc:5000/openshift/ruby@sha256:10a52f42936ccccdd29e1f4064bd997bcab2acc00c2e7e1a65c1a4633f92f8ec
Name:		sha256:10a52f42936ccccdd29e1f4064bd997bcab2acc00c2e7e1a65c1a4633f92f8ec
Created:	About an hour ago
Description:	Build and run Ruby 2.5 applications on RHEL 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-ruby-container/blob/master/2.5/README.md.
Annotations:	iconClass=icon-ruby
		image.openshift.io/dockerLayersOrder=ascending
		openshift.io/display-name=Ruby 2.5
		openshift.io/provider-display-name=Red Hat, Inc.
		sampleRepo=https://github.com/sclorg/ruby-ex.git
		supports=ruby:2.5,ruby
		tags=builder,ruby
		version=2.5
Image Size:	963.2MB in 5 layers
Layers:		75.83MB	sha256:506b188c0abe2ae3c1561bbff7ce50284de2a241eff5da6f528a3a024871c606
		1.576kB	sha256:a4d9907173f48ee257a0d6c451d530a2ec4088c38908b2ec48e3bc8dc66c6d21
		262.5MB	sha256:1d72f48b3d14f64a70c8eb92dff736969b510ddcf2da89fac058c5c03ba41c58
		348.9MB	sha256:dcc691b92f82cdd39913b5e0015b5b648656608e0b9768aa4907a2420a0bcd03
		276MB	sha256:5679cd50e2a3c6c8e9da248133d9e0361095f6619cbf14580e6ca93ffd1c6011
Image Created:	3 weeks ago
Author:		<none>
Arch:		amd64
Entrypoint:	container-entrypoint
Command:	/bin/sh -c $STI_SCRIPTS_PATH/usage
Working Dir:	/opt/app-root/src
User:		1001
Exposes Ports:	8080/tcp
Docker Labels:	architecture=x86_64
		authoritative-source-url=registry.access.redhat.com
		build-date=2019-06-28T17:05:35.086351
		com.redhat.build-host=cpt-1005.osbs.prod.upshift.rdu2.redhat.com
		com.redhat.component=rh-ruby25-container
		com.redhat.license_terms=https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI
		description=Ruby 2.5 available as container is a base platform for building and running various Ruby 2.5 applications and frameworks. Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in Perl). It is simple, straight-forward, and extensible.
		distribution-scope=public
		io.k8s.description=Ruby 2.5 available as container is a base platform for building and running various Ruby 2.5 applications and frameworks. Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in Perl). It is simple, straight-forward, and extensible.
		io.k8s.display-name=Ruby 2.5
		io.openshift.expose-services=8080:http
		io.openshift.s2i.scripts-url=image:///usr/libexec/s2i
		io.openshift.tags=builder,ruby,ruby25,rh-ruby25
		io.s2i.scripts-url=image:///usr/libexec/s2i
		maintainer=SoftwareCollections.org <sclorg>
		name=rhscl/ruby-25-rhel7
		release=45.1561731205
		summary=Platform for building and running Ruby 2.5 applications
		url=https://access.redhat.com/containers/#/registry.access.redhat.com/rhscl/ruby-25-rhel7/images/2.5-45.1561731205
		usage=s2i build https://github.com/sclorg/s2i-ruby-container.git --context-dir=2.5/test/puma-test-app/ rhscl/ruby-25-rhel7 ruby-sample-app
		vcs-ref=2842c253f636d8557b7a2522e79975317d76e613
		vcs-type=git
		vendor=Red Hat, Inc.
		version=2.5
Environment:	PATH=/opt/app-root/src/bin:/opt/app-root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
		container=oci
		SUMMARY=Platform for building and running Ruby 2.5 applications
		DESCRIPTION=Ruby 2.5 available as container is a base platform for building and running various Ruby 2.5 applications and frameworks. Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in Perl). It is simple, straight-forward, and extensible.
		STI_SCRIPTS_URL=image:///usr/libexec/s2i
		STI_SCRIPTS_PATH=/usr/libexec/s2i
		APP_ROOT=/opt/app-root
		HOME=/opt/app-root/src
		PLATFORM=el7
		BASH_ENV=/opt/app-root/etc/scl_enable
		ENV=/opt/app-root/etc/scl_enable
		PROMPT_COMMAND=. /opt/app-root/etc/scl_enable
		NODEJS_SCL=rh-nodejs10
		RUBY_MAJOR_VERSION=2
		RUBY_MINOR_VERSION=5
		RUBY_VERSION=2.5
		RUBY_SCL_NAME_VERSION=25
		RUBY_SCL=rh-ruby25
		IMAGE_NAME=rhscl/ruby-25-rhel7



[root@dhcp-140-138 ~]# oc describe isimage ruby@sha256:10a52f42936ccccdd29e1f4064bd997bcab2acc00c2e7e1a65c1a4633f92f8ec
Image Name:	sha256:10a52f42936ccccdd29e1f4064bd997bcab2acc00c2e7e1a65c1a4633f92f8ec
Docker Image:	registry.redhat.io/rhscl/ruby-25-rhel7@sha256:10a52f42936ccccdd29e1f4064bd997bcab2acc00c2e7e1a65c1a4633f92f8ec
Name:		sha256:10a52f42936ccccdd29e1f4064bd997bcab2acc00c2e7e1a65c1a4633f92f8ec
Created:	About an hour ago
Annotations:	image.openshift.io/dockerLayersOrder=ascending
Image Size:	963.2MB in 5 layers
Layers:		75.83MB	sha256:506b188c0abe2ae3c1561bbff7ce50284de2a241eff5da6f528a3a024871c606
		1.576kB	sha256:a4d9907173f48ee257a0d6c451d530a2ec4088c38908b2ec48e3bc8dc66c6d21
		262.5MB	sha256:1d72f48b3d14f64a70c8eb92dff736969b510ddcf2da89fac058c5c03ba41c58
		348.9MB	sha256:dcc691b92f82cdd39913b5e0015b5b648656608e0b9768aa4907a2420a0bcd03
		276MB	sha256:5679cd50e2a3c6c8e9da248133d9e0361095f6619cbf14580e6ca93ffd1c6011
Image Created:	3 weeks ago
Author:		<none>
Arch:		amd64
Entrypoint:	container-entrypoint
Command:	/bin/sh -c $STI_SCRIPTS_PATH/usage
Working Dir:	/opt/app-root/src
User:		1001
Exposes Ports:	8080/tcp
Docker Labels:	architecture=x86_64
		authoritative-source-url=registry.access.redhat.com
		build-date=2019-06-28T17:05:35.086351
		com.redhat.build-host=cpt-1005.osbs.prod.upshift.rdu2.redhat.com
		com.redhat.component=rh-ruby25-container
		com.redhat.license_terms=https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI
		description=Ruby 2.5 available as container is a base platform for building and running various Ruby 2.5 applications and frameworks. Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in Perl). It is simple, straight-forward, and extensible.
		distribution-scope=public
		io.k8s.description=Ruby 2.5 available as container is a base platform for building and running various Ruby 2.5 applications and frameworks. Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in Perl). It is simple, straight-forward, and extensible.
		io.k8s.display-name=Ruby 2.5
		io.openshift.expose-services=8080:http
		io.openshift.s2i.scripts-url=image:///usr/libexec/s2i
		io.openshift.tags=builder,ruby,ruby25,rh-ruby25
		io.s2i.scripts-url=image:///usr/libexec/s2i
		maintainer=SoftwareCollections.org <sclorg>
		name=rhscl/ruby-25-rhel7
		release=45.1561731205
		summary=Platform for building and running Ruby 2.5 applications
		url=https://access.redhat.com/containers/#/registry.access.redhat.com/rhscl/ruby-25-rhel7/images/2.5-45.1561731205
		usage=s2i build https://github.com/sclorg/s2i-ruby-container.git --context-dir=2.5/test/puma-test-app/ rhscl/ruby-25-rhel7 ruby-sample-app
		vcs-ref=2842c253f636d8557b7a2522e79975317d76e613
		vcs-type=git
		vendor=Red Hat, Inc.
		version=2.5
Environment:	PATH=/opt/app-root/src/bin:/opt/app-root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
		container=oci
		SUMMARY=Platform for building and running Ruby 2.5 applications
		DESCRIPTION=Ruby 2.5 available as container is a base platform for building and running various Ruby 2.5 applications and frameworks. Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in Perl). It is simple, straight-forward, and extensible.
		STI_SCRIPTS_URL=image:///usr/libexec/s2i
		STI_SCRIPTS_PATH=/usr/libexec/s2i
		APP_ROOT=/opt/app-root
		HOME=/opt/app-root/src
		PLATFORM=el7
		BASH_ENV=/opt/app-root/etc/scl_enable
		ENV=/opt/app-root/etc/scl_enable
		PROMPT_COMMAND=. /opt/app-root/etc/scl_enable
		NODEJS_SCL=rh-nodejs10
		RUBY_MAJOR_VERSION=2
		RUBY_MINOR_VERSION=5
		RUBY_VERSION=2.5
		RUBY_SCL_NAME_VERSION=25
		RUBY_SCL=rh-ruby25
		IMAGE_NAME=rhscl/ruby-25-rhel7

Comment 3 errata-xmlrpc 2019-10-16 06:32:48 UTC
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/RHBA-2019:2922


Note You need to log in before you can comment on or make changes to this bug.