voxpupuli / puppet-homeassistant

Puppet Module for Home Assistant - home automation platform. https://home-assistant.io/
Apache License 2.0
8 stars 9 forks source link

Python fails to install on CentOs7 #22

Open defenestration opened 6 years ago

defenestration commented 6 years ago

Affected Puppet, Ruby, OS and module versions/distributions

How to reproduce (e.g Puppet code you use)

Only have hiera code:

classes:
  - homeassistant
homeassistant::location_name: xxx
... other main configs

What are you seeing

Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install python3' returned 1: Error: Nothing to do
Error: /Stage[main]/Python::Install/Package[python]/ensure: change from purged to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install python3' returned 1: Error: Nothing to do

What behaviour did you expect instead

python to be installed

Output log

[root@homeassistant ~]# puppet agent -t                                                    
Info: Using configured environment 'production'                                            
Info: Retrieving pluginfacts                                                               
Info: Retrieving plugin                                                                    
Info: Loading facts                                                                        
Info: Caching catalog for homeassistant.alf                                                
Info: Applying configuration version '1535339556'                                          
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install python3' returned 1: Error: Nothing 
to do                                                                                      
Error: /Stage[main]/Python::Install/Package[python]/ensure: change from purged to present f
ailed: Execution of '/usr/bin/yum -d 0 -e 0 -y install python3' returned 1: Error: Nothing 
to do                                                                                      
Notice: /Stage[main]/Python::Install/Package[virtualenv]: Dependency Package[python] has fa
ilures: true                                                                               
Warning: /Stage[main]/Python::Install/Package[virtualenv]: Skipping because of failed depen
dencies                                                                                    
Notice: /Stage[main]/Python::Install/Package[pip]: Dependency Package[python] has failures:
 true                                                                                      
Warning: /Stage[main]/Python::Install/Package[pip]: Skipping because of failed dependencies

Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install python3-devel' returned 1: Error: No
thing to do                                                                                
Error: /Stage[main]/Python::Install/Package[python-dev]/ensure: change from purged to prese
nt failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install python3-devel' returned 1: Error
: Nothing to do                                                                            
Notice: /Stage[main]/Python/Anchor[python::end]: Dependency Package[python] has failures: t
rue                                                                                        
Notice: /Stage[main]/Python/Anchor[python::end]: Dependency Package[python-dev] has failure
s: true                                                                                    
Warning: /Stage[main]/Python/Anchor[python::end]: Skipping because of failed dependencies  
Notice: /Stage[main]/Homeassistant::Install/Python::Pyvenv[/srv/homeassistant]/Exec[python_
virtualenv_/srv/homeassistant]/returns: executed successfully                              
Notice: /Stage[main]/Homeassistant::Install/Python::Pip[homeassistant]/Exec[pip_install_hom
eassistant]: Dependency Package[python] has failures: true                                 
Notice: /Stage[main]/Homeassistant::Install/Python::Pip[homeassistant]/Exec[pip_install_hom
eassistant]: Dependency Package[python-dev] has failures: true                             
Warning: /Stage[main]/Homeassistant::Install/Python::Pip[homeassistant]/Exec[pip_install_ho
meassistant]: Skipping because of failed dependencies                                      
Info: Class[Homeassistant::Install]: Unscheduling all events on Class[Homeassistant::Instal
l]                                                                                         
Notice: /Stage[main]/Homeassistant::Config/Concat[configuration.yaml]/Concat_file[configura
tion.yaml]: Dependency Package[python] has failures: true                                  
Notice: /Stage[main]/Homeassistant::Config/Concat[configuration.yaml]/Concat_file[configura
tion.yaml]: Dependency Package[python-dev] has failures: true                              
Warning: /Stage[main]/Homeassistant::Config/Concat[configuration.yaml]/Concat_file[configur
ation.yaml]: Skipping because of failed dependencies                                       
Notice: /Stage[main]/Homeassistant::Config/Concat[configuration.yaml]/File[/etc/homeassista
nt/configuration.yaml]: Dependency Package[python] has failures: true                      
Notice: /Stage[main]/Homeassistant::Config/Concat[configuration.yaml]/File[/etc/homeassista
nt/configuration.yaml]: Dependency Package[python-dev] has failures: true                  
Warning: /Stage[main]/Homeassistant::Config/Concat[configuration.yaml]/File[/etc/homeassist
ant/configuration.yaml]: Skipping because of failed dependencies                           
Notice: /Stage[main]/Homeassistant::Config/Concat::Fragment[homeassistant]/Concat_fragment[
homeassistant]: Dependency Package[python] has failures: true                              
Notice: /Stage[main]/Homeassistant::Config/Concat::Fragment[homeassistant]/Concat_fragment[
homeassistant]: Dependency Package[python-dev] has failures: true                          
Warning: /Stage[main]/Homeassistant::Config/Concat::Fragment[homeassistant]/Concat_fragment
[homeassistant]: Skipping because of failed dependencies                                   
Notice: /Stage[main]/Homeassistant::Config/Concat[known_devices.yaml]/Concat_file[known_dev
ices.yaml]: Dependency Package[python] has failures: true                                  
Notice: /Stage[main]/Homeassistant::Config/Concat[known_devices.yaml]/Concat_file[known_dev
ices.yaml]: Dependency Package[python-dev] has failures: true                              
Warning: /Stage[main]/Homeassistant::Config/Concat[known_devices.yaml]/Concat_file[known_de
vices.yaml]: Skipping because of failed dependencies                                       
Notice: /Stage[main]/Homeassistant::Config/Concat[known_devices.yaml]/File[/etc/homeassista
nt/known_devices.yaml]: Dependency Package[python] has failures: true                      
Notice: /Stage[main]/Homeassistant::Config/Concat[known_devices.yaml]/File[/etc/homeassista
nt/known_devices.yaml]: Dependency Package[python-dev] has failures: true                  
Warning: /Stage[main]/Homeassistant::Config/Concat[known_devices.yaml]/File[/etc/homeassist
ant/known_devices.yaml]: Skipping because of failed dependencies                           
Notice: /Stage[main]/Homeassistant::Service/Service[homeassistant]: Dependency Package[pyth
on] has failures: true                                                                     
Notice: /Stage[main]/Homeassistant::Service/Service[homeassistant]: Dependency Package[pyth
on-dev] has failures: true                                                                 
Warning: /Stage[main]/Homeassistant::Service/Service[homeassistant]: Skipping because of fa
iled dependencies                                                                          
Notice: Applied catalog in 8.41 seconds                                                    

Any additional information you'd like to impart

Possibly could use a parameter to specify the python version to install, or allowing another python class to manage the python installation (puppet-python ? ), or possibly a parameter to not manage the python installation.