Glance_image[cirros] 中的错误:从不存在更改为存在失败:命令:...已 运行 超过 20 秒

Error in Glance_image[cirros] : change from absent to present failed: Command: ... has been running for more then 20 seconds

我是 运行 packstack。

Error: /Stage[main]/Main/Glance_image[cirros]/ensure: change from absent to pres
ent failed: Command: 'openstack ["image", "create", "--format", "shell", ["cirros", "--public", "--container-format=bare", "--disk-format=qcow2", "--copy-from=http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img"]]' has been running for more then 20 seconds!

我有这个错误,我可以得到它,所以我可以完美地解决它。有人可以帮我解决这个问题吗?作为解决方法,我手动尝试了它,但我对 centos 和 Openstack 真的很陌生,所以我不太了解。我试过了:

openstack image create --format shell cirros --public --container-format=bare --disk-format=qcow2 --copy-from=http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img

I got Missing parameter(s):

Set a username with --os-username, OS_USERNAME, or auth.username Set an authentication URL, with --os-auth-url, OS_AUTH_URL or auth.auth_url Set a scope, such as a project or domain, set a project scope with --os-project-
name, OS_PROJECT_NAME or auth.project_name, set a domain scope with --os-domain-name, OS_DOMAIN_NAME or auth.domain_name

我应该在上面的命令中添加什么?它能解决我的问题吗?如果不是,解决问题的正确方法是什么?

通过替换解决了 --copy-from=http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img 指向 --copy-from=<local path> 但是不明白为什么即使我可以获取原始命令也无法正常工作。