2019-08-22 08:52:47 |
zhanghao |
description |
When slave_connection is configured in neutron.conf, executing the 'neutron port-show' command will read the port information from the slave database nodes, but the network/subnet will not be able to read the information from the slave database nodes. |
openstack environment: 1 controller 1 compute(install mariadb)
neutron.conf
[database]
connection = mysql+pymysql://neutron:***@controller/neutron
slave_connection = mysql+pymysql://neutron: ***@compute/neutron
create network(name=net10)、subnet(name=subnet10)、port(name=port01) in controller node.
sync controller node database to compute node.
update network.name=test_net10、subnet.name=test_subnet10、port.name=test_port01 in compute node database.
neutron port-show PORT_ID name:test_port01
neutron net-show NET_ID name:net10
neutron subnet-show SUBNET_ID name:subnet10
When slave_connection is configured in neutron.conf, executing the 'neutron port-show' command will read the port information from the slave database nodes, but the network/subnet will not be able to read the information from the slave database nodes. |
|