Lorena reply with a template that reproduce your problem (and all necessary
files). And it would be good if you start a new thread instead of hijacking
this.

On Mar 27, 2017 23:17, "Lorena Lobato" <lorenal...@gmail.com> wrote:

> In my case, it does not help. After the reboot, it suppose to run a second
> puppet agent which usually takes around 20 min to be completed and, a
> couple of single commands.
>
> When I try to reboot it, packer finishes without any error, though without
> executing the following steps as indicated before. Strange..
>
> Is there another way for OpenStack builder and CentOS images ?
>
> El lunes, 27 de marzo de 2017, 15:31:38 (UTC+2), Lorena Lobato escribió:
>>
>> I will give a try and let you know, thanks
>>
>> El viernes, 24 de marzo de 2017, 21:45:16 (UTC+1), Rickard von Essen
>> escribió:
>>>
>>> To reboot a Linux machine do something like:
>>>
>>>   "provisioners": [
>>>     {
>>>       "type": "shell",
>>>       "inline": [
>>>         "sudo reboot"
>>>       ]
>>>     },
>>>     {
>>>       "type": "shell",
>>>       "inline": [
>>>          "uptime"
>>>       ],
>>>       "pause_before": "15s"
>>>     }
>>>   ]
>>>
>>> This allow the shutdown command to stop the machine before the next
>>> (uptime) is executed and that will wait for the ssh connection to
>>> re-establish, after the reboot.
>>>
>>> On Friday, March 24, 2017 at 5:26:50 PM UTC+1, Lorena Lobato wrote:
>>>>
>>>> Same case but with Linux images. When I reboot the machine in the
>>>> provisioner stops without any error and skipping the post commands.
>>>>
>>>> Is there anyway to avoid this? Need to reboot the machine during
>>>> provisioning time to make effective some puppet changes.
>>>>
>>>>
>>>> El viernes, 24 de marzo de 2017, 7:39:54 (UTC+1), Rickard von Essen
>>>> escribió:
>>>>>
>>>>> Shutdown is initiated by an api towards openstack.
>>>>>
>>>>> On Mar 23, 2017 23:46, "Blake Garner" <bl...@netjibbing.com> wrote:
>>>>>
>>>>>> I'm starting to work with the OpenStack builder and noticed that no
>>>>>> shutdown_command or shutdown_timeout exist. Am I missing something here?
>>>>>> Using the shutdown commands is how I trigger windows images to shutdown 
>>>>>> and
>>>>>> run sysprep. Doing sysprep at shutdown is key for getting cloudbase-init 
>>>>>> to
>>>>>> work as desired.
>>>>>>
>>>>>> Has anybody worked this out yet or do I need to make some feature
>>>>>> requests?
>>>>>>
>>>>>> Thanks,
>>>>>> Blake
>>>>>>
>>>>>> --
>>>>>> This mailing list is governed under the HashiCorp Community
>>>>>> Guidelines - https://www.hashicorp.com/community-guidelines.html.
>>>>>> Behavior in violation of those guidelines may result in your removal from
>>>>>> this mailing list.
>>>>>>
>>>>>> GitHub Issues: https://github.com/mitchellh/packer/issues
>>>>>> IRC: #packer-tool on Freenode
>>>>>> ---
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Packer" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to packer-tool...@googlegroups.com.
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/packer-tool/3586fb47-584d-
>>>>>> 4434-a613-c3e64ebd45a4%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/packer-tool/3586fb47-584d-4434-a613-c3e64ebd45a4%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to packer-tool+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/fa9ea392-6394-4fb5-8e99-22accf3e6b23%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/fa9ea392-6394-4fb5-8e99-22accf3e6b23%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to packer-tool+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt_7t_ELBzBwdagi2rMdCiabr5r34sYdn596OYV9dhWNSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to