Project

General

Profile

Bug #9882

Updated by Dominic Cleal about 9 years ago

When creating a host on a compute resource with no compute attributes or compute profile, you get the error "mac value is blank": 

 <pre> 
     

     # hammer -u … -p … compute-resource info --id 22 | grep -i provider 
     Provider:      Libvirt 
     # hammer -u … -p … host create \ 
         --architecture-id 37 \ 
         --domain-id 42 \ 
         --environment-id 81 \ 
         --location-id 258 \ 
         --mac 'a9:1a:9a:70:be:60' \ 
         --medium-id 32 \ 
         --name 'AkqttNPO2' \ 
         --operatingsystem-id 43 \ 
         --organization-id 259 \ 
         --partition-table-id 28 \ 
         --puppet-proxy-id 1 \ 
         --root-pass 'changeme' \ 
         --compute-resource-id 22 
     Could not create the host: 
     mac value is blank! 
 </pre> 

 Foreman detects whether the host is compute or not based on the presence of the compute_resource_id *and* some attributes to create it with.

Back