quickstart fails trying to map project name tripleo-docs for dlrn

Bug #1679650 reported by James Slagle
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Sagi (Sergey) Shnaidman

Bug Description

This job:

http://logs.openstack.org/14/451914/3/check/gate-tripleo-ci-centos-7-nonha-multinode-oooq/68b8adf/

Fails with this error:

http://logs.openstack.org/14/451914/3/check/gate-tripleo-ci-centos-7-nonha-multinode-oooq/68b8adf/console.html#_2017-04-04_04_30_00_225341

2017-04-04 04:30:00.225341 | TASK [build-test-packages : Map project name to DLRN project name] *************
2017-04-04 04:30:00.225439 | task path: /home/jenkins/workspace/gate-tripleo-ci-centos-7-nonha-multinode-oooq/.quickstart/usr/local/share/ansible/roles/build-test-packages/tasks/dlrn-build.yml:33
2017-04-04 04:30:00.257532 | Tuesday 04 April 2017 04:30:00 +0000 (0:00:02.543) 0:06:23.777 *********
2017-04-04 04:30:02.511020 | fatal: [undercloud]: FAILED! => {"changed": true, "cmd": "source /home/jenkins/dlrn-venv/bin/activate; export PROJECT_NAME=$(echo openstack/tripleo-docs | sed \"s|openstack/||\"); rdopkg findpkg $PROJECT_NAME -l rdoinfo | grep ^name | awk '{print $2}'", "delta": "0:00:00.750911", "end": "2017-04-04 04:30:02.483429", "failed": true, "failed_when_result": true, "rc": 0, "start": "2017-04-04 04:30:01.732518", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}

It looks like it's trying to map tripleo-docs to a package name, but there isn't one, so the command fails. The patch being tested has a Depends-On for a patch for tripleo-docs:

https://review.openstack.org/#/c/451914/3

In tripleo.sh we do:

        # Work around inconsistency where map-project-name expects oslo-*
        MAPPED_NAME=$(echo $PROJ | sed "s/oslo./oslo-/")
        MAPPED_PROJ=$(./venv/bin/python scripts/map-project-name $MAPPED_NAME || true)

It uses the map-project-name from dlrn (I guess) and it's allowed to fail gracefully in case the package does not exist.

Tags: ci quickstart
Changed in tripleo-quickstart:
importance: Undecided → High
Revision history for this message
John Trowbridge (trown) wrote :

I think lp integration didnt work because this was filed under tripleo-quickstart... need to figure out how to close tripleo-quickstart lp.

https://review.openstack.org/#/c/453326/ should fix this though.

no longer affects: tripleo-quickstart
Changed in tripleo:
status: New → Triaged
importance: Undecided → High
milestone: none → pike-1
assignee: nobody → John Trowbridge (trown)
tags: added: ci quickstart
Changed in tripleo:
status: Triaged → In Progress
Changed in tripleo:
milestone: pike-1 → pike-2
Changed in tripleo:
assignee: John Trowbridge (trown) → Alex Schultz (alex-schultz)
Changed in tripleo:
milestone: pike-2 → pike-3
Changed in tripleo:
assignee: Alex Schultz (alex-schultz) → Sagi (Sergey) Shnaidman (sshnaidm)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart-extras (master)

Reviewed: https://review.openstack.org/453326
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart-extras/commit/?id=1ba891036e6a0fa5a61cd035808e0084ee9f2e25
Submitter: Jenkins
Branch: master

commit 1ba891036e6a0fa5a61cd035808e0084ee9f2e25
Author: John Trowbridge <email address hidden>
Date: Tue Apr 4 20:38:11 2017 +0000

    Allow depending on changes we dont actually build

    It is common practice in TripleO to depend on a documentation
    change when changing some aspect of CI or dev tooling. However, we
    can not actually build a package from these changes, so the job
    will fail.

    This change makes sure we only try to build the package if it maps
    to some package in rdoinfo. A debug message will be printed if no
    package is found.

    Change-Id: I076d1ed89bc8707630841cbcb2683295e935a944
    Closes-Bug: 1679650
    Co-Authored-By: Alex Schultz <email address hidden>

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-quickstart-extras 2.1.0

This issue was fixed in the openstack/tripleo-quickstart-extras 2.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-quickstart-extras 2.1.1

This issue was fixed in the openstack/tripleo-quickstart-extras 2.1.1 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.