Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oot@controller01:~# glance --debug --os-image-api-version 2 image-update --name test3 --location "https://cloud-images.ubuntu.com/lucid/current/lucid-server-cloudimg-i386-disk1.img" --disk-format raw --container-format ovf 85eb477c-193f-49df-9af9-450bcf71e252
- curl -i -X GET -H 'X-Auth-Token: 4a6fb7348fc64a45b431b2528c05dfd5' -H 'Content-Type: application/json' -H 'User-Agent: python-glanceclient' http://controller01.dev.cloud:9292/v2/schemas/image
- HTTP/1.1 200 OK
- date: Mon, 01 Dec 2014 20:01:25 GMT
- content-length: 3677
- content-type: application/json; charset=UTF-8
- x-openstack-request-id: req-46fdb78c-15dd-4a4a-84ec-870f2beffd7a
- {"additionalProperties": {"type": "string"}, "name": "image", "links": [{"href": "{self}", "rel": "self"}, {"href": "{file}", "rel": "enclosure"}, {"href": "{schema}", "rel": "describedby"}], "properties": {"status": {"enum": ["queued", "saving", "active", "killed", "deleted", "pending_delete"], "type": "string", "description": "Status of the image (READ-ONLY)"}, "tags": {"items": {"type": "string", "maxLength": 255}, "type": "array", "description": "List of strings related to the image"}, "kernel_id": {"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}$", "type": "string", "description": "ID of image stored in Glance that should be used as the kernel when booting an AMI-style image."}, "container_format": {"enum": ["ami", "ari", "aki", "bare", "ovf", "ova"], "type": "string", "description": "Format of the container"}, "min_ram": {"type": "integer", "description": "Amount of ram (in MB) required to boot image."}, "ramdisk_id": {"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}$", "type": "string", "description": "ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image."}, "locations": {"items": {"required": ["url", "metadata"], "type": "object", "properties": {"url": {"type": "string", "maxLength": 255}, "metadata": {"type": "object"}}}, "type": "array", "description": "A set of URLs to access the image file kept in external store"}, "visibility": {"enum": ["public", "private"], "type": "string", "description": "Scope of image accessibility"}, "updated_at": {"type": "string", "description": "Date and time of the last image modification (READ-ONLY)"}, "owner": {"type": "string", "description": "Owner of the image", "maxLength": 255}, "file": {"type": "string", "description": "(READ-ONLY)"}, "min_disk": {"type": "integer", "description": "Amount of disk space (in GB) required to boot image."}, "virtual_size": {"type": "integer", "description": "Virtual size of image in bytes (READ-ONLY)"}, "id": {"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}$", "type": "string", "description": "An identifier for the image"}, "size": {"type": "integer", "description": "Size of image file in bytes (READ-ONLY)"}, "instance_uuid": {"type": "string", "description": "ID of instance used to create this image."}, "os_distro": {"type": "string", "description": "Common name of operating system distribution as specified in http://docs.openstack.org/trunk/openstack-compute/admin/content/adding-images.html"}, "name": {"type": "string", "description": "Descriptive name for the image", "maxLength": 255}, "checksum": {"type": "string", "description": "md5 hash of image contents. (READ-ONLY)", "maxLength": 32}, "created_at": {"type": "string", "description": "Date and time of image registration (READ-ONLY)"}, "disk_format": {"enum": ["ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso"], "type": "string", "description": "Format of the disk"}, "os_version": {"type": "string", "description": "Operating system version as specified by the distributor"}, "protected": {"type": "boolean", "description": "If true, image will not be deletable."}, "architecture": {"type": "string", "description": "Operating system architecture as specified in http://docs.openstack.org/trunk/openstack-compute/admin/content/adding-images.html"}, "direct_url": {"type": "string", "description": "URL to access the image file kept in external store (READ-ONLY)"}, "self": {"type": "string", "description": "(READ-ONLY)"}, "schema": {"type": "string", "description": "(READ-ONLY)"}}}
- curl -i -X GET -H 'X-Auth-Token: 4a6fb7348fc64a45b431b2528c05dfd5' -H 'Content-Type: application/json' -H 'User-Agent: python-glanceclient' http://controller01.dev.cloud:9292/v2/schemas/member
- HTTP/1.1 200 OK
- date: Mon, 01 Dec 2014 20:01:25 GMT
- content-length: 660
- content-type: application/json; charset=UTF-8
- x-openstack-request-id: req-e96c9502-f3cd-485d-aa8d-055c433b4efe
- {"name": "member", "properties": {"status": {"enum": ["pending", "accepted", "rejected"], "type": "string", "description": "The status of this image member"}, "created_at": {"type": "string", "description": "Date and time of image member creation"}, "updated_at": {"type": "string", "description": "Date and time of last modification of image member"}, "image_id": {"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}$", "type": "string", "description": "An identifier for the image"}, "member_id": {"type": "string", "description": "An identifier for the image member (tenantId)"}, "schema": {"type": "string"}}}
- curl -i -X GET -H 'X-Auth-Token: 4a6fb7348fc64a45b431b2528c05dfd5' -H 'Content-Type: application/json' -H 'User-Agent: python-glanceclient' http://controller01.dev.cloud:9292/v2/schemas/image
- HTTP/1.1 200 OK
- date: Mon, 01 Dec 2014 20:01:25 GMT
- content-length: 3677
- content-type: application/json; charset=UTF-8
- x-openstack-request-id: req-635e957d-fc57-4561-b830-f623b0ecb74c
- {"additionalProperties": {"type": "string"}, "name": "image", "links": [{"href": "{self}", "rel": "self"}, {"href": "{file}", "rel": "enclosure"}, {"href": "{schema}", "rel": "describedby"}], "properties": {"status": {"enum": ["queued", "saving", "active", "killed", "deleted", "pending_delete"], "type": "string", "description": "Status of the image (READ-ONLY)"}, "tags": {"items": {"type": "string", "maxLength": 255}, "type": "array", "description": "List of strings related to the image"}, "kernel_id": {"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}$", "type": "string", "description": "ID of image stored in Glance that should be used as the kernel when booting an AMI-style image."}, "container_format": {"enum": ["ami", "ari", "aki", "bare", "ovf", "ova"], "type": "string", "description": "Format of the container"}, "min_ram": {"type": "integer", "description": "Amount of ram (in MB) required to boot image."}, "ramdisk_id": {"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}$", "type": "string", "description": "ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image."}, "locations": {"items": {"required": ["url", "metadata"], "type": "object", "properties": {"url": {"type": "string", "maxLength": 255}, "metadata": {"type": "object"}}}, "type": "array", "description": "A set of URLs to access the image file kept in external store"}, "visibility": {"enum": ["public", "private"], "type": "string", "description": "Scope of image accessibility"}, "updated_at": {"type": "string", "description": "Date and time of the last image modification (READ-ONLY)"}, "owner": {"type": "string", "description": "Owner of the image", "maxLength": 255}, "file": {"type": "string", "description": "(READ-ONLY)"}, "min_disk": {"type": "integer", "description": "Amount of disk space (in GB) required to boot image."}, "virtual_size": {"type": "integer", "description": "Virtual size of image in bytes (READ-ONLY)"}, "id": {"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}$", "type": "string", "description": "An identifier for the image"}, "size": {"type": "integer", "description": "Size of image file in bytes (READ-ONLY)"}, "instance_uuid": {"type": "string", "description": "ID of instance used to create this image."}, "os_distro": {"type": "string", "description": "Common name of operating system distribution as specified in http://docs.openstack.org/trunk/openstack-compute/admin/content/adding-images.html"}, "name": {"type": "string", "description": "Descriptive name for the image", "maxLength": 255}, "checksum": {"type": "string", "description": "md5 hash of image contents. (READ-ONLY)", "maxLength": 32}, "created_at": {"type": "string", "description": "Date and time of image registration (READ-ONLY)"}, "disk_format": {"enum": ["ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso"], "type": "string", "description": "Format of the disk"}, "os_version": {"type": "string", "description": "Operating system version as specified by the distributor"}, "protected": {"type": "boolean", "description": "If true, image will not be deletable."}, "architecture": {"type": "string", "description": "Operating system architecture as specified in http://docs.openstack.org/trunk/openstack-compute/admin/content/adding-images.html"}, "direct_url": {"type": "string", "description": "URL to access the image file kept in external store (READ-ONLY)"}, "self": {"type": "string", "description": "(READ-ONLY)"}, "schema": {"type": "string", "description": "(READ-ONLY)"}}}
- curl -i -X GET -H 'X-Auth-Token: 4a6fb7348fc64a45b431b2528c05dfd5' -H 'Content-Type: application/json' -H 'User-Agent: python-glanceclient' http://controller01.dev.cloud:9292/v2/images/85eb477c-193f-49df-9af9-450bcf71e252
- HTTP/1.1 200 OK
- date: Mon, 01 Dec 2014 20:01:25 GMT
- content-length: 512
- content-type: application/json; charset=UTF-8
- x-openstack-request-id: req-3ccc07c2-d916-45a6-be6f-582018bb7021
- {"status": "active", "name": "test3", "tags": [], "container_format": "ovf", "created_at": "2014-12-01T19:41:19Z", "disk_format": "raw", "updated_at": "2014-12-01T19:42:41Z", "visibility": "private", "self": "/v2/images/85eb477c-193f-49df-9af9-450bcf71e252", "min_disk": 0, "protected": false, "id": "85eb477c-193f-49df-9af9-450bcf71e252", "file": "/v2/images/85eb477c-193f-49df-9af9-450bcf71e252/file", "owner": "16ffe2fe4dfd4f369e4308c73a7a85a6", "size": 222560768, "min_ram": 0, "schema": "/v2/schemas/image"}
- Unable to set 'locations' to '[u'https://cloud-images.ubuntu.com/lucid/current/lucid-server-cloudimg-i386-disk1.img']'. Reason: u'https://cloud-images.ubuntu.com/lucid/current/lucid-server-cloudimg-i386-disk1.img' is not of type u'object'
- Failed validating u'type' in schema[u'properties'][u'locations'][u'items']:
- {u'properties': {u'metadata': {u'type': u'object'},
- u'url': {u'maxLength': 255, u'type': u'string'}},
- u'required': [u'url', u'metadata'],
- u'type': u'object'}
- On instance[u'locations'][0]:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement