Skip to content
New issue

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

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

Already on GitHub? # to your account

Molecule tests v0.1 #59

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

lhoss
Copy link
Contributor

@lhoss lhoss commented Nov 29, 2019

Howto run:

# ps: ansible >2.8.2 works fine also (but not 2.9.0, see the README)
pip2 install ansible==2.9.1 
pip2 install molecule==2.22

# simple cmd
cd <repo base folder>
molecule test

# the same, but avoid the 'destroy' (if something fails for ex.):
molecule test --destroy=never --scenario-name default

Early version Notes:

TODOs

  • travis build
    • try with suited small CDH host_templates (that allow a CDH cluster install with the 7.5GB VM memory limit of travis, free tier)
  • more tests
  • multi nodes installs
  • test matrix for various versions, DBs , etc

@lhoss
Copy link
Contributor Author

lhoss commented Nov 29, 2019

to run the ansible deployment as non root/sudo user, p.eg on your local PC/Mac, with Molecule:
patch_diff__disable_need_for_local_sudo.patch.txt

@lhoss
Copy link
Contributor Author

lhoss commented Dec 6, 2019

I added a simple .travis file , but WIP to get till the CM deploying a cluster.
Current build iterations

  • build °1: just an intermittent pip repo download issue (it seems)
  • build °2: issue with the delegate_to: localhost task (that I patched above), which also fails in travis (for another reason, than the 'sudo' prompt on my local notebook)
  • build °3: build (https://travis-ci.com/scigility/cloudera-playbook/builds/139780029)
    • fixed by "pip install jmespath"
    • orig error:
# the task after "Discover product versions from parcel manifests"
    TASK [cdh : set_fact] **********************************************************
    fatal: [centos7-cdh01.local]: FAILED! => {"msg": "You need to install \"jmespath\" prior to running json_query filter"}
TASK [cdh : Wait for import cluster template command to complete] **************
...
FAILED - RETRYING: Wait for import cluster template command to complete (8 retries left).
    fatal: [centos7-cdh01.local]: FAILED! => {"msg": "The conditional check 'not result.json.active' failed. The error was: error while evaluating conditional (not result.json.active): 'dict object' has no attribute 'json'"}

@lhoss
Copy link
Contributor Author

lhoss commented Jul 10, 2020

Updated my branch:

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant