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

remove functionality which should have been removed for Ansible 2.9 #1508

Merged
merged 1 commit into from
May 20, 2024

Conversation

p3ck
Copy link
Collaborator

@p3ck p3ck commented Mar 22, 2024

SUMMARY

I pulled the code from this PR ansible/ansible#65749 and updated the integration test cases to pass.

Here is the original description:
As found in #65745, these two modules contain options which were supposed to be removed in Ansible 2.9. Since the sanity check didn't find the corresponding module.deprecate() calls, no issue was created and these deprecations were apparently forgotten.

Fixes #77

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

azure_rm_loadbalancer
azure_rm_networkinterface

ADDITIONAL INFORMATION

The following integration tests were run

  • azure_rm_networkinterface
  • azure_rm_virtualmachine
  • azure_rm_loadbalancer
  • azure_rm_image

And all passed

Copy link
Collaborator

@Fred-sun Fred-sun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small change requirements

public_ip_address_name: testPublicIP
frontend_ip_configurations:
- name: frontendipconf0
public_ip_address: testPublicIP
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add backend_address_pools. Before the deletion, backend_address_pools has a default value if it is not configured

Suggested change
public_ip_address: testPublicIP
public_ip_address: testPublicIP
backend_address_pools:
- name: backendaddrp0

public_ip_address_name: testPublicIP1
frontend_ip_configurations:
- name: frontendipconf0
public_ip_address: testPublicIP1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add backend_address_pools. Before the deletion, backend_address_pools has a default value if it is not configured

Suggested change
public_ip_address: testPublicIP1
public_ip_address: testPublicIP1
backend_address_pools:
- name: backendaddrp0

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just to confirm, both load balancers will use the same backend address pool?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you can define it differently. Thank you!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so I should use different backends for each one:

+    backend_address_pools:
+      - name: backendaddrp0

and

+    backend_address_pools:
+      - name: backendaddrp1

I will run the integration tests again too just to make sure.

@Fred-sun Fred-sun added medium_priority Medium priority work in In trying to solve, or in working with contributors question Further information is requested labels Mar 29, 2024
…y which should have been removed for Ansible 2.9

As found in #65745, these two modules contain options which were supposed to be removed in Ansible 2.9.
Since the sanity check didn't find the corresponding module.deprecate() calls, no issue was created and
these deprecations were apparently forgotten.

Fixes ansible-collections#77
@Fred-sun Fred-sun added ready_for_review The PR has been modified and can be reviewed and merged and removed work in In trying to solve, or in working with contributors labels Mar 29, 2024
@xuzhang3 xuzhang3 merged commit 9509489 into ansible-collections:dev May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium_priority Medium priority question Further information is requested ready_for_review The PR has been modified and can be reviewed and merged
Projects
None yet
3 participants