summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Tripp <travis.tripp@hp.com>2014-09-17 17:30:03 -0600
committerTravis Tripp <travis.tripp@hp.com>2014-10-07 19:43:07 +0000
commiteec47084783e931248690a22c143af6f9030b293 (patch)
tree95850c31a8e7663ce6634830e429760a93228f43
parent2a9934ad1950f3be8ca27a66c1bf43c8c538ceb6 (diff)
downloadglance-eec47084783e931248690a22c143af6f9030b293.tar.gz
Update driver metadata definitions to Juno
vmware and libvirt support different hw_vif_model settings. This patch updates them so that each namespace can specify the models they support. vmware api is updated with the vmware_disktype Change-Id: Iec5901097c9621a052a930b99d5cbe7872d4f3ff Closes-bug: 1370767 (cherry picked from commit ebafdbeef6420d0fcc4922f245956096ca9e50b3)
-rw-r--r--etc/metadefs/compute-libvirt.json21
-rw-r--r--etc/metadefs/compute-vmware.json31
2 files changed, 38 insertions, 14 deletions
diff --git a/etc/metadefs/compute-libvirt.json b/etc/metadefs/compute-libvirt.json
index 419c40fec..c6f4559c7 100644
--- a/etc/metadefs/compute-libvirt.json
+++ b/etc/metadefs/compute-libvirt.json
@@ -54,8 +54,9 @@
},
"hw_video_ram": {
"title": "Max Video Ram",
- "description": "Maximum RAM for the video image. Used only if a hw_video:ram_max_mb value has been set in the flavor's extra_specs and that value is higher than the value set in hw_video_ram.",
- "type": "integer"
+ "description": "Maximum RAM (unit: MB) for the video image. Used only if a hw_video:ram_max_mb value has been set in the flavor's extra_specs and that value is higher than the value set in hw_video_ram.",
+ "type": "integer",
+ "minimum": 0
},
"os_command_line": {
"title": "Kernel Command Line",
@@ -64,23 +65,17 @@
},
"hw_vif_model": {
"title": "Virtual Network Interface",
- "description": "Specifies the model of virtual network interface device to use. The valid options depend on the configured hypervisor. KVM and QEMU: e1000, ne2k_pci, pcnet, rtl8139, and virtio. VMware: e1000, e1000e, VirtualE1000, VirtualE1000e, VirtualPCNet32, VirtualSriovEthernetCard, and VirtualVmxnet. Xen: e1000, netfront, ne2k_pci, pcnet, and rtl8139.",
+ "description": "Specifies the model of virtual network interface device to use. The valid options depend on the hypervisor configuration. libvirt driver options: KVM and QEMU: e1000, ne2k_pci, pcnet, rtl8139, spapr-vlan, and virtio. Xen: e1000, netfront, ne2k_pci, pcnet, and rtl8139.",
"type": "string",
"enum": [
"e1000",
+ "e1000e",
"ne2k_pci",
+ "netfront",
"pcnet",
"rtl8139",
- "virtio",
- "e1000",
- "e1000e",
- "VirtualE1000",
- "VirtualE1000e",
- "VirtualPCNet32",
- "VirtualSriovEthernetCard",
- "VirtualVmxnet",
- "netfront",
- "ne2k_pci"
+ "spapr-vlan",
+ "virtio"
]
},
"hw_qemu_guest_agent": {
diff --git a/etc/metadefs/compute-vmware.json b/etc/metadefs/compute-vmware.json
index 358a4aa4b..fefa0a0f3 100644
--- a/etc/metadefs/compute-vmware.json
+++ b/etc/metadefs/compute-vmware.json
@@ -18,13 +18,42 @@
"lsiLogic",
"busLogic",
"ide"
- ]
+ ],
+ "default" : "lsiLogic"
+ },
+ "vmware_disktype": {
+ "title": "Disk Provisioning Type",
+ "description": "When performing operations such as creating a virtual disk, cloning, or migrating, the disk provisioning type may be specified. Please refer to VMware documentation for more.",
+ "type": "string",
+ "enum": [
+ "thin",
+ "preallocated",
+ "thick",
+ "eagerZeroedThick",
+ "sparse"
+ ],
+ "default" : "preallocated"
},
"vmware_ostype": {
"title": "OS Type",
"description": "A VMware GuestID which describes the operating system installed in the image. This value is passed to the hypervisor when creating a virtual machine. If not specified, the key defaults to otherGuest. See thinkvirt.com.",
"type": "string",
"default": "otherGuest"
+ },
+ "hw_vif_model": {
+ "title": "Virtual Network Interface",
+ "description": "Specifies the model of virtual network interface device to use. The valid options depend on the hypervisor. VMware driver supported options: e1000, e1000e, VirtualE1000, VirtualE1000e, VirtualPCNet32, VirtualSriovEthernetCard, and VirtualVmxnet.",
+ "type": "string",
+ "enum": [
+ "e1000",
+ "e1000e",
+ "VirtualE1000",
+ "VirtualE1000e",
+ "VirtualPCNet32",
+ "VirtualSriovEthernetCard",
+ "VirtualVmxnet"
+ ],
+ "default" : "e1000"
}
},
"objects": []