Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in azure module #8298

Closed
vgauthier opened this issue Jul 25, 2014 · 2 comments · Fixed by #8366
Closed

Error in azure module #8298

vgauthier opened this issue Jul 25, 2014 · 2 comments · Fixed by #8366
Labels
cloud P2 Priority 2 - Issue Blocks Release

Comments

@vgauthier
Copy link

Ansible Version:

ansible --version
ansible 1.7 (devel 8f694c7588) last updated 2014/07/25 22:46:36 (GMT +200)

Environment:

Management host: MacOSX 10.9.4 with Python 2.7.8
Target host: Ubuntu 14.04 LTS with Python 2.7.3

python azure module

In [2]: import azure
In [3]: print azure.__version__
0.8.1

Summary

Error inside the azure module when I try to spin an azure vm.

Steps To Reproduce:

 - name: Test
    local_action:
      module: azure
      name: ansible-test-2
      role_size: Small
      ssh_cert_path: /Users/vgauthier/.ssh/id_dsa.pem
      image: b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu_DAILY_BUILD-precise-12_04_3-LTS-amd64-server-20131205-en-us-30GB
      location: 'East US'
      user: ubuntu
      storage_account: my-storage-account
      wait: yes

Actual Results

failed: [ansible-test.cloudapp.net -> 127.0.0.1] => {"failed": true, "parsed": false}
invalid output was: Traceback (most recent call last):
  File "/Users/vgauthier/.ansible/tmp/ansible-tmp-1406322615.7-274461491408147/azure", line 1777, in <module>
    main()
  File "/Users/vgauthier/.ansible/tmp/ansible-tmp-1406322615.7-274461491408147/azure", line 435, in main
    (changed, public_dns_name, deployment) = create_virtual_machine(module, azure)
  File "/Users/vgauthier/.ansible/tmp/ansible-tmp-1406322615.7-274461491408147/azure", line 246, in create_virtual_machine
    cloud_service_name_available = azure.check_hosted_service_name_availability(name)
AttributeError: 'tuple' object has no attribute 'check_hosted_service_name_availability'


FATAL: all hosts have already failed -- aborting

Fix

Remove the 'wait_timeout_redirects' after the 'ServiceManagementService'
ligne 417 in azure module

@ansibot
Copy link
Contributor

ansibot commented Jul 25, 2014

Thanks for filing a ticket! I am the friendly GitHub Ansibot. I see you did not fill out your issue description based on our new issue template. Please copy the contents of this template and paste it into the description of your ticket.

Our system will automatically close tickets that do not have an issue template filled out within 7 days. Please note that due to large interest in Ansible, humans may not comment on your ticket if you ask them questions. Don't worry, you're still in the queue and the robots are looking after you.

jlaska added a commit to jlaska/ansible that referenced this issue Jul 30, 2014
Several azure fixes/improvements, including:
* Improve failure message when python-azure is not installed
* Improve required argument handling
* Fixes a traceback on instance termination when the variable
'deployment' was not set.
* Fixes a traceback (ansible#8298) when creating instances using the newer SDK
@jimi-c
Copy link
Member

jimi-c commented Jul 30, 2014

We have merged in the above patch, which should resolve this issue. If you continue seeing any problems related to this, please let us know. Thanks!

@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cloud P2 Priority 2 - Issue Blocks Release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants