[systemd-bugs] [Bug 90820] New: pull-dkr forgets HTTP credentials on subsequent hits

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jun 2 07:03:04 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=90820

            Bug ID: 90820
           Summary: pull-dkr forgets HTTP credentials on subsequent hits
           Product: systemd
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: systemd-bugs at lists.freedesktop.org
          Reporter: gk at axiros.com
        QA Contact: systemd-bugs at lists.freedesktop.org

High,
systemd version: 219, fedora 22

Summary: machinectl does first hit correctly with http creds within the URL -
but forgets them in subsequent hit(s).
And I did not see an option to supply user creds to machinectl.

-----------

Details:

Trying the (great) pull-dkr on my PRIVATE docker reqistry, with a http basic
authing proxy infront of it.

Since it has http auth on, when pulling using docker it works like:

[root at f2 axc]# docker login https://axchange.axiros.com  
Username: ax__Js3MQjrGKcjwS94j  (<-- just a temporary token)
Password: 
Email: asdf at asdf.de
WARNING: login credentials saved in /root/.dockercfg.
Login Succeeded
[root at f2 axc]# docker pull axchange.axiros.com/axcdocker/jessie:latest    
Trying to pull repository axchange.axiros.com/axcdocker/jessie ...
2863afcd1309: Download complete 
(...)

------------

Using machinectl:

[root at f2 site-packages]# machinectl pull-dkr 'axcdocker/jessie:latest'
--dkr-index-url https://ax__Js3MQjrGKcjwS94j:AXC@axchange.axiros.com 
--verify=no

(note that I've put the creds into the URL)

Enqueued transfer job 1. Press C-c to continue download in background.
Pulling 'axcdocker/jessie' with tag 'latest', saving as 'jessie'.
Downloading 380B for
https://ax__Js3MQjrGKcjwS94j:AXC@axchange.axiros.com/v1/repositories/axcdocker/jessie/images.
Download of
https://ax__Js3MQjrGKcjwS94j:AXC@axchange.axiros.com/v1/repositories/axcdocker/jessie/images
complete.
Index lookup succeeded, directed to registry axchange.axiros.com.
Downloading 172B for
https://axchange.axiros.com/v1/repositories/axcdocker/jessie/tags/latest.
HTTP request to
https://axchange.axiros.com/v1/repositories/axcdocker/jessie/tags/latest failed
with code 400.
Failed to retrieve tags list.
Exiting.

stracing it, grepping for the URL:
[root at f2 site-packages]# cat trace |grep axchange
writev(2, [{"Downloading 380B for https://ax_"..., 114}, {"\n", 1}],
2Downloading 380B for
https://ax__Js3MQjrGKcjwS94j:AXC@axchange.axiros.com/v1/repositories/axcdocker/jessie/images.
writev(2, [{"Download of https://ax__Js3MQjrG"..., 114}, {"\n", 1}], 2Download
of
https://ax__Js3MQjrGKcjwS94j:AXC@axchange.axiros.com/v1/repositories/axcdocker/jessie/images
complete.
writev(2, [{"Index lookup succeeded, directed"..., 65}, {"\n", 1}], 2Index
lookup succeeded, directed to registry axchange.axiros.com.
writev(2, [{"Downloading 172B for https://axc"..., 94}, {"\n", 1}],
2Downloading 172B for
https://axchange.axiros.com/v1/repositories/axcdocker/jessie/tags/latest.
writev(2, [{"HTTP request to https://axchange"..., 110}, {"\n", 1}], 2HTTP
request to
https://axchange.axiros.com/v1/repositories/axcdocker/jessie/tags/latest failed
with code 400.
[root at f2 site-packages]# 


-> the hit for the tags did not have the creds, so the registry server says no
no.

-----------


Can help myself with proxies for now but would be cool if machinectl could
handle that, best with username password options at least for basic auth.


Thanks,
Gunther

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150602/7e46b87c/attachment.html>


More information about the systemd-bugs mailing list