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

vmware_dvs_portgroup : Remove defaults and add explicit inheritance from switch defaults #1483

Merged

Conversation

mariolenz
Copy link
Collaborator

@mariolenz mariolenz commented Oct 1, 2022

SUMMARY

Apart from the things that are specific to a portgroup (like, for example, its name) there are a lot of settings that could either be inherited from the switch or defined at the PG level.

Most, if not all, parameters of the module don't allow this: They have defaults which means the settings from the switch are always overwritten. Or they implicitly set something to inherited if the parameter is unset. This is a problem because people can't use the module in a way of "I don't care about this setting, just leave it as it is" manner or explicitly state that this setting should be inherited.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

vmware_dvs_portgroup

ADDITIONAL INFORMATION

#1316

@mariolenz mariolenz added WIP Work in progress feature This issue/PR relates to a feature request has_issue labels Oct 1, 2022
@mariolenz mariolenz changed the title [WIP] Remove defaults and add explicit inheritance from switch defaults [WIP] vmware_dvs_portgroup : Remove defaults and add explicit inheritance from switch defaults Oct 1, 2022
@mariolenz mariolenz force-pushed the issue1316 branch 2 times, most recently from 2ef2f9d to 6ad70f5 Compare October 1, 2022 15:45
@softwarefactory-project-zuul
Copy link

Build failed.

✔️ ansible-tox-linters SUCCESS in 4m 06s
✔️ build-ansible-collection SUCCESS in 4m 15s
ansible-test-sanity-docker-devel FAILURE in 7m 16s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 8m 25s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 8m 42s
ansible-test-sanity-docker-stable-2.14 FAILURE in 7m 41s (non-voting)
✔️ ansible-test-units-community-vmware-python38 SUCCESS in 5m 13s
ansible-test-cloud-integration-vcenter7_only-stable212 FAILURE in 12m 26s
✔️ ansible-test-cloud-integration-vcenter7_2esxi-stable212 SUCCESS in 17m 34s
ansible-test-cloud-integration-vcenter7_1esxi-stable212_1_of_2 FAILURE in 19m 33s
ansible-test-cloud-integration-vcenter7_1esxi-stable212_2_of_2 FAILURE in 27m 07s
✔️ ansible-galaxy-importer SUCCESS in 4m 12s

@softwarefactory-project-zuul
Copy link

Build failed.

✔️ ansible-tox-linters SUCCESS in 4m 13s
✔️ build-ansible-collection SUCCESS in 4m 41s
ansible-test-sanity-docker-devel FAILURE in 8m 02s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 8m 05s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 8m 05s
ansible-test-sanity-docker-stable-2.14 FAILURE in 7m 09s (non-voting)
✔️ ansible-test-units-community-vmware-python38 SUCCESS in 4m 19s
ansible-test-cloud-integration-vcenter7_only-stable212 FAILURE in 15m 56s
✔️ ansible-test-cloud-integration-vcenter7_2esxi-stable212 SUCCESS in 17m 31s
✔️ ansible-test-cloud-integration-vcenter7_1esxi-stable212_1_of_2 SUCCESS in 48m 07s
✔️ ansible-test-cloud-integration-vcenter7_1esxi-stable212_2_of_2 SUCCESS in 58m 22s
✔️ ansible-galaxy-importer SUCCESS in 4m 23s

@mariolenz mariolenz added this to the 3.0.0 milestone Oct 2, 2022
@softwarefactory-project-zuul
Copy link

Build succeeded.

✔️ ansible-tox-linters SUCCESS in 4m 16s
✔️ build-ansible-collection SUCCESS in 4m 46s
ansible-test-sanity-docker-devel FAILURE in 8m 41s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 7m 55s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 9m 25s
ansible-test-sanity-docker-stable-2.14 FAILURE in 7m 37s (non-voting)
✔️ ansible-test-units-community-vmware-python38 SUCCESS in 6m 03s
✔️ ansible-test-cloud-integration-vcenter7_only-stable212 SUCCESS in 17m 59s
✔️ ansible-test-cloud-integration-vcenter7_2esxi-stable212 SUCCESS in 18m 07s
✔️ ansible-test-cloud-integration-vcenter7_1esxi-stable212_1_of_2 SUCCESS in 43m 58s
✔️ ansible-test-cloud-integration-vcenter7_1esxi-stable212_2_of_2 SUCCESS in 52m 42s
✔️ ansible-galaxy-importer SUCCESS in 4m 10s

@softwarefactory-project-zuul
Copy link

Build succeeded.

✔️ ansible-tox-linters SUCCESS in 4m 15s
✔️ build-ansible-collection SUCCESS in 4m 18s
ansible-test-sanity-docker-devel FAILURE in 8m 39s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 7m 51s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 8m 14s
ansible-test-sanity-docker-stable-2.14 FAILURE in 8m 11s (non-voting)
✔️ ansible-test-units-community-vmware-python38 SUCCESS in 5m 43s
✔️ ansible-test-cloud-integration-vcenter7_only-stable212 SUCCESS in 17m 52s
✔️ ansible-test-cloud-integration-vcenter7_2esxi-stable212 SUCCESS in 18m 36s
✔️ ansible-test-cloud-integration-vcenter7_1esxi-stable212_1_of_2 SUCCESS in 46m 04s
✔️ ansible-test-cloud-integration-vcenter7_1esxi-stable212_2_of_2 SUCCESS in 53m 55s
✔️ ansible-galaxy-importer SUCCESS in 4m 18s

@softwarefactory-project-zuul
Copy link

Build failed.

✔️ ansible-tox-linters SUCCESS in 5m 11s
✔️ build-ansible-collection SUCCESS in 4m 57s
ansible-test-sanity-docker-devel FAILURE in 8m 39s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 8m 42s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 9m 58s
ansible-test-sanity-docker-stable-2.14 FAILURE in 8m 27s (non-voting)
✔️ ansible-test-units-community-vmware-python38 SUCCESS in 6m 26s
✔️ ansible-test-cloud-integration-vcenter7_only-stable212 SUCCESS in 18m 32s
✔️ ansible-test-cloud-integration-vcenter7_2esxi-stable212 SUCCESS in 19m 28s
✔️ ansible-test-cloud-integration-vcenter7_1esxi-stable212_1_of_2 SUCCESS in 45m 02s
ansible-test-cloud-integration-vcenter7_1esxi-stable212_2_of_2 RETRY_LIMIT in 6m 52s
✔️ ansible-galaxy-importer SUCCESS in 4m 59s

@mariolenz
Copy link
Collaborator Author

recheck

@softwarefactory-project-zuul
Copy link

Build failed.

✔️ ansible-tox-linters SUCCESS in 4m 10s
✔️ build-ansible-collection SUCCESS in 4m 19s
ansible-test-sanity-docker-devel FAILURE in 8m 56s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 7m 55s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 7m 48s
ansible-test-sanity-docker-stable-2.14 FAILURE in 7m 37s (non-voting)
✔️ ansible-test-units-community-vmware-python38 SUCCESS in 5m 49s
✔️ ansible-test-cloud-integration-vcenter7_only-stable212 SUCCESS in 19m 32s
✔️ ansible-test-cloud-integration-vcenter7_2esxi-stable212 SUCCESS in 17m 20s
✔️ ansible-test-cloud-integration-vcenter7_1esxi-stable212_1_of_2 SUCCESS in 48m 01s
ansible-test-cloud-integration-vcenter7_1esxi-stable212_2_of_2 RETRY_LIMIT in 1h 07m 01s
✔️ ansible-galaxy-importer SUCCESS in 4m 05s

@mariolenz
Copy link
Collaborator Author

recheck

@softwarefactory-project-zuul
Copy link

Build failed.

✔️ ansible-tox-linters SUCCESS in 5m 04s
✔️ build-ansible-collection SUCCESS in 4m 38s
ansible-test-sanity-docker-devel FAILURE in 9m 12s (non-voting)
ansible-test-sanity-docker-milestone FAILURE in 9m 32s
ansible-test-sanity-docker-stable-2.13 FAILURE in 9m 06s
ansible-test-sanity-docker-stable-2.14 FAILURE in 8m 48s (non-voting)
✔️ ansible-test-units-community-vmware-python38 SUCCESS in 6m 15s
✔️ ansible-test-cloud-integration-vcenter7_only-stable212 SUCCESS in 19m 56s
✔️ ansible-test-cloud-integration-vcenter7_2esxi-stable212 SUCCESS in 18m 51s
ansible-test-cloud-integration-vcenter7_1esxi-stable212_1_of_2 FAILURE in 13m 26s
✔️ ansible-test-cloud-integration-vcenter7_1esxi-stable212_2_of_2 SUCCESS in 53m 37s
✔️ ansible-galaxy-importer SUCCESS in 4m 51s

@softwarefactory-project-zuul
Copy link

Build failed.

✔️ ansible-tox-linters SUCCESS in 4m 55s
✔️ build-ansible-collection SUCCESS in 4m 17s
ansible-test-sanity-docker-devel FAILURE in 7m 54s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 8m 21s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 7m 51s
ansible-test-sanity-docker-stable-2.14 FAILURE in 7m 48s (non-voting)
✔️ ansible-test-units-community-vmware-python38 SUCCESS in 6m 20s
✔️ ansible-test-cloud-integration-vcenter7_only-stable212 SUCCESS in 17m 28s
✔️ ansible-test-cloud-integration-vcenter7_2esxi-stable212 SUCCESS in 16m 53s
ansible-test-cloud-integration-vcenter7_1esxi-stable212_1_of_2 RETRY_LIMIT in 6m 03s
✔️ ansible-test-cloud-integration-vcenter7_1esxi-stable212_2_of_2 SUCCESS in 51m 36s
✔️ ansible-galaxy-importer SUCCESS in 4m 14s

@mariolenz
Copy link
Collaborator Author

recheck

@softwarefactory-project-zuul
Copy link

Build succeeded.

