OpenStack创建实例状态error
1、检查网络
openstack network list
出现问题1
Missing value auth-url required for auth plugin password
尝试解决
问题 缺少身份验证插件密码所需的身份验证网址
内容:source
命令 export命令 环境变量
1、You can source the openrc
in your DevStack directory (assuming it lies under /opt/stack
):
source /opt/stack/devstack/openrc admin
2、Alternatively, you may create your own openrc
with this content (adapt according to your settings):
export OS_PROJECT_DOMAIN_NAME=Default
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=ADMIN_PASS
export OS_AUTH_URL=http://controller/identity/v3
这里选择第二种
执行后出现问题2
问题2
Expecting to find domain in user. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-8f7b8479-6a94-4112-8c73-29707b2f3c6f)
原因:没有 定义OS_USER_DOMAIN_NAME 参数
解决:keystonerc_admin里面内容需要全部导入
再次添加这个文件里的剩下内容
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_IDENTITY_API_VERSION=3
实验:
成功
brctl show
有人说需要有这样的形式,不然创建的实例无法获得ip地址
bridge name bridge id STP enabled interfaces
brq81309e00-a5 8000.000c29436db1 no eth0
tapc0df9297-7e
(1)确认已经停止或者删除了NetworkManager软件包
systemctl stop NetworkManager
systemctl disable NetworkManager
yum remove NetworkManager -y
(2)重启网络
systemctl restart network
在在nova.conf文件中加入
block_device_allocate_retries = 3600
重启nova-compute服务和nova-api服务
最后换个镜像重新创建实例就好了