2023.10.07
Controller
2023.10.07
Controller
[root@controller ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 229
Server version: 10.3.10-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> CREATE DATABASE neutron;
[root@controller ~]# openstack service create --name neutron \
> --description "OpenStack Networking" network
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | OpenStack Networking |
| enabled | True |
| id | 3eb092bf8a6742b49e6d5b0dafdaae86 |
| name | neutron |
| type | network |
+-------------+----------------------------------+
[root@controller ~]# vi /etc/neutron/metadata_agent.ini
[DEFAULT]
nova_metadata_host = 192.168.56.10
metadata_proxy_shared_secret = dkagh1.
[root@controller ~]# vi /etc/nova/nova.conf
[neutron]
url = http://192.168.56.10:9696
auth_url = http://192.168.56.10:5000
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = dkagh1.
service_metadata_proxy = true
metadata_proxy_shared_secret = dkagh1.
[root@controller ~]# ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
ln: failed to create symbolic link ‘/etc/neutron/plugin.ini’: File exists
[root@controller ~]# su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf \
> --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head" neutron
INFO [alembic.runtime.migration] Context impl MySQLImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
Running upgrade for neutron ...
INFO [alembic.runtime.migration] Context impl MySQLImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
OK
[root@controller ~]# systemctl restart openstack-nova-api.service
[root@controller ~]# systemctl enable neutron-server.service \
> neutron-linuxbridge-agent.service neutron-dhcp-agent.service \
> neutron-metadata-agent.service
[root@controller ~]# systemctl start neutron-server.service \
> neutron-linuxbridge-agent.service neutron-dhcp-agent.service \
> neutron-metadata-agent.service
[root@controller ~]# systemctl enable neutron-l3-agent.service
[root@controller ~]# systemctl start neutron-l3-agent.service
[root@controller ~]# systemctl status neutron-server.service neutron-linuxbridge-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service
● neutron-server.service - OpenStack Neutron Server
Loaded: loaded (/usr/lib/systemd/system/neutron-server.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2023-10-03 13:16:13 KST; 3 days ago
Main PID: 22112 (/usr/bin/python)
CGroup: /system.slice/neutron-server.service
├─22112 /usr/bin/python2 /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/server --config-file /etc/neutron/neutron.c... ├─22190 /usr/bin/python2 /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/server --config-file /etc/neutron/neutron.c... ├─22191 /usr/bin/python2 /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/server --config-file /etc/neutron/neutron.c... ├─22192 /usr/bin/python2 /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/server --config-file /etc/neutron/neutron.c... ├─22193 neutron-server: rpc worker (/usr/bin/python2 /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/server --config... ├─22194 neutron-server: rpc worker (/usr/bin/python2 /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/server --config... └─22195 neutron-server: rpc worker (/usr/bin/python2 /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/server --config...
Oct 03 13:16:06 controller systemd[1]: Starting OpenStack Neutron Server...
Oct 03 13:16:11 controller neutron-server[22112]: /usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py:22: PkgResourcesDeprecationWarning: Parameters to load are deprecat...separately.Oct 03 13:16:11 controller neutron-server[22112]: return pkg_resources.EntryPoint.parse("x=" + s).load(False)
Oct 03 13:16:13 controller systemd[1]: Started OpenStack Neutron Server.
● neutron-linuxbridge-agent.service - OpenStack Neutron Linux Bridge Agent
Loaded: loaded (/usr/lib/systemd/system/neutron-linuxbridge-agent.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2023-10-07 10:29:27 KST; 117ms ago
Process: 7353 ExecStartPre=/usr/bin/neutron-enable-bridge-firewall.sh (code=exited, status=0/SUCCESS)
Main PID: 7358 (neutron-linuxbr)
CGroup: /system.slice/neutron-linuxbridge-agent.service
└─7358 /usr/bin/python2 /usr/bin/neutron-linuxbridge-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutro...
Oct 07 10:29:27 controller systemd[1]: Stopped OpenStack Neutron Linux Bridge Agent.
Oct 07 10:29:27 controller systemd[1]: Starting OpenStack Neutron Linux Bridge Agent...
Oct 07 10:29:27 controller neutron-enable-bridge-firewall.sh[7353]: net.bridge.bridge-nf-call-iptables = 1
Oct 07 10:29:27 controller neutron-enable-bridge-firewall.sh[7353]: net.bridge.bridge-nf-call-ip6tables = 1
Oct 07 10:29:27 controller systemd[1]: Started OpenStack Neutron Linux Bridge Agent.
● neutron-dhcp-agent.service - OpenStack Neutron DHCP Agent
Loaded: loaded (/usr/lib/systemd/system/neutron-dhcp-agent.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2023-10-03 13:16:06 KST; 3 days ago
Main PID: 22114 (/usr/bin/python)
CGroup: /system.slice/neutron-dhcp-agent.service
└─22114 /usr/bin/python2 /usr/bin/neutron-dhcp-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dhcp...
Oct 03 13:16:06 controller systemd[1]: Started OpenStack Neutron DHCP Agent.
● neutron-metadata-agent.service - OpenStack Neutron Metadata Agent
Loaded: loaded (/usr/lib/systemd/system/neutron-metadata-agent.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2023-10-03 13:16:06 KST; 3 days ago
Main PID: 22115 (/usr/bin/python)
CGroup: /system.slice/neutron-metadata-agent.service
├─22115 /usr/bin/python2 /usr/bin/neutron-metadata-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/... └─22170 /usr/bin/python2 /usr/bin/neutron-metadata-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/...
Oct 03 13:16:06 controller systemd[1]: Started OpenStack Neutron Metadata Agent.
Hint: Some lines were ellipsized, use -l to show in full.
compute
[root@compute1 ~]# [root@compute1 ~]# vi /etc/nova/nova.conf
[root@compute1 ~]# systemctl restart openstack-nova-compute.service
[root@compute1 ~]# systemctl enable neutron-linuxbridge-agent.service
Created symlink from /etc/systemd/system/multi-user.target.wants/neutron-linuxbridge-agent.service to /usr/lib/systemd/system/neutron-linuxbridge-agent.service.
[root@compute1 ~]# systemctl start neutron-linuxbridge-agent.service
[root@compute1 ~]# systemctl status neutron-linuxbridge-agent.service
● neutron-linuxbridge-agent.service - OpenStack Neutron Linux Bridge Agent
Loaded: loaded (/usr/lib/systemd/system/neutron-linuxbridge-agent.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2023-10-04 09:54:05 KST; 3s ago
Process: 28972 ExecStartPre=/usr/bin/neutron-enable-bridge-firewall.sh (code=exited, status=0/SUCCESS)
Main PID: 28978 (/usr/bin/python)
Tasks: 1
CGroup: /system.slice/neutron-linuxbridge-agent.service
└─28978 /usr/bin/python2 /usr/bin/neutron-linuxbridge-agent --config-file /usr/...
Oct 04 09:54:05 compute1 systemd[1]: Starting OpenStack Neutron Linux Bridge Agent...
Oct 04 09:54:05 compute1 neutron-enable-bridge-firewall.sh[28972]: net.bridge.bridge-nf-ca...
Oct 04 09:54:05 compute1 neutron-enable-bridge-firewall.sh[28972]: net.bridge.bridge-nf-ca...
Oct 04 09:54:05 compute1 systemd[1]: Started OpenStack Neutron Linux Bridge Agent.
Hint: Some lines were ellipsized, use -l to show in full.
[root@compute1 ~]# openstack network agent list
Missing value auth-url required for auth plugin password
[root@compute1 ~]#
[root@compute1 ~]# openstack network agent list
Missing value auth-url required for auth plugin password
[root@compute1 ~]# openstack network agent list --host 192.168.56.11
Missing value auth-url required for auth plugin password
[root@compute1 ~]# systemctl status openstack-nova-compute.service
● openstack-nova-compute.service - OpenStack Nova Compute Server
Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2023-10-04 09:53:51 KST; 2min 54s ago
Main PID: 28881 (nova-compute)
Tasks: 22
CGroup: /system.slice/openstack-nova-compute.service
└─28881 /usr/bin/python2 /usr/bin/nova-compute
Oct 04 09:53:44 compute1 systemd[1]: Starting OpenStack Nova Compute Server...
Oct 04 09:53:51 compute1 systemd[1]: Started OpenStack Nova Compute Server.
[root@compute1 ~]# export OS_AUTH_URL=http://192.168.56.10:5000/v3
[root@compute1 ~]# export OS_PASSWORD=dkagh1.
[root@compute1 ~]# systemctl status openstack-nova-compute.service
● openstack-nova-compute.service - OpenStack Nova Compute Server
Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2023-10-04 09:53:51 KST; 4min 27s ago
Main PID: 28881 (nova-compute)
Tasks: 22
CGroup: /system.slice/openstack-nova-compute.service
└─28881 /usr/bin/python2 /usr/bin/nova-compute
Oct 04 09:53:44 compute1 systemd[1]: Starting OpenStack Nova Compute Server...
Oct 04 09:53:51 compute1 systemd[1]: Started OpenStack Nova Compute Server.
[root@compute1 ~]# openstack network agent list --host 192.168.56.11
Missing parameter(s):
Set a username with --os-username, OS_USERNAME, or auth.username or set a user-id with --os-user-id, OS_USER_ID, or auth.user_id
[root@compute1 ~]# env | grep OS_
OS_PASSWORD=dkagh1.
OS_AUTH_URL=http://192.168.56.10:5000/v3
[root@compute1 ~]# openstack network agent list
Missing parameter(s):
Set a username with --os-username, OS_USERNAME, or auth.username or set a user-id with --os-user-id, OS_USER_ID, or auth.user_id
[root@compute1 ~]# openstack network agent list
Missing parameter(s):
Set a username with --os-username, OS_USERNAME, or auth.username or set a user-id with --os-user-id, OS_USER_ID, or auth.user_id
[root@compute1 ~]# vi admin-openrc
[root@compute1 ~]# openstack network agent list
Missing parameter(s):
Set a username with --os-username, OS_USERNAME, or auth.username or set a user-id with --os-user-id, OS_USER_ID, or auth.user_id
[root@compute1 ~]# client_loop: send disconnect: Connection reset
C: