Bug #18502

Creating a docker compute resource with unix socket URL throws error

Added by Sebastian Gräßl 7 months ago. Updated 7 months ago.

Status:Closed
Priority:High
Assigned To:Sebastian Gräßl
Category:Plugin (foreman_docker)
Target version:Foreman - Team Daniel - Iteration 9
Difficulty: Pull request:https://github.com/theforeman/foreman-docker/pull/182
Bugzilla link:1366573

Description

400 Bad Request: malformed Host header

Description of problem:
With zstream automation failures, found below issue on creating a docker type CR, with unix socket URL:

400 Bad Request: malformed Host header

Here is the installed docker version:

~]# docker version
Client:
Version: 1.10.3
API version: 1.22
Package version: docker-common-1.10.3-46.el7.10.x86_64
Go version: go1.6.2
Git commit: 2a93377-unsupported
Built: Fri Jul 29 13:45:25 2016
OS/Arch: linux/amd64

Server:
Version: 1.10.3
API version: 1.22
Package version: docker-common-1.10.3-46.el7.10.x86_64
Go version: go1.6.2
Git commit: 2a93377-unsupported
Built: Fri Jul 29 13:45:25 2016
OS/Arch: linux/amd64

Version-Release number of selected component (if applicable):
sat6.2.1 snap2.1

How reproducible:

Steps to Reproduce:
1. install/confgure docker on satellite server
2. add a docker type compute resource with URL: unix:///var/run/docker.sock
3.

Actual results:
Unable to save
400 Bad Request: malformed Host header

Expected results:

docker type CR with unix socket URL should be created
Additional info:

docker_CR.png (32.8 KB) Preview Sebastian Gräßl, 02/14/2017 10:46 AM

Docker_cr

Associated revisions

Revision ae6e223e
Added by Sebastian Gräßl 7 months ago

Fixes #18502 - Add excon version 0.46 and above as dependency

The excon gem, required by docker-api, version 0.45 and below
give a malformed empty head to socket connections.
Version ~> 0.46 have this fixed and address the issue in #18502

History

#1 Updated by The Foreman Bot 7 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-docker/pull/182 added

#2 Updated by Anonymous 7 months ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Daniel Lobato Garcia 7 months ago

  • Target version set to Team Daniel - Iteration 9

Also available in: Atom PDF