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:
Steps to Reproduce:
$ sahara-image-pack --image <rhel-guest-image>.qcow2 mapr 5.2.0.mrv2
see it fail when it should install Scala packages.
The scala version is now detected and the scala package is installed during the creation of the image.
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.