Project

General

Profile

Bug #8587

Updated by Dominic Cleal over 9 years ago

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1170696  
  Description of problem: 
 It is possible to enable build also for hosts that are not managed. The result is then a no-op, because the PXE templates are not generated. 

 This behaviour is inconsistent with the UI, that where you cannot click the Build button when the host is not Managed. Also in the situation of enabling build without managed shows in the UI that the node is in Building status, but you are not allowed to view the templates either, these show an error that the host is not managed. 

 <pre> 
 


 hoiroot@li-lc-1017:~$ sudo -u hoici hammer -c /opt/hoici/etc/hammer-hoici.yaml host update --name li-lc-1014.hag.hilti.com --managed no 
 Host updated 

 hoiroot@li-lc-1017:~$ ls -l /var/lib/tftpboot/pxelinux.cfg/ 
 total 16 
 -rw-r--r-- 1 foreman-proxy foreman-proxy 12361 Dec    4 15:22 default 

 hoiroot@li-lc-1017:~$ sudo -u hoici hammer -c /opt/hoici/etc/hammer-hoici.yaml host update --name li-lc-1014.hag.hilti.com --build no 
 Host updated 

 hoiroot@li-lc-1017:~$ sudo -u hoici hammer -c /opt/hoici/etc/hammer-hoici.yaml host update --name li-lc-1014.hag.hilti.com --build yes 
 Host updated 

 hoiroot@li-lc-1017:~$ ls -l /var/lib/tftpboot/pxelinux.cfg/ 
 total 16 
 -rw-r--r-- 1 foreman-proxy foreman-proxy 12361 Dec    4 15:22 default 
 </pre> 

 


 Version-Release number of selected component (if applicable): 


 How reproducible: 


 Steps to Reproduce: 
 1. Use the hammer to enable build as shown above 
 2. 
 3. 

 Actual results: 


 Expected results: 
 Give an Error that enabling build is only allowed for Managed hosts. 


 Additional info:

Back