nova計算服務分佈式

控制節點

#第一步 控制節點下載nova-conpute包html

#安裝依賴包mysql

#vim /etc/nova/nova.confredis

[DEFAULT] my_ip=#當前節點IP use_neutron = True firewall_driver = nova.virt.firewall.NoopFirewallDriver enabled_apis=osapi_compute,metadata transport_url = rabbit://openstack:admin@controller
 [api] auth_strategy = keystone [api_database] connection = mysql+pymysql://nova:NOVA_DBPASS@controller/nova_api
 [barbican] [cache] [cells] [cinder] #os_region_name = RegionOne [cloudpipe] [conductor] [console] [consoleauth] [cors] [cors.subdomain] [crypto] [database] connection = mysql+pymysql://nova:NOVA_DBPASS@controller/nova
 [ephemeral_storage_encryption] [filter_scheduler] [glance] api_servers = http://controller:9292
 [guestfs] [healthcheck] [hyperv] [image_file_url] [ironic] [key_manager] [keystone_authtoken] auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = nova password = nova [libvirt] virt_type=qemu [matchmaker_redis] [metrics] [mks] [neutron] #url = http://controller:9696
#auth_url = http://controller:35357
#auth_type = password #project_domain_name = default #user_domain_name = default #region_name = RegionOne #project_name = service #username = neutron #password = neutron #service_metadata_proxy = true #metadata_proxy_shared_secret = METADATA_SECRET [notifications] [osapi_v21] [oslo_concurrency] lock_path=/var/lib/nova/tmp [oslo_messaging_amqp] [oslo_messaging_kafka] [oslo_messaging_notifications] [oslo_messaging_rabbit] [oslo_messaging_zmq] [oslo_middleware] [oslo_policy] [pci] [placement] os_region_name = RegionOne auth_type = password auth_url = http://controller:35357/v3
project_name = service project_domain_name = Default username = placement password = placement user_domain_name = Default [quota] [rdp] [remote_debug] [scheduler] [serial_console] [service_user] [spice] [ssl] [trusted_computing] [upgrade_levels] [vendordata_dynamic_auth] [vmware] [vnc] enabled=true vncserver_listen=0.0.0.0 vncserver_proxyclient_address=$my_ip novncproxy_base_url = http://192.168.24.8:6080/vnc_auto.html
 [workarounds] [wsgi] [xenserver] [xvp]

#啓動compute服務並設爲開機自啓        sql

systemctl enable libvirtd.service openstack-nova-compute.service systemctl start libvirtd.service openstack-nova-compute.service

#列示openstack管理的虛擬化類型數據庫

openstack hypervisor list

#給數據庫同步計算節點vim

su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova

#列示openstack管理的計算服務api

openstack compute service list

#查看服務列表cors

openstack catalog list

#查看鏡像dom

openstack image list

#更新一下nova服務狀態的檢測,三個狀態必須都是成功memcached

nova-status upgrade check

存儲節點

#第一步 上傳此包,安裝三個依賴(學校網需此步操做,外網直接下一步)

#解壓此包進入後安裝 yum localinstall –y ./*

#下載nova-compute

yum install openstack-nova-compute

#編輯nova配置文件

cd /etc/nova/ cp nova.conf nova.conf.bak vim nova.conf #清空原內容,粘貼以下內容 [DEFAULT] my_ip=#計算節點管理網卡地址 use_neutron = True firewall_driver = nova.virt.firewall.NoopFirewallDriver enabled_apis=osapi_compute,metadata transport_url = rabbit://openstack:admin@controller
 [api] auth_strategy = keystone [api_database] #connection = mysql+pymysql://nova:NOVA_DBPASS@controller/nova_api
 [barbican] [cache] [cells] [cinder] #os_region_name = RegionOne [cloudpipe] [conductor] [console] [consoleauth] [cors] [cors.subdomain] [crypto] [database] #connection = mysql+pymysql://nova:NOVA_DBPASS@controller/nova
 [ephemeral_storage_encryption] [filter_scheduler] [glance] api_servers = http://controller:9292
 [guestfs] [healthcheck] [hyperv] [image_file_url] [ironic] [key_manager] [keystone_authtoken] auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = nova password = nova [libvirt] virt_type=qemu [matchmaker_redis] [metrics] [mks] [neutron] #url = http://controller:9696
#auth_url = http://controller:35357
#auth_type = password #project_domain_name = default #user_domain_name = default #region_name = RegionOne #project_name = service #username = neutron #password = neutron #service_metadata_proxy = true #metadata_proxy_shared_secret = METADATA_SECRET [notifications] [osapi_v21] [oslo_concurrency] lock_path=/var/lib/nova/tmp [oslo_messaging_amqp] [oslo_messaging_kafka] [oslo_messaging_notifications] [oslo_messaging_rabbit] [oslo_messaging_zmq] [oslo_middleware] [oslo_policy] [pci] [placement] os_region_name = RegionOne auth_type = password auth_url = http://controller:35357/v3
project_name = service project_domain_name = Default username = placement password = placement user_domain_name = Default [quota] [rdp] [remote_debug] [scheduler] [serial_console] [service_user] [spice] [ssl] [trusted_computing] [upgrade_levels] [vendordata_dynamic_auth] [vmware] [vnc] enabled=true vncserver_listen=0.0.0.0 vncserver_proxyclient_address=$my_ip novncproxy_base_url = http://控制節點IP:6080/vnc_auto.html
 [workarounds] [wsgi] [xenserver] [xvp]

#過濾如下兩個節點是否如下兩個參數,由於你計算節點是調用kvm虛擬化啓動虛擬機,看開啓虛擬化功能沒有

egrep -c '(vmx|svm)' /proc/cpuinfo

#啓動compute服務並設爲開機自啓

systemctl enable libvirtd.service openstack-nova-compute.service systemctl start libvirtd.service openstack-nova-compute.service

#返回至控制節點

#宣告環境變量

. openrc

#列示openstack管理的虛擬化類型

openstack hypervisor list

#給數據庫同步計算節點

su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova

#列示openstack管理的計算服務

openstack compute service list

#查看服務列表

openstack catalog list

#查看鏡像

openstack image list

#更新一下nova服務狀態的檢測,三個狀態必須都是成功

nova-status upgrade check
相關文章
相關標籤/搜索