- 源码下载、安装
- 参考:
- 下载:git clone -b stable/icehouse
pip install -r requirements.txt
python setup.py install
- 创建用户、服务
- 生成nova配置文件:(不稳定,可能需要多执行几次)
yum install postgresql-devel、pip install tox、pip install -r test-requirements.txt
tox –egenconfig
- 配置nova配置文件、数据库初始化:
配置sql连接(修改connection而不是sql_connection)
mysql -uroot -popenstack -e "CREATE DATABASE nova;"
mysql -uroot -popenstack -e "GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' IDENTIFIED BY 'openstack';"
mysql -uroot -popenstack -e "GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' IDENTIFIED BY 'openstack';"
mysql -uroot -popenstack -e "GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'controller0' IDENTIFIED BY 'openstack';"
nova-manage db sync(nova-manage --config-file=/etc/nova/nova.conf db sync)
错误参考:
yum -y install yum-plugin-priorities
yum install python-oslo-messaging
yum install python-migrate
- Nova.conf配置日志、rpc、vnc、keystone认证等
- 添加api-paste.ini 的 Keystone认证信息
- 启动nova服务
- nova-all &
mkdir -p /var/lib/nova
lock_path= /var/lib/nova,解决RequiredOptError: value required for option: lock_path问题:
- nova-manage service list
- nova-api默认占用8774端口。nova-api默认占用8774、8775端口。nova-novncproxy默认占用6080端口。
- nova-novnc启动失败问题:
cp -rf noVNC/* /usr/share/novnc/
-
-
- Nova-client下载安装
- 下载:git clone -b stable/kilo (git clone https://github.com/openstack/python-novaclient.git)
pip install -r requirements.txt
python setup.py install
- 有问题看日志!!!经验主义!!!
- 虚拟机动态迁移参考:
-
- 日志分析——ELK组合
- 同类云平台比较