Browse Source

Fix disk image create errors behind proxy

This commit fixes errors while trying to create a
DIB ramdisk with ironic-agent element when built
behind proxy. It fixes the issue by making it install
latest versions of pip and setuptools which has the
fixes for them.

Change-Id: I1ffb832ebab009b2d77a46e6c8fc758dd9632359
Closes-Bug: 1449852
tags/0.1.46
Ramakrishnan G 4 years ago
parent
commit
afe739ceed
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      elements/ironic-agent/install.d/60-ironic-agent-install

+ 8
- 1
elements/ironic-agent/install.d/60-ironic-agent-install View File

@@ -6,10 +6,17 @@ fi
6 6
 set -eu
7 7
 set -o pipefail
8 8
 
9
-install-packages python-dev python-pip qemu-utils parted hdparm util-linux genisoimage gcc
9
+install-packages python-dev qemu-utils parted hdparm util-linux genisoimage gcc
10
+
11
+# Install the latest version of pip and setuptools which has some
12
+# fixes for building behind proxy.
13
+curl -o /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py
14
+python /tmp/get-pip.py
15
+pip install -U setuptools
10 16
 
11 17
 pip install -r /tmp/ironic-python-agent/requirements.txt
12 18
 pip install /tmp/ironic-python-agent
19
+rm -f /tmp/get-pip.py
13 20
 
14 21
 sudo echo $'[Unit]
15 22
 Description=Ironic Python Agent\n

Loading…
Cancel
Save