In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Part 6 Installing Compute Service nova (Control Node)
Compute service nova is slightly more complex than previous services (but not as complex as network service neutron), requiring installation on both control and compute nodes
The control node mainly installs nova-api (nova host service), nova-scheduler (nova scheduling service), nova-conductor (nova database service, providing database access), nova-novnc proxy (nova vnc service, providing instance console) and other services;
Compute nodes are mainly installed with nova-compute (nova computing service).
This section describes the steps for installing nova on control nodes, and the next section describes the installation on compute nodes.
Install nava compute service on control node as follows (control node)
Installation of databases (3 total databases)
mysql -u root -p
Create nova_api, nova and nova_cell0 databases
MariaDB [(none)]> CREATE DATABASE nova_api;
MariaDB [(none)]> CREATE DATABASE nova;
MariaDB [(none)]> CREATE DATABASE nova_cell0;
Grant appropriate access to the database (6 statements)
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'localhost' IDENTIFIED BY 'NOVA_DBPASS';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'%' IDENTIFIED BY 'NOVA_DBPASS';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' IDENTIFIED BY 'NOVA_DBPASS';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' IDENTIFIED BY 'NOVA_DBPASS';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova_cell0.* TO 'nova'@'localhost' IDENTIFIED BY 'NOVA_DBPASS';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova_cell0.* TO 'nova'@'%' IDENTIFIED BY 'NOVA_DBPASS';
MariaDB [(none)]> exit;
Create Nova User
. admin-openrc
openstack user create --domain default --password NOVA_PASS nova
Add admin role to nova user
openstack role add --project service --user nova admin
Create nova service entity
openstack service create --name nova --description "OpenStack Compute" compute
Create Compute API service endpoints
openstack endpoint create --region RegionOne compute public http://ct:8774/v2.1
openstack endpoint create --region RegionOne compute internal http://ct:8774/v2.1
openstack endpoint create --region RegionOne compute admin http://ct:8774/v2.1
installation package
yum install openstack-nova-api openstack-nova-conductor openstack-nova-novncproxy openstack-nova-scheduler -y
modify the configuration file
cp /etc/nova/nova.conf /etc/nova/nova.conf.bak
grep -Ev '^$|#' /etc/nova/nova.conf.bak >/etc/nova/nova.conf
vim /etc/nova/nova.conf
Add in [DEFAULT]:
[DEFAULT]
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:RABBIT_PASS@ct:5672/
my_ip = 192.168.10.41
use_neutron = true
firewall_driver = nova.virt.firewall.NoopFirewallDriver
Add to [api_database] and [database]:
[api_database]
connection = mysql+pymysql://nova:NOVA_DBPASS@ct/nova_api
[database]
connection = mysql+pymysql://nova:NOVA_DBPASS@ct/nova
In [api] and [keystone_authtoken] add:
[api]
auth_strategy = keystone
[keystone_authtoken]
www_authenticate_uri = http://ct:5000/
auth_url = http://ct:5000/
memcached_servers = ct:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = nova
password = NOVA_PASS
Add at [vnc]:
[vnc]
enabled = true
server_listen = $my_ip
server_proxyclient_address = $my_ip
At [glance] add:
[glance]
api_servers = http://ct:9292
In [oslo_currency] add:
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
In [placement] insert:
[placement]
region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://ct:5000/v3
username = placement
password = PLACEMENT_PASS
PS: There are many changes, please carefully modify them.
populating nova-api database
su -s /bin/sh -c "nova-manage api_db sync" nova
su -s /bin/sh -c "nova-manage cell_v2 map_cell0" nova
su -s /bin/sh -c "nova-manage cell_v2 create_cell --name=cell1 --verbose" nova
su -s /bin/sh -c "nova-manage db sync" nova
After the database is populated, verify that nova cell0 and cell1 are registered correctly:
su -s /bin/sh -c "nova-manage cell_v2 list_cells" nova
Start compute service nova and configure it to start at system startup
systemctl enable openstack-nova-api.service openstack-nova-scheduler.service openstack-nova-conductor.service openstack-nova-novncproxy.service
systemctl start openstack-nova-api.service openstack-nova-scheduler.service openstack-nova-conductor.service openstack-nova-novncproxy.service
Similarly, use netstat -tnlup to check the port status, such as 8774 and 8775 ports, indicating that the nova service is starting normally.
curl http://ct:8774
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.