Actions
Bug #10223
openImage provisoning over API doesn't start host automatically
Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Description
Foreman 1.8rc3
Debian Wheezy
curl -s -X $METHOD -H "Accept:application/json" -H "Content-Type:application/json" \ -k -u $USER:$PASS \ -d '{"host":"name":"test1","hostgroup_id":"1","operatingsystem_id":"1","image_id":"1","compute_resource_id":"1","compute_profile_id":"1","provision_method":"image","subnet_id":"1","compute_attributes":{ "start":"1","vm_attrs":{ "cpus":"4"}}}}' \ $FOREMAN_URL/api/v2/hosts | json_pp
The machine is created through libvirt provider but the virtual machine doesnt have a filesystem with content in it so it just says "No boot device" in the console. If i drop the compute_attributes and just power up the machine manually it all works..except i have to manually power up the machine after the api call (which waits for the machine to come up)
debug put up at:
rsync /tmp/foreman-debug-ngR17.tar.xz rsync://theforeman.org/debug-incoming
Actions