nethesis / dev

Nethesis issue tracker
http://www.nethesis.it
4 stars 1 forks source link

nethserver-dedalo-enterprise: force package update #6097

Closed Amygos closed 2 years ago

Amygos commented 2 years ago

Since version v76 of Icaro, a new users authentication flow is used and a new service was added. This new service dedalo_users_auth, provided by the dedalo package, is bound to the dedalo service, so when dedalo starts, systemd also starts dedalo_users_auth.

But if the service dedalo is already started at the moment of the update of the dedalo package, the dedalo service is not restarted and as consequence the dedalo_users_auth service will be not started by systemd, causing a service disruption.

For solving this issue a new empty release of the nethserver-dedalo-enterprise is issued, this will invoke the nethserver-dedalo-enterprise-update and the restart of the dedalo service.

nethbot commented 2 years ago

in 7.9.2009/nethesis-testing:

Amygos commented 2 years ago

Test case 1

Test case 2

mamengoni commented 2 years ago

Test Case 1

[root@servertest2 ~]# systemctl status dedalo_users_auth ● dedalo_users_auth.service - Dedalo's users authentcation daemon Loaded: loaded (/usr/lib/systemd/system/dedalo_users_auth.service; disabled; vendor preset: disabled) Active: active (running) since Wed 2021-12-01 16:24:53 UTC; 28s ago Main PID: 28123 (dedalo_users_au) CGroup: /system.slice/dedalo_users_auth.service ├─28123 /bin/bash /opt/icaro/dedalo/dedalo_users_auth.sh └─31027 sleep 10s

Dec 01 16:34:13 servertest.example.local systemd[1]: Started Dedalo's users authentcation daemon.

Tested and verified.

Test case 2

Before:

[root@fw-bk-pesaro ~]# systemctl status dedalo_users_auth ● dedalo_users_auth.service - Dedalo's users authentcation daemon Loaded: loaded (/usr/lib/systemd/system/dedalo_users_auth.service; disabled; vendor preset: disabled) Active: inactive (dead)

After:

[root@fw-bk-pesaro ~]# systemctl status dedalo_users_auth ● dedalo_users_auth.service - Dedalo's users authentcation daemon Loaded: loaded (/usr/lib/systemd/system/dedalo_users_auth.service; disabled; vendor preset: disabled) Active: active (running) since Wed 2021-12-01 17:46:33 CET; 47s ago Main PID: 22914 (dedalo_users_au) CGroup: /system.slice/dedalo_users_auth.service ├─22914 /bin/bash /opt/icaro/dedalo/dedalo_users_auth.sh └─24989 sleep 10s

Dec 01 17:46:33 fw-bk-pesaro.acema.it systemd[1]: Started Dedalo's users authentcation daemon.

Tested and verified.

nethbot commented 2 years ago

in 7.9.2009/nethesis-updates: