Fuel master CI failing installation due to mos-repo on container build

Bug #1521551 reported by Bartosz Kupidura
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Roman Vyalov

Bug Description

Some CI test are failing on deploying Fuel master node.

Please see https://ci.fuel-infra.org/job/fuellib_review_pkgs_master_node/6658/

Logs:

Sending build context to Docker daemon
Step 0 : FROM fuel/centos
 ---> f2f1e703f7ad
Step 1 : MAINTAINER Matthew Mosesohn <email address hidden>
 ---> Using cache
 ---> bbb112d52994
Step 2 : RUN rm -rf /etc/yum.repos.d/*; echo -e "[nailgun]\nname=Nailgun Local Repo\nbaseurl=http://$(route -n | awk '/^0.0.0.0/ { print $2 }'):49153/repo/os/x86_64/\ngpgcheck=0\n[mos]\nname=MOS Local Repo\nbaseurl=http://$(route -n | awk '/^0.0.0.0/ { print $2 }'):49153/mos-repo/\ngpgcheck=0" > /etc/yum.repos.d/nailgun.repo; yum clean expire-cache; yum update -y; echo ruby21-nailgun-mcagents sysstat | xargs -n1 yum install -y --quiet
 ---> Running in 55e457c7533d
Loaded plugins: fastestmirror, priorities
Cleaning repos: mos nailgun
0 metadata files removed
Loaded plugins: fastestmirror, priorities
Setting up Update Process
Determining fastest mirrors
http://172.17.42.1:49153/mos-repo/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: mos. Please verify its path and try again
http://172.17.42.1:49153/mos-repo/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: mos. Please verify its path and try again
http://172.17.42.1:49153/mos-repo/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: mos. Please verify its path and try again
time="2015-12-01T09:12:49Z" level="info" msg="The command [/bin/sh -c rm -rf /etc/yum.repos.d/*; echo -e \"[nailgun]\\nname=Nailgun Local Repo\\nbaseurl=http://$(route -n | awk '/^0.0.0.0/ { print $2 }'):49153/repo/os/x86_64/\\ngpgcheck=0\\n[mos]\\nname=MOS Local Repo\\nbaseurl=http://$(route -n | awk '/^0.0.0.0/ { print $2 }'):49153/mos-repo/\\ngpgcheck=0\" > /etc/yum.repos.d/nailgun.repo; yum clean expire-cache; yum update -y; echo ruby21-nailgun-mcagents sysstat | xargs -n1 yum install -y --quiet] returned a non-zero code: 123"
ERROR: Fuel node deployment FAILED! Check /var/log/puppet/bootstrap_admin_node.log for details

Changed in fuel:
assignee: nobody → Fuel CI (fuel-ci)
Changed in fuel:
assignee: Fuel CI (fuel-ci) → Vladimir Kuklin (vkuklin)
status: New → In Progress
Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

The only commit that introduces this functionality is https://review.openstack.org/#/c/241983/ I will prepare a revert

tags: added: area-library fuel-ci
Changed in fuel:
assignee: Vladimir Kuklin (vkuklin) → Matthew Mosesohn (raytrac3r)
Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

This patch can be resubmitted with 2 fixed lines:
1: Make a symlink for mos-centos in /var/www/nailgun in iso/ks.template L472:
ln -s ${repodir}/mos-centos ${wwwdir}/mos-centos

2: L194 in bootstrap_admin_node.sh needs to be fixed to include mos-repo:
  REPO_CONT_ID=$(docker -D run -d -p 80 -v /var/www/nailgun:/var/www/nailgun fuel/centos sh -c 'mkdir -p /var/www/html/repo/os;ln -sf /var/www/nailgun/centos/x86_64 /var/www/html/repo/os/x86_64;ln -s /var/www/nailgun/mos-centos/x86_64 /var/www/html/mos-repo;/usr/sbin/apachectl -DFOREGROUND')

summary: - Fuel CI failing on master installation
+ Fuel master CI failing installation due to mos-repo on container build
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-main (master)

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

commit 32b136301591277dd87f3d367c1370a8a093fb02
Author: Matthew Mosesohn <email address hidden>
Date: Tue Dec 1 10:52:09 2015 +0000

    Revert "Separate CentOS from MOS"

    The commit this patch reverts breaks Fuel CI
    on docker container rebuilds.

    This reverts commit bc9c3117c7e542db33206927a597695aa38ecc6f.

    Change-Id: I18fe16cf8f0be40e30fec6229606d1d69cbfe73d
    Closes-Bug: #1521551

Changed in fuel:
status: In Progress → Fix Committed
Roman Vyalov (r0mikiam)
Changed in fuel:
status: Fix Committed → Triaged
assignee: Matthew Mosesohn (raytrac3r) → Fuel build team (fuel-build)
importance: Critical → High
assignee: Fuel build team (fuel-build) → Sergey Kulanov (skulanov)
Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

ISO build is broken now - still critical

Changed in fuel:
importance: High → Critical
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/251834

Changed in fuel:
assignee: Sergey Kulanov (skulanov) → Roman Vyalov (r0mikiam)
status: Triaged → In Progress
tags: added: area-build
removed: area-library
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-main (master)

Change abandoned by Roman Vyalov (<email address hidden>) on branch: master
Review: https://review.openstack.org/251834

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-main (master)

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

commit 9ddefc6327caf0039542841bd2cc1a1d78c6d539
Author: Roman Vyalov <email address hidden>
Date: Tue Dec 1 12:02:21 2015 +0000

    Revert "Revert "Separate CentOS from MOS""

    Fix the problem with separate repos to support rebuild docker

    1. Make a symlink for mos-centos in /var/www/nailgun in iso/ks.template
    2. Add mos-repos to the bootstrap_admin_node.sh

    This reverts commit 32b136301591277dd87f3d367c1370a8a093fb02.

    Closes-bug: #1521551
    Change-Id: I8ef58b581f253b26d158b725a9e366d7f1b3706d

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Maksym Strukov (unbelll) wrote :

Verified as fixed in 8.0-518

Changed in fuel:
status: Fix Committed → Fix Released
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.