--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/CAGMeZaeW%3DNdv_G8S8_g34p8%3DyvDYA-P6BV%3DUGay01xsSdBJ1iQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/CAJJqF904VP_XE985CXB_EWw%2BWJHsAcNexLazD0sShPiO8m4%2B5Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Hi Amine,
There are two things I would check. First, are there any extra permissions required for a service user to see templates in the Content Library (https://docs.vmware.com/en/VMware-vSphere/6.0/com.vmware.vsphere.security.doc/GUID-D490C499-8D68-42A1-AEB2-781F1DDA8A93.html). If the service user that you're using in your salt-cloud driver has the correct permissions then check to see if *any* templates from any of your content libraries are showing up.
If you've set the correct permissions and you still don't see any templates from any of your content libraries then it's likely that the API calls that the salt-cloud vmware driver uses to query for the available images doesn't see the templates in the content library (I don't have access to a VMWare instance so I'm not able to actually see what those calls would return).
If you've confirmed the permissions and confirmed that no
templates are visible from any content libraries that you've
created, then it's best to raise an issue in github (https://github.com/saltstack/salt/issues)
and describe the problem there.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/CAGMeZafyPoKNdjng-sQcA3676BOjhVUmeBnwGZJOEA1u3gso1w%40mail.gmail.com.
Hi Amine,
As I mentioned before, the best way to have this looked at is to
raise an issue in github (https://github.com/saltstack/salt/issues).
The other option is, if you have a support contract with
SaltStack, you can raise the issue with SaltStack's support team
and have their support teams look at it.
From what I can see from the code, the "avail_images" method
queries vcenter for a list of vms and checks for the
"config.tempate" property for each record that's returned and it
builds the list that way.
I'm not a vmware expert (and I don't have access to a vmware
instance to check) but my guess is that the templates in the
content library are not being returned as part of that query - but
that is solely based on the fact that you've said that you have
double-checked permissions on the content libraries for your
service account, and that you aren't seeing any templates from the
content library when you run --list-images.
-- David Fidler Lead Solution Architect, EMEA SaltStack email: dfi...@saltstack.com mobile: +44 7815505120 https://saltstack.com