Skip to content

Instantly share code, notes, and snippets.

@josh-wrale
Last active December 17, 2015 09:28
Show Gist options
  • Save josh-wrale/5587066 to your computer and use it in GitHub Desktop.
Save josh-wrale/5587066 to your computer and use it in GitHub Desktop.
faust@myhost:/var/log/nova# cinder --debug create --image-id 57ee2e31-8a4f-42ee-94c9-0cb71385d1b0 --display-name precise-vol-16 16
connect: (5.5.5.107, 5000)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 5.5.5.107:5000\r\nContent-Length: 119\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-cinderclient\r\n\r\n{"auth": {"tenantName": "faust", "passwordCredentials": {"username": "faust", "password": "SCRUBBED_PASSWORD"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Vary: X-Auth-Token
header: Content-Type: application/json
header: Date: Wed, 15 May 2013 19:56:21 GMT
header: Transfer-Encoding: chunked
connect: (5.5.5.107, 8776)
send: u'POST /v1/t8c6j922766d47908aca7645c2eca39c/volumes HTTP/1.1\r\nHost: 5.5.5.107:8776\r\nContent-Length: 312\r\nx-auth-project-id: faust\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nx-auth-token: SCRUBBED_TOKEN\r\nuser-agent: python-cinderclient\r\ncontent-type: application/json\r\n\r\n{"volume": {"status": "creating", "availability_zone": null, "display_description": null, "snapshot_id": null, "user_id": null, "size": 16, "display_name": "precise-vol-16", "imageRef": "57ee2e31-8a4f-42ee-94c9-0cb71385d1b0", "attach_status": "detached", "volume_type": null, "project_id": null, "metadata": {}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-190aafeb-5c21-4064-8047-3eb56de3f24f
header: Content-Type: application/json
header: Content-Length: 359
header: Date: Wed, 15 May 2013 19:56:22 GMT
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| created_at | 2013-05-15T19:56:22.003159 |
| display_description | None |
| display_name | precise-vol-16 |
| id | 6fd8b3e2-e4af-40a6-b43a-f6a6225c0511 |
| image_id | 57ee2e31-8a4f-42ee-94c9-0cb71385d1b0 |
| metadata | {} |
| size | 16 |
| snapshot_id | None |
| status | creating |
| volume_type | None |
+---------------------+--------------------------------------+
faust@myhost:/var/log/nova# nova --debug boot MyInstanceName --image 57ee2e31-8a4f-42ee-94c9-0cb71385d1b0 --flavor m1.tiny --security_group=default --block_device_mapping vda=6fd8b3e2-e4af-40a6-b43a-f6a6225c0511:::0
REQ: curl -i http://5.5.5.107:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "faust", "passwordCredentials": {"username": "faust", "password": "SCRUBBED_PASSWORD"}}}'
connect: (5.5.5.107, 5000)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 5.5.5.107:5000\r\nContent-Length: 119\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "faust", "passwordCredentials": {"username": "faust", "password": "SCRUBBED_PASSWORD"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Vary: X-Auth-Token
header: Content-Type: application/json
header: Date: Wed, 15 May 2013 20:11:30 GMT
header: Transfer-Encoding: chunked
RESP:{'date': 'Wed, 15 May 2013 20:11:30 GMT', 'transfer-encoding': 'chunked', 'status': '200', 'content-type': 'application/json', 'vary': 'X-Auth-Token'} {"access": {"token": {"expires": "2013-05-16T20:11:30Z", "id": "f6d8a9abce8448649062bf535ae7148a", "tenant": {"enabled": true, "description": null, "name": "faust", "id": "t8c6j922766d47908aca7645c2eca39c"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://5.5.5.107:8776/v1/t8c6j922766d47908aca7645c2eca39c", "region": "RegionOne", "internalURL": "http://5.5.5.107:8776/v1/t8c6j922766d47908aca7645c2eca39c", "id": "c367bb0a92964348851eb0584a5ad979", "publicURL": "http://5.5.5.107:8776/v1/t8c6j922766d47908aca7645c2eca39c"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://5.5.5.107:9292/v1", "region": "RegionOne", "internalURL": "http://5.5.5.107:9292/v1", "id": "4717384114ba4afc94af1d0f1fa6eac8", "publicURL": "http://5.5.5.107:9292/v1"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c", "region": "RegionOne", "internalURL": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c", "id": "6b7ae2e800464326be1594b6d48aa094", "publicURL": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://5.5.5.107:8773/services/Admin", "region": "RegionOne", "internalURL": "http://5.5.5.107:8773/services/Cloud", "id": "8a458bfb18f045b79c23a941a4c104bd", "publicURL": "http://5.5.5.107:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://5.5.5.107:35357/v2.0", "region": "RegionOne", "internalURL": "http://5.5.5.107:5000/v2.0", "id": "e22f88048e8b4dfa94fc48bd13345486", "publicURL": "http://5.5.5.107:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "faust", "roles_links": [], "id": "c5f414098df1485fa0fb949fddce2279", "roles": [{"name": "KeystoneServiceAdmin"}, {"name": "KeystoneAdmin"}, {"name": "faust"}], "name": "faust"}, "metadata": {"is_admin": 0, "roles": ["87f6e53839464dd29970f8785ca0a6b7", "d798f3a56f0c4e058b792c814be6f6e8", "9cc6510f1db147eca4ebb89b1d7100eb"]}}}
REQ: curl -i http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/detail -X GET -H "X-Auth-Project-Id: faust" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: f6d8a9abce8448649062bf535ae7148a"
connect: (5.5.5.107, 8774)
send: u'GET /v2/t8c6j922766d47908aca7645c2eca39c/flavors/detail HTTP/1.1\r\nHost: 5.5.5.107:8774\r\nx-auth-project-id: faust\r\nx-auth-token: f6d8a9abce8448649062bf535ae7148a\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-579d513e-404b-40e4-8f7c-048a2118801c
header: Content-Type: application/json
header: Content-Length: 2938
header: Date: Wed, 15 May 2013 20:11:30 GMT
RESP:{'status': '200', 'content-length': '2938', 'content-location': u'http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/detail', 'x-compute-request-id': 'req-579d513e-404b-40e4-8f7c-048a2118801c', 'date': 'Wed, 15 May 2013 20:11:30 GMT', 'content-type': 'application/json'} {"flavors": [{"name": "m1.tiny", "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/1", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/flavors/1", "rel": "bookmark"}], "ram": 512, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 0, "id": "1"}, {"name": "m1.small", "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/2", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/flavors/2", "rel": "bookmark"}], "ram": 2048, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 10, "id": "2"}, {"name": "m1.medium", "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/3", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/flavors/3", "rel": "bookmark"}], "ram": 4096, "OS-FLV-DISABLED:disabled": false, "vcpus": 2, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 10, "id": "3"}, {"name": "m1.large", "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/4", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/flavors/4", "rel": "bookmark"}], "ram": 8192, "OS-FLV-DISABLED:disabled": false, "vcpus": 4, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 10, "id": "4"}, {"name": "m1.xlarge", "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/5", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/flavors/5", "rel": "bookmark"}], "ram": 16384, "OS-FLV-DISABLED:disabled": false, "vcpus": 8, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 10, "id": "5"}, {"name": "m2.2xlarge", "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/6", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/flavors/6", "rel": "bookmark"}], "ram": 31744, "OS-FLV-DISABLED:disabled": false, "vcpus": 8, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 10, "id": "6"}, {"name": "m2.4xlarge", "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/7", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/flavors/7", "rel": "bookmark"}], "ram": 64512, "OS-FLV-DISABLED:disabled": false, "vcpus": 8, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 10, "id": "7"}]}
REQ: curl -i http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/detail -X GET -H "X-Auth-Project-Id: faust" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: f6d8a9abce8448649062bf535ae7148a"
send: u'GET /v2/t8c6j922766d47908aca7645c2eca39c/flavors/detail HTTP/1.1\r\nHost: 5.5.5.107:8774\r\nx-auth-project-id: faust\r\nx-auth-token: f6d8a9abce8448649062bf535ae7148a\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-2c5930c3-09c2-4e23-addb-a51f680435dd
header: Content-Type: application/json
header: Content-Length: 2938
header: Date: Wed, 15 May 2013 20:11:30 GMT
RESP:{'status': '200', 'content-length': '2938', 'content-location': u'http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/detail', 'x-compute-request-id': 'req-2c5930c3-09c2-4e23-addb-a51f680435dd', 'date': 'Wed, 15 May 2013 20:11:30 GMT', 'content-type': 'application/json'} {"flavors": [{"name": "m1.tiny", "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/1", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/flavors/1", "rel": "bookmark"}], "ram": 512, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 0, "id": "1"}, {"name": "m1.small", "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/2", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/flavors/2", "rel": "bookmark"}], "ram": 2048, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 10, "id": "2"}, {"name": "m1.medium", "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/3", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/flavors/3", "rel": "bookmark"}], "ram": 4096, "OS-FLV-DISABLED:disabled": false, "vcpus": 2, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 10, "id": "3"}, {"name": "m1.large", "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/4", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/flavors/4", "rel": "bookmark"}], "ram": 8192, "OS-FLV-DISABLED:disabled": false, "vcpus": 4, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 10, "id": "4"}, {"name": "m1.xlarge", "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/5", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/flavors/5", "rel": "bookmark"}], "ram": 16384, "OS-FLV-DISABLED:disabled": false, "vcpus": 8, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 10, "id": "5"}, {"name": "m2.2xlarge", "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/6", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/flavors/6", "rel": "bookmark"}], "ram": 31744, "OS-FLV-DISABLED:disabled": false, "vcpus": 8, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 10, "id": "6"}, {"name": "m2.4xlarge", "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/7", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/flavors/7", "rel": "bookmark"}], "ram": 64512, "OS-FLV-DISABLED:disabled": false, "vcpus": 8, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 10, "id": "7"}]}
REQ: curl -i http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/images/57ee2e31-8a4f-42ee-94c9-0cb71385d1b0 -X GET -H "X-Auth-Project-Id: faust" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: f6d8a9abce8448649062bf535ae7148a"
send: u'GET /v2/t8c6j922766d47908aca7645c2eca39c/images/57ee2e31-8a4f-42ee-94c9-0cb71385d1b0 HTTP/1.1\r\nHost: 5.5.5.107:8774\r\nx-auth-project-id: faust\r\nx-auth-token: f6d8a9abce8448649062bf535ae7148a\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-ff6ebec2-df13-4cd9-83f1-dbd97e28cb53
header: Content-Type: application/json
header: Content-Length: 796
header: Date: Wed, 15 May 2013 20:11:31 GMT
RESP:{'status': '200', 'content-length': '796', 'content-location': u'http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/images/57ee2e31-8a4f-42ee-94c9-0cb71385d1b0', 'x-compute-request-id': 'req-ff6ebec2-df13-4cd9-83f1-dbd97e28cb53', 'date': 'Wed, 15 May 2013 20:11:31 GMT', 'content-type': 'application/json'} {"image": {"status": "ACTIVE", "updated": "2013-01-03T22:11:39Z", "name": "precise-image", "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/images/57ee2e31-8a4f-42ee-94c9-0cb71385d1b0", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/images/57ee2e31-8a4f-42ee-94c9-0cb71385d1b0", "rel": "bookmark"}, {"href": "http://5.5.5.107:9292/t8c6j922766d47908aca7645c2eca39c/images/57ee2e31-8a4f-42ee-94c9-0cb71385d1b0", "type": "application/vnd.openstack.image", "rel": "alternate"}], "created": "2013-01-03T22:11:28Z", "progress": 100, "minRam": 0, "minDisk": 0, "id": "57ee2e31-8a4f-42ee-94c9-0cb71385d1b0", "metadata": {"kernel_id": "4f112747-770d-4dd1-bf7c-f1cdbcece6a6", "ramdisk_id": "eddccd8e-a83d-469d-b831-8ab680e1f617"}}}
REQ: curl -i http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/os-volumes_boot -X POST -H "X-Auth-Project-Id: faust" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: f6d8a9abce8448649062bf535ae7148a" -d '{"server": {"name": "MyInstanceName", "imageRef": "57ee2e31-8a4f-42ee-94c9-0cb71385d1b0", "block_device_mapping": [{"volume_size": "", "volume_id": "6fd8b3e2-e4af-40a6-b43a-f6a6225c0511", "delete_on_termination": "0", "device_name": "vda"}], "flavorRef": "1", "max_count": 1, "min_count": 1, "security_groups": [{"name": "default"}]}}'
send: u'POST /v2/t8c6j922766d47908aca7645c2eca39c/os-volumes_boot HTTP/1.1\r\nHost: 5.5.5.107:8774\r\nContent-Length: 328\r\nx-auth-project-id: faust\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nx-auth-token: f6d8a9abce8448649062bf535ae7148a\r\nuser-agent: python-novaclient\r\ncontent-type: application/json\r\n\r\n{"server": {"name": "MyInstanceName", "imageRef": "57ee2e31-8a4f-42ee-94c9-0cb71385d1b0", "block_device_mapping": [{"volume_size": "", "volume_id": "6fd8b3e2-e4af-40a6-b43a-f6a6225c0511", "delete_on_termination": "0", "device_name": "vda"}], "flavorRef": "1", "max_count": 1, "min_count": 1, "security_groups": [{"name": "default"}]}}'
reply: 'HTTP/1.1 202 Accepted\r\n'
header: X-Compute-Request-Id: req-d5ab5b80-6ebc-4197-85ad-889e051394f3
header: Location: http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/servers/39e9d492-6984-4992-a69a-15ba9da5dfeb
header: Content-Type: application/json
header: Content-Length: 442
header: Date: Wed, 15 May 2013 20:11:32 GMT
RESP:{'status': '202', 'content-length': '442', 'x-compute-request-id': 'req-d5ab5b80-6ebc-4197-85ad-889e051394f3', 'location': 'http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/servers/39e9d492-6984-4992-a69a-15ba9da5dfeb', 'date': 'Wed, 15 May 2013 20:11:32 GMT', 'content-type': 'application/json'} {"server": {"security_groups": [{"name": "default"}], "OS-DCF:diskConfig": "MANUAL", "id": "39e9d492-6984-4992-a69a-15ba9da5dfeb", "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/servers/39e9d492-6984-4992-a69a-15ba9da5dfeb", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/servers/39e9d492-6984-4992-a69a-15ba9da5dfeb", "rel": "bookmark"}], "adminPass": "SCRUBBED_PASS2"}}
REQ: curl -i http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/servers/39e9d492-6984-4992-a69a-15ba9da5dfeb -X GET -H "X-Auth-Project-Id: faust" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: f6d8a9abce8448649062bf535ae7148a"
send: u'GET /v2/t8c6j922766d47908aca7645c2eca39c/servers/39e9d492-6984-4992-a69a-15ba9da5dfeb HTTP/1.1\r\nHost: 5.5.5.107:8774\r\nx-auth-project-id: faust\r\nx-auth-token: f6d8a9abce8448649062bf535ae7148a\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-77f36cec-e908-453b-89de-7afdcbb7af5f
header: Content-Type: application/json
header: Content-Length: 1324
header: Date: Wed, 15 May 2013 20:11:32 GMT
RESP:{'status': '200', 'content-length': '1324', 'content-location': u'http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/servers/39e9d492-6984-4992-a69a-15ba9da5dfeb', 'x-compute-request-id': 'req-77f36cec-e908-453b-89de-7afdcbb7af5f', 'date': 'Wed, 15 May 2013 20:11:32 GMT', 'content-type': 'application/json'} {"server": {"status": "BUILD", "updated": "2013-05-15T20:11:32Z", "hostId": "", "OS-EXT-SRV-ATTR:host": null, "addresses": {}, "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/servers/39e9d492-6984-4992-a69a-15ba9da5dfeb", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/servers/39e9d492-6984-4992-a69a-15ba9da5dfeb", "rel": "bookmark"}], "key_name": null, "image": {"id": "57ee2e31-8a4f-42ee-94c9-0cb71385d1b0", "links": [{"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/images/57ee2e31-8a4f-42ee-94c9-0cb71385d1b0", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": "scheduling", "OS-EXT-STS:vm_state": "building", "OS-EXT-SRV-ATTR:instance_name": "instance-000000de", "OS-EXT-SRV-ATTR:hypervisor_hostname": null, "flavor": {"id": "1", "links": [{"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/flavors/1", "rel": "bookmark"}]}, "id": "39e9d492-6984-4992-a69a-15ba9da5dfeb", "security_groups": [{"name": "default"}], "user_id": "c5f414098df1485fa0fb949fddce2279", "name": "MyInstanceName", "created": "2013-05-15T20:11:31Z", "tenant_id": "t8c6j922766d47908aca7645c2eca39c", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 0, "config_drive": "", "metadata": {}}}
REQ: curl -i http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/1 -X GET -H "X-Auth-Project-Id: faust" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: f6d8a9abce8448649062bf535ae7148a"
send: u'GET /v2/t8c6j922766d47908aca7645c2eca39c/flavors/1 HTTP/1.1\r\nHost: 5.5.5.107:8774\r\nx-auth-project-id: faust\r\nx-auth-token: f6d8a9abce8448649062bf535ae7148a\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-e13ca787-c806-41d0-83e8-8c5799696345
header: Content-Type: application/json
header: Content-Length: 424
header: Date: Wed, 15 May 2013 20:11:32 GMT
RESP:{'status': '200', 'content-length': '424', 'content-location': u'http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/1', 'x-compute-request-id': 'req-e13ca787-c806-41d0-83e8-8c5799696345', 'date': 'Wed, 15 May 2013 20:11:32 GMT', 'content-type': 'application/json'} {"flavor": {"name": "m1.tiny", "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/flavors/1", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/flavors/1", "rel": "bookmark"}], "ram": 512, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 0, "id": "1"}}
REQ: curl -i http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/images/57ee2e31-8a4f-42ee-94c9-0cb71385d1b0 -X GET -H "X-Auth-Project-Id: faust" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: f6d8a9abce8448649062bf535ae7148a"
send: u'GET /v2/t8c6j922766d47908aca7645c2eca39c/images/57ee2e31-8a4f-42ee-94c9-0cb71385d1b0 HTTP/1.1\r\nHost: 5.5.5.107:8774\r\nx-auth-project-id: faust\r\nx-auth-token: f6d8a9abce8448649062bf535ae7148a\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-51169173-eb44-4971-84e0-670e3c1dfe7f
header: Content-Type: application/json
header: Content-Length: 796
header: Date: Wed, 15 May 2013 20:11:32 GMT
RESP:{'status': '200', 'content-length': '796', 'content-location': u'http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/images/57ee2e31-8a4f-42ee-94c9-0cb71385d1b0', 'x-compute-request-id': 'req-51169173-eb44-4971-84e0-670e3c1dfe7f', 'date': 'Wed, 15 May 2013 20:11:32 GMT', 'content-type': 'application/json'} {"image": {"status": "ACTIVE", "updated": "2013-01-03T22:11:39Z", "name": "precise-image", "links": [{"href": "http://5.5.5.107:8774/v2/t8c6j922766d47908aca7645c2eca39c/images/57ee2e31-8a4f-42ee-94c9-0cb71385d1b0", "rel": "self"}, {"href": "http://5.5.5.107:8774/t8c6j922766d47908aca7645c2eca39c/images/57ee2e31-8a4f-42ee-94c9-0cb71385d1b0", "rel": "bookmark"}, {"href": "http://5.5.5.107:9292/t8c6j922766d47908aca7645c2eca39c/images/57ee2e31-8a4f-42ee-94c9-0cb71385d1b0", "type": "application/vnd.openstack.image", "rel": "alternate"}], "created": "2013-01-03T22:11:28Z", "progress": 100, "minRam": 0, "minDisk": 0, "id": "57ee2e31-8a4f-42ee-94c9-0cb71385d1b0", "metadata": {"kernel_id": "4f112747-770d-4dd1-bf7c-f1cdbcece6a6", "ramdisk_id": "eddccd8e-a83d-469d-b831-8ab680e1f617"}}}
+-------------------------------------+--------------------------------------+
| Property | Value |
+-------------------------------------+--------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-SRV-ATTR:host | None |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None |
| OS-EXT-SRV-ATTR:instance_name | instance-000000de |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | building |
| accessIPv4 | |
| accessIPv6 | |
| adminPass | SCRUBBED_PASS2 |
| config_drive | |
| created | 2013-05-15T20:11:31Z |
| flavor | m1.tiny |
| hostId | |
| id | 39e9d492-6984-4992-a69a-15ba9da5dfeb |
| image | precise-image |
| key_name | None |
| metadata | {} |
| name | MyInstanceName |
| progress | 0 |
| security_groups | [{u'name': u'default'}] |
| status | BUILD |
| tenant_id | t8c6j922766d47908aca7645c2eca39c |
| updated | 2013-05-15T20:11:32Z |
| user_id | c5f414098df1485fa0fb949fddce2279 |
+-------------------------------------+--------------------------------------+
faust@myhost:/var/log/nova#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment