Deploy-stack failed on task andrewrothstein.couchdb-cluster

Hello,

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

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

PLAY RECAP ************************************************************************************************************************************************************
172.19.4.43 : 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.