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

Standard SKU IPv6 requires static allocation method #192

Closed
aardbol opened this issue Jul 19, 2020 · 4 comments
Closed

Standard SKU IPv6 requires static allocation method #192

aardbol opened this issue Jul 19, 2020 · 4 comments
Labels
has_pr PR fixes have been made

Comments

@aardbol
Copy link

aardbol commented Jul 19, 2020

SUMMARY

IPv6 with Standard SKU only accepts allocation method Static, but the allocation_method option is ignored when set

ISSUE TYPE
  • Bug Report
COMPONENT NAME

azure_rm_publicipaddress

ANSIBLE VERSION
ansible 2.9.10
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/ik/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/ik/.local/lib/python2.7/site-packages/ansible
executable location = /home/ik/.local/bin/ansible
python version = 2.7.18 (default, Apr 23 2020, 22:32:06) [GCC 9.3.0]
CONFIGURATION

OS / ENVIRONMENT
STEPS TO REPRODUCE
    - name: Create IPv6 public IP
      azure_rm_publicipaddress:
        name: my-ipv6
        resource_group: "{{ resource_grp }}"
        version: ipv6
        sku: Standard
        allocation_method: static
EXPECTED RESULTS
ACTUAL RESULTS

@Fred-sun
Copy link
Collaborator

@aardbol This problem with #110 repeat, was fixed with what is #125, you can try this PR whether to repair the problem you encountered? Thank you very much!

@aardbol
Copy link
Author

aardbol commented Jul 20, 2020

@Fred-sun I modified the /usr/lib/python3.8/site-packages/ansible/modules/cloud/azure/azure_rm_publicipaddress.py file on my computer with that change and noticed that it didn't solve the issue. The same error is shown:
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error creating or updating my-ipv6 - Azure Error: StandardSkuPublicIPAddressesMustBeStatic\nMessage: Standard sku publicIp /subscriptions/xxx/resourceGroups/myrgrp/providers/Microsoft.Network/publicIPAddresses/my-ipv6 must have AllocationMethod set to Static."}

Task:

    - name: Create IPv6 public IP
      azure_rm_publicipaddress:
        name: my-ipv6
        resource_group: "{{ resource_grp }}"
        sku: standard
        allocation_method: static
        version: ipv6

Also, since Standard SKU doesn't support dynamic IPs, the Static allocation_method should be default.

@aardbol
Copy link
Author

aardbol commented Jul 20, 2020

Added fix to PR #125

@Fred-sun
Copy link
Collaborator

@aardbol Thanks for your update! I will reinvestigate the logical rules of IPV4 and IPV6 design. Thank you very much!

@Fred-sun Fred-sun added the has_pr PR fixes have been made label Aug 5, 2020
@Fred-sun Fred-sun closed this as completed Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has_pr PR fixes have been made
Projects
None yet
Development

No branches or pull requests

2 participants