FS#44667 - [salt] salt-cloud does not work with openstack without [apache-libcloud] installed

Attached to Project: Community Packages
Opened by Alastair Medford (Thornet) - Monday, 20 April 2015, 21:12 GMT
Last edited by Daniel Wallace (gtmanfred) - Monday, 20 April 2015, 22:22 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sébastien Luttringer (seblu)
Daniel Wallace (gtmanfred)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
apache-libcloud should be added as a dependency for salt, or at least mentioned as an optional dependency when using salt-cloud.
This is because salt-cloud will fail to operate with the following error without it:

$ sudo salt-cloud --list-images all
[INFO ] salt-cloud starting
[WARNING ] The cloud driver, 'openstack', configured under the 'rackspace-config' cloud provider alias was not loaded since 'openstack.get_configured_provider()' could not be found. Removing it from the available providers list
Error: There was an error listing images: There are no cloud providers configured.

The only way that I could find out that apache-libcloud was a dependency was to search through salt-cloud installation instructions before it was merged into the main salt project. I don't know if this is an issue with other cloud providers but it will be for anyone trying to use rackspace/openstack

Additional info:
* package version: 2014.7.2-1


Steps to reproduce:

- # pacman -S salt
- # mkdir /etc/salt/cloud.providers.d
- create a cloud provider configuration file as described at http://docs.saltstack.com/en/latest/topics/cloud/config.html#openstack
- # salt-cloud --list-images all
This task depends upon

Closed by  Daniel Wallace (gtmanfred)
Monday, 20 April 2015, 22:22 GMT
Reason for closing:  Won't fix
Additional comments about closing:  see comments
Comment by Daniel Wallace (gtmanfred) - Monday, 20 April 2015, 22:22 GMT
That is the expected behavior.

There are a ton of modules, and most modules have their own dependencies, and would be a ridiculous list of dependencies.

Matching what everyone else does, we only include the dependencies required for the main service.

I do need to fix parts of it and add in stuff like cherry and different things that could be used with salt-api, but for modules and salt-cloud drivers, and all that, we are leaving them off.

Loading...