Closed markbeierl closed 6 months ago
Possible reason. Here is a debug-log replay:
unit-sdcore-upf-0: 14:00:06 INFO juju.worker.uniter.operation ran "update-status" hook (via hook dispatching script: dispatch)
unit-sdcore-upf-0: 14:04:07 WARNING unit.sdcore-upf/0.juju-log No IPv4 address found for interface enp8s0f0
unit-sdcore-upf-0: 14:04:07 WARNING unit.sdcore-upf/0.juju-log IP address for interface enp8s0f0 is empty
unit-sdcore-upf-0: 14:04:07 WARNING unit.sdcore-upf/0.juju-log Access network interface enp8s0f0 is not valid
unit-sdcore-upf-0: 14:04:07 WARNING unit.sdcore-upf/0.juju-log No IPv4 address found for interface enp8s0f1
unit-sdcore-upf-0: 14:04:07 WARNING unit.sdcore-upf/0.juju-log IP address for interface enp8s0f1 is empty
unit-sdcore-upf-0: 14:04:07 WARNING unit.sdcore-upf/0.juju-log Core network interface enp8s0f1 is not valid
unit-sdcore-upf-0: 14:04:07 INFO juju.worker.uniter.operation ran "update-status" hook (via hook dispatching script: dispatch)
unit-sdcore-upf-0: 14:09:16 INFO unit.sdcore-upf/0.juju-log Default route does not exist
unit-sdcore-upf-0: 14:09:16 INFO unit.sdcore-upf/0.juju-log Route to via created/updated successfully
unit-sdcore-upf-0: 14:09:16 INFO unit.sdcore-upf/0.juju-log RAN route does not exist
unit-sdcore-upf-0: 14:09:16 INFO unit.sdcore-upf/0.juju-log Route to 10.204.0.0/16 via created/updated successfully
unit-sdcore-upf-0: 14:09:16 INFO unit.sdcore-upf/0.juju-log Iptables rule does not exist
unit-sdcore-upf-0: 14:09:16 INFO unit.sdcore-upf/0.juju-log Iptables rule for ICMP port-unreachable packets created.
unit-sdcore-upf-0: 14:09:54 INFO unit.sdcore-upf/0.juju-log UPF snap installed
unit-sdcore-upf-0: 14:09:54 INFO unit.sdcore-upf/0.juju-log Pushed file /var/snap/sdcore-upf/common/upf.json
unit-sdcore-upf-0: 14:09:54 INFO unit.sdcore-upf/0.juju-log Pushed upf.json config file
unit-sdcore-upf-0: 14:09:54 INFO unit.sdcore-upf/0.juju-log Starting configuration of the `bessd` service
unit-sdcore-upf-0: 14:09:56 INFO unit.sdcore-upf/0.juju-log Service `bessd` configured
unit-sdcore-upf-0: 14:09:56 INFO unit.sdcore-upf/0.juju-log UPF service started
unit-sdcore-upf-0: 14:09:56 INFO unit.sdcore-upf/0.juju-log No `fiveg_n4` relations found.
unit-sdcore-upf-0: 14:09:56 INFO juju.worker.uniter.operation ran "config-changed" hook (via hook dispatching script: dispatch)
unit-sdcore-upf-0: 14:09:57 INFO unit.sdcore-upf/0.juju-log Default route does not exist
unit-sdcore-upf-0: 14:09:57 INFO unit.sdcore-upf/0.juju-log Route to via created/updated successfully
unit-sdcore-upf-0: 14:09:57 INFO unit.sdcore-upf/0.juju-log RAN route does not exist
unit-sdcore-upf-0: 14:09:57 INFO unit.sdcore-upf/0.juju-log Route to 10.204.0.0/16 via created/updated successfully
unit-sdcore-upf-0: 14:10:00 INFO unit.sdcore-upf/0.juju-log UPF snap installed
unit-sdcore-upf-0: 14:10:00 INFO unit.sdcore-upf/0.juju-log Starting configuration of the `bessd` service
unit-sdcore-upf-0: 14:10:00 INFO unit.sdcore-upf/0.juju-log Service `bessd` configured
unit-sdcore-upf-0: 14:10:01 INFO unit.sdcore-upf/0.juju-log UPF service started
unit-sdcore-upf-0: 14:10:01 INFO unit.sdcore-upf/0.juju-log No `fiveg_n4` relations found
A guess is that the configure script is running waiting for 5 minutes to time out, so while the config changed event did get fired (14:09:56), it was delayed due to the configure script holding up all activity on the charm and only allowing the event to fire after it timed out.
Even after correcting the interfaces, it looks like bessd cannot be configured if the initial deployment was done incorrectly
I accidentally used the unconfigured host interfaces instead of the vlan wrapped interfaces for deploying the upf. Host interfaces are as follows:
The UPF was deployed using
access-interface-name=enp8s0f0
andcore-interface-name=enp8s0f1
. This correctly resulted in messages in the debug-log:I ran the following:
The charm did not change until about 2 minutes later, when this appeared in the juju debug-log
Not sure if that is due to refresh status, or something else, but either way, the charm did not act on the change when the event occurred.