Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1373198 - [RFE]: Add possibility to test connection when creating a custom Registry
Summary: [RFE]: Add possibility to test connection when creating a custom Registry
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Container Management
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: Daniel Lobato Garcia
QA Contact: Sebastian Gräßl
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-05 13:12 UTC by Peter Ondrejka
Modified: 2019-09-26 17:31 UTC (History)
4 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 14181 0 None None None 2017-04-18 08:04:30 UTC

Description Peter Ondrejka 2016-09-05 13:12:43 UTC
Description of problem:

When adding a custom registry (under Containers > Registries), there's no way to check if the specified URL is live. Therefore, if there's a typo in the url, you will only find out when trying to pull an image from the repository (Containers > New container ...). 

A "test connection" button would be useful for New Registry dialog. Similar button is present when adding a compute resource.

Version-Release number of selected component (if applicable):

satellite-6.2.2-1.1.el7sat.noarch

Comment 1 Daniel Lobato Garcia 2017-04-18 07:53:27 UTC
Connecting redmine issue http://projects.theforeman.org/issues/14181 from this bug

Comment 2 Daniel Lobato Garcia 2017-04-18 07:55:28 UTC
Peter,

This changed - Maybe it's not on 6.2 but for 6.3 at least, when the user tries to add a registry, we not only check the URL is available, but we also:

 * check the URL is actually for a containers registry
 * attempt to log in using the user credentials / check if anonymous access is allowed

I believe this fixes the bug as it introduces the check you asked for and more. It's not exactly the "test connection" button but you definitely cannot save the registry unless it's a containers registry and you have the credentials.

I've linked the commit in the upstream with this issue so it's cp-ed to 6.2.z.

Closing tentatively now - let me know if there is something else I'm missing

Comment 5 Satellite Program 2017-06-01 20:32:57 UTC
1405401

Comment 6 Sebastian Gräßl 2017-08-23 09:04:53 UTC
Verified on Satellite-6.3 Snap 12.

The registry gets checked on submitting it and presents an error in case it is not available or unable to login.

Comment 7 Satellite Program 2018-02-21 16:51:07 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.