Skip to content

Neutron (networking)

Neutron manages virtual networks. HAGISTACK uses ML2/OVN.

Terminal window
openstack network list
openstack subnet list
openstack router list
openstack floating ip list
openstack security group list
Command HAGISTACK’s initial state Horizon
network list hagistack-provider (external, shared), hagistack-tenant Project → Network → Networks
subnet list hagistack-provider-subnet (floating range, no DHCP), hagistack-tenant-subnet same
router list hagistack-router Project → Network → Routers
floating ip list (empty until you create one) Project → Network → Floating IPs
security group list a default group per project Project → Network → Security Groups
Terminal window
openstack router show hagistack-router

external_gateway_info names hagistack-provider, and an interface is on the tenant subnet.

Terminal window
openstack floating ip create hagistack-provider
openstack server add floating ip demo1 FLOATING_IP
openstack server remove floating ip demo1 FLOATING_IP
openstack floating ip delete FLOATING_IP
Terminal window
SG=$(openstack security group list --project admin -f value -c ID -c Name | awk '$2=="default"{print $1}')
openstack security group rule list "$SG"
openstack security group rule create --protocol tcp --dst-port 80 --remote-ip 192.0.2.0/24 "$SG"
  • Every project has a group named default, so use the ID.
  • Limit the source with --remote-ip (the example address is an RFC 5737 documentation address).
  • Delete a rule you no longer need with openstack security group rule delete RULE_ID.
Terminal window
openstack network create net2
openstack subnet create --network net2 --subnet-range 10.20.0.0/24 net2-subnet
openstack router add subnet hagistack-router net2-subnet

Attached to the existing router, VMs on net2 can use floating IPs too. Keep the range apart from the existing networks.

Terminal window
openstack network agent list

Each node’s OVN Controller agent (OVN Controller Gateway agent on the controller) and OVN Metadata agent show Alive = True.