generic driver: service instance ends up with 2 ports in the admin network
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Thanks for your hard work with Openstack Manila, really appreciated.
I found this odd behavior when trying the following setup:
* flat network topology (all VMs in all tenants share the same neutron net/subnet)
* manila.conf uses generic driver with DHSS=true
* manila.conf sets up both admin_network_id = XXXX and admin_subnet_id = YYYY
* manila.conf sets up connect_
According to the source code [0], this is the only way to instruct the driver to don't create a dedicated service network, and use the admin-defined network for the service instance.
As of this writing the source reads:
=== 8< ===
if self.admin_
if self.use_admin_port and self.connect_
=== 8< ===
However, later on in the source code [1], when the service instance is being created, it ends up creating 2 ports, with 2 IP addresses in the same admin subnet. If you read the code, one port is called 'public_port' and the other 'admin_port'.
A linux server with 2 interfaces with different addresses in the same subnet is a failure for several reasons.
I would expect the generic driver to detect if is trying to create ports on the exact same subnet and avoid doing it.
regards.
[0] https:/
[1] https:/
tags: | added: driver generic |
Changed in manila: | |
status: | New → Triaged |
Additional comments at: https:/ /meetings. opendev. org/meetings/ manila/ 2021/manila. 2021-10- 07-15.00. log.html