Strange, I thought that I had this working with azure 2.0.0rc5 + ansible
stable-2.1, but when I tried to re-install and run my ansible, I get:

An exception occurred during task execution. The full traceback is:
Traceback (most recent call last):
  File "/tmp/ansible_nsnYjC/ansible_module_azure_rm_deployment.py", line
661, in <module>
    main()
  File "/tmp/ansible_nsnYjC/ansible_module_azure_rm_deployment.py", line
657, in main
    AzureRMDeploymentManager()
  File "/tmp/ansible_nsnYjC/ansible_module_azure_rm_deployment.py", line
438, in __init__
    supports_check_mode=False)
  File
"/tmp/ansible_nsnYjC/ansible_modlib.zip/ansible/module_utils/azure_rm_common.py",
line 192, in __init__
  File "/tmp/ansible_nsnYjC/ansible_module_azure_rm_deployment.py", line
449, in exec_module
    deployment = self.deploy_template()
  File "/tmp/ansible_nsnYjC/ansible_module_azure_rm_deployment.py", line
476, in deploy_template
    deploy_parameter = DeploymentProperties()
TypeError: __init__() takes at least 2 arguments (1 given)

fatal: [localhost]: FAILED! => {"changed": false, "failed": true,
"invocation": {"module_name": "azure_rm_deployment"}, "module_stderr":
"Traceback (most recent call last):\n  File
\"/tmp/ansible_nsnYjC/ansible_module_azure_rm_deployment.py\", line 661, in
<module>\n    main()\n  File
\"/tmp/ansible_nsnYjC/ansible_module_azure_rm_deployment.py\", line 657, in
main\n    AzureRMDeploymentManager()\n  File
\"/tmp/ansible_nsnYjC/ansible_module_azure_rm_deployment.py\", line 438, in
__init__\n    supports_check_mode=False)\n  File
\"/tmp/ansible_nsnYjC/ansible_modlib.zip/ansible/module_utils/azure_rm_common.py\",
line 192, in __init__\n  File
\"/tmp/ansible_nsnYjC/ansible_module_azure_rm_deployment.py\", line 449, in
exec_module\n    deployment = self.deploy_template()\n  File
\"/tmp/ansible_nsnYjC/ansible_module_azure_rm_deployment.py\", line 476, in
deploy_template\n    deploy_parameter = DeploymentProperties()\nTypeError:
__init__() takes at least 2 arguments (1 given)\n", "module_stdout": "",
"msg": "MODULE FAILURE", "parsed": false}

Would azure  2.0.0rc5 have changed in the past week?  I had resorted to
only using azure_rm_resourcegroup and azure_rm_deployment, but
not azure_rm_deployment is not working.  Any advice for, at least, getting
azure_rm_deployment working again?

Thanks,

Steven.

On Tue, Jul 5, 2016 at 6:11 PM, Matt Davis <[email protected]> wrote:

> Yep, if you're happy running from source, that's probably your best bet-
> we'll be backporting fixes to the Azure modules to stable-2.1 at least
> until 2.2 releases in late summer/early fall. Last I heard, RC5 was
> supposed to become the final release of the Azure Python SDK. Doing "real
> work" from the bleeding edge on devel is definitely a recipe for, well,
> bleeding. ;)
>
> On Friday, July 1, 2016 at 3:10:15 PM UTC-7, Steven Carter wrote:
>>
>> Is there a combination of azure python + Ansible that will work or is
>> azure 2.0.0rc5 + stable-2.1 my best bet?
>>
>> Thanks,
>>
>> Steven.
>>
>> On Friday, July 1, 2016 at 5:36:29 PM UTC-4, Matt Davis wrote:
>>>
>>> The Azure Python SDK is unfortunately still unreleased and a bit of a
>>> moving target, which is the cause of the issues you're seeing. Microsoft
>>> released a new RC on that stuff within a couple days of us shipping Ansible
>>> 2.1.0 that broke everything. We may end up retroactively labeling the new
>>> Azure RM modules as "tech preview" while their Python stuff settles down.
>>>
>>> I've pushed some fixes to stable-2.1 and devel that should more-or-less
>>> make things work again in the next release, and Chris Houseknecht is doing
>>> a much more extensive pass over everything with the new Python SDK RC5 to
>>> make sure everything is good to go- those changes will hopefully land in
>>> 2.1.1 as well.
>>>
>>> -Matt
>>>
>>> On Friday, July 1, 2016 at 2:04:54 PM UTC-7, Steven Carter wrote:
>>>>
>>>> I was able to work around this by using Ansible 2.2.0.  Does the
>>>> problem exist in 2.1.0.1?  Should I be using that instead?
>>>>
>>>> Thanks,
>>>>
>>>> Steven.
>>>>
>>>> On Friday, July 1, 2016 at 11:29:17 AM UTC-4, Steven Carter wrote:
>>>>>
>>>>> when trying to run:
>>>>>
>>>>> - hosts: localhost
>>>>>   connection: local
>>>>>   gather_facts: yes
>>>>>   vars:
>>>>>     azure_region: 'eastus'
>>>>>
>>>>>   tasks:
>>>>>     - name: Get facts for one resource group
>>>>>       azure_rm_resourcegroup_facts:
>>>>>         name: stevenca-csr
>>>>>
>>>>> I get:
>>>>>
>>>>> fatal: [localhost]: FAILED! => {"changed": false, "failed": true,
>>>>> "invocation": {"module_args": {"ad_user": null, "client_id": null, "name":
>>>>> "stevenca-csr", "password": null, "profile": null, "secret": null,
>>>>> "subscription_id": null, "tags": null, "tenant": null}, "module_name":
>>>>> "azure_rm_resourcegroup_facts"}, "msg": "Expecting
>>>>> azure.mgmt.compute.__version__ to be >= 2016-03-30. Found version 
>>>>> 0.30.0rc5
>>>>> Do you have Azure >= 2.0.0rc2 installed?"}
>>>>>
>>>>> This seems to be related to:
>>>>>
>>>>> https://github.com/ansible/ansible/issues/16480
>>>>>
>>>>> Although I am using Ansible 2.1.0.0.  When I work around that issue by
>>>>> replacing:
>>>>>
>>>>> AZURE_MIN_VERSION = "2016-03-30" with AZURE_MIN_VERSION = "0.30.0rc5"
>>>>> in 
>>>>> /usr/lib/python2.7/site-packages/ansible/module_utils/azure_rm_common.py
>>>>>
>>>>> I still get:
>>>>>
>>>>>
>>>>> An exception occurred during task execution. The full traceback is:
>>>>> Traceback (most recent call last):
>>>>>   File
>>>>> "/tmp/ansible_J5TjZd/ansible_module_azure_rm_resourcegroup_facts.py", line
>>>>> 172, in <module>
>>>>>     main()
>>>>>   File
>>>>> "/tmp/ansible_J5TjZd/ansible_module_azure_rm_resourcegroup_facts.py", line
>>>>> 169, in main
>>>>>     AzureRMResourceGroupFacts()
>>>>>   File
>>>>> "/tmp/ansible_J5TjZd/ansible_module_azure_rm_resourcegroup_facts.py", line
>>>>> 125, in __init__
>>>>>     facts_module=True)
>>>>>   File
>>>>> "/tmp/ansible_J5TjZd/ansible_modlib.zip/ansible/module_utils/azure_rm_common.py",
>>>>> line 178, in __init__
>>>>>   File
>>>>> "/tmp/ansible_J5TjZd/ansible_module_azure_rm_resourcegroup_facts.py", line
>>>>> 133, in exec_module
>>>>>     self.results['objects'] = self.get_item()
>>>>>   File
>>>>> "/tmp/ansible_J5TjZd/ansible_module_azure_rm_resourcegroup_facts.py", line
>>>>> 145, in get_item
>>>>>     item = self.rm_client.resource_groups.get(self.name)
>>>>>   File
>>>>> "/tmp/ansible_J5TjZd/ansible_modlib.zip/ansible/module_utils/azure_rm_common.py",
>>>>> line 621, in rm_client
>>>>> TypeError: __init__() takes at least 3 arguments (2 given)
>>>>>
>>>>> fatal: [localhost]: FAILED! => {"changed": false, "failed": true,
>>>>> "invocation": {"module_name": "azure_rm_resourcegroup_facts"},
>>>>> "module_stderr": "Traceback (most recent call last):\n  File
>>>>> \"/tmp/ansible_J5TjZd/ansible_module_azure_rm_resourcegroup_facts.py\",
>>>>> line 172, in <module>\n    main()\n  File
>>>>> \"/tmp/ansible_J5TjZd/ansible_module_azure_rm_resourcegroup_facts.py\",
>>>>> line 169, in main\n    AzureRMResourceGroupFacts()\n  File
>>>>> \"/tmp/ansible_J5TjZd/ansible_module_azure_rm_resourcegroup_facts.py\",
>>>>> line 125, in __init__\n    facts_module=True)\n  File
>>>>> \"/tmp/ansible_J5TjZd/ansible_modlib.zip/ansible/module_utils/azure_rm_common.py\",
>>>>> line 178, in __init__\n  File
>>>>> \"/tmp/ansible_J5TjZd/ansible_module_azure_rm_resourcegroup_facts.py\",
>>>>> line 133, in exec_module\n    self.results['objects'] = self.get_item()\n
>>>>>  File
>>>>> \"/tmp/ansible_J5TjZd/ansible_module_azure_rm_resourcegroup_facts.py\",
>>>>> line 145, in get_item\n    item = self.rm_client.resource_groups.get(
>>>>> self.name)\n  File
>>>>> \"/tmp/ansible_J5TjZd/ansible_modlib.zip/ansible/module_utils/azure_rm_common.py\",
>>>>> line 621, in rm_client\nTypeError: __init__() takes at least 3 arguments 
>>>>> (2
>>>>> given)\n", "module_stdout": "", "msg": "MODULE FAILURE", "parsed": false}
>>>>>
>>>>> This leads me to believe that I I have some substantial version
>>>>> problems with my setup or this stuff just does not work yet.  Can someone
>>>>> make me less ignorant here (at least with this specific topic)?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Steven.
>>>>>
>>>>> --
> 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/Ln51G5wx03g/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/31a7b1c7-32e2-452a-afa4-4b499470db79%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/31a7b1c7-32e2-452a-afa4-4b499470db79%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/CALC74U9iibAEOL-Z87BXOLfB%2BTQ6Raj2mu%2BFxvD3%3Ddu3rzUqMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to