libvirtError: internal error rbd username 'cinder' specified but secret not found
来源:互联网 发布:linux 查看cpu 编辑:程序博客网 时间:2024/05/17 06:12
参考:http://www.oschina.net/translate/openstack-ceph-integration
libvirtError: internal error rbd username 'cinder' specified but secret not found
需要修改每个计算节点的nova.conf的配置文件:
rbd_secret_uuid=e6e3b958-b51f-496f-8f6d-279dcf7ae4ec
其中这个uuid必须在每个计算节点进行计算:
[root@nn1 ~]# uuidgen
91ccbe85-b1f3-45d4-a9e1-882b8bd0fc20
vi secret.xml
<secret ephemeral='no' private='no'>
<uuid>91ccbe85-b1f3-45d4-a9e1-882b8bd0fc20</uuid>
<usage type='ceph'>
<name>client.cinder secret</name>
</usage>
</secret>
[root@nn2 ~]# virsh secret-define --file secret.xml
Secret 91ccbe85-b1f3-45d4-a9e1-882b8bd0fc20 created
[root@cc ~]# cat /etc/ceph/ceph.client.cinder.keyring
[client.cinder]
key = AQAhFHtTIOghEhAAT83CzotqqcRRmilIN3+xKQ==
[root@nn2 ~]# virsh secret-set-value --secret 91ccbe85-b1f3-45d4-a9e1-882b8bd0fc20 --base64 AQAhFHtTIOghEhAAT83CzotqqcRRmilIN3+xKQ==
Secret value set
这样这个uuid就可以用了
脚本:
#!/bin/sh
cat > secret.xml <<EOF
<secret ephemeral='no' private='no'>
<usage type='ceph'>
<name>client.cinder secret</name>
</usage>
</secret>
EOF
if [ $? -ne 0 ];then
exit 1
fi
key=`virsh secret-define --file secret.xml | awk '{print $2}'`
if [ $? -ne 0 ];then
exit 1
fi
virsh secret-set-value --secret $key --base64 AQAhFHtTIOghEhAAT83CzotqqcRRmilIN3+xKQ==
if [ $? -ne 0 ];then
exit 1
fi
sed -i "s/#rbd_secret_uuid=<None>/rbd_secret_uuid=$key/g" /etc/nova/nova.conf
if [ $? -ne 0 ];then
exit 1
fi
/etc/init.d/openstack-nova-compute restart
0 0
- libvirtError: internal error rbd username 'cinder' specified but secret not found
- LibvirtError: internal error: cannot load AppArmor profile
- gtags error: curses library is required but not found.
- DOS format was specified but only a single line feed character was found, not 2
- DOS format was specified but only a single line feed character was found, not 2
- DOS format was specified but only a single line feed character was found, not 2
- 运行pig出错Unhandled internal error. Found interface jline.Terminal, but class was expected
- Security is enabled, but JCE policy zip is not specified error when enabling security using ambari
- GDB bug ---- Internal error: 【pc 0x69fa8】 in read in psymtab, but not in symtab.
- Specified VM install not found
- [Nagios] Error: Template 'timman' specified in contact definition could not be not found (c
- Error:(34) Error: "xxx" is translated here but not found in default locale [ExtraTrans
- Could not read Username Error for Git
- Error:REQUIRES 'ORG.ECLIPSE.GEF 0.0.0' BUT IT COULD NOT BE FOUND
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- ERROR! MySQL is running but PID file could not be found ?
- mysql无法启动ERROR! MySQL is running but PID file could not be found
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- C语言中的const用法以及常量指针与指针常量(有口诀!)
- [绘画]Quartz
- 算法系列之十二:多边形区域填充算法--扫描线种子填充算法
- Android代码中资源文件报错的调试
- Hive整合HBase——通过Hive读/写 HBase中的表
- libvirtError: internal error rbd username 'cinder' specified but secret not found
- [JAVA][2013蓝桥杯预赛 JAVA本科B组][黄金连分数]
- C语言函数 bzero
- 有关MVC的一点理解
- JNI之helloworld
- centos 7安装mysql
- column in where clause is ambiguous MySQL异常
- Android 四大组件之 Activity(2)--传值
- [JAVA][2013蓝桥杯预赛 JAVA本科B组][有理数类]