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

assign a category and value to an existing vm #487

Closed
dleanes opened this issue Jul 24, 2024 · 4 comments
Closed

assign a category and value to an existing vm #487

dleanes opened this issue Jul 24, 2024 · 4 comments
Assignees

Comments

@dleanes
Copy link

dleanes commented Jul 24, 2024

Describe the bug
A playbook was created that assigns a category and value to an already existing vm but it gives message 422 due to how the category entity is being added, I have checked and how I am doing it is how it should be added, but it continues with message 422 I created a case to nutanix support and they asked me to open a case here

To Reproduce
Steps to reproduce the behavior:
2. attached file asigncategtovm.txt
asigncategtovm.txt

error message

msg": "Failed fetching URL: https://iaxxxxxxxx.es.mgmt.xxxxxxx.com:9440/api/nutanix/v3/vms/3efec4d5-9111-42c5-b12b-1f9148485d36",
"response": null,
"status_code": 422

log cvm nutanix
024-07-24T12:42:06.530Z] "PUT /api/nutanix/v3/vms/3efec4d5-9111-42c5-b12b-1f9148485d36 HTTP/1.1" 422 - 4483 349 208 208 "172.30.178.19" "ansible-httpget" "xxxxxxx-xxx-xxx-xxxx" "172.xx.xxxx.xx" "172.xx.xxxx.xx:9444"
Expected behavior
I need to add the categories to the vm and it can be seen in the prism central
asigncategtovm.txt

@dleanes dleanes added the bug Something isn't working label Jul 24, 2024
@stahnjones
Copy link

did you try the new_categories as a list instead of a string?

vars:
new_categories:
"Disaster_Recovery":
- value_L1_DR

@dleanes
Copy link
Author

dleanes commented Jul 25, 2024 via email

@dleanes
Copy link
Author

dleanes commented Jul 25, 2024 via email

@bhati-pradeep bhati-pradeep added the 1.9.3_triage Bug fixes & Improvements label Aug 5, 2024
@george-ghawali george-ghawali removed 1.9.3_triage Bug fixes & Improvements bug Something isn't working labels Sep 17, 2024
@george-ghawali
Copy link
Collaborator

Since it is working fine for the reporter, as well as I also checked. Hence, closing this ticket.

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

No branches or pull requests

7 participants