[dib] build CDH minor version may failed because of repo not found

Bug #1682754 reported by Shu Yingya on 2017-04-14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Shu Yingya

Bug Description

DIB_LOCAL_IMAGE="/opt/stack/CentOS-7-x86_64-GenericCloud.qcow2" CENTOS_MIRROR="http://mirrors.163.com/centos/7/os/$basearch/" DIB_CDH_MINOR_VERSION=5.10.1 tox -e venv -- sahara-image-create -p cloudera -i centos7 -v 5.10

When I create a new CDH image, for example, CDH 5.10.1 with specified parameter DIB_CDH_MINOR_VERSION=5.10.1, the process can be failed because of HTTP Error 404

error message:
failure: repodata/repomd.xml from navigator-keytrustee: [Errno 256] No more mirrors to try.
http://archive.cloudera.com/navigator-keytrustee5/redhat/7/x86_64/navigator-keytrustee/5.10.1/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

Shu Yingya (felixshu) on 2017-04-14
Changed in sahara:
assignee: nobody → Shu Yingya (felixshu)
summary: - [dib] build CDH minor version may failed
+ [dib] build CDH minor version may failed because of repo not found

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

Changed in sahara:
status: New → In Progress

Reviewed: https://review.openstack.org/457159
Committed: https://git.openstack.org/cgit/openstack/sahara-image-elements/commit/?id=105577b6ca7edde849a288b4b09994507ae587ae
Submitter: Jenkins
Branch: master

commit 105577b6ca7edde849a288b4b09994507ae587ae
Author: Shu Yingya <email address hidden>
Date: Mon Apr 17 06:49:04 2017 +0000

    Fix 'navigator-keytrustee' repo not found error

    Build an image with DIB_CDH_MINOR_VERSION may fail
    because `navigator-keytrustee` doesn't release
    minor version sometimes, and then the repo will not
    be found.
    This patch determines whether the repo exists before
    writing repo url.

    Change-Id: I6bcd66264019847a08c2ba4c15da401567e57574
    Closes-Bug: 1682754

Changed in sahara:
status: In Progress → Fix Released

This issue was fixed in the openstack/sahara-image-elements development milestone.

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

Other bug subscribers