Bug #2392
closedHandle lack of interface on Ovirt VM's better
Description
Right now, if you provision an Ovirt vm without an interface in Foreman it will get created in RHEV, but not in Foreman.
It seems that at the very least Foreman should clean up the vm it creates if it can't set it up in Foreman properly.
Beyond that it would probably be good to check to ensure that at least one interface is defined, just as you do to ensure an OS, Domain, subnet, etc. have been selected before trying to provision.
Files
Updated by Anonymous about 11 years ago
Would you consider the patch attached acceptable to prevent this?
Updated by Anonymous about 11 years ago
Not directly related, but it might even be good to add a disk while at it:
unless attr.has_key? :volumes_attributes
attr[:volumes_attributes] = {}
attr[:volumes_attributes][:default] = {}
attr[:volumes_attributes][:default][:size] = 16106127360
attr[:volumes_attributes][:default][:bootable] = 'true'
end
and set the RAM a little higher than 256. RHEL can't boot with this little; not sure if other popular distros can.
vm.memory = 1*1024*1024*1024
Altogether it yields a working default config, and you can always use a template to replace what's here with something preferable, or adjust to taste.
Updated by Anonymous about 7 years ago
- Description updated (diff)
- Status changed from New to Resolved
should be resolved by now