Bug 1409613

Summary: Cloudera image creation for Sahara fails - http://archive.cloudera.com/cdh5/redhat/7/x86_64/cdh/.0/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Product: Red Hat OpenStack Reporter: Chris Janiszewski <cjanisze>
Component: sahara-image-elementsAssignee: Elise Gafford <egafford>
Status: CLOSED ERRATA QA Contact: Luigi Toscano <ltoscano>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 10.0 (Newton)CC: cjanisze, egafford, jschluet, matt, scohen, tenobreg
Target Milestone: betaFlags: cjanisze: needinfo-
Target Release: 11.0 (Ocata)   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: sahara-image-elements-6.0.0-6.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-17 19:53:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chris Janiszewski 2017-01-02 15:43:09 UTC
Description of problem:
Cloudera image creation for Sahara fails - http://archive.cloudera.com/cdh5/redhat/7/x86_64/cdh/.0/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

There seems to be an error on how link to repodata.xml is being generated .. please see the version in the link.

more output:
####################

+ install-packages -e
Nothing to uninstall
dib-run-parts Mon Jan  2 10:00:02 EST 2017 99-package-uninstalls completed
dib-run-parts Mon Jan  2 10:00:02 EST 2017 ----------------------- PROFILING -----------------------
dib-run-parts Mon Jan  2 10:00:02 EST 2017 
dib-run-parts Mon Jan  2 10:00:02 EST 2017 Target: pre-install.d
dib-run-parts Mon Jan  2 10:00:02 EST 2017 
dib-run-parts Mon Jan  2 10:00:02 EST 2017 Script                                     Seconds
dib-run-parts Mon Jan  2 10:00:02 EST 2017 ---------------------------------------  ----------
dib-run-parts Mon Jan  2 10:00:02 EST 2017 
dib-run-parts Mon Jan  2 10:00:02 EST 2017 00-check-java                                 0.002
dib-run-parts Mon Jan  2 10:00:02 EST 2017 00-dnf-update                                 0.002
dib-run-parts Mon Jan  2 10:00:02 EST 2017 00-fix-requiretty                             0.005
dib-run-parts Mon Jan  2 10:00:02 EST 2017 00-rhel-registration                         66.583
dib-run-parts Mon Jan  2 10:00:02 EST 2017 00-rhsm                                       0.002
dib-run-parts Mon Jan  2 10:00:02 EST 2017 00-usr-local-bin-secure-path                  0.004
dib-run-parts Mon Jan  2 10:00:02 EST 2017 01-dib-python                                 0.003
dib-run-parts Mon Jan  2 10:00:02 EST 2017 01-install-bin                                0.004
dib-run-parts Mon Jan  2 10:00:02 EST 2017 01-override-yum-arch                          0.002
dib-run-parts Mon Jan  2 10:00:02 EST 2017 01-yum-keepcache                              0.004
dib-run-parts Mon Jan  2 10:00:02 EST 2017 02-package-installs                           5.163
dib-run-parts Mon Jan  2 10:00:02 EST 2017 03-baseline-tools                             0.002
dib-run-parts Mon Jan  2 10:00:02 EST 2017 04-dib-init-system                            0.004
dib-run-parts Mon Jan  2 10:00:02 EST 2017 10-add-mirror                                 1.097
dib-run-parts Mon Jan  2 10:00:02 EST 2017 10-rhel-blacklist                             0.002
dib-run-parts Mon Jan  2 10:00:02 EST 2017 76-unlimited-security-artifacts               0.760
dib-run-parts Mon Jan  2 10:00:02 EST 2017 99-package-uninstalls                         0.033
dib-run-parts Mon Jan  2 10:00:02 EST 2017 
dib-run-parts Mon Jan  2 10:00:02 EST 2017 --------------------- END PROFILING ---------------------
dib-run-parts Mon Jan  2 10:00:02 EST 2017 Running /tmp/in_target.d/install.d/00-baseline-environment
Running install-packages install. Package list: iscsi-initiator-utils
Not loading "rhnplugin" plugin, as it is disabled
Not loading "product-id" plugin, as it is disabled
Loading "search-disabled-repos" plugin
Not loading "subscription-manager" plugin, as it is disabled
Config time: 0.032
Yum version: 3.4.3
rpmdb time: 0.000
Setting up Package Sacks
http://archive.cloudera.com/cdh5/redhat/7/x86_64/cdh/.0/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article 

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

################################



Version-Release number of selected component (if applicable):
OSP10

How reproducible:
Every time

Steps to Reproduce:
1. yum install sahara-image-elements -y
2. download rhel7.qcow2 from CDN
3. sahara-image-create -p cloudera

Actual results:
failure: repodata/repomd.xml from cloudera-cdh5: [Errno 256] No more mirrors to try.

Expected results:
cloudera image created

Additional info:
Building MapR and Hortonworks image with the same method worked good.

Comment 1 Luigi Toscano 2017-01-02 15:48:34 UTC
Does it work if you specify the version of cloudera (-v 5.7) ?

Comment 2 Chris Janiszewski 2017-01-02 16:17:38 UTC
I have specified -v 5.5 and no longer got an error.
Maybe this is something that could be fixed in docs:
https://access.redhat.com/documentation/en/red-hat-openstack-platform/10/paged/%e2%81%a0openstack-data-processing/ Chapter 4 calls for specifying version with Hortonworks, but doesn't mention Cloudera

Comment 3 Luigi Toscano 2017-01-20 12:16:39 UTC
Hi, do you have some time to test the following patch?
https://review.openstack.org/#/c/423236/

Comment 9 Luigi Toscano 2017-03-29 21:49:32 UTC
No error when running 
$ sahara-image-create -p cloudera

Verified on:

sahara-image-elements-6.0.0-7.el7ost.noarch
diskimage-builder-1.27.1-0.20170302013848.65c6da5.el7ost.noarch
dib-utils-0.0.11-1.el7ost.noarch

Comment 10 errata-xmlrpc 2017-05-17 19:53:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:1245