Closed bradthurber closed 8 years ago
@bradthurber, thanks for reporting.
Salt-Support has validated that this is a bug, though with the following caveats:
This bug only shows up when using vmware with salt-cloud and using the extends profile functionality.
For additional detail see:
ZD-665
@bradthurber Does the fix in #31719 resolve this issue for you? That fix is included in the 2015.8.8 release.
@rallytime, yes, this is fixed now. Closing
Awesome! Thanks!
Description of Issue/Question
salt-cloud delete of a mapped environment fails when more than one provider is defined.
Example failing run:
The workaround I have come up with is to hide all of the providers except for the one used by the map. The delete then works.
I'm wondering if there is perhaps some nuance with the cloud.providers.d file format that I am not seeing? All of my sanitized cloud files are below.
Setup
Add the following cloud configuration files
/etc/salt/cloud.maps.d/map-uat2-jb
/etc/salt/cloud.profiles.d/prof-vmware-nonprod-jb.conf
/etc/salt/cloud.profiles.d/prof-vmware-prod-jb.conf
/etc/salt/cloud.providers.d/prov_vmware_nonprod.conf
/etc/salt/cloud.providers.d/prov_vmware_prod.conf
Steps to Reproduce Issue
Run salt-cloud map delete as shown in the description above. You should get the failure as in the description above.
Now hide the prov_vmware_prod.conf file (this is the one that is NOT used by the map) by renaming it to prov_vmware_prod.confHIDDEN. The salt cloud map delete operation will now work.
Versions Report
Provided by running
salt --versions-report