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

Add a try except of ManagedObjectNotFound for Vms and Regex for vmNames #1733

Open
wants to merge 49 commits into
base: main
Choose a base branch
from

Conversation

Nina2244
Copy link
Contributor

@Nina2244 Nina2244 commented May 12, 2023

SUMMARY
  • Try to fix the Problem that sometimes the vms renamed and removed between the finding and the use of it. (vCLS Vms)
  • Add the possibility to use regex for the vm name in vmware_vm_info module or give a list of names.
ISSUE TYPE
  • Bugfix Pull Request
  • Feature Pull Request
COMPONENT NAME
  • vmware_vm_info.py
  • vmware_vm_vss_dvs_migrate.py
ADDITIONAL INFORMATION

After Rebase this is the new Pull request for #1512


@softwarefactory-project-zuul
Copy link

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/f1ed87312c994bf6adef90431632a3b9

⚠️ ansible-tox-linters CANCELED
build-ansible-collection FAILURE in 5m 42s
⚠️ ansible-test-sanity-docker-devel SKIPPED Skipped due to failed job build-ansible-collection (non-voting)
⚠️ ansible-test-sanity-docker-milestone SKIPPED Skipped due to failed job build-ansible-collection (non-voting)
⚠️ ansible-test-sanity-docker-stable-2.13 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-sanity-docker-stable-2.14 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-units-community-vmware-python38 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_only-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_2esxi-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection

@softwarefactory-project-zuul
Copy link

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/71c7500b2f6f4504addcc6a25fb650da

⚠️ ansible-tox-linters CANCELED
build-ansible-collection FAILURE in 5m 37s
⚠️ ansible-test-sanity-docker-devel SKIPPED Skipped due to failed job build-ansible-collection (non-voting)
⚠️ ansible-test-sanity-docker-milestone SKIPPED Skipped due to failed job build-ansible-collection (non-voting)
⚠️ ansible-test-sanity-docker-stable-2.13 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-sanity-docker-stable-2.14 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-units-community-vmware-python38 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_only-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_2esxi-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection

@Nina2244
Copy link
Contributor Author

recheck

@softwarefactory-project-zuul
Copy link

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/db9ea6a8db6443bdbff72f9275ca44ab

⚠️ ansible-tox-linters CANCELED
build-ansible-collection FAILURE in 6m 08s
⚠️ ansible-test-sanity-docker-devel SKIPPED Skipped due to failed job build-ansible-collection (non-voting)
⚠️ ansible-test-sanity-docker-milestone SKIPPED Skipped due to failed job build-ansible-collection (non-voting)
⚠️ ansible-test-sanity-docker-stable-2.13 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-sanity-docker-stable-2.14 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-units-community-vmware-python38 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_only-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_2esxi-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection

@Nina2244
Copy link
Contributor Author

Nina2244 commented Jun 7, 2023

recheck

@softwarefactory-project-zuul
Copy link

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/ceba96f036944414be8202421b955663

⚠️ ansible-tox-linters CANCELED
build-ansible-collection FAILURE in 5m 48s
⚠️ ansible-test-cloud-integration-vcenter7_only-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_2esxi-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection

@softwarefactory-project-zuul
Copy link

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/4586458c90c0446bb1f276c82e333f0d

⚠️ ansible-tox-linters CANCELED
build-ansible-collection FAILURE in 5m 53s
⚠️ ansible-test-cloud-integration-vcenter7_only-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_2esxi-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection

@softwarefactory-project-zuul
Copy link

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/8a6aef07365c481f8bd5d5ea321411b9

⚠️ ansible-tox-linters CANCELED
build-ansible-collection FAILURE in 6m 01s
⚠️ ansible-test-cloud-integration-vcenter7_only-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_2esxi-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection

@softwarefactory-project-zuul
Copy link

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/fe1e77242fca44f0941d702fdf804fac

⚠️ ansible-tox-linters CANCELED
build-ansible-collection FAILURE in 5m 56s
⚠️ ansible-test-cloud-integration-vcenter7_only-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_2esxi-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection

@mariolenz
Copy link
Collaborator

@Nina2244 There seems to be a problem with the DOCUMENTATION in vmware_vm_info:

ERROR: Command "ansible-doc -t module community.vmware.vmware_vm_info community.vmware.vmware_vm_vss_dvs_migrate" returned exit status 1.
>>> Standard Error
ERROR! module community.vmware.vmware_vm_info missing documentation (or could not parse documentation): community.vmware.vmware_vm_info did not contain a DOCUMENTATION attribute (/root/ansible_collections/community/vmware/plugins/modules/vmware_vm_info.py). Unable to parse documentation in python file '/root/ansible_collections/community/vmware/plugins/modules/vmware_vm_info.py'

@Nina2244
Copy link
Contributor Author

looks like .. but I don't understand what's the problem

@Nina2244
Copy link
Contributor Author

recheck

@softwarefactory-project-zuul
Copy link

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/14bcee82fc314baca8b9b34587c35689

⚠️ ansible-tox-linters CANCELED
build-ansible-collection FAILURE in 5m 40s
⚠️ ansible-test-cloud-integration-vcenter7_only-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_2esxi-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection

@softwarefactory-project-zuul
Copy link

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/f7c871d2b2644b9c93666cfbc041852c

⚠️ ansible-tox-linters CANCELED
build-ansible-collection FAILURE in 5m 44s
⚠️ ansible-test-cloud-integration-vcenter7_only-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_2esxi-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection

@softwarefactory-project-zuul
Copy link

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/82ce0fcd7258481a85a1f47b218bee20

⚠️ ansible-tox-linters CANCELED
build-ansible-collection FAILURE in 6m 09s
⚠️ ansible-test-cloud-integration-vcenter7_only-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_2esxi-stable214 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_1_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable214_2_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection

Copy link

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/49fa7785d7cd4ce485c96dc16df89712

⚠️ ansible-tox-linters CANCELED
build-ansible-collection FAILURE in 6m 19s
⚠️ ansible-test-cloud-integration-vcenter7_only-stable216 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_2esxi-stable216 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable216_1_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable216_2_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection

Copy link

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/432874b25384469e80206813a1813ffe

⚠️ ansible-tox-linters CANCELED
build-ansible-collection FAILURE in 6m 21s
⚠️ ansible-test-cloud-integration-vcenter7_only-stable216 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_2esxi-stable216 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable216_1_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable216_2_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection

Copy link

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/299855a064d84e45a40e4cbf1dd82bed

⚠️ ansible-tox-linters CANCELED
build-ansible-collection FAILURE in 7m 29s
⚠️ ansible-test-cloud-integration-vcenter7_only-stable216 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_2esxi-stable216 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable216_1_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable216_2_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection

Copy link

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/b89f25c17f8843edbe1416c425eddcfc

⚠️ ansible-tox-linters CANCELED
build-ansible-collection FAILURE in 6m 32s
⚠️ ansible-test-cloud-integration-vcenter7_only-stable216 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_2esxi-stable216 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable216_1_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable216_2_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection

Copy link

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/6dba1f6c7d714365acf98c99173371fe

⚠️ ansible-tox-linters CANCELED
build-ansible-collection FAILURE in 6m 30s
⚠️ ansible-test-cloud-integration-vcenter7_only-stable216 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_2esxi-stable216 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable216_1_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-test-cloud-integration-vcenter7_1esxi-stable216_2_of_2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants