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

community.vmware.vmware_category "All Objects" category type does select any associated object types #454

Closed
ImranJMughal opened this issue Oct 21, 2020 · 3 comments · Fixed by #465
Assignees
Labels
question Further information is requested

Comments

@ImranJMughal
Copy link

when using 'All objects' for tag category creation, no associated categories show as tagged in the gui. This is in vsphere 7

    associable_object_types:
      - All objects

image

image

@Akasurde
Copy link
Member

@ImranJMughal Seems like vCenter HTML 5 bug to me.

changed: [localhost] => {
    "category_results": {
        "category_id": "urn:vmomi:InventoryServiceCategory:7a836ce2-ce16-4611-99e3-d4c458cc11a4:GLOBAL",
        "msg": "Category 'all' created."
    },
    "changed": true,
    "invocation": {
        "module_args": {
            "associable_object_types": [
                "All objects"
            ],
            "category_cardinality": "multiple",
            "category_description": "all",
            "category_name": "all",
            "hostname": "10.65.201.153",
            "new_category_name": null,
            "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "port": 443,
            "protocol": "https",
            "state": "present",
            "username": "[email protected]",
            "validate_certs": false
        }
    }
}

Screenshot 2020-10-21 at 16 14 02

@Akasurde Akasurde added the question Further information is requested label Oct 21, 2020
@Akasurde Akasurde self-assigned this Oct 21, 2020
@ImranJMughal
Copy link
Author

So i think in 7 were there is only html5 gui now, this doesn't show as all objects checked but when using it on applicable objects it does work. I think this will cause confusion and issues therefore i have instead selected all "associable_object_types". This has also thrown up some issues.

As some categories are grouped i think the relevant option in ansible should group also. For instance:-

Network should add the following to obj_types

                obj_types_set.append('Network')
                obj_types_set.append('OpaqueNetwork')
                obj_types_set.append('HostNetwork')

distributed switch

                obj_types_set.append('DistributedVirtualSwitch')
                obj_types_set.append('VmwareDistributedVirtualSwitch')

Akasurde added a commit to Akasurde/community.vmware that referenced this issue Oct 27, 2020
Following associable types
* Network - 'Network', 'HostNetwork', 'OpaqueNetwork'
* Distributed switch - 'VmwareDistributedVirtualSwitch', 'DistributedVirtualSwitch'

Fixes: ansible-collections#454

Signed-off-by: Abhijeet Kasurde <[email protected]>
@Akasurde
Copy link
Member

resolved_by_pr #465

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

Successfully merging a pull request may close this issue.

2 participants