0

我从我的 github 存储库设置了一个 webhook 到 openshift,它能够成功发送一次请求。但是,在推送到存储库之后的第二个和以下请求会导致以下错误响应:

{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Internal error occurred: could not generate a build: Error resolving ImageStreamTag redhat-openjdk18-openshift:1.0 in namespace openshift: unable to find latest tagged image","reason":"InternalError","details":{"causes":[{"message":"could not generate a build: Error resolving ImageStreamTag redhat-openjdk18-openshift:1.0 in namespace openshift: unable to find latest tagged image"}]},"code":500}

怎么会找不到之前存在的默认镜像模板redhat-openjdk18-openshift?我能做些什么呢?

编辑:我被要求执行:

$oc get is -n openshift

这是它的结果:

NAME                                  DOCKER REPO                                                                  TAGS                              UPDATED
dotnet                                172.30.148.65:5000/openshift/dotnet                                          latest,1.1,1.0                    3 weeks ago
jboss-webserver30-tomcat7-openshift   registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat7-openshift   latest,1.3,1.3-13 + 2 more...     3 weeks ago
jboss-webserver30-tomcat8-openshift   registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat8-openshift   1.3,1.3-12,1.3-11 + 2 more...     3 weeks ago
jenkins                               172.30.148.65:5000/openshift/jenkins                                         1,2,latest                        3 weeks ago
mariadb                               172.30.148.65:5000/openshift/mariadb                                         latest,10.1                       3 weeks ago
mongodb                               172.30.148.65:5000/openshift/mongodb                                         3.2,2.6,2.4 + 1 more...           3 weeks ago
mysql                                 172.30.148.65:5000/openshift/mysql                                           latest,5.7,5.6 + 1 more...        3 weeks ago
nodejs                                172.30.148.65:5000/openshift/nodejs                                          0.10,4,6 + 1 more...              3 weeks ago
perl                                  172.30.148.65:5000/openshift/perl                                            5.24,5.20,5.16 + 1 more...        3 weeks ago
php                                   172.30.148.65:5000/openshift/php                                             latest,7.0,5.6 + 1 more...        3 weeks ago
postgresql                            172.30.148.65:5000/openshift/postgresql                                      latest,9.5,9.4 + 1 more...        3 weeks ago
python                                172.30.148.65:5000/openshift/python                                          latest,3.5,3.4 + 2 more...        3 weeks ago
redhat-openjdk18-openshift            registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift             1.1-11,1.1-10,1.1-8 + 2 more...   3 weeks ago
redis                                 172.30.148.65:5000/openshift/redis                                           latest,3.2                        3 weeks ago
ruby                                  172.30.148.65:5000/openshift/ruby                                            latest,2.3,2.2 + 1 more...        3 weeks ago
wildfly                               172.30.148.65:5000/openshift/wildfly                                         latest,10.1,10.0 + 2 more...      3 weeks ago

除此之外,我注意到以下内容:

ImageStreamTag "redhat-openjdk18-openshift:1.0" 无效:来自:在命名空间 openshift 中解析 ImageStreamTag redhat-openjdk18-openshift:1.0 时出错:无法找到最新的标记图像

$oc status -v
In project budgetting on server https://api.starter-us-west-1.openshift.com:443

http://budgetting-budgetting.a3c1.starter-us-west-1.openshiftapps.com (svc/budgetting)
  dc/budgetting deploys openshift/jboss-webserver30-tomcat8-openshift:1.3-12 
    deployment #3 deployed 4 hours ago - 1 pod
    deployment #2 failed 4 hours ago: newer deployment was found running
    deployment #1 deployed 29 hours ago

bc/budgetting source builds https://github.com/Macilias/Budgetting.git#master on openshift/redhat-openjdk18-openshift:1.0
  -> istag/budgetting:latest
  not built yet

Warnings:
  * istag/budgetting:latest needs to be imported or created by a build.
    try: oc start-build budgetting

Info:
  * dc/budgetting has no readiness probe to verify pods are ready to accept traffic or ensure deployment is successful.
    try: oc set probe dc/budgetting --readiness ...
  * dc/budgetting has no liveness probe to verify pods are still running.
    try: oc set probe dc/budgetting --liveness ...

View details with 'oc describe <resource>/<name>' or list everything with 'oc get all'.

mniemczyk@Macieks-MBP: ~/Programming/
$oc start-build budgetting
The ImageStreamTag "redhat-openjdk18-openshift:1.0" is invalid: from: Error resolving ImageStreamTag redhat-openjdk18-openshift:1.0 in namespace openshift: unable to find latest tagged image

那我应该解决这个问题吗?这个 ImageStreamTag 在哪里?它不在我的WS中!

编辑 2:我被要求执行: oc describe is/redhat-openjdk18-openshift -n openshift 这就是结果:

    $oc describe is/redhat-openjdk18-openshift -n openshift
Name:           redhat-openjdk18-openshift
Namespace:      openshift
Created:        3 weeks ago
Labels:         <none>
Annotations:        openshift.io/image.dockerRepositoryCheck=2017-08-09T21:50:02Z
Docker Pull Spec:   172.30.148.65:5000/openshift/redhat-openjdk18-openshift
Image Lookup:       local=false
Unique Images:      5
Tags:           6

latest
  tagged from registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:latest

  * registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift@sha256:6cc8c860c58536bdf29e61ad8518b77e820486f9daa9d01a4f2a893d549489d7
      3 weeks ago

1.1
  tagged from registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.1

  * registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift@sha256:94447614d04b496c342e3447a4fd72f0f0743feaee9089e50e018514b53515ff
      3 weeks ago

1.1-11
  tagged from registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.1-11

  * registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift@sha256:70c9fd7db73eee95f564f8221ef58eb59cf34f66bb5d98cb0a4dfabc18075e93
      3 weeks ago

1.1-10
  tagged from registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.1-10

  * registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift@sha256:314fd4e661387f33534517b293a8ec4d4f55186ec283ae2b94ab4b86d0729c5d
      3 weeks ago

1.1-8
  tagged from registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.1-8

  * registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift@sha256:60670a75b867b2a65f8c2f526ff3ab9d0d8cf2fa39b352928d7014b50d54ff34
      3 weeks ago

1.0
  pushed image

  Build and run Java applications using Maven and OpenJDK 8.
  Tags: builder, java, xpaas, openjdk
  Supports: java:8, xpaas:1.0
  Example Repo: https://github.com/jboss-openshift/openshift-quickstarts
4

1 回答 1

2

这是集群中如何定义 redhat-openjdk18-openshift 镜像流的问题。我们正在努力纠正这个问题,它当前没有导入正确的标签集,因此 1.0 标签被错误地停止为有效标签。

但是,短期解决方案是更改您的 buildconfig 以引用具有关联的有效图像引用的标签之一(例如 1.1),而不是当前引用的 1.0 标签。

很抱歉给您带来了不好的体验,希望您以后再试一次 OpenShift。

于 2017-09-08T04:44:23.290 回答