IPA does not work behind a proxy server

Bug #1533796 reported by John L. Villalovos
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ironic-python-agent
Fix Released
Medium
John L. Villalovos

Bug Description

IPA doesn't work behind a proxy server.

In particular when building the Docker image it fails when doing the apt-get.

Changed in ironic-python-agent:
assignee: nobody → John L. Villalovos (happycamp)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
John L. Villalovos (happycamp) wrote :
Download full text (4.5 KiB)

When running:
$ imagebuild/coreos/docker_build.bash

It fails from behind a proxy server

Sample output:
2016-01-13 19:32:53.060 | + sudo -E make
2016-01-13 19:32:53.067 | ./docker_build.bash
Sending build context to Docker daemon 3.985 MB to Docker daemon 557.1 kB
2016-01-13 19:32:53.846 | Sending build context to Docker daemon
2016-01-13 19:32:53.855 | Step 0 : FROM debian:jessie
2016-01-13 19:32:55.575 | jessie: Pulling from debian
2016-01-13 19:32:55.576 | cb6fb082434e: Pulling fs layer
2016-01-13 19:32:55.578 | d4b2ba78e3b4: Pulling fs layer
2016-01-13 19:32:56.051 | d4b2ba78e3b4: Verifying Checksum
2016-01-13 19:32:56.051 | d4b2ba78e3b4: Download complete
2016-01-13 19:32:59.868 | cb6fb082434e: Verifying Checksum
2016-01-13 19:32:59.871 | cb6fb082434e: Download complete
2016-01-13 19:33:04.506 | cb6fb082434e: Pull complete
2016-01-13 19:33:04.698 | d4b2ba78e3b4: Pull complete
2016-01-13 19:33:04.698 | debian:jessie: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.
2016-01-13 19:33:04.698 | Digest: sha256:f968f10b4b523737e253a97eac59b0d1420b5c19b69928d35801a6373ffe330e
2016-01-13 19:33:04.715 | Status: Downloaded newer image for debian:jessie
2016-01-13 19:33:04.717 | ---> d4b2ba78e3b4
2016-01-13 19:33:04.717 | Step 1 : ADD . /tmp/ironic-python-agent
2016-01-13 19:33:06.821 | ---> 6dfd55bc31c1
2016-01-13 19:33:08.267 | Removing intermediate container 0a5c2ccd344a
2016-01-13 19:33:08.270 | Step 2 : RUN echo 'APT::Default-Release "jessie";' > /etc/apt/apt.conf.d/10default && sed -e 's/jessie/testing/g' /etc/apt/sources.list > /etc/apt/sources.list.d/testing.list
2016-01-13 19:33:08.539 | ---> Running in 9bd59c3a2ea7
2016-01-13 19:33:10.579 | ---> 8f61eb96b876
2016-01-13 19:33:11.505 | Removing intermediate container 9bd59c3a2ea7
2016-01-13 19:33:11.506 | Step 3 : RUN apt-get update && apt-get -y upgrade && apt-get install -y --no-install-recommends gdisk python2.7 python2.7-dev python-pip qemu-utils parted hdparm util-linux genisoimage git gcc bash coreutils tgt dmidecode ipmitool && apt-get --only-upgrade -t testing install -y qemu-utils
2016-01-13 19:33:11.800 | ---> Running in 230f546a0a1b
2016-01-13 19:39:12.857 | Err http://httpredir.debian.org jessie InRelease
2016-01-13 19:39:12.857 |
2016-01-13 19:39:12.857 | Err http://httpredir.debian.org jessie-updates InRelease
2016-01-13 19:39:12.857 |
2016-01-13 19:39:12.857 | Err http://httpredir.debian.org testing InRelease
2016-01-13 19:39:12.857 |
2016-01-13 19:39:12.858 | Err http://httpredir.debian.org testing-updates InRelease
2016-01-13 19:39:12.858 |
2016-01-13 19:39:12.858 | Err http://httpredir.debian.org jessie Release.gpg
2016-01-13 19:39:12.858 | Cannot initiate the connection to httpredir.debian.org:80 (2001:41c8:1000:21::21:35). - connect (101: Network is unreachable) [IP: 2001:41c8:1000:21::21:35 80]
2016-01-13 19:39:12.858 | Err http://httpredir.debian.org jessie-updates Release.gpg
2016-01-13 19:39:12.858 | Cannot initiate the connection to httpredir.debian.org:80 (2001:41c8:1000:21::21:35). - connect (101: Network is unr...

Read more...

Revision history for this message
John L. Villalovos (happycamp) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic-python-agent (master)

Reviewed: https://review.openstack.org/267219
Committed: https://git.openstack.org/cgit/openstack/ironic-python-agent/commit/?id=1ffaaf6abf3d7c480762003f73a40dc0c874f983
Submitter: Jenkins
Branch: master

commit 1ffaaf6abf3d7c480762003f73a40dc0c874f983
Author: John L. Villalovos <email address hidden>
Date: Wed Jan 13 14:13:20 2016 -0800

    Add support for proxy servers during image build

    When building the docker image, the 'apt-get' and 'pip install' that are
    run inside the docker image will fail in a an environment that uses
    proxy servers.

    Support environments with proxy servers by dynamically propagating
    'http_proxy', 'https_proxy', and 'no_proxy' into the docker environment
    when running 'apt-get' and 'pip install'

    This can not be done with either --env-file or --env as those are
    arguments to 'docker run'. The command being run here is 'docker build'

    Once Docker 1.9 is widely deployed, we should switch to using the 'ARG'
    command which was added in Docker 1.9. Currently Ubuntu 14.04 uses
    Docker 1.6. Using the ARG command will be a much cleaner solution.

    Change-Id: Idd994cd58b9fb75bae13a43fc8363c36f113527d
    Closes-Bug: #1533796

Changed in ironic-python-agent:
status: In Progress → Fix Released
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/ironic-python-agent 1.2.0

This issue was fixed in the openstack/ironic-python-agent 1.2.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.