Skip to Content.
Sympa Menu

rare-dev - Re: [rare-dev] Integration of the release manager

Subject: Rare project developers

List archive

Re: [rare-dev] Integration of the release manager


Chronological Thread 
  • From: Alexander Gall <>
  • To: <>
  • Cc: <>
  • Subject: Re: [rare-dev] Integration of the release manager
  • Date: Tue, 12 Apr 2022 17:32:29 +0200

Hi

On Tue, 12 Apr 2022 11:07:52 +0200, mc36 <> said:

> hi,
> On 4/12/22 09:18, Alexander Gall wrote:
>> On Fri, 8 Apr 2022 10:27:46 +0200, mc36 <> said:
>>
>>> with this smaller change
>>> https://github.com/mc36/freeRouter/commit/a3a43ef7c83b4caa267e4760ba8b17fc340220a2
>>
>> So, "persistent" means that the sticky alias is not executed when
>> booting? This means that I will have to bring the initial p4-profile
>> file back to the ONIE installer. Otherwise, the system won't come up
>> when it is booted the first time.

Sorry, one more corner case...

If I set a new profile then do a warm start without saving the
configuration, the system will come up with the new profile but the
configuration is still the old one. Furthermore I will not be able to
activate the old profile because freerouter thinks it didn't change.

So, I've removed "sticky-onlychanged" and "sticky-persistent" and this
is what I get for the various cases:

1) First boot after an installation (file /etc/freertr/p4-profile
doesn't exist)

2022-04-12 17:23:25 info cfgInit.executeSWcommands:cfgInit.java:750 line 109:
"alias exec tna-set-profile sticky-param PE" : Changing P4 profile from
<none> to PE, restarting data-plane processes

2) Change the profile, save, reload

rare#tna-set-profile CPE


Changing P4 profile from PE to CPE, restarting data-plane processes
rare#write


% saving configuration
% success
rare#reload warm


Connection closed by foreign host.
gall@spare-PB1:~/$ telnet localhost 2323
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
welcome
line ready
rare#sh logg


2022-04-12 15:24:45 info cfgInit.doInit:cfgInit.java:762 booting
2022-04-12 15:24:46 info cfgInit.doInit:cfgInit.java:921 initializing hardware
2022-04-12 15:24:46 info cfgInit.doInit:cfgInit.java:927 applying defaults
2022-04-12 15:24:47 info cfgInit.doInit:cfgInit.java:948 applying
configuration
2022-04-12 17:24:48 info cfgInit.doInit:cfgInit.java:983 boot completed

3) Change the profile, *don't* save, reload

rare#tna-set-profile PE


Changing P4 profile from CPE to PE, restarting data-plane processes
rare#reload warm


Connection closed by foreign host.
gall@spare-PB1:~/bf-sde-nixpkgs$ telnet localhost 2323
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
welcome
line ready
rare#sh logg


2022-04-12 15:25:33 info cfgInit.doInit:cfgInit.java:762 booting
2022-04-12 15:25:34 info cfgInit.doInit:cfgInit.java:921 initializing hardware
2022-04-12 15:25:34 info cfgInit.doInit:cfgInit.java:927 applying defaults
2022-04-12 15:25:35 info cfgInit.doInit:cfgInit.java:948 applying
configuration
2022-04-12 15:25:35 info cfgInit.executeSWcommands:cfgInit.java:750 line 123:
"alias exec tna-set-profile sticky-param CPE" : Changing P4 profile from PE
to CPE, restarting data-plane processes
2022-04-12 17:25:35 error cfgInit.doInit:cfgInit.java:956 1 errors found
2022-04-12 17:25:36 info cfgInit.doInit:cfgInit.java:983 boot completed

I think this is only flagged as an error because the command produces
an output. But I think this is acceptable since it indicates that
something is not as expected (the profile in the p4-profile file is
different from what's in the configuration).

A regular boot has a clean log (that's case 2).

The only thing not so nice is that if you set the profile to what it
already is, the processes are restarted

rare#show process external


name rerun pid chld cpu ago last
bffwd 1 13004 0 1.180000000 00:01:11 2022-04-12 17:28:16
bfswd 1 13002 3 0.40000000 00:01:11 2022-04-12 17:28:16
cpuport 1 13000 0 0.60000000 00:01:11 2022-04-12 17:28:16
linport 1 13003 0 0.40000000 00:01:11 2022-04-12 17:28:16

rare#tna-list-profiles


Current profile: CPE
Available profiles: BNG, BRAS, CERN_FLOWSPEC, CGNAT, CLEANER, CPE, FW,
GEANT_TESTBED, GGSN, GRE, IPIP, NFV, NOP_MCHOME, P, PE, RAWIP,
RENATER_PEERING_L2, RENATER_PEERING_L3, SRV6, TOR, WLC


rare#tna-set-profile CPE


rare#show process external


name rerun pid chld cpu ago last
bffwd 2 15376 0 0.300000000 00:00:06 2022-04-12 17:29:44
bfswd 2 15375 3 0.30000000 00:00:06 2022-04-12 17:29:44
cpuport 1 13000 0 0.60000000 00:01:35 2022-04-12 17:28:16
linport 1 13003 0 0.40000000 00:01:35 2022-04-12 17:28:16

I can't change that without messing up the boot log, but I guess we
can live with that.

Unless you disagree I'll leave it like this.

--
Alex



Archive powered by MHonArc 2.6.19.

Top of Page