[openstack-dev] [kolla] Ansiblize init-runonce script
Steven Dake (stdake)
stdake at cisco.com
Thu Nov 30 01:09:46 UTC 2017
I wrote that script ages ago. I needed it in the repo so I could consistently deploy. It may still be entirely tailored around my environment ☺
That said, I had always hoped someone would make a generic cloud bootstrap for Kolla based upon the work in that script originally. Maybe this is the time.
Cheers
-steve
From: Jeffrey Zhang <zhang.lei.fly at gmail.com>
Reply-To: "OpenStack Development Mailing List (not for usage questions)" <openstack-dev at lists.openstack.org>
Date: Tuesday, November 28, 2017 at 7:48 PM
To: Samuel Yaple <sam at yaple.net>, OpenStack Development Mailing List <openstack-dev at lists.openstack.org>
Subject: Re: [openstack-dev] [kolla] Ansiblize init-runonce script
yes. it is not
recommend to use in prod env, i never used this script. But
the reality is
lots users are using it, at least in the test environment.
and there are patches trying to make this script
idempotent
recently.
2017年11月28日 23:28,"Sam Yaple" <sam at yaple.net<mailto:sam at yaple.net>>写道:
For what its worth, this init-runonce script was never meant for production usage. Ops *shouldn't* be running it like you suggest. It was historically for use in the gate and a quick-n-dirty environment setup for testing.
If you want to get into writing operations scripts, thats your prerogative, but it was discussed before and mostly considered a bad idea.
Thanks,
SamYaple
-------- Original Message --------
Subject: Re: [openstack-dev] [kolla] Ansiblize init-runonce script
Local Time: November 28, 2017 8:10 AM
UTC Time: November 28, 2017 1:10 PM
From: zhang.lei.fly at gmail.com<mailto:zhang.lei.fly at gmail.com>
To: OpenStack Development Mailing List (not for usage questions) <openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>>
in my opinion,
idempotent scrip
t is very necessary.
for several reason
- there is already some idempotent logical in the script
- it is common that this script failed by wrong configuration,
after fix the config,
ops will want to run this script again.
On Tue, Nov 28, 2017 at 7:14 PM, Paul Bourke <paul.bourke at oracle.com<mailto:paul.bourke at oracle.com>> wrote:
I think this came up before at one stage. My position is I don't see the need to ansible-ise small shell scripts. init-runonce is currently just an easy to understand sequence of openstack commands provided to help people test/demo their setups. Unless we want to make it more than that, i.e. make it idempotent, customizable, etc. I don't see the need to wheel in Ansible.
On 28/11/17 03:23, Jeffrey Zhang wrote:
hi
check this [0]. I tried to convert it to ansible playbooks.
[0] https://review.openstack.org/523072
On Tue, Nov 28, 2017 at 2:57 AM, Ravi Shekhar Jethani <rsjethani at gmail.com<mailto:rsjethani at gmail.com> <mailto:rsjethani at gmail.com<mailto:rsjethani at gmail.com>>> wrote:
Hi,
While exploring kolla-ansible I ran into a few issues with
init-runonce script. This lead to following bugs and patches:
https://launchpad.net/bugs/1732963 <https://launchpad.net/bugs/1732963>
https://review.openstack.org/522221
<https://review.openstack.org/522221>
https://review.openstack.org/521190
<https://review.openstack.org/521190>
But it was highlighted that instead of fixing/changing the
script, 'ansibilzing' it would be the ideal solution.
Hence I hereby formally propose the same.
My thoughts:
* Playbook Name: init-stack.yml
* Playbook path can be:
kolla-ansible/ansible/init-stack.yml
* The play can be executed like:
$ kolla-ansible init-stack -i <inventory_file>
* The cirros test image should be downloaded in /tmp
* What should be the behavior if the play is run multiple times
against the same stack?
- some error message OR
- simply ignore the action
Kindly provide suggestions.
--
Best Regards,
Ravi J.
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe:
OpenStack-dev-request at lists.openstack.org?subject:unsubscribe<http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe>
<http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
<http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev>
--
Regards,
Jeffrey Zhang
Blog: http://xcodest.me <http://xcodest.me/>
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe<http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe<http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
--
Regards,
Jeffrey Zhang
Blog: http://xcodest.me<http://xcodest.me/>
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe<http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20171130/9bdbfe52/attachment.html>
More information about the OpenStack-dev
mailing list