Bug 1503827

Summary: Cannot provision a Katello Managed docker container
Product: Red Hat Satellite Reporter: Partha Aji <paji>
Component: Container ManagementAssignee: Partha Aji <paji>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, ehelms, sgraessl
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
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: 2018-02-21 17:11:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Partha Aji 2017-10-18 20:46:50 UTC
When using the docker container UI the tag information is not being set correctly.
0) Setup docker compute resource + Sync docker images
1) Containers -> Create Container
2) Select lifecycle environment, CV, repository, Tag, Smart Proxy
3) Click next step

Note the tag info while getting propagated in the Put request does not get stored in the database making it always choose the latest.
This is a side effect of https://github.com/Katello/katello/pull/6775 as part of Issue http://projects.theforeman.org/issues/19468

Comment 1 Partha Aji 2017-10-18 20:46:54 UTC
Created from redmine issue http://projects.theforeman.org/issues/21050

Comment 2 Partha Aji 2017-10-18 20:46:58 UTC
Upstream bug assigned to paji

Comment 3 Partha Aji 2017-10-18 20:51:44 UTC
At this point there are other issues that also happen when the above sequence is selected
1) 
Error along the lines of "API v1 - Repository images request failed"
"""
2017-10-09T00:55:10 cf57435b [app] [D] <Array> [:get, "/v1.16/images/1-docker-rhel7-library-00fc3a70-b91c-47a0-94c8-cbcb42545e04/json", {}, nil]
2017-10-09T00:55:10 cf57435b [app] [D] <Array> [:get, "/v1/repositories/1-docker-rhel7-library-00fc3a70-b91c-47a0-94c8-cbcb42545e04/tags", {}, nil]
2017-10-09T00:55:11 cf57435b [app] [W] API v1 - Repository images request failed ["/home/vagrant/.rvm/gems/ruby-2.2.4/gems/docker-api-1.33.6/lib/docker/connection.rb:46:in `rescue in request'", "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/docker-api-1.33.6/lib/docker/connection.rb:38:in `request'", "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/docker-api-1.33.6/lib/docker/connection.rb:65:in `block (2 levels) in <class:Connection>'", "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/foreman_docker-3.2.1/app/models/service/registry_api.rb:24:in `get'", "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/foreman_docker-3.2.1/app/models/service/registry_api.rb:80:in `get_tags'", "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/foreman_docker-3.2.1/app/models/service
..."""


2) The  wrong repository name getting mapped when one is about to create the container.

Comment 6 Satellite Program 2017-10-18 22:13:50 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21050 has been resolved.

Comment 7 Peter Ondrejka 2017-11-14 12:59:43 UTC
Verified on Satellite 6.3 snap 24, katello-provided image was correctly provisioned, see attachment.

Comment 9 Bryan Kearney 2018-02-21 16:44:55 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/RHSA-2018:0336

Comment 10 Bryan Kearney 2018-02-21 17:11:11 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/RHSA-2018:0336