error: shade is required for this module

Hello,
we have an openstack setup with one controller, a neutron machine and a couple of compute nodes.
I have first installed ansible on the controller but somehow the installation failed.
The command
ansible localhost -m os_project_facts -a “cloud=santos”
reported
“shade is required for this module.”
And moreover the command “import shade” in the python shell reported errors.

Then we moved the ansible installation to a different machine. Installation was fine and also python shell reported no error after “import shade” command.
but the command:
ansible -m os_project_facts -a “cloud=santos”
still reports
“shade is required for this module.”

Do I need to install ansible on the controller machine as well, even if I want to run ansible from a different machine?

Thanks a lot for your help
Maurizio

Hi Maurizio,

Did you install shade? You can do that using „pip install shade” command.

Kind regards,

Kamil Szczygieł

Hi Kamil,
thanks for your reply. I’ve installed shade on the deployment machine, but not on the target (the controller).
Now the message is over, as I’ve installed shade on the target.
So assumption on ansible installation is:

  • Install ansible on deployment machine
  • Install python+shade on target machine

I was instead assuming that no installation was needed but on the deployment machine.
I thought ansible gets connected to the target machine using REST APIs, but it turned out I was mistaken.

Can you confirm my assumptions?

Best Regards
Maurizio