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

Field 'tags' is read-only. when setting it via xe vm-param-set tags #5286

Closed
gdelafond opened this issue Dec 7, 2023 · 2 comments
Closed

Comments

@gdelafond
Copy link

Hello,

I try to set tags on a VM with xe vm-param-set uuid=bbadf1e9-8da9-d347-2c60-8f4f5e725ae5 tags=test but it says that the Field 'tags' is read-only.

The tags Field is a SRW field when listing it the xe vm-param-list:

# xe vm-param-list uuid=bbadf1e9-8da9-d347-2c60-8f4f5e725ae5 | grep tags
                                  tags (SRW):

Is it a bug of the XAPI? or did I make mistakes when using xe vm-param-set tags?

Thank you.

@robhoes
Copy link
Member

robhoes commented Dec 8, 2023

You can use:

xe vm-param-add uuid=... param-name=tags param-key=...

which sets individual values in the set. For some reason, the tags field does not have a "set all tags at once" option (some other set field do have this, with comma-separated lists).

@gdelafond
Copy link
Author

@robhoes It works with xe vm-param-add.
I did not think to look at another command as the error was Field 'tags' is read-only. The error should be something like This is a set, use xe vm-param-add I think.

Thank you!

For some reason, the tags field does not have a "set all tags at once" option (some other set field do have this, with comma-separated lists).

:(

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

2 participants