This is actually already in core.



On Wed, Jul 9, 2014 at 8:11 AM, kesten broughton <[email protected]
> wrote:

> If you've got a public git branch, i can help with testing and
> documentation.
> I've worked with pysphere a bit.
>
> kesten
>
> On Tuesday, July 8, 2014 6:23:06 PM UTC-5, Corey Gaffney wrote:
>
>> In looking at my original proposal, I think combining two unique
>> implementations of Async functionality is going to be a bad idea, if not
>> for being difficult to troubleshoot and impossible to test, for being a bad
>> design.
>>
>> Instead, I would like to suggest not using PySphere Async support and
>> have Ansible handle Async via it's own mechanism 100%.   While it will
>> prevent having the ability to use Async while using with_items and
>> with_nested, it would be consistent with other modules and if this were to
>> ever become a supported feature, no changes would be necessary for the
>> cloning module.
>>
>> Furthermore, when using the vSphere API for Async tasks, it has it's own
>> queue and comes with it's own set of issues. Such as the queue filling,
>> tracking the many statuses it supports, additional network calls to get
>> status, implementing additional timeouts, etc.
>>
>> After I make and test this change, I will do a pull request... with the
>> assumption you believe this is a cleaner implementation.
>>
>>
>> Thanks,
>> -Corey
>>
>>
>>
>>
>> On Tue, Jul 8, 2014 at 5:30 PM, Michael DeHaan <[email protected]>
>> wrote:
>>
>>> Sounds like we'd be interested in taking a look at least, and a PR is a
>>> good way to get that in the queue.  I will admit now the queue is quite
>>> longish as we're powering through things the best we can.
>>>
>>> I imagine if async is not used, it's a blocking operation, and the async
>>> operation in ansible would be needed to use with it, and that might be
>>> worth noting in docs?
>>>
>>>
>>>
>>>
>>> On Tue, Jul 8, 2014 at 2:34 AM, Corey Gaffney <[email protected]> wrote:
>>>
>>>> I have a vsphere_clone module I would like to contribute (amongst
>>>> others).  My only concern is that I have added async support to the module
>>>> since this is part of PySphere functionality.  This allows the use of a
>>>> boolean to indicate asynchronous vs synchronous(the default) in order to
>>>> cooperate with loops and nested loops in Ansible (which we all know do not
>>>> support Async at this point in time).  In the spirit of keeping the
>>>> functionality of PySphere, I have kept this option available and find it
>>>> quite powerful.
>>>>
>>>> Would this be acceptable, if yes.. then I will perform a pull request
>>>> or whatever is necessary to contribute.
>>>>
>>>>
>>>> Thanks,
>>>> Corey
>>>>
>>>>
>>>>
>>>> On Friday, April 19, 2013 5:36:47 PM UTC-5, Michael DeHaan wrote:
>>>>
>>>>> Documentation was somewhat short at the time, we're talking about it
>>>>> now, it's all good :)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Apr 19, 2013 at 6:01 PM, Dag Wieers <[email protected]> wrote:
>>>>>
>>>>>> On Fri, 19 Apr 2013, Michael DeHaan wrote:
>>>>>>
>>>>>>  Ok, that's good.
>>>>>>>
>>>>>>> Out of curiosity, is kernel+initrd+commandline also possible?
>>>>>>>
>>>>>>
>>>>>> I doubt vsphere can do that.
>>>>>>
>>>>>>
>>>>>>
>>>>>>  These may be suitable for core inclusion, the above is not a prereq,
>>>>>>> but it
>>>>>>> would be nice if it could avoid a PXE environment (in case one
>>>>>>> already
>>>>>>> existed and we wanted to ignore it).
>>>>>>>
>>>>>>
>>>>>> That's why we use ISO media. It's the only common thing all
>>>>>> hardware/hypervisors can do properly. (ESX, KVM, iLO, RSA, RHEV)
>>>>>>
>>>>>>
>>>>>>
>>>>>>  (I believe when I last asked they only did the ISO, or the playbooks
>>>>>>> that
>>>>>>> referenced them required doing ISO builds.)
>>>>>>>
>>>>>>
>>>>>> No, vsphere only did PXE because I never got the administrative
>>>>>> rights on vSphere to:
>>>>>>
>>>>>>  1. change the boot order
>>>>>>  2. have an NFS datastore or push images to another datastore
>>>>>>
>>>>>> You made conclusions based only on the examples I showed using ISO
>>>>>> images. And despite me mentioning that we use ISO just because it makes 
>>>>>> the
>>>>>> most sense in our environment. But PXE is supported for all *_boot 
>>>>>> modules
>>>>>> (it just isn't possible in heterogenous environments or disabled by
>>>>>> security in most large companies I have worked)
>>>>>>
>>>>>> If you looked at the module documentation it's clear you can do PXE
>>>>>> with all of them. (media=network)
>>>>>>
>>>>>>
>>>>>> --
>>>>>> -- dag wieers, [email protected], http://dag.wieers.com/
>>>>>> -- dagit linux solutions, [email protected], http://dagit.net/
>>>>>>
>>>>>>
>>>>>> [Any errors in spelling, tact or fact are transmission errors]
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Ansible Project" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>>
>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Michael DeHaan <[email protected]>
>>>>>
>>>>> CTO, AnsibleWorks, Inc.
>>>>> http://www.ansibleworks.com/
>>>>>
>>>>>   --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Ansible Project" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>>  To post to this group, send email to [email protected].
>>>>
>>>> To view this discussion on the web visit https://groups.google.com/d/
>>>> msgid/ansible-project/9e0fc804-8a2d-4923-bc32-
>>>> feacb183c472%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/ansible-project/9e0fc804-8a2d-4923-bc32-feacb183c472%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Ansible Project" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/
>>> topic/ansible-project/33hmOR301YI/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> [email protected].
>>> To post to this group, send email to [email protected].
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/ansible-project/CA%2BnsWgyyZt9RKyaHUOC5Ji%
>>> 2BhCVsZswbkCe8TPSDo0PSoYg9K3Q%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgyyZt9RKyaHUOC5Ji%2BhCVsZswbkCe8TPSDo0PSoYg9K3Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/2f18a176-4a1e-42de-85de-28056ce51b83%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/2f18a176-4a1e-42de-85de-28056ce51b83%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgzA4TN_dX5eLciswrWQXUBk77%3DU1RSPn3UC5vPCOhAG_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to