[openstack-dev] [kolla] Ansiblize init-runonce script

Jeffrey Zhang zhang.lei.fly at gmail.com
Wed Nov 29 02:46:58 UTC 2017


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>写道:

> 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
> To: OpenStack Development Mailing List (not for usage questions) <
> 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>
> 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>> 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/17
>>> 32963>
>>>     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:un
>>> subscribe>
>>>     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.op
>>> enstack.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:unsubscrib
>> e
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>
>
>
> --
> Regards,
> Jeffrey Zhang
> Blog: http://xcodest.me
>
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at 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/20171129/d0f2c5fc/attachment.html>


More information about the OpenStack-dev mailing list