ogle 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -24,7 +24,7 @@ ruby 1.9.2
24
24
 
25
25
  ## Testing
26
26
 
27
- Add gluster.trunk to your hosts file.
27
+ Add glance.trunk to your hosts file.
28
28
 
29
29
  $ bundle exec rake
30
30
 
data/lib/ogle/image.rb CHANGED
@@ -1,4 +1,6 @@
1
1
  module Ogle
2
+ Struct.new "ImageDestroy", :return
3
+
2
4
  class ImageData
3
5
  ##
4
6
  # Return a valid ami id from the given 'glance id'.
@@ -45,7 +47,6 @@ module Ogle
45
47
  path = details ? "/v1/images/detail" : "/v1/images"
46
48
 
47
49
  response = @connection.get path
48
-
49
50
  response.body['images'].collect do |r|
50
51
  ImageData.new r
51
52
  end
@@ -93,18 +94,35 @@ module Ogle
93
94
 
94
95
  def destroy image_id
95
96
  response = @connection.delete "/v1/images/#{image_id}"
97
+
98
+ Struct::ImageDestroy.new response.code == "200"
99
+ end
100
+
101
+ ##
102
+ # Upload (create) a new image.
103
+ #
104
+ # +name+: The name of the file in glance (x-image-meta-name).
105
+ # +file+: The file to upload.
106
+ # +metadata+: A hash of custom defined metadata to be added to the image (x-image-meta-properties-*).
107
+
108
+ def create name, file, metadata
109
+ response = @connection.post "/v1/images", :upload => {
110
+ :file => file, :headers => { "x-image-meta-name" => name }.merge(metadata)
111
+ }
112
+
113
+ ImageData.new response.body['image']
96
114
  end
97
115
 
98
116
  ##
99
- # Upload (create) a new image
117
+ # Update the metadata for an image
100
118
  #
101
- # +file+: The file to upload
102
- # +name+: The name of the file in glance (x-image-meta-name)
103
- # +meta+: A hash of custom defined metadata to be added to the image (x-image-meta-properties-*)
119
+ # +image_id+: A string representing an image_id.
120
+ # +metadata+: A hash of custom defined metadata to updated in the image.
104
121
 
105
- def create file, name, meta
106
- headers = { "x-image-meta-name" => name }.merge meta
107
- response = @connection.post "/v1/images", :upload => { :file => file, :headers => headers }
122
+ def update image_id, metadata
123
+ response = @connection.put "/v1/images/#{image_id}", :headers => metadata
124
+
125
+ ImageData.new response.body['image']
108
126
  end
109
127
 
110
128
  private
data/lib/ogle/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ogle
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
data/ogle.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
21
 
22
- s.add_dependency "hugs", "~> 2.6.0"
22
+ s.add_dependency "hugs", "~> 2.7.0"
23
23
 
24
24
  s.add_development_dependency "rake", "0.8.7"
25
25
  s.add_development_dependency "vcr", "1.5.0"
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://gluster.trunk:9292/v1/images
5
+ uri: http://glance.trunk:9292/v1/images
6
6
  body:
7
7
  headers:
8
8
  accept:
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://gluster.trunk:9292/v1/images/detail
5
+ uri: http://glance.trunk:9292/v1/images/detail
6
6
  body:
7
7
  headers:
8
8
  accept:
@@ -16,15 +16,23 @@
16
16
  transfer-encoding:
17
17
  - chunked
18
18
  x-image-meta-name:
19
- - test-image
19
+ - image_create
20
20
  x-image-meta-is-public:
21
21
  - "true"
22
- x-image-meta-property-test:
23
- - "yes"
24
22
  x-image-meta-property-distro:
25
23
  - test-distro
24
+ x-image-meta-property-arch:
25
+ - test-arch
26
+ x-image-meta-property-uploader:
27
+ - test-uploader
28
+ x-image-meta-property-type:
29
+ - test-type
30
+ x-image-meta-property-kernel-name:
31
+ - test-kernel-name
32
+ x-image-meta-property-kernel-id:
33
+ - test-kernel-id
26
34
  x-image-meta-property-version:
27
- - test-version-1
35
+ - test-version
28
36
  connection:
29
37
  - keep-alive
