Project

General

Profile

Actions

Bug #2392

closed

Handle lack of interface on Ovirt VM's better

Added by Anonymous about 11 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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

Actions #1

Updated by Anonymous about 11 years ago

Would you consider the patch attached acceptable to prevent this?

Actions #2

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.

Actions #3

Updated by Anonymous about 7 years ago

  • Description updated (diff)
  • Status changed from New to Resolved

should be resolved by now

Actions

Also available in: Atom PDF