Unable to save mac value is blank!

Hello all,

I am struggling to find a solution for the following problem… when
creating a host I get the error "Unable to save mac value is blank!" I
configured Puppet/Foreman to deploy the new host on a ESXi machine. Any one
got some clues ?

My log:

Started POST "/hosts" for 10.0.0.19 at 2015-02-07 06:57:10 -0500
Processing by HostsController#create as /
Parameters: {"utf8"=>"✓",
"authenticity_token"=>"7npEZPWnnUveLQy3iInl2Og6Jao4dX7N17wVXDTB8xA=",
"host"=>{"name"=>
"test01", "hostgroup_id"=>"1", "compute_resource_id"=>"1",
"compute_profile_id"=>"5", "environment_id"=>"6",
"puppe
t_ca_proxy_id"=>"1", "puppet_proxy_id"=>"1", "puppetclass_ids"=>["", "6",
"3", "5", "7", "4"], "managed"=>"true",
"
progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed",
"compute_attributes"=>{"cpus"=>"1",
"corespersocket"=>"
1", "memory_mb"=>"768", "cluster"=>"VM01.",
"path"=>"/ha-folder-root/ha-datacenter/vm",
"guest_id"=>"debian6_64Gues
t", "hardware_version"=>"vmx-10",
"interfaces_attributes"=>{"new_interfaces"=>{"type"=>"VirtualE1000",
"network"=>"
HaNetwork-VM Network", "_delete"=>""}, "0"=>{"type"=>"VirtualE1000",
"network"=>"HaNetwork-VM Network",
"_delete"=>
""}}, "volumes_attributes"=>{"new_volumes"=>{"datastore"=>"datastore1",
"name"=>"Hard disk", "size_gb"=>"10",
"thin
"=>"true", "eager_zero"=>"false", "_delete"=>""},
"0"=>{"datastore"=>"datastore1", "name"=>"Hard disk",
"size_gb"=>
"10", "thin"=>"true", "eager_zero"=>"false", "_delete"=>""}},
"scsi_controller_type"=>"VirtualLsiLogicController",
"start"=>"1"}, "domain_id"=>"1", "realm_id"=>"", "mac"=>"",
"subnet_id"=>"1", "ip"=>"10.0.0.222",
"interfaces_attri
butes"=>{"new_interfaces"=>{"_destroy"=>"false", "type"=>"Nic::Managed",
"mac"=>"", "identifier"=>"", "name"=>"",
"
domain_id"=>"", "subnet_id"=>"", "ip"=>"", "managed"=>"1", "virtual"=>"0",
"tag"=>"", "attached_to"=>""}},
"archite
cture_id"=>"1", "operatingsystem_id"=>"1", "provision_method"=>"build",
"build"=>"1", "medium_id"=>"2",
"ptable_id"
=>"8", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"3-Users",
"enabled"=>"1", "model_id"=>"",
"comment"=>
"", "overwrite"=>"false"}, "capabilities"=>"build image",
"provider"=>"Vmware"}
Adding Compute instance for test01.fritz.box
Successfully decrypted field for Foreman::Model::Vmware VM01
Successfully decrypted field for Foreman::Model::Vmware VM01
Started GET "/tasks/2e040eae-6038-41d5-b074-92a7174ace2e" for 10.0.0.19 at
2015-02-07 06:57:11 -0500
Removing Compute instance for test01.fritz.box
Processing by TasksController#show as /
Parameters: {"id"=>"2e040eae-6038-41d5-b074-92a7174ace2e"}
mac value is blank!
Rolling back due to a problem: [Query instance details for
test01.fritz.box 4 failed [#<Host::Managed
i
d: nil, name: "test01.fritz.box", ip: "10.0.0.222", last_compile: nil,
last_freshcheck: nil, last_report: nil,
upda
ted_at: nil, source_file_id: nil, created_at: nil, mac: nil, root_pass:
"$1$mOU3EcxR$b3jGqstvqxPHe8MJbUvPC1",
seria
l: nil, puppet_status: 0, domain_id: 1, architecture_id: 1,
operatingsystem_id: 1, environment_id: 6, subnet_id:
1,
ptable_id: 8, medium_id: 2, build: true, comment: "", disk: "",
installed_at: nil, model_id: nil, hostgroup_id:
1,
owner_id: 3, owner_type: "User", enabled: true, puppet_ca_proxy_id: 1,
managed: true, use_image: nil,
image_file:
nil, uuid: "522586fa-fe1d-96bc-e5ce-f7a7133e131f", compute_resource_id: 1,
puppet_proxy_id: 1, certname: nil,
image
_id: nil, organization_id: nil, location_id: nil, type: "Host::Managed",
otp: nil, realm_id: nil,
compute_profile_i
d: 5, provision_method: "build", primary_interface: nil, grub_pass:
"$1$30RglzA9$QZ/wGebMsmgICWbSCF/0Z.">,
:setComp
uteDetails]]
Removing Compute instance for test01.fritz.box
Failed to save: mac value is blank!

Hi,

If you're not using Vcenter, you can't provision VM with foreman. Without
Vcenter, ESXi server does not assign a mac address at creation time but on
the first boot of the VM.

Search in the list, i've already posted about this.

Regards,

··· 2015-02-07 13:09 GMT+01:00 Agustin Martin :

Hello all,

I am struggling to find a solution for the following problem… when
creating a host I get the error “Unable to save mac value is blank!” I
configured Puppet/Foreman to deploy the new host on a ESXi machine. Any one
got some clues ?

My log:

Started POST “/hosts” for 10.0.0.19 at 2015-02-07 06:57:10 -0500
Processing by HostsController#create as /
Parameters: {“utf8”=>“✓”,
“authenticity_token”=>“7npEZPWnnUveLQy3iInl2Og6Jao4dX7N17wVXDTB8xA=”,
“host”=>{“name”=>
“test01”, “hostgroup_id”=>“1”, “compute_resource_id”=>“1”,
“compute_profile_id”=>“5”, “environment_id”=>“6”,
“puppe
t_ca_proxy_id”=>“1”, “puppet_proxy_id”=>“1”, “puppetclass_ids”=>["", “6”,
“3”, “5”, “7”, “4”], “managed”=>“true”,

progress_report_id”=>"[FILTERED]", “type”=>“Host::Managed”,
“compute_attributes”=>{“cpus”=>“1”,
“corespersocket”=>“
1”, “memory_mb”=>“768”, “cluster”=>“VM01.”,
“path”=>"/ha-folder-root/ha-datacenter/vm",
“guest_id”=>“debian6_64Gues
t”, “hardware_version”=>“vmx-10”,
“interfaces_attributes”=>{“new_interfaces”=>{“type”=>“VirtualE1000”,
“network”=>“
HaNetwork-VM Network”, “_delete”=>""}, “0”=>{“type”=>“VirtualE1000”,
“network”=>“HaNetwork-VM Network”,
"_delete"=>
""}}, “volumes_attributes”=>{“new_volumes”=>{“datastore”=>“datastore1”,
“name”=>“Hard disk”, “size_gb”=>“10”,
“thin
”=>“true”, “eager_zero”=>“false”, “_delete”=>""},
“0”=>{“datastore”=>“datastore1”, “name”=>“Hard disk”,
“size_gb”=>
“10”, “thin”=>“true”, “eager_zero”=>“false”, “_delete”=>""}},
“scsi_controller_type”=>“VirtualLsiLogicController”,
“start”=>“1”}, “domain_id”=>“1”, “realm_id”=>"", “mac”=>"",
“subnet_id”=>“1”, “ip”=>“10.0.0.222”,
“interfaces_attri
butes”=>{“new_interfaces”=>{"_destroy"=>“false”, “type”=>“Nic::Managed”,
“mac”=>"", “identifier”=>"", “name”=>"",

domain_id”=>"", “subnet_id”=>"", “ip”=>"", “managed”=>“1”, “virtual”=>“0”,
“tag”=>"", “attached_to”=>""}},
“archite
cture_id”=>“1”, “operatingsystem_id”=>“1”, “provision_method”=>“build”,
“build”=>“1”, “medium_id”=>“2”,
“ptable_id”
=>“8”, “disk”=>"", “root_pass”=>"[FILTERED]", “is_owned_by”=>“3-Users”,
“enabled”=>“1”, “model_id”=>"",
“comment”=>
"", “overwrite”=>“false”}, “capabilities”=>“build image”,
“provider”=>“Vmware”}
Adding Compute instance for test01.fritz.box
Successfully decrypted field for Foreman::Model::Vmware VM01
Successfully decrypted field for Foreman::Model::Vmware VM01
Started GET “/tasks/2e040eae-6038-41d5-b074-92a7174ace2e” for 10.0.0.19 at
2015-02-07 06:57:11 -0500
Removing Compute instance for test01.fritz.box
Processing by TasksController#show as /
Parameters: {“id”=>“2e040eae-6038-41d5-b074-92a7174ace2e”}
mac value is blank!
Rolling back due to a problem: [Query instance details for
test01.fritz.box 4 failed [#<Host::Managed
i
d: nil, name: “test01.fritz.box”, ip: “10.0.0.222”, last_compile: nil,
last_freshcheck: nil, last_report: nil,
upda
ted_at: nil, source_file_id: nil, created_at: nil, mac: nil, root_pass:
"$1$mOU3EcxR$b3jGqstvqxPHe8MJbUvPC1",
seria
l: nil, puppet_status: 0, domain_id: 1, architecture_id: 1,
operatingsystem_id: 1, environment_id: 6, subnet_id:
1,
ptable_id: 8, medium_id: 2, build: true, comment: “”, disk: “”,
installed_at: nil, model_id: nil, hostgroup_id:
1,
owner_id: 3, owner_type: “User”, enabled: true, puppet_ca_proxy_id: 1,
managed: true, use_image: nil,
image_file:
nil, uuid: “522586fa-fe1d-96bc-e5ce-f7a7133e131f”, compute_resource_id: 1,
puppet_proxy_id: 1, certname: nil,
image
_id: nil, organization_id: nil, location_id: nil, type: “Host::Managed”,
otp: nil, realm_id: nil,
compute_profile_i
d: 5, provision_method: “build”, primary_interface: nil, grub_pass:
"$1$30RglzA9$QZ/wGebMsmgICWbSCF/0Z.">,
:setComp
uteDetails]]
Removing Compute instance for test01.fritz.box
Failed to save: mac value is blank!


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Hi Claude,