30
38
  keep-alive:
@@ -37,14 +45,14 @@
37
45
  content-type:
38
46
  - text/plain; charset=UTF-8
39
47
  content-length:
40
- - "434"
48
+ - "556"
41
49
  location:
42
- - http://glance.trunk:9292/v1/images/56
50
+ - http://glance.trunk:9292/v1/images/71
43
51
  etag:
44
52
  - 8cb22c184821cdc62a9dc5c34cf8a125
45
53
  date:
46
- - Thu, 02 Jun 2011 15:20:11 GMT
54
+ - Tue, 07 Jun 2011 23:53:53 GMT
47
55
  connection:
48
56
  - keep-alive
49
- body: "{\"image\": {\"status\": \"active\", \"name\": \"test-image\", \"deleted\": false, \"container_format\": null, \"created_at\": \"2011-06-02T15:20:11\", \"disk_format\": null, \"updated_at\": \"2011-06-02T15:20:11\", \"id\": 56, \"location\": \"file:///var/lib/glance/images/56\", \"checksum\": \"8cb22c184821cdc62a9dc5c34cf8a125\", \"is_public\": true, \"deleted_at\": null, \"properties\": {\"test\": \"yes\", \"version\": \"test-version-1\", \"distro\": \"test-distro\"}, \"size\": 11}}"
57
+ body: "{\"image\": {\"status\": \"active\", \"name\": \"image_create\", \"deleted\": false, \"container_format\": null, \"created_at\": \"2011-06-07T23:53:53\", \"disk_format\": null, \"updated_at\": \"2011-06-07T23:53:53\", \"id\": 71, \"location\": \"file:///var/lib/glance/images/71\", \"checksum\": \"8cb22c184821cdc62a9dc5c34cf8a125\", \"is_public\": true, \"deleted_at\": null, \"properties\": {\"kernel_id\": \"test-kernel-id\", \"type\": \"test-type\", \"version\": \"test-version\", \"kernel_name\": \"test-kernel-name\", \"uploader\": \"test-uploader\", \"arch\": \"test-arch\", \"distro\": \"test-distro\"}, \"size\": 11}}"
50
58
  http_version: "1.1"
@@ -1,12 +1,77 @@
1
1
  ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://glance.trunk:9292/v1/images
6
+ body: |
7
+ Test-Image
8
+
9
+ headers:
10
+ accept:
11
+ - application/json
12
+ content-type:
13
+ - application/octet-stream
14
+ content-length:
15
+ - 11
16
+ transfer-encoding:
17
+ - chunked
18
+ x-image-meta-name:
19
+ - image_destroy
20
+ x-image-meta-is-public:
21
+ - "true"
22
+ x-image-meta-property-test:
23
+ - "yes"
24
+ x-image-meta-property-distro:
25
+ - test-distro
26
+ x-image-meta-property-version:
27
+ - test-version-1
28
+ connection:
29
+ - keep-alive
30
+ keep-alive:
31
+ - 30
32
+ response: !ruby/struct:VCR::Response
33
+ status: !ruby/struct:VCR::ResponseStatus
34
+ code: 201
35
+ message: Created
36
+ headers:
37
+ content-type:
38
+ - text/plain; charset=UTF-8
39
+ content-length:
40
+ - "437"
41
+ location:
42
+ - http://glance.trunk:9292/v1/images/67
43
+ etag:
44
+ - 8cb22c184821cdc62a9dc5c34cf8a125
45
+ date:
46
+ - Tue, 07 Jun 2011 23:32:47 GMT
47
+ connection:
48
+ - keep-alive
49
+ body: "{\"image\": {\"status\": \"active\", \"name\": \"image_destroy\", \"deleted\": false, \"container_format\": null, \"created_at\": \"2011-06-07T23:32:47\", \"disk_format\": null, \"updated_at\": \"2011-06-07T23:32:47\", \"id\": 67, \"location\": \"file:///var/lib/glance/images/67\", \"checksum\": \"8cb22c184821cdc62a9dc5c34cf8a125\", \"is_public\": true, \"deleted_at\": null, \"properties\": {\"test\": \"yes\", \"version\": \"test-version-1\", \"distro\": \"test-distro\"}, \"size\": 11}}"
50
+ http_version: "1.1"
2
51
  - !ruby/struct:VCR::HTTPInteraction
3
52
  request: !ruby/struct:VCR::Request
4
53
  method: :delete
5
- uri: http://glance.trunk:9292/v1/images/56
54
+ uri: http://glance.trunk:9292/v1/images/67
6
55
  body:
7
56
  headers:
8
57
  accept:
9
58
  - application/json
59
+ content-type:
60
+ - application/octet-stream
61
+ content-length:
62
+ - 11
63
+ transfer-encoding:
64
+ - chunked
65
+ x-image-meta-name:
66
+ - image_destroy
67
+ x-image-meta-is-public:
68
+ - "true"
69
+ x-image-meta-property-test:
70
+ - "yes"
71
+ x-image-meta-property-distro:
72
+ - test-distro
73
+ x-image-meta-property-version:
74
+ - test-version-1
10
75
  connection:
11
76
  - keep-alive
12
77
  keep-alive:
@@ -21,7 +86,7 @@
21
86
  content-length:
22
87
  - "0"
23
88
  date:
24
- - Thu, 02 Jun 2011 15:38:50 GMT
89
+ - Tue, 07 Jun 2011 23:32:47 GMT
25
90
  connection:
26
91
  - keep-alive
27
92
  body:
@@ -1,146 +1,65 @@
1
1
  ---
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
- method: :head
5
- uri: http://gluster.trunk:9292/v1/images/4
6
- body:
4
+ method: :post
5
+ uri: http://glance.trunk:9292/v1/images
6
+ body: |
7
+ Test-Image
8
+
7
9
  headers:
8
10
  accept:
9
11
  - application/json
10
- connection:
11
- - keep-alive
12
- keep-alive:
13
- - 30
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
18
- headers:
19
12
  content-type:
20
- - text/html; charset=UTF-8
13
+ - application/octet-stream
21
14
  content-length:
22
- - "0"
15
+ - 11
16
+ transfer-encoding:
17
+ - chunked
18
+ x-image-meta-name:
19
+ - image_find
20
+ x-image-meta-is-public:
21
+ - "true"
23
22
  x-image-meta-property-distro:
24
- - Ubuntu
25
- x-image-meta-id:
26
- - "4"
23
+ - test-distro
27
24
  x-image-meta-property-arch:
28
- - amd64
29
- x-image-meta-deleted:
30
- - "False"
31
- x-image-meta-container-format:
32
- - ami
25
+ - test-arch
33
26
  x-image-meta-property-uploader:
34
- - root@enc1b11
35
- x-image-meta-location:
36
- - file:///var/lib/glance/images/4
37
- x-image-meta-deleted-at:
38
- - ""
39
- x-image-meta-created-at:
40
- - 2011-05-11T15:48:02
41
- x-image-meta-size:
42
- - "1476395008"
43
- x-image-meta-status:
44
- - active
27
+ - test-uploader
45
28
  x-image-meta-property-type:
46
- - machine
29
+ - test-type
47
30
  x-image-meta-property-kernel-name:
48
- - natty-server-uec-amd64-vmlinuz-virtual
49
- x-image-meta-is-public:
50
- - "True"
31
+ - test-kernel-name
51
32
  x-image-meta-property-kernel-id:
52
- - "3"
53
- x-image-meta-updated-at:
54
- - 2011-05-11T15:48:08
55
- x-image-meta-checksum:
56
- - b6149317c554d2c335365e7bd43e9bf0
33
+ - test-kernel-id
57
34
  x-image-meta-property-version:
58
- - "11.04"
59
- x-image-meta-disk-format:
60
- - ami
61
- x-image-meta-name:
62
- - natty-server-uec-amd64.img
63
- location:
64
- - http://gluster.trunk:9292/v1/images/4
65
- etag:
66
- - b6149317c554d2c335365e7bd43e9bf0
67
- date:
68
- - Sat, 28 May 2011 02:32:55 GMT
69
- connection:
70
- - keep-alive
71
- body:
72
- http_version: "1.1"
73
- - !ruby/struct:VCR::HTTPInteraction
74
- request: !ruby/struct:VCR::Request
75
- method: :head
76
- uri: http://gluster.trunk:9292/v1/images/36
77
- body:
78
- headers:
79
- accept:
80
- - application/json
35
+ - test-version
81
36
  connection:
82
37
  - keep-alive
83
38
  keep-alive:
84
39
  - 30
85
40
  response: !ruby/struct:VCR::Response
86
41
  status: !ruby/struct:VCR::ResponseStatus
87
- code: 200
88
- message: OK
42
+ code: 201
43
+ message: Created
89
44
  headers:
90
45
  content-type:
91
- - text/html; charset=UTF-8
46
+ - text/plain; charset=UTF-8
92
47
  content-length:
93
- - "0"
94
- x-image-meta-property-distro:
95
- - CentOS
96
- x-image-meta-id:
97
- - "36"
98
- x-image-meta-property-arch:
99
- - x86_64
100
- x-image-meta-deleted:
101
- - "False"
102
- x-image-meta-container-format:
103
- - ami
104
- x-image-meta-location:
105
- - file:///var/lib/glance/images/36
106
- x-image-meta-deleted-at:
107
- - ""
108
- x-image-meta-created-at:
109
- - 2011-05-26T15:13:11
110
- x-image-meta-size:
111
- - "1430192128"
112
- x-image-meta-status:
113
- - active
114
- x-image-meta-property-type:
115
- - machine
116
- x-image-meta-property-uploader:
117
- - root@enc1b11
118
- x-image-meta-is-public:
119
- - "True"
120
- x-image-meta-updated-at:
121
- - 2011-05-26T15:13:16
122
- x-image-meta-checksum:
123
- - 8731b6dcb85e7554cc69aeb8acc6ad09
124
- x-image-meta-property-version:
125
- - "5.4"
126
- x-image-meta-disk-format:
127
- - ami
128
- x-image-meta-name:
129
- - CentOS-5.4-cloudinit
48
+ - "554"
130
49
  location:
131
- - http://gluster.trunk:9292/v1/images/36
50
+ - http://glance.trunk:9292/v1/images/80
132
51
  etag:
133
- - 8731b6dcb85e7554cc69aeb8acc6ad09
52
+ - 8cb22c184821cdc62a9dc5c34cf8a125
134
53
  date:
135
- - Sat, 28 May 2011 02:32:56 GMT
54
+ - Wed, 08 Jun 2011 05:44:10 GMT
136
55
  connection:
137
56
  - keep-alive
138
- body:
57
+ body: "{\"image\": {\"status\": \"active\", \"name\": \"image_find\", \"deleted\": false, \"container_format\": null, \"created_at\": \"2011-06-08T05:44:10\", \"disk_format\": null, \"updated_at\": \"2011-06-08T05:44:10\", \"id\": 80, \"location\": \"file:///var/lib/glance/images/80\", \"checksum\": \"8cb22c184821cdc62a9dc5c34cf8a125\", \"is_public\": true, \"deleted_at\": null, \"properties\": {\"kernel_id\": \"test-kernel-id\", \"type\": \"test-type\", \"version\": \"test-version\", \"kernel_name\": \"test-kernel-name\", \"uploader\": \"test-uploader\", \"arch\": \"test-arch\", \"distro\": \"test-distro\"}, \"size\": 11}}"
139
58
  http_version: "1.1"
140
59
  - !ruby/struct:VCR::HTTPInteraction
141
60
  request: !ruby/struct:VCR::Request
142
61
  method: :head
143
- uri: http://glance.trunk:9292/v1/images/4
62
+ uri: http://glance.trunk:9292/v1/images/80
144
63
  body:
145
64
  headers:
146
65
  accept:
@@ -159,59 +78,59 @@
159
78
  content-length:
160
79
  - "0"
161
80
  x-image-meta-property-distro:
162
- - Ubuntu
81
+ - test-distro
163
82
  x-image-meta-id:
164
- - "4"
83
+ - "80"
165
84
  x-image-meta-property-arch:
166
- - amd64
85
+ - test-arch
167
86
  x-image-meta-deleted:
168
87
  - "False"
169
88
  x-image-meta-container-format:
170
- - ami
89
+ - ""
171
90
  x-image-meta-property-uploader:
172
- - root@enc1b11
91
+ - test-uploader
173
92
  x-image-meta-location:
174
- - file:///var/lib/glance/images/4
93
+ - file:///var/lib/glance/images/80
175
94
  x-image-meta-deleted-at:
176
95
  - ""
177
96
  x-image-meta-created-at:
178
- - 2011-05-11T15:48:02
97
+ - 2011-06-08T05:44:10
179
98
  x-image-meta-size:
180
- - "1476395008"
99
+ - "11"
181
100
  x-image-meta-status:
182
101
  - active
183
102
  x-image-meta-property-type:
184
- - machine
103
+ - test-type
185
104
  x-image-meta-property-kernel-name:
186
- - natty-server-uec-amd64-vmlinuz-virtual
105
+ - test-kernel-name
187
106
  x-image-meta-is-public:
188
107
  - "True"
189
108
  x-image-meta-property-kernel-id:
190
- - "3"
109
+ - test-kernel-id
191
110
  x-image-meta-updated-at:
192
- - 2011-05-11T15:48:08
111
+ - 2011-06-08T05:44:10
193
112
  x-image-meta-checksum:
194
- - b6149317c554d2c335365e7bd43e9bf0
113
+ - 8cb22c184821cdc62a9dc5c34cf8a125
195
114
  x-image-meta-property-version:
196
- - "11.04"
115
+ - test-version
197
116
  x-image-meta-disk-format:
198
- - ami
117
+ - ""
199
118
  x-image-meta-name:
200
- - natty-server-uec-amd64.img
119
+ - image_find
201
120
  location:
202
- - http://glance.trunk:9292/v1/images/4
121
+ - http://glance.trunk:9292/v1/images/80
203
122
  etag:
204
- - b6149317c554d2c335365e7bd43e9bf0
123
+ - 8cb22c184821cdc62a9dc5c34cf8a125
205
124
  date:
206
- - Wed, 01 Jun 2011 21:01:43 GMT
125
+ - Wed, 08 Jun 2011 05:44:10 GMT
207
126
  connection:
208
127
  - keep-alive
209
128
  body:
210
129
  http_version: "1.1"
211
130
  - !ruby/struct:VCR::HTTPInteraction
212
131
  request: !ruby/struct:VCR::Request
213
- method: :head
214
- uri: http://glance.trunk:9292/v1/images/36
132
+ method: :delete
133
+ uri: http://glance.trunk:9292/v1/images/80
215
134
  body:
216
135
  headers:
217
136
  accept:
@@ -229,48 +148,8 @@
229
148
  - text/html; charset=UTF-8
230
149
  content-length:
231
150
  - "0"
232
- x-image-meta-property-distro:
233
- - CentOS
234
- x-image-meta-id:
235
- - "36"
236
- x-image-meta-property-arch:
237
- - x86_64
238
- x-image-meta-deleted:
239
- - "False"
240
- x-image-meta-container-format:
241
- - ami
242
- x-image-meta-location:
243
- - file:///var/lib/glance/images/36
244
- x-image-meta-deleted-at:
245
- - ""
246
- x-image-meta-created-at:
247
- - 2011-05-26T15:13:11
248
- x-image-meta-size:
249
- - "1430192128"
250
- x-image-meta-status:
251
- - active
252
- x-image-meta-property-type:
253
- - machine
254
- x-image-meta-property-uploader:
255
- - root@enc1b11
256
- x-image-meta-is-public:
257
- - "True"
258
- x-image-meta-updated-at:
259
- - 2011-05-26T15:13:16
260
- x-image-meta-checksum:
261
- - 8731b6dcb85e7554cc69aeb8acc6ad09
262
- x-image-meta-property-version:
263
- - "5.4"
264
- x-image-meta-disk-format:
265
- - ami
266
- x-image-meta-name:
267
- - CentOS-5.4-cloudinit
268
- location:
269
- - http://glance.trunk:9292/v1/images/36
270
- etag:
271
- - 8731b6dcb85e7554cc69aeb8acc6ad09
272
151
  date:
273
- - Wed, 01 Jun 2011 21:01:44 GMT
152
+ - Wed, 08 Jun 2011 05:44:10 GMT
274
153
  connection:
275
154
  - keep-alive
276
155
  body:
