Up to now we only check for fedora, centos, centos7 and rhel. Rhel7 is
being added to allow the use of rhel7 images
Change-Id: Id0dfa9aab51ec7bb2fe4838c2aa0650f3f026128
The final state of review https://review.openstack.org/#/c/364363 ended
with the localize_repo function to enable the ecosystem repository
commented. It appears from a plain reading of the code that this was
an error.
Change-Id: I3100d73c8499e9deaf720a97dba71116a9a555b7
Support for bulding images for MapR 3.1.1 4.0.1 4.0.2
and mapr-spark must be removed since Sahara does not
support these versions in Mitaka release
Implements: blueprint deprecate-old-mapr-versions
Change-Id: I265007076a5031cca561a6a9096137a5d459b716
List of improvements:
1. Ecosystem repo is downloaded from repo instead of giant tar archive
2. Mapping of MapR packages moved from python script to separate json file
3. Versions of packages to keep are specified exactly instead of "several last versions"
4. Versions of packages to keep are specified in separate json files for each MapR version
5. Code for repo creating moved to separate script
6. curl and tar invocations merged together
7. Resources aren't copied to image
8. Removed unreachable code
9. Hive 0.12 was removed from remote repo so now it's removed from package list
Change-Id: I93ad9be3b02d5a2f6f0e4c13303ecce7ba32c84b
Implements: blueprint mapr-versions
In some cases unsafe if conditions can produce errors. Quotes should be used
to avoid problems with empty variables
Change-Id: Ia977bfa570ff9c3703a1a2dd370e1be0bf1b7a85
Closes-bug: #1463144
Following the latest dib-lint reporting, make sure almost all the
scripts are enabling -e, -u, and pipefail. This eases the discovery of
failing commands, and the usage of unset variables.
There are few exceptions with flags not set:
* elements/hadoop-hdp/install.d/40-install-hdp, set -e
when installing HDP 2.0, it tries to install tez, which does not seem
to exist in Hortonworks' repositories
* elements/ssh/install.d/33-ssh, set -e
the version of augtool (part of augeas 0.10) in older Ubuntu versions
(like Precise, needed by the cloudera plugin) exits with wrong return
values in autosave mode
* elements/storm/install.d/60-storm, set -e
It tries to change the permission of /etc/supervisord.conf, which does
not seem to exist
Change-Id: Ic1314639dfc6a66c48ca87b6820707a2b0cb1dbd
Partial-Bug: #1435306
Use default 'DISTRO_NAME' variable for check which distro is use
for current image build
Change-Id: Ieba71733fbcd554a1c7416efb0c4b740939d06a8
Closes-bug: #1436807
Mimic commit 36b59c001c1643217449646b371df46d2cb11b91 in
diskimage-builder, by adopting the usage of $DIB_DEBUG_TRACE to check
whether enable tracing in scripts.
Unlike with the diskimage-builder commit, the default is to not enable
tracing even in the few scripts that used to unconditionally "set -x".
Enabling tracing can be done by either:
- passing -x to disk-image-create
- exporting DIB_DEBUG_TRACE=N, with N=0/1
Change-Id: I56ccd6753df31f7ddda641640cdb1985b2d9e856
Partial-Bug: #1435306