Neutron (networking)
Neutron manages virtual networks. HAGISTACK uses ML2/OVN.
openstack network listopenstack subnet listopenstack router listopenstack floating ip listopenstack 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 |
The router
Section titled “The router”openstack router show hagistack-routerexternal_gateway_info names hagistack-provider, and an interface is on the tenant subnet.
Floating IPs
Section titled “Floating IPs”openstack floating ip create hagistack-provideropenstack server add floating ip demo1 FLOATING_IPopenstack server remove floating ip demo1 FLOATING_IPopenstack floating ip delete FLOATING_IPSecurity groups
Section titled “Security groups”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.
Create another tenant network
Section titled “Create another tenant network”openstack network create net2openstack subnet create --network net2 --subnet-range 10.20.0.0/24 net2-subnetopenstack router add subnet hagistack-router net2-subnetAttached to the existing router, VMs on net2 can use floating IPs too. Keep the range apart from the existing networks.
Agents
Section titled “Agents”openstack network agent listEach node’s OVN Controller agent (OVN Controller Gateway agent on the controller) and OVN Metadata agent show Alive = True.