Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1575046 - image building: detection of scala packages was broken by the switch to https
image building: detection of scala packages was broken by the switch to https
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-sahara (Show other bugs)
13.0 (Queens)
Unspecified Unspecified
urgent Severity urgent
: beta
: 13.0 (Queens)
Assigned To: Telles Nobrega
Luigi Toscano
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-05-04 11:43 EDT by Luigi Toscano
Modified: 2018-06-27 09:56 EDT (History)
6 users (show)

See Also:
Fixed In Version: openstack-sahara-8.0.1-0.20180328233739.36531cb.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1575049 (view as bug list)
Environment:
Last Closed: 2018-06-27 09:55:29 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
OpenStack gerrit 566351 None master: MERGED sahara: Fix the detection of scala version (now https) (I9d28c2ad56292998a6b7aaea421b98e136fbf6e1) 2018-05-07 13:00 EDT
Red Hat Product Errata RHEA-2018:2086 None None None 2018-06-27 09:56 EDT
OpenStack Storyboard 2001964 None None None 2018-05-04 11:43 EDT

  None (edit)
Description Luigi Toscano 2018-05-04 11:43:32 EDT
Description of problem:
Apparently very recently the scala website switched to https. The current code which detects the last version of the scala packages is:

VERSION="$(curl -s --fail http://www.scala-lang.org| tr -d '\n' | sed 's/^.*<div[^<]\+scala-version">[^0-9]\+\([0-9\.\?]\+\)<.\+$/\1/')"

The website redirects to https://www.scala-lang.org but curl does not follow the redirect. So either -L should be added or the address should be switched to https. Bonus point for adding both.

This problem affects both sahara-image-create and sahara-image-pack and all versions of Sahara (but only CentOS, because the version on Ubuntu is hardcoded due to the old version of JDK on Trusty).

There is also a second issue: the code should fallback on the default version of scala (currently 2.11.6) and not fail globally.


Version-Release number of selected component (if applicable):
(all versions, including the current packages:
openstack-sahara-8.0.1-0.20180328233738.36531cb.el7ost 
)


Steps to Reproduce:
run
$ sahara-image-pack --image <rhel-guest-image>.qcow2 mapr 5.2.0.mrv2
see it fail when it should install Scala packages.
Comment 4 Luigi Toscano 2018-05-09 05:45:59 EDT
The scala version is now detected and the scala package is installed during the creation of the image.

Verified with:
openstack-sahara-image-pack-8.0.1-0.20180328233739.36531cb.el7ost
Comment 7 errata-xmlrpc 2018-06-27 09:55:29 EDT
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-2018:2086

Note You need to log in before you can comment on or make changes to this bug.