[fuel-bootstrap] Not possible to build image from https repos
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
High
|
Fedor Zhadaev | ||
8.0.x |
Fix Released
|
High
|
Fedor Zhadaev | ||
Mitaka |
Fix Released
|
High
|
Fedor Zhadaev |
Bug Description
Steps to reproduce:
Steps to reproduce:
1. Setup https deb mirror
2. Setup proxy server
3. Install fuel-master
4. Set https proxy in /etc/fuel-
5. Add mirror to /etc/fuel-
6. Run fuel-bootstrap build
Expected result:
image is built
Actual result:
Unexpected error while running command.
Command: chroot /tmp/tmpPPFNk3.
Exit code: 100
Stdout: ''
Stderr: 'E: The method driver /usr/lib/
Traceback (most recent call last):
File "/usr/lib/
result = cmd.run(
File "/usr/lib/
self.
File "/usr/lib/
image_uuid, path = bs_image.
File "/usr/lib/
mngr.
File "/usr/lib/
attempts=
File "/usr/lib/
stdout, stderr = utils.execute(
File "/usr/lib/
stderr=stderr, cmd=command)
ProcessExecutio
Changed in fuel: | |
assignee: | Arthur Svechnikov (asvechnikov) → Fedor Zhadaev (fzhadaev) |
debootstrap doesn't install packages needed for smooth working with https repos later. so apt-get update fails when trying to use https repos.
the issue was intensively disscussed among the team member.
we've decided to fix it at the lowest possible level at utils in `run_debootstrap`:
https:/ /github. com/openstack/ fuel-agent/ blob/master/ fuel_agent/ utils/build. py#L61
major concern that prevented us from spreading the fix over all object layers is the fact that debootstrap mainly needed for building ubuntu/debian images. If we want to build images of centos/other rpm based, then we couldn't reuse tricky multiple stage image building as it was done for ubuntu images.
it seems that https packages for apt-get are essential and nobody will argue against that. Therefore it'll be better to install them in the advance.