How can i upload a image from another location in glance?
I have two servers,one has the glance service running in it (S-server,
And I have an image in N-server,how can i upload the image to the glance.
I have tried the commad:
>glance add name=cirros-
glance add name=cirros-
it does not work,it just regist the image to glance ,does not upload the data...would you help me?thanks!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Glance Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- lbz
- Solved:
- Last query:
- Last reply:
Revision history for this message
![]() |
#1 |
Failed to add image. Got error:
The request returned 500 Internal Server Error
The response body:
Traceback (most recent call last):
File "/usr/lib/
result = self.applicatio
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
response = req.get_
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
return self.app(env, start_response)
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
response = req.get_
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
return resp(environ, start_response)
File "/usr/lib/
response = self.app(environ, start_response)
File "/usr/lib/
return resp(environ, start_response)
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
request, **action_args)
File "/usr/lib/
return method(*args, **kwargs)
File "/usr/lib/
image_meta = self._handle_
File "/usr/lib/
image_meta = self._upload_
File "/usr/lib/
location = self._upload(req, image_meta)
File "/usr/lib/
image_data, image_size = self._get_
File "/usr/lib/
image_data, image_size = get_from_
File "/usr/lib/
return store.get(loc)
File "/usr/lib/
conn, resp, content_length = self._query(
File "/usr/lib/
conn.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.send(msg)
File "/usr/lib/
self.connect()
File "/usr/lib/
self.timeout, self.source_
File "/usr/lib/
raise error, msg
error: [Errno 113] EHOSTUNREACH
Note: Your image metadata may still be in the registry, but the image's status w ill likely be 'killed'.
Revision history for this message
![]() |
#2 |
Failed to add image. Got error:
The request returned 500 Internal Server Error
The response body:
Traceback (most recent call last):
File "/usr/lib/
result = self.applicatio
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
response = req.get_
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
return self.app(env, start_response)
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
response = req.get_
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
return resp(environ, start_response)
File "/usr/lib/
response = self.app(environ, start_response)
File "/usr/lib/
return resp(environ, start_response)
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
request, **action_args)
File "/usr/lib/
return method(*args, **kwargs)
File "/usr/lib/
image_meta = self._handle_
File "/usr/lib/
image_meta = self._upload_
File "/usr/lib/
location = self._upload(req, image_meta)
File "/usr/lib/
image_data, image_size = self._get_
File "/usr/lib/
image_data, image_size = get_from_
File "/usr/lib/
return store.get(loc)
File "/usr/lib/
conn, resp, content_length = self._query(
File "/usr/lib/
conn.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.send(msg)
File "/usr/lib/
self.connect()
File "/usr/lib/
self.timeout, self.source_
File "/usr/lib/
raise error, msg
error: [Errno 111] ECONNREFUSED
Note: Your image metadata may still be in the registry, but the image's status will likely be 'killed'.
Revision history for this message
![]() |
#3 |
I don't think Glance supports authentication for images over HTTP. You could try using the glance-replicator tool to replicate images between Glance servers.
Revision history for this message
![]() |
#4 |
Thanks a lot.But how can i use the glance-replicator tool with a server having not glance service?
Revision history for this message
![]() |
#5 |
hello Brian,
Thank you very much. I used a glanceClient to upload image to the glance server ,and the problem has been solved,thanks