package epel-release-7-8 is not installed

Bug #1657048 reported by sven mark
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
Medium
Unassigned

Bug Description

When installing MapR into a cluster on CentOS 7, the plugin tries to download epel release version 7-8 from the url http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm.

This release version is not available anymore and should be replaced with epel-release-7-9 on the url rpm -i http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm

bug https://bugs.launchpad.net/sahara/+bug/1615761 is because 7-5,why can not replace with yum install -y epel-release to solve the problem permanently in /opt/stack/sahara/sahara/plugins/mapr/resources/add_mapr_repo.sh(31) with:

    release=`cat /etc/*-release`
    if [[ $release =~ 6\.[0-9] ]]; then
        rpm -q epel-release-6-8 || \
            rpm -i http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    elif [[ $release =~ 7\.[0-9] ]]; then
        rpm -q epel-release-7-8 || \
            rpm -i http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
    else
        echo "Unsupported distribution version"
        exit 1
    fi

sven mark (svenmark)
description: updated
Changed in sahara:
milestone: none → pike-1
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sahara (master)

Reviewed: https://review.openstack.org/421626
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=675bca25b96afe07d4400ef4b991bfb99313b7a1
Submitter: Jenkins
Branch: master

commit 675bca25b96afe07d4400ef4b991bfb99313b7a1
Author: svenmark <email address hidden>
Date: Tue Jan 17 18:15:42 2017 +0800

    Fixing epel-release bug on MapR cluster installation

    When installing MapR into a cluster on CentOS 7, the plugin tries to
    download epel release version 7-8 from the url http://download.
    fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm.
    This release version is not available anymore and should be replaced
    with epel-release-7-9 on the url rpm -i http://download.
    fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
    bug https://bugs.launchpad.net/sahara/+bug/1615761 is because 7-5,
    why can not replace with yum install -y epel-release to solve the
    problem permanently in /opt/stack/sahara/sahara/plugins/mapr/
    resources/add_mapr_repo.sh(31).

    Closes-Bug:#1657048

    Change-Id: I7705be363e99f10472dbf0ea3bb189228cbaf65f

Changed in sahara:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/sahara 7.0.0.0b1

This issue was fixed in the openstack/sahara 7.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to sahara (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/530480

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to sahara (master)

Reviewed: https://review.openstack.org/530480
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=9cc5a41fe46319f56b9fe7507d31e875f977182e
Submitter: Zuul
Branch: master

commit 9cc5a41fe46319f56b9fe7507d31e875f977182e
Author: Luigi Toscano <email address hidden>
Date: Fri Dec 29 17:17:06 2017 +0100

    RHEL: fix distro detection and EPEL configuration

    Distribution detection was working and it probably broke with RHEL 7.4.
    This issue affects at least the MapR plugin, which installs few packages
    at run-time and it fails to find the distribution.
    A new field was added (internal_name) and used only for the comparison
    because the 'name' proprty is used as parameter in other scripts and
    changing it would touch a lot of code.

    Also, fix the installation of EPEL repository, which was fixed
    some time ago (from Pike) so that it did not depend on a specific
    hardcoded version, but the fix worked only on CentOS, not on RHEL
    where the epel-release package is not available.

    Closes-Bug: #1740511
    Related-Bug: #1657048
    Change-Id: I21dc029f7bf556cd7dc0150ac2d7609494dba2fc

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to sahara (stable/pike)

Related fix proposed to branch: stable/pike
Review: https://review.openstack.org/530653

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to sahara (stable/pike)

Reviewed: https://review.openstack.org/530653
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=058780833901847bad041ff1319e51f5bdba17c3
Submitter: Zuul
Branch: stable/pike

commit 058780833901847bad041ff1319e51f5bdba17c3
Author: Luigi Toscano <email address hidden>
Date: Fri Dec 29 17:17:06 2017 +0100

    RHEL: fix distro detection and EPEL configuration

    Distribution detection was working and it probably broke with RHEL 7.4.
    This issue affects at least the MapR plugin, which installs few packages
    at run-time and it fails to find the distribution.
    A new field was added (internal_name) and used only for the comparison
    because the 'name' proprty is used as parameter in other scripts and
    changing it would touch a lot of code.

    Also, fix the installation of EPEL repository, which was fixed
    some time ago (from Pike) so that it did not depend on a specific
    hardcoded version, but the fix worked only on CentOS, not on RHEL
    where the epel-release package is not available.

    Closes-Bug: #1740511
    Related-Bug: #1657048
    Change-Id: I21dc029f7bf556cd7dc0150ac2d7609494dba2fc
    (cherry picked from commit 9cc5a41fe46319f56b9fe7507d31e875f977182e)

tags: added: in-stable-pike
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.