Bug 1047345

Summary: cloud-init: gateway shouldn't be mandatory on run once window
Product: Red Hat Enterprise Virtualization Manager Reporter: Meni Yakove <myakove>
Component: ovirt-engine-webadmin-portalAssignee: Shahar Havivi <shavivi>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Novotny <pnovotny>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, ecohen, iheim, mavital, michal.skrivanek, Rhev-m-bugs, sherold, yeylon
Target Milestone: ---   
Target Release: 3.4.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: virt
Fixed In Version: org.ovirt.engine-root-3.4.0-14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Meni Yakove 2013-12-30 14:55:14 UTC
Description of problem:
The gateway under cloud-init window in run once is mandatory and it shouldn't since not all networks have gateway.

Version-Release number of selected component (if applicable):
rhevm-3.3.0-0.42.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Create linux VM and "run once" the VM
2. Under "initial run" check "network" and add network with IP and NETMASK
3. Click "OK"

Actual results:
Can't "OK" as gateway is mandatory

Expected results:
Should be able to "OK" even if gateway is empty

Comment 1 Pavel Novotny 2014-04-30 10:23:49 UTC
Verified in rhevm-3.4.0-0.15.beta3.el6ev.noarch (av7).

The Gateway field is no longer mandatory in the run once dialog (as well as in the Edit VM / Initial Run dialog).

Verification steps:
1. Have a Linux-based VM with two network interfaces. Select it and open run once dialog.
2. In the Initial Run / Cloud-Init / Networks section add network eth1 with static IP 10.1.1.200 and mask 255.255.252.0
3. Submit the dialog (run once the VM).

Results:
Run once dialog is submitted and the VM is started.
Cloud-Init config drive CD is attached as usually and interface eth1 is configured:
-~-
# cat /etc/sysconfig/network-scripts/ifcfg-eth1 
# Created by cloud-init v. 0.7.2 on Wed, 30 Apr 2014 09:57:09 +0000
NETMASK=255.255.252.0
DEVICE=eth1
IPADDR=10.1.1.200
ONBOOT=yes
-~-

Comment 2 Itamar Heim 2014-06-12 14:11:17 UTC
Closing as part of 3.4.0