Initial glance concepts in capability type format

Change-Id: I912833d26e9d7a3197dbd44a59b6835c823cfb75
Implements: blueprint glance-metadata-as-capability-types
This commit is contained in:
Travis Tripp 2014-03-17 18:37:28 -06:00
parent 3be50bd5eb
commit 3f262e75ca
1 changed files with 555 additions and 0 deletions

View File

@ -0,0 +1,555 @@
{ "capability_type_list" :
[
{
"name": "ArchLinux",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "arch",
"required": false,
"confidential": false
}
}
},
{
"name": "CENTOS",
"namespace": "OS:GLANCE:2014-1",
"description": "Community Enterprise Operating System",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "centos",
"required": false,
"confidential": false
}
}
},
{
"name": "Debian",
"namespace": "OS:GLANCE:2014-1",
"description": "Debian",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "debian",
"required": false,
"confidential": false
}
}
},
{
"name": "Fedora",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "fedora",
"required": false,
"confidential": false
}
}
},
{
"name": "FreeBSD",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "freebsd",
"required": false,
"confidential": false
}
}
},
{
"name": "GentooLinux",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "gentoo",
"required": false,
"confidential": false
}
}
},
{
"name": "MS-DOS",
"namespace": "OS:GLANCE:2014-1",
"description": "Microsoft Disc Operating System",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "msdos",
"required": false,
"confidential": false
}
}
},
{
"name": "MandrakeLinux",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "mandrake",
"required": false,
"confidential": false
}
}
},
{
"name": "MandrivaEnterpriseServer",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "mes",
"required": false,
"confidential": false
}
}
},
{
"name": "MandrivaLinux",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "mandriva",
"required": false,
"confidential": false
}
}
},
{
"name": "MicrosoftWindows",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "windows",
"required": false,
"confidential": false
}
}
},
{
"name": "NetBSD",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "netbsd",
"required": false,
"confidential": false
}
}
},
{
"name": "NovellNetWare",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "netware",
"required": false,
"confidential": false
}
}
},
{
"name": "OpenBSD",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "openbsd",
"required": false,
"confidential": false
}
}
},
{
"name": "OpenSUSE",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "opensuse",
"required": false,
"confidential": false
}
}
},
{
"name": "OpenSolaris",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "opensolaris",
"required": false,
"confidential": false
}
}
},
{
"name": "RedHatEnterpriseLinux",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "rhel",
"required": false,
"confidential": false
}
}
},
{
"name": "SUSELinuxEnterpriseDesktop",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "sled",
"required": false,
"confidential": false
}
}
},
{
"name": "Ubuntu",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"os_distro": {
"type": "string",
"description": "",
"defaultValue": "ubuntu",
"required": false,
"confidential": false
}
}
},
{
"name": "ComputeDriver",
"namespace": "OS:GLANCE:2014-1",
"description": "These are properties specific to compute drivers. For a list of all hypervisors, see here: https://wiki.openstack.org/wiki/HypervisorSupportMatrix",
"properties": {}
},
{
"name": "VMwareComputeDriver",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "ComputeDriver",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"vmware_adaptertype": {
"type": "choice",
"description": "Indicates the virtual SCSI or IDE controller used by the hypervisor.",
"required": false,
"confidential": false,
"itemType": "string",
"items": [
"lsiLogic",
" busLogic",
"ide"
]
},
"vmware_ostype": {
"type": "string",
"description": "A VMware GuestID which describes the operating system installed in the image. This will be passed to the hypervisor when creating a virtual machine. See thinkvirt.com for a list of valid values. If this is not specified, it will default to otherGuest.",
"required": false,
"confidential": false
},
"vmware_image_version": {
"type": "string",
"description": "Currently unused, set it to 1.",
"defaultValue": "1",
"required": false,
"confidential": false
}
}
},
{
"name": "XenComputeDriver",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "ComputeDriver",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"auto_disk_config": {
"type": "boolean",
"description": "A boolean option. If true, the root partition on the disk will be automatically resized before the instance boots. This value is only taken into account by the Compute service when using a Xen-based hypervisor with the XenAPI driver. The Compute service will only attempt to resize if there is a single partition on the image, and only if the partition is in ext3 or ext4 format.",
"required": false,
"confidential": false
},
"os_type": {
"type": "choice",
"description": "The operating system installed on the image. For example, linux or windows. The XenAPI driver contains logic that will take different actions depending on the value of the os_type parameter of the image. For example, for images where os_type=windows, it creates a FAT32-based swap partition instead of a Linux swap partition, and it limits the injected host name to less than 16 characters.",
"required": false,
"confidential": false,
"itemType": "string",
"items": [
"linux",
"windows"
]
}
}
},
{
"name": "libvirtDriver",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"derived_from": {
"name": "ComputeDriver",
"namespace": "OS:GLANCE:2014-1"
},
"properties": {
"hw_video_model": {
"type": "choice",
"description": "The video image driver used.",
"required": false,
"confidential": false,
"itemType": "string",
"items": [
"vga",
"cirrus",
"vmvga",
"xen",
"gxl"
]
}
}
},
{
"name": "Image",
"namespace": "OS:GLANCE:2014-1",
"description": "A collection of files for a specific operating system (OS) that you use to create or rebuild a server. OpenStack provides pre-built images. You can also create custom images, or snapshots, from servers that you have launched. Custom images can be used for data backups or as \"gold\" images for additional servers.",
"properties": {
"instance_uuid": {
"type": "string",
"description": "For snapshot images, this is the UUID of the server used to create this image.",
"required": false,
"confidential": false,
"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$"
},
"kernel_id": {
"type": "string",
"description": "The ID of image stored in Glance that should be used as the kernel when booting an AMI-style image.",
"required": false,
"confidential": false,
"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$"
},
"ramdisk_id": {
"type": "string",
"description": "The ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image.",
"required": false,
"confidential": false
}
}
},
{
"name": "ImagePropertiesFilter",
"namespace": "OS:GLANCE:2014-1",
"description": "The ImagePropertiesFilter filters compute nodes that satisfy any architecture, hypervisor type, or virtual machine mode properties specified on the instance's image properties. Image properties are contained in the image dictionary in the request_spec.",
"properties": {
"hypervisor_type": {
"type": "choice",
"description": "The hypervisor type.",
"required": false,
"confidential": false,
"itemType": "string",
"items": [
"xem",
"qemu",
"kvm",
"lxc",
"uml",
"vmware",
"hyperv"
]
},
"vm_mode": {
"type": "choice",
"description": "The virtual machine mode. This represents the host/guest ABI (application binary interface) used for the virtual machine.",
"required": false,
"confidential": false,
"itemType": "string",
"items": [
"hvm",
"xen",
"uml",
"exe"
]
},
"architecture": {
"type": "choice",
"description": "The CPU architecture that must be supported by the hypervisor. For example, x86_64, arm, or ppc64. Run uname -m to get the architecture of a machine. We strongly recommend using the architecture data vocabulary defined by the libosinfo project for this purpose.",
"required": false,
"confidential": false,
"itemType": "string",
"items": [
"alpha",
"armv71",
"cris",
"i686",
"ia64",
"lm32",
"m68k",
"microblaze",
"microblazeel",
"mips",
"mipsel",
"mips64",
"mips64el",
"openrisc",
"parisc",
"parisc64",
"ppc",
"ppc64",
"ppcemb",
"s390",
"s390x",
"sh4",
"sh4eb",
"sparc",
"sparc64",
"unicore32",
"x86_64",
"xtensa",
"xtensaeb"
]
}
}
},
{
"name": "OperatingSystem",
"namespace": "OS:GLANCE:2014-1",
"description": "",
"properties": {
"os_version": {
"type": "string",
"description": "",
"required": false,
"confidential": false
}
}
}
]
}