pymysql安装_第八章 nova组件安装2
生活随笔
收集整理的這篇文章主要介紹了
pymysql安装_第八章 nova组件安装2
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、在控制節點安裝nova組件
apt -y install nova-api nova-placement-api nova-conductor nova-consoleauth nova-scheduler nova-novncproxy python3-novaclient # 配置文件 mv /etc/nova/nova.conf /etc/nova/nova.conf.org # 備份官方的 vi /etc/nova/nova.conf # 修改如下 # create new [DEFAULT] # allow resize to same host allow_resize_to_same_host = True # block allocate time block_device_allocate_retries = 600 block_device_allocate_retries_interval = 6 max_concurrent_live_migrations = 10 debug = True # 打開調試功能 use_neutron = True linuxnet_interface_driver = nova.network.linux_net.LinuxBridgeInterfaceDriver # LinuxBridge橋接 firewall_driver = nova.virt.firewall.NoopFirewallDriver # define own IP my_ip = 192.168.222.29 # API IP state_path = /var/lib/nova enabled_apis = osapi_compute,metadata log_dir = /var/log/nova# RabbitMQ connection info transport_url = rabbit://openstack:password@192.168.222.29[api] auth_strategy = keystone# Glance connection info [glance] api_servers = http://192.168.220.29:9292 # 這里配置存儲網的IP,也可以API網[oslo_concurrency] lock_path = $state_path/tmp# MariaDB connection info [api_database] connection = mysql+pymysql://nova:password@192.168.222.29/nova_api[database] connection = mysql+pymysql://nova:password@192.168.222.29/nova# Keystone auth info [keystone_authtoken] www_authenticate_uri = http://192.168.222.29:5000 auth_url = http://192.168.222.29:5000 memcached_servers = 192.168.222.29:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = nova password = servicepassword[placement] auth_url = http://192.168.222.29:5000 os_region_name = RegionOne auth_type = password project_domain_name = default user_domain_name = default project_name = service username = placement password = servicepassword[placement_database] connection = mysql+pymysql://nova:password@192.168.222.29/nova_placement[wsgi] api_paste_config = /etc/nova/api-paste.ini[neutron] auth_url = http://192.168.222.29:5000 auth_type = password project_domain_name = default user_domain_name = default region_name = RegionOne project_name = service username = neutron password = servicepassword service_metadata_proxy = True metadata_proxy_shared_secret = metadata_secret[cinder] os_region_name = RegionOne# 改變文件的權限 chmod 640 /etc/nova/nova.conf chgrp nova /etc/nova/nova.conf2、在控制節點同步數據庫
# 同步數據庫,python的orm對象關系映射,需要初始化來生成數據庫表結構 su -s /bin/bash nova -c "nova-manage api_db sync" su -s /bin/bash nova -c "nova-manage cell_v2 map_cell0" su -s /bin/bash nova -c "nova-manage db sync" # warning提示不用關心 su -s /bin/bash nova -c "nova-manage cell_v2 create_cell --name cell1" systemctl restart apache2for service in api conductor scheduler consoleauth novncproxy; do systemctl restart nova-$service # 服務已經開機自啟動 done# 查看驗證 openstack compute service list備注:如果在同步數據時有出現“deprecated ****”等信息,不用理會
總結
以上是生活随笔為你收集整理的pymysql安装_第八章 nova组件安装2的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 昆明55小时到曼谷!中国-老挝-泰国全程
- 下一篇: 微软 XGP 公布 2 月第一批新增入库