Bug 1610251 - [ASB]asb unable to retrieve image names from registry.dev.redhat.io registry
Summary: [ASB]asb unable to retrieve image names from registry.dev.redhat.io registry
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Service Broker
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.11.0
Assignee: David Zager
QA Contact: Zihan Tang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-31 09:54 UTC by Zhang Cheng
Modified: 2018-10-11 07:23 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-11 07:22:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2652 0 None None None 2018-10-11 07:23:06 UTC

Comment 2 Zihan Tang 2018-08-01 06:32:44 UTC
The 'registry.dev.redhat.io' do not work for asb, so update this bug.

Comment 4 David Zager 2018-08-15 20:28:47 UTC
It looks like the APB images are available on registry.dev.redhat.io:

➜  ~ docker run --rm --entrypoint rpm registry.dev.redhat.io/openshift3/mariadb-apb:v3.11 -qa | grep 'role'
mariadb-apb-role-1.3.5-1.el7.noarch

➜  ~ docker run --rm --entrypoint rpm registry.dev.redhat.io/openshift3/mysql-apb:v3.11 -qa | grep 'role'
mysql-apb-role-1.3.4-1.el7.noarch

➜  ~ docker run --rm --entrypoint rpm registry.dev.redhat.io/openshift3/mediawiki-apb:v3.11 -qa | grep 'role'
mediawiki-apb-role-1.3.2-1.el7.noarch

➜  ~ docker run --rm --entrypoint rpm registry.dev.redhat.io/openshift3/postgresql-apb:v3.11 -qa | grep 'role'
postgresql-apb-role-1.3.6-1.el7.noarch

Comment 5 Zihan Tang 2018-08-16 06:49:01 UTC
verified failed.

apbs are available on  registry.dev.redhat.io
but , it still failed at bootstrapt.

adding basic auth to token request"
time="2018-08-16T06:45:39Z" level=debug msg="new token: eyJhbGciOiJSUzI1NiIsInR5...........................cLFFMTA3-t5X9DT8t32l_gVlq0fHr-cog3nJIPin4VZfE4SO_i0yJluG1Jcm31epr098A"
time="2018-08-16T06:45:39Z" level=debug msg="GET /v2/ successful with new token"
time="2018-08-16T06:45:39Z" level=debug msg="RHCCRegistry::LoadImages"
time="2018-08-16T06:45:39Z" level=debug msg="Using https://registry.dev.redhat.io/v1/search?q=%22%2A-apb%22 to source APB images "
time="2018-08-16T06:45:39Z" level=error msg="unable to retrieve image names for registry rh - 404 Not Found"
time="2018-08-16T06:45:39Z" level=warning msg="registry: 0x1553b10 was unable to complete bootstrap - 404 Not Found"
time="2018-08-16T06:45:39Z" level=error msg="Failed to bootstrap on startup!

registry.stage.... works well.

Comment 6 Zihan Tang 2018-08-16 06:49:39 UTC
asb version in #coment5: 1.3.9

Comment 9 Zhang Cheng 2018-08-17 01:32:30 UTC
I'm changing status to back since I suggest we should support it even though not in 3.11

Comment 10 David Zager 2018-08-17 20:21:25 UTC
I understand you need to use registry.dev.redhat.io. It is my understanding that it will not support the search functionality. I was, however, able to simply use the apiv2 type registry adapter, provide the url and auth; specifying the specific images I wanted to use and it worked as I would expect.

- name: dev
  type: apiv2
  url: https://registry.dev.redhat.io
  white_list:
    - ".*"
  images:
    - openshift3/mediawiki-apb
    - openshift3/mariadb-apb
    - openshift3/mysql-apb
    - openshift3/postgresql-apb
  auth_type: "secret"
  auth_name: "asb-dev-auth"
  skip_verify_tls: false

Comment 11 Zihan Tang 2018-08-21 03:11:11 UTC
Thanks David,
after add 'images' parameters, we can use type apiv2 or openshift for 'registy.dev.redhat.io' 

Chage the status to verified.

Comment 13 errata-xmlrpc 2018-10-11 07:22:47 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-2018:2652


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