Bug 1503827 - Cannot provision a Katello Managed docker container
Summary: Cannot provision a Katello Managed docker container
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Container Management
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Partha Aji
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-18 20:46 UTC by Partha Aji
Modified: 2019-04-01 20:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 17:11:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 16509 0 None None None 2017-10-18 20:55:36 UTC
Foreman Issue Tracker 21050 0 None None None 2017-10-18 20:46:52 UTC

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


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