Re: [openstack-dev] [openstack-ansible][openstack-ansible-plugins] error in rabbitmq installation , config template plugin
Yes config_template is there, I have cloned the whole git project, not specific files Thanks -Original Message- From: Logan V. [mailto:lo...@protiumit.com] Sent: יום ה 17 נובמבר 2016 16:25 To: OpenStack Development Mailing List (not for usage questions) Subject: Re: [openstack-dev] [openstack-ansible][openstack-ansible-plugins] error in rabbitmq installation , config template plugin Hi Tomer, I noticed you said you have _v2_config_template.py in your action plugins path, but you should also have verify you have the "config_template" in your library path: ie. https://github.com/openstack/openstack-ansible-plugins/blob/master/library/config_template On Thu, Nov 17, 2016 at 8:11 AM, Shtilman, Tomer (Nokia - IL) <tomer.shtil...@nokia.com> wrote: > Many thanks > > I was aware of the dependencies and download them all to > > /home/centos/ansible-installation/roles/dependencies > > > > [centos@ansible-tests-tshtilma dependencies]$ ls > > apt_package_pinning lxc_container_create lxc_hosts openstack_hosts > pip_install > > > > also my test playbook was taken from the examples so its almost > identical > > > > Thanks > > > > > > > > > > > > > > From: Jesse Pretorius [mailto: ] > Sent: יום ה 17 נובמבר 2016 15:45 > To: OpenStack Development Mailing List (not for usage questions) > Subject: Re: [openstack-dev] > [openstack-ansible][openstack-ansible-plugins] > error in rabbitmq installation , config template plugin > > > > The error you’re seeing is because that role has dependencies which > can’t be resolved. > > > > The deps are here: > > https://github.com/openstack/openstack-ansible-rabbitmq_server/blob/st > able/newton/meta/main.yml#L35 > > > > The roles are mostly designed to be re-usable without the integrated > repository, but to do so you’ll need to inspect the role tests to see > what it needs to work: > > > > Role requirements, to resolve the meta deps: > > https://github.com/openstack/openstack-ansible-rabbitmq_server/blob/st > able/newton/tests/ansible-role-requirements.yml > > > > An example inventory, playbook, etc is all here: > > https://github.com/openstack/openstack-ansible-rabbitmq_server/tree/st > able/newton/tests > > > > If you get stuck, feel free to join us in #openstack-ansible in IRC on > Freenode. > > > > HTH, > > > > Jesse > > IRC: odyssey4me > > > > From: "Shtilman, Tomer (Nokia - IL)" <tomer.shtil...@nokia.com> > Reply-To: "OpenStack Development Mailing List (not for usage questions)" > <openstack-dev@lists.openstack.org> > Date: Thursday, November 17, 2016 at 1:33 PM > To: "openstack-dev@lists.openstack.org" > <openstack-dev@lists.openstack.org> > Subject: [openstack-dev] > [openstack-ansible][openstack-ansible-plugins] > error in rabbitmq installation , config template plugin > > > > Hi All > > I am relatively new to Ansible, trying to run a playbook installing > rabbit server > https://github.com/openstack/openstack-ansible-rabbitmq_server (all > stable/newton) > > > > - name: Install RabbitMQ server > > hosts: rabbitmq_all > > user: root > > roles: > > - { role: "rabbitmq_server", tags: [ "rabbitmq-server" ] } > > vars: > > rabbitmq_cookie_token: secrete > > > > > > I get an error: > > > > statically included: > /home/centos/ansible-installation/roles/dependencies/pip_install/tasks > /configure.yml > > ERROR! no action detected in task. This often indicates a misspelled > module name, or incorrect module path. > > > > The error appears to have been in > '/home/centos/ansible-installation/roles/dependencies/pip_install/tasks/configure.yml': > line 40, column 3, but may > > be elsewhere in the file depending on the exact syntax problem. > > > > The offending line appears to be: > > > > > > - name: Drop pip global config(s) > > ^ here > > > > > > The task is : > > - name: Drop pip global config(s) > > config_template: > > src: "global.conf.j2" > > …… > > > > > > > > config_template task is coming from > https://github.com/openstack/openstack-ansible-plugins/blob/master/act > ion/_v2_config_template.py > and cloned locally > > also I have set the action_plugins = > /home/centos/openstack-ansible-plugins:/home/centos/openstack-ansible- > plugins/action > > from a bit of debugging its look like the the path is scanned > > > > Any ideas will be appreciated >
Re: [openstack-dev] [openstack-ansible][openstack-ansible-plugins] error in rabbitmq installation , config template plugin
Hi Tomer, I noticed you said you have _v2_config_template.py in your action plugins path, but you should also have verify you have the "config_template" in your library path: ie. https://github.com/openstack/openstack-ansible-plugins/blob/master/library/config_template On Thu, Nov 17, 2016 at 8:11 AM, Shtilman, Tomer (Nokia - IL) <tomer.shtil...@nokia.com> wrote: > Many thanks > > I was aware of the dependencies and download them all to > > /home/centos/ansible-installation/roles/dependencies > > > > [centos@ansible-tests-tshtilma dependencies]$ ls > > apt_package_pinning lxc_container_create lxc_hosts openstack_hosts > pip_install > > > > also my test playbook was taken from the examples so its almost identical > > > > Thanks > > > > > > > > > > > > > > From: Jesse Pretorius [mailto: ] > Sent: יום ה 17 נובמבר 2016 15:45 > To: OpenStack Development Mailing List (not for usage questions) > Subject: Re: [openstack-dev] [openstack-ansible][openstack-ansible-plugins] > error in rabbitmq installation , config template plugin > > > > The error you’re seeing is because that role has dependencies which can’t be > resolved. > > > > The deps are here: > > https://github.com/openstack/openstack-ansible-rabbitmq_server/blob/stable/newton/meta/main.yml#L35 > > > > The roles are mostly designed to be re-usable without the integrated > repository, but to do so you’ll need to inspect the role tests to see what > it needs to work: > > > > Role requirements, to resolve the meta deps: > > https://github.com/openstack/openstack-ansible-rabbitmq_server/blob/stable/newton/tests/ansible-role-requirements.yml > > > > An example inventory, playbook, etc is all here: > > https://github.com/openstack/openstack-ansible-rabbitmq_server/tree/stable/newton/tests > > > > If you get stuck, feel free to join us in #openstack-ansible in IRC on > Freenode. > > > > HTH, > > > > Jesse > > IRC: odyssey4me > > > > From: "Shtilman, Tomer (Nokia - IL)" <tomer.shtil...@nokia.com> > Reply-To: "OpenStack Development Mailing List (not for usage questions)" > <openstack-dev@lists.openstack.org> > Date: Thursday, November 17, 2016 at 1:33 PM > To: "openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org> > Subject: [openstack-dev] [openstack-ansible][openstack-ansible-plugins] > error in rabbitmq installation , config template plugin > > > > Hi All > > I am relatively new to Ansible, trying to run a playbook installing rabbit > server https://github.com/openstack/openstack-ansible-rabbitmq_server (all > stable/newton) > > > > - name: Install RabbitMQ server > > hosts: rabbitmq_all > > user: root > > roles: > > - { role: "rabbitmq_server", tags: [ "rabbitmq-server" ] } > > vars: > > rabbitmq_cookie_token: secrete > > > > > > I get an error: > > > > statically included: > /home/centos/ansible-installation/roles/dependencies/pip_install/tasks/configure.yml > > ERROR! no action detected in task. This often indicates a misspelled module > name, or incorrect module path. > > > > The error appears to have been in > '/home/centos/ansible-installation/roles/dependencies/pip_install/tasks/configure.yml': > line 40, column 3, but may > > be elsewhere in the file depending on the exact syntax problem. > > > > The offending line appears to be: > > > > > > - name: Drop pip global config(s) > > ^ here > > > > > > The task is : > > - name: Drop pip global config(s) > > config_template: > > src: "global.conf.j2" > > …… > > > > > > > > config_template task is coming from > https://github.com/openstack/openstack-ansible-plugins/blob/master/action/_v2_config_template.py > and cloned locally > > also I have set the action_plugins = > /home/centos/openstack-ansible-plugins:/home/centos/openstack-ansible-plugins/action > > from a bit of debugging its look like the the path is scanned > > > > Any ideas will be appreciated > > Tomer > > > > > > Rackspace Limited is a company registered in England & Wales (company > registered number 03897010) whose registered office is at 5 Millington Road, > Hyde Park Hayes, Middlesex UB3 4AZ. Rackspace Limited privacy policy can be > viewed at www.rackspace.co.uk/legal/privacy-policy - This e-mail message may > contain confidential or privileged information intended for the recipient. >
Re: [openstack-dev] [openstack-ansible][openstack-ansible-plugins] error in rabbitmq installation , config template plugin
From: "Shtilman, Tomer (Nokia - IL)" <tomer.shtil...@nokia.com> Date: Thursday, November 17, 2016 at 2:11 PM To: "OpenStack Development Mailing List (not for usage questions)" <openstack-dev@lists.openstack.org>, Jesse Pretorius <jesse.pretor...@rackspace.co.uk> Subject: RE: [openstack-dev] [openstack-ansible][openstack-ansible-plugins] error in rabbitmq installation , config template plugin Many thanks I was aware of the dependencies and download them all to /home/centos/ansible-installation/roles/dependencies [centos@ansible-tests-tshtilma dependencies]$ ls apt_package_pinning lxc_container_create lxc_hosts openstack_hosts pip_install also my test playbook was taken from the examples so its almost identical Ah, then seeing as you’re not using one of the standard search paths for ansible to find the roles, you’ll have to tell it where to find them through the standard environment variables or via an ansible.cfg file. You’ll need to do that for the plugins too. For the role tests we implement the roles in ~/.ansible/roles and the plugins in ~/.ansible/plugins – those are both default search paths for Ansible to check. One more required setting is the library location, which we set to ~/.ansible/plugins/library Rackspace Limited is a company registered in England & Wales (company registered number 03897010) whose registered office is at 5 Millington Road, Hyde Park Hayes, Middlesex UB3 4AZ. Rackspace Limited privacy policy can be viewed at www.rackspace.co.uk/legal/privacy-policy - This e-mail message may contain confidential or privileged information intended for the recipient. Any dissemination, distribution or copying of the enclosed material is prohibited. If you receive this transmission in error, please notify us immediately by e-mail at ab...@rackspace.com and delete the original message. Your cooperation is appreciated. __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [openstack-ansible][openstack-ansible-plugins] error in rabbitmq installation , config template plugin
Many thanks I was aware of the dependencies and download them all to /home/centos/ansible-installation/roles/dependencies [centos@ansible-tests-tshtilma dependencies]$ ls apt_package_pinning lxc_container_create lxc_hosts openstack_hosts pip_install also my test playbook was taken from the examples so its almost identical Thanks From: Jesse Pretorius [mailto:] Sent: יום ה 17 נובמבר 2016 15:45 To: OpenStack Development Mailing List (not for usage questions) Subject: Re: [openstack-dev] [openstack-ansible][openstack-ansible-plugins] error in rabbitmq installation , config template plugin The error you’re seeing is because that role has dependencies which can’t be resolved. The deps are here: https://github.com/openstack/openstack-ansible-rabbitmq_server/blob/stable/newton/meta/main.yml#L35 The roles are mostly designed to be re-usable without the integrated repository, but to do so you’ll need to inspect the role tests to see what it needs to work: Role requirements, to resolve the meta deps: https://github.com/openstack/openstack-ansible-rabbitmq_server/blob/stable/newton/tests/ansible-role-requirements.yml An example inventory, playbook, etc is all here: https://github.com/openstack/openstack-ansible-rabbitmq_server/tree/stable/newton/tests If you get stuck, feel free to join us in #openstack-ansible in IRC on Freenode. HTH, Jesse IRC: odyssey4me From: "Shtilman, Tomer (Nokia - IL)" <tomer.shtil...@nokia.com<mailto:tomer.shtil...@nokia.com>> Reply-To: "OpenStack Development Mailing List (not for usage questions)" <openstack-dev@lists.openstack.org<mailto:openstack-dev@lists.openstack.org>> Date: Thursday, November 17, 2016 at 1:33 PM To: "openstack-dev@lists.openstack.org<mailto:openstack-dev@lists.openstack.org>" <openstack-dev@lists.openstack.org<mailto:openstack-dev@lists.openstack.org>> Subject: [openstack-dev] [openstack-ansible][openstack-ansible-plugins] error in rabbitmq installation , config template plugin Hi All I am relatively new to Ansible, trying to run a playbook installing rabbit server https://github.com/openstack/openstack-ansible-rabbitmq_server (all stable/newton) - name: Install RabbitMQ server hosts: rabbitmq_all user: root roles: - { role: "rabbitmq_server", tags: [ "rabbitmq-server" ] } vars: rabbitmq_cookie_token: secrete I get an error: statically included: /home/centos/ansible-installation/roles/dependencies/pip_install/tasks/configure.yml ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path. The error appears to have been in '/home/centos/ansible-installation/roles/dependencies/pip_install/tasks/configure.yml': line 40, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Drop pip global config(s) ^ here The task is : - name: Drop pip global config(s) config_template: src: "global.conf.j2" …… config_template task is coming from https://github.com/openstack/openstack-ansible-plugins/blob/master/action/_v2_config_template.py and cloned locally also I have set the action_plugins = /home/centos/openstack-ansible-plugins:/home/centos/openstack-ansible-plugins/action from a bit of debugging its look like the the path is scanned Any ideas will be appreciated Tomer Rackspace Limited is a company registered in England & Wales (company registered number 03897010) whose registered office is at 5 Millington Road, Hyde Park Hayes, Middlesex UB3 4AZ. Rackspace Limited privacy policy can be viewed at www.rackspace.co.uk/legal/privacy-policy<http://www.rackspace.co.uk/legal/privacy-policy> - This e-mail message may contain confidential or privileged information intended for the recipient. Any dissemination, distribution or copying of the enclosed material is prohibited. If you receive this transmission in error, please notify us immediately by e-mail at ab...@rackspace.com<mailto:ab...@rackspace.com> and delete the original message. Your cooperation is appreciated. __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [openstack-ansible][openstack-ansible-plugins] error in rabbitmq installation , config template plugin
The error you’re seeing is because that role has dependencies which can’t be resolved. The deps are here: https://github.com/openstack/openstack-ansible-rabbitmq_server/blob/stable/newton/meta/main.yml#L35 The roles are mostly designed to be re-usable without the integrated repository, but to do so you’ll need to inspect the role tests to see what it needs to work: Role requirements, to resolve the meta deps: https://github.com/openstack/openstack-ansible-rabbitmq_server/blob/stable/newton/tests/ansible-role-requirements.yml An example inventory, playbook, etc is all here: https://github.com/openstack/openstack-ansible-rabbitmq_server/tree/stable/newton/tests If you get stuck, feel free to join us in #openstack-ansible in IRC on Freenode. HTH, Jesse IRC: odyssey4me From: "Shtilman, Tomer (Nokia - IL)"Reply-To: "OpenStack Development Mailing List (not for usage questions)" Date: Thursday, November 17, 2016 at 1:33 PM To: "openstack-dev@lists.openstack.org" Subject: [openstack-dev] [openstack-ansible][openstack-ansible-plugins] error in rabbitmq installation , config template plugin Hi All I am relatively new to Ansible, trying to run a playbook installing rabbit server https://github.com/openstack/openstack-ansible-rabbitmq_server (all stable/newton) - name: Install RabbitMQ server hosts: rabbitmq_all user: root roles: - { role: "rabbitmq_server", tags: [ "rabbitmq-server" ] } vars: rabbitmq_cookie_token: secrete I get an error: statically included: /home/centos/ansible-installation/roles/dependencies/pip_install/tasks/configure.yml ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path. The error appears to have been in '/home/centos/ansible-installation/roles/dependencies/pip_install/tasks/configure.yml': line 40, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Drop pip global config(s) ^ here The task is : - name: Drop pip global config(s) config_template: src: "global.conf.j2" …… config_template task is coming from https://github.com/openstack/openstack-ansible-plugins/blob/master/action/_v2_config_template.py and cloned locally also I have set the action_plugins = /home/centos/openstack-ansible-plugins:/home/centos/openstack-ansible-plugins/action from a bit of debugging its look like the the path is scanned Any ideas will be appreciated Tomer Rackspace Limited is a company registered in England & Wales (company registered number 03897010) whose registered office is at 5 Millington Road, Hyde Park Hayes, Middlesex UB3 4AZ. Rackspace Limited privacy policy can be viewed at www.rackspace.co.uk/legal/privacy-policy - This e-mail message may contain confidential or privileged information intended for the recipient. Any dissemination, distribution or copying of the enclosed material is prohibited. If you receive this transmission in error, please notify us immediately by e-mail at ab...@rackspace.com and delete the original message. Your cooperation is appreciated. __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev