Description of problem: While creation of a VM from template within the cluster where the hosted engine is settled is working fine, the creation failed if another cluster will be selected also managed by the same RHVM. The error while creation always points to the data-center of the cluster from the hosted engine. The VM can be created for all clusters via VM-Portal UI using the same user account for creation as via the api. The erroneous behavior just points for the creation using the api via ansible. It is also working fine if the user account becomes admin permissions for the template. Version-Release number of selected component (if applicable): ovirt-ansible-collection-1.6.6-1.el8ev.noarch How reproducible: * Multiple clusters are managed by the same RHVM * The user account is member of a user group with permission "UserTemplateBasedVm" of the template * The template is settled within the cluster, host, data-center, storage where the user group has permission "PowerUserRole" Steps to Reproduce: 1. Build an ansible playbook to create a vm from a template, user only has granted PowerUserRole 2. Error ValueError: Template with name 'rhel-8.5-update-2-x86_64-kvm-eregion-bd' and version 'None' in data center 'xxxx' was not found' 3. Enable admin, works succesfully. Actual results: Needed admin system permission to create vms in multiple rhv-m datacenters from a Template. Expected results: Only use PowerUserRole to deploy vms from a template in a multidatacenter environment.
As mentioned above the problem wasn't reproduced on the latest RHV 4.4 SP1 batch 1, so closing as worksforme. Feel free to reopen and attach reproducing steps if still reproduced on latest versions
Hello customer after apply the last rhv-m update still suffering the issue, so maybe we are facing some data corruption issue, may be Eli could take a look of the database?.
*** This bug has been marked as a duplicate of bug 2144346 ***