Ask Your Question
0

devstack install error: glance api upload image error

asked 2016-05-16 06:39:08 -0500

hanrong gravatar image

2016-05-16 04:15:24.920 | +functions:upload_image:338 local kernel_id= ramdisk_id= 2016-05-16 04:15:24.927 | +functions:upload_image:339 '[' -n /home/tecs/devstack/files/images/cirros-0.3.4-x86_64-uec/cirros-0.3.4-x86_64-vmlinuz ']' 2016-05-16 04:15:24.938 | ++functions:upload_image:340 get_field 2 2016-05-16 04:15:24.943 | ++functions:upload_image:340 grep ' id ' 2016-05-16 04:15:24.947 | ++functions:upload_image:340 openstack --os-cloud=devstack-admin image create cirros-0.3.4-x86_64-uec-kernel --public --container-format aki --disk-format aki 2016-05-16 04:15:24.953 | ++functions-common:get_field:700 local data field 2016-05-16 04:15:24.964 | ++functions-common:get_field:701 read data 2016-05-16 04:15:29.100 | HTTPInternalServerError (HTTP 500) 2016-05-16 04:15:29.149 | +functions:upload_image:340 kernel_id= 2016-05-16 04:15:29.155 | +functions:upload_image:342 '[' -n /home/tecs/devstack/files/images/cirros-0.3.4-x86_64-uec/cirros-0.3.4-x86_64-initrd ']' 2016-05-16 04:15:29.163 | ++functions:upload_image:343 openstack --os-cloud=devstack-admin image create cirros-0.3.4-x86_64-uec-ramdisk --public --container-format ari --disk-format ari 2016-05-16 04:15:29.164 | ++functions:upload_image:343 grep ' id ' 2016-05-16 04:15:29.164 | ++functions:upload_image:343 get_field 2 2016-05-16 04:15:29.172 | ++functions-common:get_field:700 local data field 2016-05-16 04:15:29.179 | ++functions-common:get_field:701 read data 2016-05-16 04:15:32.308 | HTTPInternalServerError (HTTP 500) 2016-05-16 04:15:32.357 | +functions:upload_image:343 ramdisk_id= 2016-05-16 04:15:32.363 | +functions:upload_image:345 openstack --os-cloud=devstack-admin image create cirros-0.3.4-x86_64-uec --public --container-format ami --disk-format ami 2016-05-16 04:15:35.350 | HTTPInternalServerError (HTTP 500) 2016-05-16 04:15:35.398 | +functions:upload_image:1 exit_trap 2016-05-16 04:15:35.404 | +./stack.sh:exit_trap:474 local r=1 2016-05-16 04:15:35.411 | ++./stack.sh:exit_trap:475 jobs -p 2016-05-16 04:15:35.418 | +./stack.sh:exit_trap:475 jobs= 2016-05-16 04:15:35.424 | +./stack.sh:exit_trap:478 [[ -n '' ]] 2016-05-16 04:15:35.431 | +./stack.sh:exit_trap:484 kill_spinner 2016-05-16 04:15:35.437 | +./stack.sh:kill_spinner:370 '[' '!' -z '' ']' 2016-05-16 04:15:35.444 | +./stack.sh:exit_trap:486 [[ 1 -ne 0 ]] 2016-05-16 04:15:35.453 | +./stack.sh:exit_trap:487 echo 'Error on exit' 2016-05-16 04:15:35.453 | Error on exit 2016-05-16 04:15:35.463 | +./stack.sh:exit_trap:488 generate-subunit 1463369069 3066 fail 2016-05-16 04:15:38.149 | +./stack.sh:exit_trap:489 [[ -z /opt/stack/logs ]] 2016-05-16 04:15:38.163 | +./stack.sh:exit_trap:492 /home/tecs/devstack/tools/worlddump.py -d /opt/stack/logs 2016-05-16 04:15:38.726 | ovs-ofctl: br-tun is not a bridge or a socket 2016-05-16 04:15:38.790 | ovs-ofctl: br-tun is not a bridge or a socket 2016-05-16 04:15:39.440 | +./stack.sh:exit_trap:498 exit 1 tecs@tecs-OpenStack-Nova:~$

Glance is error, log is as follow: 2016-05-16 12:15:35.345 INFO eventlet.wsgi.server [-] Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py", line 481, in handle_one_response result = self.application(self.environ, start_response) File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__ resp = self.call_func(req, args, *self.kwargs) File "/usr/local/lib/python2.7/dist-packages/webob/dec ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-05-16 11:12:45 -0500

Matt G gravatar image

I hit the same issue. Got round it by adding "return" as the first line in the "upload_image" function in the devstack/functions file. If you need cirros then you can just download the image and register it manually; if not, that's it.

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: 2016-05-16 06:39:08 -0500

Seen: 326 times

Last updated: May 16 '16