[fuel-main] bootstrap_admin_node: Connectivity check fails with mirrorlist yum entry

Bug #1596981 reported by Alexandru Avadanii
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Alexandru Avadanii

Bug Description

After Fuel Master builds the bootstrap image at first boot,
internet connectivity is tested using the URL for the CentOS
updates repository.

bootstrap_admin_node.sh script parses the output of `yum repolist`,
looking for entries like 'Repo-baseurl: http://...'.

However, in Fuel 9.0, <updates> points to a mirrorlist file (a text
file containing a list of possible mirror URLs) instead of being
a single, direct link to the repository.

For now, we only test that we can access the mirrorlist file,
while the check should be performed against the mirror(s).

Old (Fuel 8) repo entry format:
Repo-baseurl: http://mirror.fuel-infra.org/.../updates/x86_64/

New (Fuel 9) mirrorlist format:
Repo-mirrors: http://mirror.fuel-infra.org/.../mos-mirrors-updates.txt

See Fuel@OPNFV related change [1].

Steps to reproduce:
1. Build ISO
2. Deploy ISO

Expected results:
no warning messages should be shown

Actual results:
Web UI will show a warning like "There is an issue connecting to update repository of your distributions of OpenStack. [...]"

Description of the environment:
 Operation system: CentOS7.2
 Versions of components: stable/mitaka
 Related projects installed: Fuel@OPNFV
Additional information:
 While building Fuel@OPNFV ISO from stable/mitaka branches of Fuel components, we stubled upon the above.

[1] https://gerrit.opnfv.org/gerrit/#/c/15951/

BR,
Alex

Tags: area-build
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

Fix proposed to branch: master
Review: https://review.openstack.org/335094

Changed in fuel:
assignee: nobody → Alexandru Avadanii (alexandru-avadanii)
status: New → In Progress
Dmitry Klenov (dklenov)
tags: added: area-python
Changed in fuel:
milestone: none → 10.0
importance: Undecided → Medium
tags: added: area-build
removed: area-python
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-main (master)

Reviewed: https://review.openstack.org/335094
Committed: https://git.openstack.org/cgit/openstack/fuel-main/commit/?id=ab98c79af06e483952e9d4dbc38f51972fc5bf66
Submitter: Jenkins
Branch: master

commit ab98c79af06e483952e9d4dbc38f51972fc5bf66
Author: Alexandru Avadanii <email address hidden>
Date: Tue Jun 28 17:32:03 2016 +0200

    bootstrap_admin_node: Fix connectivity check.

    After Fuel Master builds the bootstrap image at first boot,
    internet connectivity is tested using the URL for the CentOS
    updates repository.

    bootstrap_admin_node.sh script parses the output of `yum repolist`,
    looking for entries like 'Repo-baseurl: http://...'.

    However, in Fuel 9.0, <updates> points to a mirrorlist file (a text
    file containing a list of possible mirror URLs) instead of being
    a single, direct link to the repository.

    For now, we only test that we can access the mirrorlist file,
    while the check should be performed against the mirror(s).

    Old (Fuel 8) repo entry format:
    Repo-baseurl: http://mirror.fuel-infra.org/.../updates/x86_64/

    New (Fuel 9) mirrorlist format:
    Repo-mirrors: http://mirror.fuel-infra.org/.../mos-mirrors-updates.txt

    Closes-Bug: #1596981

    Change-Id: I21268dd8aa8cd633f09f921b4a9e1c057a4b8ed3
    Signed-off-by: Alexandru Avadanii <email address hidden>

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-main 10.0.0rc1

This issue was fixed in the openstack/fuel-main 10.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-main 10.0.0

This issue was fixed in the openstack/fuel-main 10.0.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.