glance create-iamge fail (kolla)

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

Fangfenghua gravatar image

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

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%
  <title>403 Forbidden</title>
  <h1>403 Forbidden</h1>
  Access was denied to this resource.<br /><br />

</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/", line 82, in _spawn_n_impl
    func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/eventlet/", line 661, in process_request
    proto.__init__(sock, address, self)
  File "/usr/lib64/python2.7/", line 649, in __init__
  File "/usr/lib64/python2.7/", line 342, in handle
  File "/usr/lib/python2.7/site-packages/eventlet/", line 288, in handle_one_request
    if not self.parse_request():
  File "/usr/lib64/python2.7/", line 286, in parse_request
    self.send_error(400, "Bad request syntax (%r)" % requestline)
  File "/usr/lib64/python2.7/", line 368, in send_error
    self.send_response(code, message)
  File "/usr/lib64/python2.7/", line 395, in send_response
    self.send_header('Server', self.version_string())
  File "/usr/lib64/python2.7/", line 401, in send_header
    self.wfile.write("%s: %s\r\n" % (keyword, value))
  File "/usr/lib64/python2.7/", line 324, in write
  File "/usr/lib64/python2.7/", line 303, in flush
  File "/usr/lib/python2.7/site-packages/eventlet/", line 359, in sendall
    tail = self.send(data, flags)
  File "/usr/lib/python2.7/site-packages/eventlet/", 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

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

SGPJ gravatar image

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

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

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

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 948 times

Last updated: Mar 16 '15