有一个要求是这样的:
我根据他的要求修改了glance-api.conf
中的字段:
[glance_store]
stores = file,http,cinder
default_store=cinder
filesystem_store_datadir=/var/lib/glance/images/
cinder_state_transition_timeout=300
cinder_store_auth_address=http://controller:5000/v3
cinder_store_user_name=cinder
cinder_store_password=000000
cinder_store_project_name=service
cinder_store_user_domain_name=demo
cinder_store_project_domain_name=demo
rootwrap_config=/etc/glance/rootwrap.conf
cinder_catalog_info = volumev2::http://controller:8776/v2/7396012569a441dfa33abb512bd446b8
并重启了controller和compute
但是在上传镜像过程中会报错:
[/var/log/glance/api.log]
The request you have made requires authentication. (HTTP 401): Unauthorized: The request you have made requires authentication. (HTTP 401)
[/var/log/keystone/keystone.log]
Could not find domain: Default.: DomainNotFound: Could not find domain: Default
我确实只建立了一个demo域,而且要求使用
OpenStack版本是:Queens,使用的先电2.4脚本搭建
求解决方法
你确定你上传的域是正确的啊? 现在提示你找不到default域哦,而且从你的报错,还提示认证有问题?