问题一:在使用vim编辑器输入:$s/PASS=/PASS=000000/g
报错:pattern not found
解决方案:
(即将s改为%s,g改为ge) :%s/PASS=/PASS=000000/ge
问题二:在安装mysql时候报错Please make sure the network configuration is correct!
问题原因:这是因为我们使用yum安装openstacker后没有编辑openrc.sh
所以无法加载一些配置
解决方案:
编辑openrc.sh执行pre.sh 初始化openstacker
问题三:在安装nov报错failed because the control process exited with
Jobforopenstack-nova-scheduler.servicefailedbecausethecontrolprocessexitedwitherrorcode. See"systemctl status openstack-nova-scheduler.service"and"journalctl -xe"fordetails. Jobforopenstack-nova-conductor.servicefailedbecausethecontrolprocessexitedwitherrorcode. See"systemctl status openstack-nova-conductor.service"and"journalctl -xe"fordetails.
解决安装
需要执行 placement.sh#此组件用于可用资源的监测(大白理解不代表官方) #这个组件在openstacker的s版本独立出来了 所以需要在安装nov前安装
问题四:NOV部署完毕后启动openstack报错net_mlx5: cannot load glue library: libibverbs.so.1: cannot open shared object file: No such file or directory
部署openstackcontroller节点后,ovs以及重新登录controller节点报错: #################################WelcometoOpenStack#################################net_mlx5: cannotloadgluelibrary: libibverbs.so.1: cannotopensharedobjectfile: Nosuchfileordirectorynet_mlx5: cannotinitializePMDduetomissingrun-timedependencyonrdma-corelibraries (libibverbs, libmlx5) PMD: net_mlx4: cannotloadgluelibrary: libibverbs.so.1: cannotopensharedobjectfile: Nosuchfileordirectory
解决方法
yuminstall-ylibibverbs
问题五:进入dashboard显示无法加载实例
解决方案:
①.进入MySQL:手动设定最大连接次数,最大连接次数设置为500
②.我们可以看到默认的最大连接次数是214,我们手动修改到500
mysql -u root -p MariaDB [(none)]> show global variables like'%max_conn%';+-----------------------+-------+| Variable_name | Value |+-----------------------+-------+| extra_max_connections |1|| max_connect_errors |100|| max_connections |214|+-----------------------+-------+3 rows inset(0.01 sec)MariaDB [(none)]>set global max_connections=500MariaDB [(none)]> show global variables like'%max_conn%';+-----------------------+-------+| Variable_name | Value |+-----------------------+-------+| extra_max_connections |1|| max_connect_errors |100|| max_connections |594|+-----------------------+-------+3 rows inset(0.002 sec)
解决方法(二):
手动修改配置文件,设置最大连接数
[root@controller ~]# vim /usr/lib/systemd/system/mariadb.service[Service]Type=notify User=mysql Group=mysql LimitNOFILE=10000==>添加上 LimitNPROC=10000==>添加上 [root@controller ~]# systemctl --system daemon-reload [root@controller ~]# systemctl restart mariadb.service[root@controller ~]# mysql -u root -p MariaDB [(none)]> show global variables like'%max_conn%';+-----------------------+-------+| Variable_name | Value |+-----------------------+-------+| extra_max_connections |1|| max_connect_errors |100|| max_connections |4096|+-----------------------+-------+ rows inset(0.012 sec)
问题六:实例开机提示找不到磁盘Booting from Hard Disk... GRUB
故障情况:
解决方案:
使用vim 编辑 /etc/nova/nova.conf大概在3392行可以看到 #virt_type=kvm复制一行取消#号改成virt_type=qemu重启nov计算服务 systemctlrestartopenstack-nova-compute.service查看下是否改好 [root@controller ~]#openstackhypervisorlistMissingvalueauth-urlrequiredforauthpluginpassword#此报错需要source下keystone[root@controller ~]#source /etc/keystone/admin-openrc.sh[root@controller ~]#openstackhypervisorlist+----+---------------------+-----------------+---------------+-------+ | ID | HypervisorHostname | HypervisorType | HostIP | State | +----+---------------------+-----------------+---------------+-------+ | 1 | compute | QEMU | 192.111.111.111 | up | +----+---------------------+-----------------+---------------+-------+ 重启实例 novareboot 实例id#实例id为openstack云主机(虚拟机)
问题七:针对于openstack中出现如下报错You must provide a username via either --os-username or env[OS_USERNAME]
解决方案:
[root@controllerimages]#source /etc/keystone/admin-openrc