Hi,

according to https://access.redhat.com/solutions/5982361 (which can be seen if you obtain a free RH developer subscription) you will need to use nmstate.

First create a yaml like this one (indentation must follow yaml requirements):

routes:
config:
- destination: 10.9.0.0/16
next-hop-address: 10.13.0.1
next-hop-interface: enp65s0f0

And then apply via 'nmstatectl set my_ceph_static_route.yml' on every host that needs the static route.


P.S.: Of course maintenance mode and reboot will be mandatory for testing the persistence of the static route.


Best Regards,
Strahil Nikolov
В петък, 19 ноември 2021 г., 23:03:16 Гринуич+2, Michael Thomas <wart@caltech.edu> написа:


I'm running ovirt 4.4.2 on CentOS 8.2. My ovirt nodes have two network
addresses, ovirtmgmt and a second used for normal routed traffic to the
cluster and WAN.

After the ovirt nodes were set up, I found that I needed to add an extra
static route to the cluster interface to allow the hosts to see my ceph
storage nodes (to make the rbd images visible to the VMs):

10.9.0.0/16 via 10.13.0.1

I can add this route using three different methods:

1) ip route add 10.9.0.0/16 via 10.13.0.1

2) nmcli conn modify enp65s0f0 ipv4.routes "10.9.0.0/16 10.13.0.1"
    nmcli conn down enp65s0f0
    nmcli conn up enp65s0f0

3) vi /etc/sysconfig/network-scripts/route-enp65s0f0
    ifdown enp65s0f0
    ifup enp65s0f0

However, when I reboot the host, the static route goes away.  Methods 2
and 3 have always given me a persistent static route on other EL8 hosts,
but not on my ovirt nodes.

What is the correct way to add a persistent static route on an ovirt host?

--Mike
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/L4M7MBYH5ZVGMR3W7U2OMVHE7UQJJBW2/