✔️ ansible-tox-linters SUCCESS in 4m 06s
✔️ build-ansible-collection SUCCESS in 4m 11s
ansible-test-sanity-docker-devel FAILURE in 7m 09s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 7m 38s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 8m 08s
ansible-test-sanity-docker-stable-2.14 FAILURE in 7m 24s (non-voting)
✔️ ansible-test-units-community-vmware-python38 SUCCESS in 5m 03s
✔️ ansible-test-cloud-integration-vcenter7_only-stable212 SUCCESS in 18m 18s
✔️ ansible-test-cloud-integration-vcenter7_2esxi-stable212 SUCCESS in 17m 14s
✔️ ansible-test-cloud-integration-vcenter7_1esxi-stable212_1_of_2 SUCCESS in 46m 12s
✔️ ansible-test-cloud-integration-vcenter7_1esxi-stable212_2_of_2 SUCCESS in 52m 01s
✔️ ansible-galaxy-importer SUCCESS in 4m 09s

@softwarefactory-project-zuul
Copy link

Build failed.

✔️ ansible-tox-linters SUCCESS in 4m 06s
✔️ build-ansible-collection SUCCESS in 4m 09s
ansible-test-sanity-docker-devel FAILURE in 7m 46s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 8m 37s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 8m 25s
ansible-test-sanity-docker-stable-2.14 FAILURE in 7m 27s (non-voting)
✔️ ansible-test-units-community-vmware-python38 SUCCESS in 5m 12s
✔️ ansible-test-cloud-integration-vcenter7_only-stable212 SUCCESS in 25m 39s
✔️ ansible-test-cloud-integration-vcenter7_2esxi-stable212 SUCCESS in 17m 52s
ansible-test-cloud-integration-vcenter7_1esxi-stable212_1_of_2 FAILURE in 17m 04s
✔️ ansible-test-cloud-integration-vcenter7_1esxi-stable212_2_of_2 SUCCESS in 54m 20s
✔️ ansible-galaxy-importer SUCCESS in 4m 23s

@mariolenz mariolenz closed this Oct 5, 2022
@mariolenz mariolenz reopened this Oct 5, 2022
@mariolenz mariolenz closed this Oct 5, 2022
@mariolenz mariolenz reopened this Oct 5, 2022
@mariolenz mariolenz closed this Oct 5, 2022
@mariolenz mariolenz reopened this Oct 5, 2022
@softwarefactory-project-zuul
Copy link

Build succeeded.

✔️ ansible-tox-linters SUCCESS in 6m 02s
✔️ build-ansible-collection SUCCESS in 6m 22s
ansible-test-sanity-docker-devel FAILURE in 9m 57s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 9m 50s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 10m 24s
ansible-test-sanity-docker-stable-2.14 FAILURE in 8m 40s (non-voting)
✔️ ansible-test-units-community-vmware-python38 SUCCESS in 7m 12s
✔️ ansible-test-cloud-integration-vcenter7_only-stable212 SUCCESS in 20m 29s
✔️ ansible-test-cloud-integration-vcenter7_2esxi-stable212 SUCCESS in 19m 39s
✔️ ansible-test-cloud-integration-vcenter7_1esxi-stable212_1_of_2 SUCCESS in 50m 14s
✔️ ansible-test-cloud-integration-vcenter7_1esxi-stable212_2_of_2 SUCCESS in 54m 18s
✔️ ansible-galaxy-importer SUCCESS in 5m 38s

@mariolenz
Copy link
Collaborator Author

@Nina2244 This PR might be interesting for you. I think that you use (or, a least, you've worked on) vmware_dvs_portgroup. And I'm changing the behavior of the module considerably.

I want to allow users to keep some settings as they are when not defining a parameter, Additionally, users should be able to explicitly define some settings as inherited from the switch.

@mariolenz mariolenz changed the title [WIP] vmware_dvs_portgroup : Remove defaults and add explicit inheritance from switch defaults vmware_dvs_portgroup : Remove defaults and add explicit inheritance from switch defaults Oct 6, 2022
@mariolenz mariolenz added mergeit and removed WIP Work in progress labels Oct 6, 2022
@softwarefactory-project-zuul
Copy link

Build succeeded (gate pipeline).

✔️ ansible-tox-linters SUCCESS in 4m 28s
✔️ build-ansible-collection SUCCESS in 3m 24s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 8m 36s
ansible-test-sanity-docker-stable-2.14 FAILURE in 8m 29s (non-voting)
✔️ ansible-test-units-community-vmware-python38 SUCCESS in 4m 50s
✔️ ansible-galaxy-importer SUCCESS in 4m 33s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 71a9e39 into ansible-collections:main Oct 9, 2022
@mariolenz mariolenz deleted the issue1316 branch October 9, 2022 15:08
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Oct 9, 2022
Update changelog fragments for a better porting guide

SUMMARY
Update changelog fragments for a better porting guide
ISSUE TYPE

Docs Pull Request

COMPONENT NAME
vsphere_copy
vmware_dns_config
vmware_dvs_portgroup
vmware_guest_boot_manager
vmware_guest_network
vmware_guest_vnc
vmware_host_firewall_manager
ADDITIONAL INFORMATION
#1456
#1455
#1483
#1461
#1459
#1454
#1463
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request mergeit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant