Deploy-stack failed on task andrewrothstein.couchdb-cluster


I was trying to expand CouchDB cluster. the process failed with the following detail.

TASK [andrewrothstein.couchdb-cluster : configurate…] **************************************************************************************************************
ok: [] => (item={‘f’: ‘httpd_proxies.ini’})
ok: [] => (item={‘f’: ‘chttpd.ini’})
failed: [] (item={‘f’: ‘admins.ini’}) => {“ansible_loop_var”: “item”, “changed”: false, “item”: {“f”: “admins.ini”}, “msg”: “AnsibleUndefinedVariable: ‘dict object’ has no attribute ‘iteritems’”}
ok: [] => (item={‘f’: ‘ssl.ini’})
ok: [] => (item={‘f’: ‘daemons.ini’})
ok: [] => (item={‘f’: ‘couchdb.ini’})
ok: [] => (item={‘f’: ‘httpd.ini’})
ok: [] => (item={‘f’: ‘cluster.ini’})
ok: [] => (item={‘f’: ‘compactions.ini’})
ok: [] => (item={‘f’: ‘log.ini’})
ok: [] => (item={‘f’: ‘query_server_config.ini’})
ok: [] => (item={‘f’: ‘vm.args’, ‘d’: ‘/usr/local/couchdb2/couchdb/etc’})

PLAY RECAP ************************************************************************************************************************************************************ : ok=114 changed=4 unreachable=0 failed=1 skipped=128 rescued=0 ignored=0

✗ Check failed with status code 2

Hi @demis08,

This is currently a bug with the python 3 version of commcare-cloud due to an issue with one of our dependencies. We’re working to fix it with the upstream couchdb-cluster role, but in the mean time you should be able to fall back to using python 2 with commcare cloud.

# Activate Python-2.7-based virtualenv (create if necessary)
$ pip install -r requirements.txt
$ pip install -e .
$ m src/commcare_cloud.egg-info/requires.txt
$ manage-commcare-cloud install

You can then re-run the command with the extra --force-commcare-cloud-to-use-python2 argument.

Sorry for the inconvenience!

  • Farid

The bug is now fixed in commcare-cloud on Python 3. Thanks for reporting!

Thanks, it’s working now.