Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EL8 support to Cloudera Collections #62

Merged
merged 4 commits into from
Nov 24, 2021

Conversation

Chaffelson
Copy link
Collaborator

Change cloudera-deploy defaults to el7, but allow el8 to be specified and recognised
Update utility VM used for download mirror to function correctly with el7 or el8 OS
Add default_cluster tag to cluster.yml playbook CM Agent heartbeat test to avoid obscure failures

Signed-off-by: Daniel Chaffelson chaffelson@gmail.com

@Chaffelson Chaffelson marked this pull request as draft September 22, 2021 16:10
@Chaffelson Chaffelson marked this pull request as ready for review September 24, 2021 11:14
@Chaffelson
Copy link
Collaborator Author

To Test:
add the key parcel_distro: to your definition.yml, specifying either el8, el7, or bionic.
This works particularly well with the examples/sandbox definition, as Cloudera-Deploy will automatically build the requisite infrastructure if you also add the infra: key, and use the deployment tags -t infra,default_cluster.

Therefore you can use the following definition.yml for an automatic test:

use_default_cluster_definition: yes
use_download_mirror: yes
preload_cm_parcel_repo: yes
infra:
parcel_distro: bionic

With the quickstart.sh command: ansible-playbook project/cloudera-deploy/main.yml -e "definition_path=examples/sandbox" -t infra,default_cluster

Note that you may have to log into your AWS console to accept the subscription to the new AMI types if you've not deployed centos8 (for el8) and Ubuntu (bionic) previously on that AWS account.

Set default CM version to 7.4.4 in cloudera.cluster
Derive parcel version of el7 or el8 from inventory target OS family in cloudera.cluster.cloudera_manager.repo
Ensure that Python2/3 are present on nodes when deploying on Rhel8 family OS
Change cloudera-deploy defaults to el7, but allow el8 to be specified and recognised
Update utility VM used for download mirror to function correctly with el7 or el8 OS
Add default_cluster tag to cluster.yml playbook CM Agent heartbeat test to avoid obscure failures

Signed-off-by: Daniel Chaffelson <chaffelson@gmail.com>
Enable by setting parcel_distro in definition to [el7, el8, or bionic] per dynamic OS options in cloudera.exe.infrastructure.vars
Change default dynamic inventory selection strings from 'centos7' to match the distribution identity strings of el7 etc. - user can update defaults to a different el7 distro etc. in cloudera.exe.infrastructure.vars
Add Ubuntu 18.04 'bionic' as option to dynamic inventory
Determine preferred parcel distribution in cloudera-deploy init
Add uniqueness to generated dynamic inventory VM name to reflect selection of distribution in case multiple clusters are deployed in the same account
Move dynamic inventory OS selection to globals, update appropriate reference docs to reflect change
Add filtering by distro to download mirror support, and ensure that manifest is still always collected
Enforce no_log always when working with Paywall credentials
Increase initial paywall download timeout to 7200s due to present CDN speed issues when deploying on EC2 outside of us-east-1
Modify ansible.builtin.package lock_timeout to only be used on RedHat, as it is not a Debian option
Pass selected parcel distribution to repo analysis during intial deployment when target cluster OS is not yet determined by deployment
Move cloudera.cluster plays which require knowledge of the cluster distribution to run on the cloudera_manager host instead of the Ansible controller so the correct distribution actions are applied
Fix extract_products_from_manifests filter in cloudera.cluster to correctly reference self and process os_distribution value
Fix import ordering in cloudera.cluster filters.py to not break under recent versions of Python3
Add distribution specific tasks for cloudera.cluster.deployment.repometa so it can identify the cluster distribution using the strings recognised by Cloudera Manager deployment
Force refresh of apt package cache on Debian distributions during OS prereqs setup in cloudera.cluster as the package cache in the image is sometimes missing packages

Signed-off-by: Daniel Chaffelson <chaffelson@gmail.com>
Pin boto3 version <1.18 when using Python2 for s3sync to work
Set GPG to not be checked by default when deploying cm5
Set variants for cm5 and cm6/7 paths for cloudera manager URL

Signed-off-by: Daniel Chaffelson <chaffelson@gmail.com>
Add support for Ubuntu 20.04 focal fossa
Download mirror now correctly works with Ubuntu 18 or 20
Fix issue for boto3 depending on py2 or py3
Ensure os prerequisites are also applied to the ca_server node

Signed-off-by: Daniel Chaffelson <chaffelson@gmail.com>
@wmudge wmudge merged commit e26f51e into cloudera-labs:devel Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants