Ask Your Question
0

Create image, Bad request

asked 2014-05-29 04:57:41 -0500

sasakii gravatar image

updated 2014-05-29 05:12:06 -0500

Hi everyone I setup the openstack with devstack, and when I want to create an image, there is an error says "Client disconnected before sending all data to backend"(Http 400)

My command is

 glance image-create --name='ubuntu12.04 server' --is-public=true --container-format=bare --disk-format=qcow2 < ubuntu-12.04-server-cloudimg-amd64-disk1.img

And by the way, How can I access to the log of glance? I have try the glance-api.log, but there is nothing while I am executing "glance".

Thanks!!!

edit retag flag offensive close merge delete

Comments

1
  1. Set DEBUG=True in glance.conf
  2. glance --debug image-create --name='ubuntu12.04 server' --is-public=true --container-format=bare --disk-format=qcow2 < ubuntu-12.04-server-cloudimg-amd64-disk1.img
dbaxps gravatar imagedbaxps ( 2014-05-29 05:13:12 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-05-29 05:11:28 -0500

Usually glance will log in glance-api.log. Try to enable debug and verbose mode in glance conf files to see more useful information.

Be sure you have enough disk space on the machine where glance is running, in order to store the disk image. The error could be caused by this issue.

Usually glance stores new images in /var/lib/glance/images/. Try to check in that folder if you see any new file when you run the glance image-create command.

edit flag offensive delete link more
0

answered 2014-05-29 06:33:31 -0500

sasakii gravatar image

Thanks all at first, I can see what's the problem, and it says

TRACE swiftclient ConnectionError: HTTPConnectionPool(host='140.92.26.97', port=8080): Max retries exceeded with url: /v1/AUTH_66c58aaf4c9740c5b881116c6582a41a/glance (Caused by <class 'socket.error'="">: [Errno 111] ECONNREFUSED)

And how can I solve this problem?

Thanks!!!

edit flag offensive delete link more

Comments

What would be output on your system
$ iptables-save | grep "swift proxy" -A INPUT -p tcp -m multiport --dports 8080 -m comment --comment "001 swift proxy incoming" -j ACCEPT
$netstat -anpt | grep 8080
tcp 0 0 192.168.1.127:8080 0.0.0.0:* LISTEN 1223/python
tcp 0 0 192.168.1.127:57363 192.168.1.127:8080 ESTABLISHED 1226/python
tcp 0 0 192.168.1.127:57367 192.168.1.127:8080 ESTABLISHED 1226/python
tcp 0 0 192.168.1.127:57351 192.168.1.127:8080 ESTABLISHED 1226/python
tcp 0 0 192.168.1.127:8080 192.168.1.127:57365 ESTABLISHED 2571/python
tcp 0 0 192.168.1.127:8080 192.168.1.127:57363 ESTABLISHED 2572/python
tcp 0 0 192.168.1.127:8080 192.168.1.127:56402 ESTABLISHED 2572/python
tcp 0 0 192.168.1.127 ...









(more)

DanIzack gravatar imageDanIzack ( 2014-05-30 01:53:41 -0500 )edit

Thanks, I have solved this problem, it probably caused by the incorrect setting of bridge.

sasakii gravatar imagesasakii ( 2014-06-09 21:03:28 -0500 )edit

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: 2014-05-29 04:57:41 -0500

Seen: 647 times

Last updated: May 29 '14