You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation how to install/setup plugin (it is module in ansible meaning) is pure. I understand that this is not in Ansible. Anyway there should be solid instructions how to install it properly
I cloned this repo and placed into this path: /usr/lib/python2.7/dist-packages/ansible/modules/cloud/subutai
fatal: [jenkins]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 192.168.121.188 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_YCtJ1n/ansible_module_subutai_clone.py\", line 161, in <module>\r\n main()\r\n File \"/tmp/ansible_YCtJ1n/ansible_module_subutai_clone.py\", line 158, in main\r\n run_module()\r\n File \"/tmp/ansible_YCtJ1n/ansible_module_subutai_clone.py\", line 134, in run_module\r\n if container_exists(module.params['child']):\r\n File \"/tmp/ansible_YCtJ1n/ansible_module_subutai_clone.py\", line 150, in container_exists\r\n out = subprocess.Popen([\"/snap/bin/subutai\", \"list\"], stdout=subprocess.PIPE).stdout.read()\r\n File \"/usr/lib/python2.7/subprocess.py\", line 390, in __init__\r\n errread, errwrite)\r\n File \"/usr/lib/python2.7/subprocess.py\", line 1024, in _execute_child\r\n raise child_exception\r\nOSError: [Errno 2] No such file or directory\r\n", "msg": "MODULE FAILURE", "rc": 1}
With agent cli I usually do like this:
subutai import debian-stretch
subutai clone debian-stretch new_name which creates container from debian-stretch template
So It seems to me subutai_clone does not work as agent does
1 - The easiest way is using the entire fork from https://github.com/liquuid/ansible, but this is based on ansible 2.6, the subutai module was tested on this version. But, should work if you drop subutai.py on your system ansible module dir. I had not tested this way.
2 - Not all functionality was covered by subutai.py at this time, the Red Hat ansible people ask to make a small first PR. That's why several agent capabilities is not in this consolidated version.
3-4 - Those modules subutai_* are outdated, they not will work on subutai 7.x
I can help you mantaining a full featured version of this module in sync with subutai 7, separated from small one to be reviewed by ansible upstream community.
Can you create a new issue with all modules you'll need ? I'll will work on that ASAP.
Documentation how to install/setup plugin (it is module in ansible meaning) is pure. I understand that this is not in Ansible. Anyway there should be solid instructions how to install it properly
I cloned this repo and placed into this path: /usr/lib/python2.7/dist-packages/ansible/modules/cloud/subutai
I imported debian-stretch template like this:
and it worked:
builder
name using like this:it fails:
With agent cli I usually do like this:
subutai import debian-stretch
subutai clone debian-stretch new_name
which creates container fromdebian-stretch
templateSo It seems to me
subutai_clone
does not work as agent doesAlso there a lot of modules missed in repo.
@liquuid pls. help
The text was updated successfully, but these errors were encountered: