Advertisement
Guest User

Untitled

a guest
Dec 1st, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.67 KB | None | 0 0
  1. 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
  2. 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
  3.  
  4. HTTP/1.1 200 OK
  5. date: Mon, 01 Dec 2014 20:01:25 GMT
  6. content-length: 3677
  7. content-type: application/json; charset=UTF-8
  8. x-openstack-request-id: req-46fdb78c-15dd-4a4a-84ec-870f2beffd7a
  9.  
  10. {"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)"}}}
  11.  
  12. 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
  13.  
  14. HTTP/1.1 200 OK
  15. date: Mon, 01 Dec 2014 20:01:25 GMT
  16. content-length: 660
  17. content-type: application/json; charset=UTF-8
  18. x-openstack-request-id: req-e96c9502-f3cd-485d-aa8d-055c433b4efe
  19.  
  20. {"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"}}}
  21.  
  22. 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
  23.  
  24. HTTP/1.1 200 OK
  25. date: Mon, 01 Dec 2014 20:01:25 GMT
  26. content-length: 3677
  27. content-type: application/json; charset=UTF-8
  28. x-openstack-request-id: req-635e957d-fc57-4561-b830-f623b0ecb74c
  29.  
  30. {"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)"}}}
  31.  
  32. 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
  33.  
  34. HTTP/1.1 200 OK
  35. date: Mon, 01 Dec 2014 20:01:25 GMT
  36. content-length: 512
  37. content-type: application/json; charset=UTF-8
  38. x-openstack-request-id: req-3ccc07c2-d916-45a6-be6f-582018bb7021
  39.  
  40. {"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"}
  41.  
  42. 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'
  43.  
  44. Failed validating u'type' in schema[u'properties'][u'locations'][u'items']:
  45. {u'properties': {u'metadata': {u'type': u'object'},
  46. u'url': {u'maxLength': 255, u'type': u'string'}},
  47. u'required': [u'url', u'metadata'],
  48. u'type': u'object'}
  49.  
  50. On instance[u'locations'][0]:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement