Bug 1770144
Summary: | Cannot recognize image tag when run oc new-app with namespace after --imagestream | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Wenjing Zheng <wzheng> |
Component: | oc | Assignee: | Maciej Szulik <maszulik> |
Status: | CLOSED ERRATA | QA Contact: | Wenjing Zheng <wzheng> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.3.0 | CC: | aos-bugs, jokerman, lxia, mfojtik, wewang, wzheng, yanpzhan |
Target Milestone: | --- | Keywords: | Regression, Reopened |
Target Release: | 4.3.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-01-23 11:11:45 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: |
Description
Wenjing Zheng
2019-11-08 10:02:14 UTC
How did this fail and the fix for Bug #1767163 pass? Please make sure that the version of oc used to test is aligned with the server version. (In reply to Adam Kaplan from comment #1) > How did this fail and the fix for Bug #1767163 pass? Please make sure that > the version of oc used to test is aligned with the server version. After upgrade to latest oc, cannot reproduce this bug now, sorry for the confusion: [wzheng@openshift-qe 4.3]$ oc new-app --image-stream=mongodb:3.6 --env=MONGODB_USER=tester --env=MONGODB_PASSWORD=xxx --env=MONGODB_DATABASE=testdb --env=MONGODB_ADMIN_PASSWORD=yyy --> Found image f857d36 (4 weeks old) in image stream "openshift/mongodb" under tag "3.6" for "mongodb:3.6" MongoDB 3.6 ----------- MongoDB (from humongous) is a free and open-source cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemas. This container image contains programs to run mongod server. Tags: database, mongodb, rh-mongodb36 * This image will be deployed in deployment config "mongodb" * Port 27017/tcp will be load balanced by service "mongodb" * Other containers can access this service through the hostname "mongodb" * This image declares volumes and will default to use non-persistent, host-local storage. You can add persistent volumes later by running 'oc set volume dc/mongodb --add ...' --> Creating resources ... imagestreamtag.image.openshift.io "mongodb:3.6" created deploymentconfig.apps.openshift.io "mongodb" created service "mongodb" created --> Success Application is not exposed. You can expose services to the outside world by executing one or more of the commands below: 'oc expose svc/mongodb' Run 'oc status' to view your app. [wzheng@openshift-qe 4.3]$ oc version Client Version: v4.3.0 Server Version: 4.3.0-0.nightly-2019-11-11-182924 Kubernetes Version: v1.16.2 Reopen this bug since if add openshift before imagestream "--image-stream=openshift/mongodb:latest", still failed: $ oc new-app --image-stream=openshift/mongodb:latest --env=MONGODB_USER=tester --env=MONGODB_PASSWORD=xxx --env=MONGODB_DATABASE=testdb --env=MONGODB_ADMIN_PASSWORD=yyy --> Found image f857d36 (4 weeks old) in image stream "openshift/mongodb" under tag "latest" for "openshift/mongodb:latest" MongoDB 3.6 ----------- MongoDB (from humongous) is a free and open-source cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemas. This container image contains programs to run mongod server. Tags: database, mongodb, rh-mongodb36 * This image will be deployed in deployment config "mongodb" * Port 27017/tcp will be load balanced by service "mongodb" * Other containers can access this service through the hostname "mongodb" * This image declares volumes and will default to use non-persistent, host-local storage. You can add persistent volumes later by running 'oc set volume dc/mongodb --add ...' --> Creating resources ... error: ImageStreamTag.image.openshift.io "mongodb:latest" is invalid: metadata.labels: Invalid value: "openshift/mongodb": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?') error: DeploymentConfig.apps.openshift.io "mongodb" is invalid: metadata.labels: Invalid value: "openshift/mongodb": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?') error: Service "mongodb" is invalid: metadata.labels: Invalid value: "openshift/mongodb": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?') --> Failed $ oc version Client Version: v4.3.0 Server Version: 4.3.0-0.nightly-2019-11-12-185229 Kubernetes Version: v1.16.2 Verified with latest oc version: openshift-clients.x86_64 0:4.3.0-201911150628.git.1.bfb5907.el7 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-2020:0062 |