@@ -0,0 +1,72 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :head
5
+ uri: http://glance.trunk:9292/v1/images/4
6
+ body:
7
+ headers:
8
+ accept:
9
+ - application/json
10
+ connection:
11
+ - keep-alive
12
+ keep-alive:
13
+ - 30
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ content-type:
20
+ - text/html; charset=UTF-8
21
+ content-length:
22
+ - "0"
23
+ x-image-meta-property-distro:
24
+ - Ubuntu
25
+ x-image-meta-id:
26
+ - "4"
27
+ x-image-meta-property-arch:
28
+ - amd64
29
+ x-image-meta-deleted:
30
+ - "False"
31
+ x-image-meta-container-format:
32
+ - ami
33
+ x-image-meta-property-uploader:
34
+ - root@enc1b11
35
+ x-image-meta-location:
36
+ - file:///var/lib/glance/images/4
37
+ x-image-meta-deleted-at:
38
+ - ""
39
+ x-image-meta-created-at:
40
+ - 2011-05-11T15:48:02
41
+ x-image-meta-size:
42
+ - "1476395008"
43
+ x-image-meta-status:
44
+ - active
45
+ x-image-meta-property-type:
46
+ - machine
47
+ x-image-meta-property-kernel-name:
48
+ - natty-server-uec-amd64-vmlinuz-virtual
49
+ x-image-meta-is-public:
50
+ - "True"
51
+ x-image-meta-property-kernel-id:
52
+ - "3"
53
+ x-image-meta-updated-at:
54
+ - 2011-05-11T15:48:08
55
+ x-image-meta-checksum:
56
+ - b6149317c554d2c335365e7bd43e9bf0
57
+ x-image-meta-property-version:
58
+ - "11.04"
59
+ x-image-meta-disk-format:
60
+ - ami
61
+ x-image-meta-name:
62
+ - ubuntu_11.04-amd64
63
+ location:
64
+ - http://glance.trunk:9292/v1/images/4
65
+ etag:
66
+ - b6149317c554d2c335365e7bd43e9bf0
67
+ date:
68
+ - Tue, 07 Jun 2011 23:43:10 GMT
69
+ connection:
70
+ - keep-alive
71
+ body:
72
+ http_version: "1.1"
@@ -0,0 +1,68 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :head
5
+ uri: http://glance.trunk:9292/v1/images/36
6
+ body:
7
+ headers:
8
+ accept:
9
+ - application/json
10
+ connection:
11
+ - keep-alive
12
+ keep-alive:
13
+ - 30
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ content-type:
20
+ - text/html; charset=UTF-8
21
+ content-length:
22
+ - "0"
23
+ x-image-meta-property-distro:
24
+ - CentOS
25
+ x-image-meta-id:
26
+ - "36"
27
+ x-image-meta-property-arch:
28
+ - x86_64
29
+ x-image-meta-deleted:
30
+ - "False"
31
+ x-image-meta-container-format:
32
+ - ami
33
+ x-image-meta-location:
34
+ - file:///var/lib/glance/images/36
35
+ x-image-meta-deleted-at:
36
+ - ""
37
+ x-image-meta-created-at:
38
+ - 2011-05-26T15:13:11
39
+ x-image-meta-size:
40
+ - "1430192128"
41
+ x-image-meta-status:
42
+ - active
43
+ x-image-meta-property-type:
44
+ - machine
45
+ x-image-meta-property-uploader:
46
+ - root@enc1b11
47
+ x-image-meta-is-public:
48
+ - "True"
49
+ x-image-meta-updated-at:
50
+ - 2011-05-26T15:13:16
51
+ x-image-meta-checksum:
52
+ - 8731b6dcb85e7554cc69aeb8acc6ad09
53
+ x-image-meta-property-version:
54
+ - "5.4"
55
+ x-image-meta-disk-format:
56
+ - ami
57
+ x-image-meta-name:
58
+ - centos_5.4-x86_64
59
+ location:
60
+ - http://glance.trunk:9292/v1/images/36
61
+ etag:
62
+ - 8731b6dcb85e7554cc69aeb8acc6ad09
63
+ date:
64
+ - Tue, 07 Jun 2011 23:46:31 GMT
65
+ connection:
66
+ - keep-alive
67
+ body:
68
+ http_version: "1.1"