Bootstrap image fails to build due to MOS repository being unreachable

Bug #1585114 reported by Alexei Sheplyakov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
High
Fuel Sustaining
8.0.x
Invalid
High
Alexei Sheplyakov
Mitaka
Invalid
High
Fuel Sustaining

Bug Description

The bootstrap image fails to built due to MOS repository (which is located on the master node itself)
being unreachable.

The cause is that web server (nginx) runs in the container and is unable to listen on hosts' loopback
interface, instead it listens on the *container's* loopback interface, therefore any attempt to reach
the repository via the http://127.0.0.1:8080/ubuntu/x86_64 URL is deemed to fail.

Steps to reproduce:

1. Deploy the master node with default bootstrap image settings

Expected results:

- The bootstrap image gets built during the deployment
- The master node can boot discovery/bootstrap nodes

Actual results:

- The bootstrap image fails to built
- The master node is next to useless for it's unable to detect/provision nodes

Reproducibility:

The problem is 100% reproducible

Workaround:

start fuelmenu, navigate to the `Bootstrap Image' tab, and specify

http://10.20.0.2:8080/ubuntu/x86_64 mos8.0 main restricted

as MOS repository URL

Impact:

Distracts first time users and makes a bad impression about our product (hence the `High' importance)

Changed in fuel:
assignee: nobody → Fuel Sustaining (fuel-sustaining-team)
status: New → Confirmed
tags: added: area-library
tags: added: area-python module-fuelmenu
removed: area-library
Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

Containers were removed in 9.0 release.

no longer affects: fuel/newton
Revision history for this message
Rodion Tikunov (rtikunov) wrote :

Can not reproduce it in MOS 8.0:
# fuel --version
8.0.0
# grep -A3 -B2 'http://127.0.0.1:8080/ubuntu/x86_64' /etc/fuel-bootstrap-cli/fuel_bootstrap_cli.yaml
    - name: mos
      section: "main restricted"
      uri: "http://127.0.0.1:8080/ubuntu/x86_64"
      priority: 1050
      suite: mos8.0
      type: deb
#fuel-bootstrap build
...
--- Building bootstrap image END (do_mkbootstrap) ---
Cleanup chroot
Bootstrap image be8fee0c-9976-4d52-a2f4-7ec1b318aaab has been built: /tmp/be8fee0c-9976-4d52-a2f4-7ec1b318aaab.tar.gz

From /var/log/fuel-bootstrap-image-build.log
Trying to initialize http request object http://127.0.0.1:8080/ubuntu/x86_64/dists/mos8.0/Release, byte range: 0
Starting new HTTP connection (1): 127.0.0.1
Successful http request to http://127.0.0.1:8080/ubuntu/x86_64/dists/mos8.0/Release on 1 retry

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.