infraly / k8s-on-openstack

An opinionated way to deploy a Kubernetes cluster on top of an OpenStack cloud.
Apache License 2.0
112 stars 48 forks source link

shade is required for this module !? #12

Closed imedaouidene closed 6 years ago

imedaouidene commented 6 years ago

Hi I'm getting this Error !!


[DEPRECATION WARNING]: [defaults]hostfile option, The key is misleading as it
can also be a list of hosts, a directory or a list of paths . This feature will
 be removed in version 2.8. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
 [WARNING]: provided hosts list is empty, only localhost is available. Note
that the implicit localhost does not match 'all'

PLAY [Launch k8s master] *******************************************************

TASK [Gathering Facts] *********************************************************
Monday 05 March 2018  16:55:56 +0100 (0:00:00.045)       0:00:00.045 **********
ok: [localhost]

TASK [Set variables] ***********************************************************
Monday 05 March 2018  16:55:57 +0100 (0:00:00.533)       0:00:00.578 **********
ok: [localhost]

TASK [openstack-security-groups : Create master security group] ****************
Monday 05 March 2018  16:55:57 +0100 (0:00:00.029)       0:00:00.608 **********
fatal: [localhost]: FAILED! => {"changed": false, "msg": "shade is required for this module"}
        to retry, use: --limit @/home/ubuntu/k8s-on-openstack/site.retry

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=0    unreachable=0    failed=1  

Monday 05 March 2018  16:55:57 +0100 (0:00:00.238)       0:00:00.847 **********
===============================================================================
Gathering Facts --------------------------------------------------------- 0.53s
openstack-security-groups : Create master security group ---------------- 0.24s
Set variables ----------------------------------------------------------- 0.03s
zioproto commented 6 years ago

Hello @imedaouidene , yes you will have to install the ubuntu package python-shade. http://docs.ansible.com/ansible/latest/os_security_group_module.html requirements:

I guess it would be better if the playbook installed this package. Could you propose a PR for this ?

Thank you