Thanks for your response and clarifying the issue :wink:

Kind regards,
Agustin

··· Op zaterdag 7 februari 2015 13:27:00 UTC+1 schreef claude juif: > > Hi, > > If you're not using Vcenter, you can't provision VM with foreman. Without > Vcenter, ESXi server does not assign a mac address at creation time but on > the first boot of the VM. > > Search in the list, i've already posted about this. > > Regards, > > 2015-02-07 13:09 GMT+01:00 Agustin Martin <qua...@gmail.com > > : > >> Hello all, >> >> I am struggling to find a solution for the following problem.. when >> creating a host I get the error "Unable to save mac value is blank!" I >> configured Puppet/Foreman to deploy the new host on a ESXi machine. Any one >> got some clues ? >> >> My log: >> >> Started POST "/hosts" for 10.0.0.19 at 2015-02-07 06:57:10 -0500 >> Processing by HostsController#create as */* >> Parameters: {"utf8"=>"✓", >> "authenticity_token"=>"7npEZPWnnUveLQy3iInl2Og6Jao4dX7N17wVXDTB8xA=", >> "host"=>{"name"=> >> "test01", "hostgroup_id"=>"1", "compute_resource_id"=>"1", >> "compute_profile_id"=>"5", "environment_id"=>"6", >> "puppe >> t_ca_proxy_id"=>"1", "puppet_proxy_id"=>"1", "puppetclass_ids"=>["", "6", >> "3", "5", "7", "4"], "managed"=>"true", >> " >> progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", >> "compute_attributes"=>{"cpus"=>"1", >> "corespersocket"=>" >> 1", "memory_mb"=>"768", "cluster"=>"VM01.", >> "path"=>"/ha-folder-root/ha-datacenter/vm", >> "guest_id"=>"debian6_64Gues >> t", "hardware_version"=>"vmx-10", >> "interfaces_attributes"=>{"new_interfaces"=>{"type"=>"VirtualE1000", >> "network"=>" >> HaNetwork-VM Network", "_delete"=>""}, "0"=>{"type"=>"VirtualE1000", >> "network"=>"HaNetwork-VM Network", >> "_delete"=> >> ""}}, "volumes_attributes"=>{"new_volumes"=>{"datastore"=>"datastore1", >> "name"=>"Hard disk", "size_gb"=>"10", >> "thin >> "=>"true", "eager_zero"=>"false", "_delete"=>""}, >> "0"=>{"datastore"=>"datastore1", "name"=>"Hard disk", >> "size_gb"=> >> "10", "thin"=>"true", "eager_zero"=>"false", "_delete"=>""}}, >> "scsi_controller_type"=>"VirtualLsiLogicController", >> "start"=>"1"}, "domain_id"=>"1", "realm_id"=>"", "mac"=>"", >> "subnet_id"=>"1", "ip"=>"10.0.0.222", >> "interfaces_attri >> butes"=>{"new_interfaces"=>{"_destroy"=>"false", "type"=>"Nic::Managed", >> "mac"=>"", "identifier"=>"", "name"=>"", >> " >> domain_id"=>"", "subnet_id"=>"", "ip"=>"", "managed"=>"1", "virtual"=>"0", >> "tag"=>"", "attached_to"=>""}}, >> "archite >> cture_id"=>"1", "operatingsystem_id"=>"1", "provision_method"=>"build", >> "build"=>"1", "medium_id"=>"2", >> "ptable_id" >> =>"8", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"3-Users", >> "enabled"=>"1", "model_id"=>"", >> "comment"=> >> "", "overwrite"=>"false"}, "capabilities"=>"build image", >> "provider"=>"Vmware"} >> Adding Compute instance for test01.fritz.box >> Successfully decrypted field for Foreman::Model::Vmware VM01 >> Successfully decrypted field for Foreman::Model::Vmware VM01 >> Started GET "/tasks/2e040eae-6038-41d5-b074-92a7174ace2e" for 10.0.0.19 >> at 2015-02-07 06:57:11 -0500 >> Removing Compute instance for test01.fritz.box >> Processing by TasksController#show as */* >> Parameters: {"id"=>"2e040eae-6038-41d5-b074-92a7174ace2e"} >> mac value is blank! >> Rolling back due to a problem: [Query instance details for >> test01.fritz.box 4 failed [#> i >> d: nil, name: "test01.fritz.box", ip: "10.0.0.222", last_compile: nil, >> last_freshcheck: nil, last_report: nil, >> upda >> ted_at: nil, source_file_id: nil, created_at: nil, mac: nil, root_pass: >> "$1$mOU3EcxR$b3jGqstvqxPHe8MJbUvPC1", >> seria >> l: nil, puppet_status: 0, domain_id: 1, architecture_id: 1, >> operatingsystem_id: 1, environment_id: 6, subnet_id: >> 1, >> ptable_id: 8, medium_id: 2, build: true, comment: "", disk: "", >> installed_at: nil, model_id: nil, hostgroup_id: >> 1, >> owner_id: 3, owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, >> managed: true, use_image: nil, >> image_file: >> nil, uuid: "522586fa-fe1d-96bc-e5ce-f7a7133e131f", compute_resource_id: 1, >> puppet_proxy_id: 1, certname: nil, >> image >> _id: nil, organization_id: nil, location_id: nil, type: "Host::Managed", >> otp: nil, realm_id: nil, >> compute_profile_i >> d: 5, provision_method: "build", primary_interface: nil, grub_pass: >> "$1$30RglzA9$QZ/wGebMsmgICWbSCF/0Z.">, >> :setComp >> uteDetails]] >> Removing Compute instance for test01.fritz.box >> Failed to save: mac value is blank! >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to foreman-user...@googlegroups.com . >> To post to this group, send email to forema...@googlegroups.com >> . >> Visit this group at http://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. >> > >

Hi Agustin

Did you see my workaround I posted to Claude's thread?

··· On Sunday, 8 February 2015 17:45:17 UTC, Agustin Martin wrote: > > Hi Claude, > > Thanks for your response and clarifying the issue ;) > > Kind regards, > Agustin > > Op zaterdag 7 februari 2015 13:27:00 UTC+1 schreef claude juif: >> >> Hi, >> >> If you're not using Vcenter, you can't provision VM with foreman. Without >> Vcenter, ESXi server does not assign a mac address at creation time but on >> the first boot of the VM. >> >> Search in the list, i've already posted about this. >> >> Regards, >> >> 2015-02-07 13:09 GMT+01:00 Agustin Martin : >> >>> Hello all, >>> >>> I am struggling to find a solution for the following problem.. when >>> creating a host I get the error "Unable to save mac value is blank!" I >>> configured Puppet/Foreman to deploy the new host on a ESXi machine. Any one >>> got some clues ? >>> >>> My log: >>> >>> Started POST "/hosts" for 10.0.0.19 at 2015-02-07 06:57:10 -0500 >>> Processing by HostsController#create as */* >>> Parameters: {"utf8"=>"✓", >>> "authenticity_token"=>"7npEZPWnnUveLQy3iInl2Og6Jao4dX7N17wVXDTB8xA=", >>> "host"=>{"name"=> >>> "test01", "hostgroup_id"=>"1", "compute_resource_id"=>"1", >>> "compute_profile_id"=>"5", "environment_id"=>"6", >>> "puppe >>> t_ca_proxy_id"=>"1", "puppet_proxy_id"=>"1", "puppetclass_ids"=>["", "6", >>> "3", "5", "7", "4"], "managed"=>"true", >>> " >>> progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", >>> "compute_attributes"=>{"cpus"=>"1", >>> "corespersocket"=>" >>> 1", "memory_mb"=>"768", "cluster"=>"VM01.", >>> "path"=>"/ha-folder-root/ha-datacenter/vm", >>> "guest_id"=>"debian6_64Gues >>> t", "hardware_version"=>"vmx-10", >>> "interfaces_attributes"=>{"new_interfaces"=>{"type"=>"VirtualE1000", >>> "network"=>" >>> HaNetwork-VM Network", "_delete"=>""}, "0"=>{"type"=>"VirtualE1000", >>> "network"=>"HaNetwork-VM Network", >>> "_delete"=> >>> ""}}, "volumes_attributes"=>{"new_volumes"=>{"datastore"=>"datastore1", >>> "name"=>"Hard disk", "size_gb"=>"10", >>> "thin >>> "=>"true", "eager_zero"=>"false", "_delete"=>""}, >>> "0"=>{"datastore"=>"datastore1", "name"=>"Hard disk", >>> "size_gb"=> >>> "10", "thin"=>"true", "eager_zero"=>"false", "_delete"=>""}}, >>> "scsi_controller_type"=>"VirtualLsiLogicController", >>> "start"=>"1"}, "domain_id"=>"1", "realm_id"=>"", "mac"=>"", >>> "subnet_id"=>"1", "ip"=>"10.0.0.222", >>> "interfaces_attri >>> butes"=>{"new_interfaces"=>{"_destroy"=>"false", "type"=>"Nic::Managed", >>> "mac"=>"", "identifier"=>"", "name"=>"", >>> " >>> domain_id"=>"", "subnet_id"=>"", "ip"=>"", "managed"=>"1", "virtual"=>"0", >>> "tag"=>"", "attached_to"=>""}}, >>> "archite >>> cture_id"=>"1", "operatingsystem_id"=>"1", "provision_method"=>"build", >>> "build"=>"1", "medium_id"=>"2", >>> "ptable_id" >>> =>"8", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"3-Users", >>> "enabled"=>"1", "model_id"=>"", >>> "comment"=> >>> "", "overwrite"=>"false"}, "capabilities"=>"build image", >>> "provider"=>"Vmware"} >>> Adding Compute instance for test01.fritz.box >>> Successfully decrypted field for Foreman::Model::Vmware VM01 >>> Successfully decrypted field for Foreman::Model::Vmware VM01 >>> Started GET "/tasks/2e040eae-6038-41d5-b074-92a7174ace2e" for 10.0.0.19 >>> at 2015-02-07 06:57:11 -0500 >>> Removing Compute instance for test01.fritz.box >>> Processing by TasksController#show as */* >>> Parameters: {"id"=>"2e040eae-6038-41d5-b074-92a7174ace2e"} >>> mac value is blank! >>> Rolling back due to a problem: [Query instance details for >>> test01.fritz.box 4 failed [#>> i >>> d: nil, name: "test01.fritz.box", ip: "10.0.0.222", last_compile: nil, >>> last_freshcheck: nil, last_report: nil, >>> upda >>> ted_at: nil, source_file_id: nil, created_at: nil, mac: nil, root_pass: >>> "$1$mOU3EcxR$b3jGqstvqxPHe8MJbUvPC1", >>> seria >>> l: nil, puppet_status: 0, domain_id: 1, architecture_id: 1, >>> operatingsystem_id: 1, environment_id: 6, subnet_id: >>> 1, >>> ptable_id: 8, medium_id: 2, build: true, comment: "", disk: "", >>> installed_at: nil, model_id: nil, hostgroup_id: >>> 1, >>> owner_id: 3, owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, >>> managed: true, use_image: nil, >>> image_file: >>> nil, uuid: "522586fa-fe1d-96bc-e5ce-f7a7133e131f", compute_resource_id: 1, >>> puppet_proxy_id: 1, certname: nil, >>> image >>> _id: nil, organization_id: nil, location_id: nil, type: "Host::Managed", >>> otp: nil, realm_id: nil, >>> compute_profile_i >>> d: 5, provision_method: "build", primary_interface: nil, grub_pass: >>> "$1$30RglzA9$QZ/wGebMsmgICWbSCF/0Z.">, >>> :setComp >>> uteDetails]] >>> Removing Compute instance for test01.fritz.box >>> Failed to save: mac value is blank! >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Foreman users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to foreman-user...@googlegroups.com. >>> To post to this group, send email to forema...@googlegroups.com. >>> Visit this group at http://groups.google.com/group/foreman-users. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >>