创建扫视图像403禁止访问

时间:2015-01-20 18:36:09

标签: openstack

我正在尝试使用此命令在我的openstack安装上创建一个图像:glance image-create --name "cirros-0.3.3-x86_64" --disk-format qcow2 --container-format bare -is-public true --progress <cirros-0.3.3-x86_64-disk.img

但我在html中收到错误消息:    <html><head><title>403 forbidden access</title>... 我检查了我的日志文件注册表日志文件,我发现了这个: 2015-01-20 17:52:08.794 2579 INFO glance.wsgi.server [-] Removing dead child 2585 2015-01-20 17:52:08.796 2579 INFO glance.wsgi.server [-] Started child 2671 2015-01-20 17:52:08.797 2579 DEBUG glance.wsgi.server [-] Exited wait_on_children /usr/lib/python2.7/dist-packages/glance/common/wsgi.py:300 2015-01-20 17:52:08.802 2671 INFO glance.wsgi.server [-] (2671) wsgi starting up on http://0.0.0.0:9292/ 2015-01-20 17:52:08.803 2671 INFO glance.wsgi.server [-] Child 2671 exiting normally 2015-01-20 17:52:09.149 2673 ERROR glance_store._drivers.filesystem [-] Specify either 'filesystem_store_datadir' or 'filesystem_store_datadirs' option 2015-01-20 17:52:09.150 2673 WARNING glance_store.driver [-] Failed to configure store correctly: None Disabling add method. 2015-01-20 17:52:09.150 2673 ERROR glance_store._drivers.filesystem [-] Specify either 'filesystem_store_datadir' or 'filesystem_store_datadirs' option 2015-01-20 17:52:09.151 2673 WARNING glance_store.driver [-] Failed to configure store correctly: None Disabling add method. 2015-01-20 18:07:52.719 2931 ERROR glance_store._drivers.filesystem [-] Specify either 'filesystem_store_datadir' or 'filesystem_store_datadirs' option 2015-01-20 18:07:52.720 2931 WARNING glance_store.driver [-] Failed to configure store correctly: None Disabling add method. 2015-01-20 18:07:52.720 2931 ERROR glance_store._drivers.filesystem [-] Specify either 'filesystem_store_datadir' or 'filesystem_store_datadirs' option 2015-01-20 18:07:52.721 2931 WARNING glance_store.driver [-] Failed to configure store correctly: None Disabling add method.

我已经在配置文件中设置了filesystem_store_datadir,但我不明白为什么它一直向我显示这个错误?

抱歉我的英语不好:)

2 个答案:

答案 0 :(得分:1)

我建议您从命令行中删除“-is-public true”以检查您的帐户政策。

答案 1 :(得分:0)

检查文件:/etc/glance/glance-registry.conf 并确保已设置:

[paste_deploy]
flavor = keystone