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

Lock azure-mgmt-containerservice to 1.0.0. #32518

Closed
wants to merge 1 commit into from

Conversation

krbullock
Copy link
Contributor

SUMMARY

Attempting to create an Azure Container Service cluster results in an exception, apparently because the API of azure.mgmt.containerservice.models.ContainerServiceMasterProfile changed in 2.0.0:

Traceback (most recent call last):
  File "/var/folders/80/3373r54x51x__g9svfyxbr1c0000gn/T/ansible_rqtXta/ansible_module_azure_rm_acs.py", line 719, in <module>
    main()
  File "/var/folders/80/3373r54x51x__g9svfyxbr1c0000gn/T/ansible_rqtXta/ansible_module_azure_rm_acs.py", line 716, in main
    AzureRMContainerService()
  File "/var/folders/80/3373r54x51x__g9svfyxbr1c0000gn/T/ansible_rqtXta/ansible_module_azure_rm_acs.py", line 513, in __init__
    supports_tags=True)
  File "/var/folders/80/3373r54x51x__g9svfyxbr1c0000gn/T/ansible_rqtXta/ansible_modlib.zip/ansible/module_utils/azure_rm_common.py", line 256, in __init__
  File "/var/folders/80/3373r54x51x__g9svfyxbr1c0000gn/T/ansible_rqtXta/ansible_module_azure_rm_acs.py", line 617, in exec_module
    self.results['state'] = self.create_update_acs()
  File "/var/folders/80/3373r54x51x__g9svfyxbr1c0000gn/T/ansible_rqtXta/ansible_module_azure_rm_acs.py", line 652, in create_update_acs
    master_profile=create_master_profile_instance(self.master_profile),
  File "/var/folders/80/3373r54x51x__g9svfyxbr1c0000gn/T/ansible_rqtXta/ansible_module_azure_rm_acs.py", line 328, in create_master_profile_instance
    dns_prefix=masterprofile[0]['dns_prefix']
TypeError: __init__() takes at least 3 arguments (3 given)

Locking the dependency to 1.0.0 solves the error until the module can be updated to the new API.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

azure_rm_acs

ANSIBLE VERSION
ansible 2.4.1.0
  config file = /Users/kbullock/Source/SfG/devops/ansible.cfg
  configured module search path = [u'/Users/kbullock/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/kbullock/.ansible-wrappers/.env/lib/python2.7/site-packages/ansible
  executable location = /Users/kbullock/.ansible-wrappers/.env/bin/ansible
  python version = 2.7.10 (default, Feb  7 2017, 00:08:15) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]

Attempting to create an Azure Container Service cluster results in an exception, apparently because the API of `azure.mgmt.containerservice.models.ContainerServiceMasterProfile` changed in 2.0.0:

```
Traceback (most recent call last):
  File "/var/folders/80/3373r54x51x__g9svfyxbr1c0000gn/T/ansible_rqtXta/ansible_module_azure_rm_acs.py", line 719, in <module>
    main()
  File "/var/folders/80/3373r54x51x__g9svfyxbr1c0000gn/T/ansible_rqtXta/ansible_module_azure_rm_acs.py", line 716, in main
    AzureRMContainerService()
  File "/var/folders/80/3373r54x51x__g9svfyxbr1c0000gn/T/ansible_rqtXta/ansible_module_azure_rm_acs.py", line 513, in __init__
    supports_tags=True)
  File "/var/folders/80/3373r54x51x__g9svfyxbr1c0000gn/T/ansible_rqtXta/ansible_modlib.zip/ansible/module_utils/azure_rm_common.py", line 256, in __init__
  File "/var/folders/80/3373r54x51x__g9svfyxbr1c0000gn/T/ansible_rqtXta/ansible_module_azure_rm_acs.py", line 617, in exec_module
    self.results['state'] = self.create_update_acs()
  File "/var/folders/80/3373r54x51x__g9svfyxbr1c0000gn/T/ansible_rqtXta/ansible_module_azure_rm_acs.py", line 652, in create_update_acs
    master_profile=create_master_profile_instance(self.master_profile),
  File "/var/folders/80/3373r54x51x__g9svfyxbr1c0000gn/T/ansible_rqtXta/ansible_module_azure_rm_acs.py", line 328, in create_master_profile_instance
    dns_prefix=masterprofile[0]['dns_prefix']
TypeError: __init__() takes at least 3 arguments (3 given)
```

Locking the dependency to 1.0.0 solves the error until the module can be updated to the new API.
@ansibot ansibot added affects_2.5 This issue/PR affects Ansible v2.5 backport This PR does not target the devel branch. bugfix_pull_request needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Nov 2, 2017
@ansibot
Copy link
Contributor

ansibot commented Nov 2, 2017

The test ansible-test sanity --test azure-requirements [?] failed with the following error:

Command "test/sanity/code-smell/azure-requirements.py" returned exit status 1.
>>> Standard Output
Update the Azure integration test requirements with the packaging test requirements:
cp packaging/requirements/requirements-azure.txt test/runner/requirements/integration.cloud.azure.txt

click here for bot help

@ansibot ansibot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Nov 2, 2017
nitzmahone added a commit that referenced this pull request Nov 2, 2017
* supersedes/fixes #32518
* only for 2.4.x - we'll make the necessary code changes for 2.5 to work with the updated version
@nitzmahone
Copy link
Member

Thanks- committed via 82c2da3 for 2.4.2rc1 - will look into proper fix for 2.5.

@nitzmahone nitzmahone closed this Nov 2, 2017
@s-hertel s-hertel removed the needs_triage Needs a first human triage before being processed. label Nov 3, 2017
kiorky pushed a commit to corpusops/ansible that referenced this pull request Nov 6, 2017
* supersedes/fixes ansible#32518
* only for 2.4.x - we'll make the necessary code changes for 2.5 to work with the updated version
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bugfix_pull_request labels Mar 6, 2018
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.5 This issue/PR affects Ansible v2.5 backport This PR does not target the devel branch. bug This issue/PR relates to a bug. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants