-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
one_template only returns templates owned by user but not by group membership #9278
Comments
Files identified in the description: If these files are incorrect, please update the |
After a bit more digging into the OpenNebula XML-RPC API docs I found the parameters for the
Would it make sense to pass Happy to provide a PR if there are no voices against this! Edit: I just tested with the value of |
Hi @skropf Thanks for reporting and for digging into it! First of all, since the module's documentation does not claim to address that extended scope, this would be a Feature Idea rather than a Bug Report (the semantic difference being that bugfixes are backported to previous versions while features are not), so please adjust. Maybe it would make sense to give the scope choice to the user of the module? Like, create a new parameter named See https://github.com/russoz-ansible/ansible-contrib-unofficial/blob/main/deprecations.md for how to do that. |
@russoz Thanks for the feedback! I will try to implement such a parameter. In the meantime, as I saw that @nilsding maintains the module: Could you give some feedback or would you just rather be mentioned in a PR? Regarding the label: I am not sure how I can change the label of the issue as there is no edit button showing. I also couldn't find bot commands or similar in the contributing guidelines. Please point it out to me, if I overlooked something, thanks! |
Hi @skropf, just mentioning me in a PR is fine (it's done automatically by @ansibullbot anyway). Adding an extra parameter to specify the filter flag would be nice to have in all the one_* modules for sure. IIRC back when implementing it I just copied over what the other existing modules did, and that was good enough for most of our use cases ;-) ... |
Summary
When I try to instantiate a VM by using a template which is not owned/created by my user, the execution fails by reporting that the template can not be found, although this is possible by using the web interface (thus the permissions/ACLs should be set correctly).
I think I have found the corresponding code lines:
I can see here that it is intended to only return templates which are owned by the user.
So my question here is if that's how it should be, because I would like to get all templates which are usable by my user and group, so that I can create VMs by using templates where I have access according to groups/ACLs.
Beside the Ansible versions which are stated below the OpenNebula version is 6.8.2
Any help/input is appreciated! Thanks!
Issue Type
Bug Report
Component Name
one_template
Ansible Version
Community.general Version
Configuration
OS / Environment
Debian 12
Steps to Reproduce
Expected Results
With a template which was created by my user:
Actual Results
With a template which was not created by my user but I have appropriate access according to the ACLs.
Code of Conduct
The text was updated successfully, but these errors were encountered: