Ask Your Question
0

glance create-iamge fail (kolla)

asked 2015-03-15 08:57:22 -0500

Fangfenghua gravatar image

updated 2015-03-15 23:07:41 -0500

SamYaple gravatar image

I deploy use kolla deploy openstack,when i create image like:

[root@localhost glance]# glance  image-create --name cirror  --disk-format qcow2 --container-format bare --is-public True  --progress < cirros-0.3.3-x86_64-disk.img

I got error:

[root@localhost glance]# glance  image-create --name cirror  --disk-format qcow2 --container-format bare --is-public True  --progress < cirros-0.3.3-x86_64-disk.img 
[=============================>] 100%
<html>
 <head>
  <title>403 Forbidden</title>
 </head>
 <body>
  <h1>403 Forbidden</h1>
  Access was denied to this resource.<br /><br />

 </body>
</html> (HTTP 403)
[root@localhost glance]#

and the glance-api log record:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/eventlet/greenpool.py", line 82, in _spawn_n_impl
    func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/eventlet/wsgi.py", line 661, in process_request
    proto.__init__(sock, address, self)
  File "/usr/lib64/python2.7/SocketServer.py", line 649, in __init__
    self.handle()
  File "/usr/lib64/python2.7/BaseHTTPServer.py", line 342, in handle
    self.handle_one_request()
  File "/usr/lib/python2.7/site-packages/eventlet/wsgi.py", line 288, in handle_one_request
    if not self.parse_request():
  File "/usr/lib64/python2.7/BaseHTTPServer.py", line 286, in parse_request
    self.send_error(400, "Bad request syntax (%r)" % requestline)
  File "/usr/lib64/python2.7/BaseHTTPServer.py", line 368, in send_error
    self.send_response(code, message)
  File "/usr/lib64/python2.7/BaseHTTPServer.py", line 395, in send_response
    self.send_header('Server', self.version_string())
  File "/usr/lib64/python2.7/BaseHTTPServer.py", line 401, in send_header
    self.wfile.write("%s: %s\r\n" % (keyword, value))
  File "/usr/lib64/python2.7/socket.py", line 324, in write
    self.flush()
  File "/usr/lib64/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
  File "/usr/lib/python2.7/site-packages/eventlet/greenio.py", line 359, in sendall
    tail = self.send(data, flags)
  File "/usr/lib/python2.7/site-packages/eventlet/greenio.py", line 342, in send
    total_sent += fd.send(data[total_sent:], flags)
error: [Errno 32] Broken pipe
edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2015-03-16 03:14:01 -0500

SGPJ gravatar image

updated 2015-03-16 03:14:20 -0500

Source your keystone file to admin and then run following cmd:

glance image-create --name <name of image>  --disk-format=raw --container-format=bare --file <file>

If not try to upload from horizon using admin.

Shankar Ganesh PJ

edit flag offensive delete link more
0

answered 2015-03-15 16:28:56 -0500

It seems that you are creating the image with a non admin user, try omitting the "is-public True" or try with a user with admin privileges

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-03-15 08:57:22 -0500

Seen: 925 times

Last updated: Mar 16 '15