Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1196777 - Can't connect to docker compute resource (Docker::Error::AuthenticationError)
Can't connect to docker compute resource (Docker::Error::AuthenticationError)
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Container Management (Show other bugs)
6.1.0
Unspecified Unspecified
high Severity high (vote)
: Unspecified
: Unused
Assigned To: David Davis
Elyézer Rezende
http://projects.theforeman.org/issues...
: Triaged
Depends On:
Blocks: 1190289
  Show dependency treegraph
 
Reported: 2015-02-26 12:37 EST by David Davis
Modified: 2017-02-23 15:25 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-12 01:28:03 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 9570 None None None 2016-04-22 11:08 EDT
Red Hat Product Errata RHSA-2015:1592 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 05:04:35 EDT

  None (edit)
Description David Davis 2015-02-26 12:37:55 EST
Description of problem:

I think this might be due to some packages on RHEL6 or something. Not sure.


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

Nightly build. Here's the docker-related packages:

pulp-docker-plugins-0.2.2-1.el6.noarch
ruby193-rubygem-foreman_docker-1.2.0-1.fm1_8.el6.noarch
python-pulp-docker-common-0.2.2-1.el6.noarch
ruby193-rubygem-docker-api-1.17.0-1.el6.noarch
docker-io-1.4.1-3.el6.x86_64


How reproducible:

Always.


Steps to Reproduce:
1. Set up the nightly build on RHEL6 with these options in /etc/sysconfig/docker:

other_args='--selinux-enabled=true --host tcp://0.0.0.0:2375 --host unix:///var/run/docker.sock'
DOCKER_CERT_PATH=/etc/docker

2. Create a compute resource
3. Click on Test Connection

Actual results:

Docker::Error::AuthenticationError

Docker log:

ERRO[0014] Handler for POST /auth returned error: Registration: "Missing username field"
ERRO[0014] HTTP Error: statusCode=500 Registration: "Missing username field"

Expected results:

Success


Additional info:
Comment 1 David Davis 2015-02-26 12:48:56 EST
The url for the compute resource is http://localhost:2375
Comment 2 David Davis 2015-02-26 14:54:30 EST
Looks like the problem is the new fog version. Got a fix for it.
Comment 3 David Davis 2015-02-26 14:55:04 EST
Make sure you're running the same versions of fog and docker-api as in the nightlies.
Comment 4 Partha Aji 2015-02-26 14:55:23 EST
Created redmine issue http://projects.theforeman.org/issues/9570 from this bug
Comment 5 David Davis 2015-02-26 15:00:47 EST
Pull request:

https://github.com/theforeman/foreman-docker/pull/90
Comment 6 RHEL Product and Program Management 2015-02-26 15:17:38 EST
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.
Comment 8 Bryan Kearney 2015-03-01 14:05:23 EST
Moving to POST since upstream bug http://projects.theforeman.org/issues/9570 has been closed
-------------
David Davis
Applied in changeset commit:foreman-docker|6789456ca82b33c933fec94f2fc8383edd2779d3.
Comment 11 Elyézer Rezende 2015-03-06 15:06:02 EST
Verified on: Satellite-6.1.0-RHEL-7-20150303.0

Steps to verify:

1. Navigated to Infrastructure > Compute Resources
2. Clicked on New Compute Resource
3. Filled the form with values:
   Name: MyComputeResource
   Provider: Docker
   URL: http://localhost:2375
4. Clicked on Test Connection and no error was raised
5. Created the Compute Resource and checked the Virtual Machines tab to check if it does not show any error. All was OK.
Comment 12 Bryan Kearney 2015-08-11 09:20:34 EDT
This bug is slated to be released with Satellite 6.1.
Comment 13 errata-xmlrpc 2015-08-12 01:28:03 EDT
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-2015:1592

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