Test case 1:
- Install the testing package:
[root@pdc-ad ~]# yum --enablerepo=nethserver-testing update
Loaded plugins: changelog, fastestmirror, nethserver_events
nethserver-testing | 2.9 kB 00:00:00
nethserver-testing/7/x86_64/primary_db | 38 kB 00:00:00
Loading mirror speeds from cached hostfile
* base: mirrors.leadhosts.com
* epel: fedora.mirrors.telekom.ro
* extras: mirrors.leadhosts.com
* nethforge: mirror2.nethserver.org
* nethserver-base: mirror2.nethserver.org
* nethserver-updates: mirror2.nethserver.org
* updates: mirrors.leadhosts.com
Resolving Dependencies
--> Running transaction check
---> Package nethserver-dc.x86_64 0:1.2.6-1.ns7 will be updated
---> Package nethserver-dc.x86_64 0:1.2.6-1.6.g5d1cacc.ns7 will be an update
---> Package nethserver-sssd.noarch 0:1.3.0-1.ns7 will be updated
---> Package nethserver-sssd.noarch 0:1.3.0-1.3.ga7c698a.ns7 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
=================================================================================================================================
Package Arch Version Repository Size
=================================================================================================================================
Updating:
nethserver-dc x86_64 1.2.6-1.6.g5d1cacc.ns7 nethserver-testing 14 M
nethserver-sssd noarch 1.3.0-1.3.ga7c698a.ns7 nethserver-testing 94 k
Transaction Summary
=================================================================================================================================
Upgrade 2 Packages
Total download size: 14 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for nethserver-testing
(1/2): nethserver-sssd-1.3.0-1.3.ga7c698a.ns7.noarch.rpm | 94 kB 00:00:00
(2/2): nethserver-dc-1.2.6-1.6.g5d1cacc.ns7.x86_64.rpm | 14 MB 00:00:27
---------------------------------------------------------------------------------------------------------------------------------
Total 501 kB/s | 14 MB 00:00:27
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : nethserver-sssd-1.3.0-1.3.ga7c698a.ns7.noarch 1/4
Updating : nethserver-dc-1.2.6-1.6.g5d1cacc.ns7.x86_64 2/4
Cleanup : nethserver-dc-1.2.6-1.ns7.x86_64 3/4
Cleanup : nethserver-sssd-1.3.0-1.ns7.noarch 4/4
Verifying : nethserver-sssd-1.3.0-1.3.ga7c698a.ns7.noarch 1/4
Verifying : nethserver-dc-1.2.6-1.6.g5d1cacc.ns7.x86_64 2/4
Verifying : nethserver-dc-1.2.6-1.ns7.x86_64 3/4
Verifying : nethserver-sssd-1.3.0-1.ns7.noarch 4/4
Updated:
nethserver-dc.x86_64 0:1.2.6-1.6.g5d1cacc.ns7 nethserver-sssd.noarch 0:1.3.0-1.3.ga7c698a.ns7
Complete!
[root@pdc-ad ~]#
- Check in “Doman accounts” page is OK:
- Check the Samba version in “Accounts provider” is 4.7.0:
Test case 2
-
After test case 1, run manually
signal-event nethserver-dc-update
The upgrade action must not trigger the upgrade event.
Result: Nothing changed in “Doman accounts” page, in “Accounts provider” page or in “Software center → Updates”
From /var/log/messages:
Oct 10 21:33:34 pdc-ad esmith::event[28742]: Event: nethserver-dc-update
Oct 10 21:33:34 pdc-ad esmith::event[28742]: Migrating existing database configuration
Oct 10 21:33:34 pdc-ad dbus[647]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service'
Oct 10 21:33:34 pdc-ad dbus-daemon: dbus[647]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service'
Oct 10 21:33:34 pdc-ad systemd: Starting Time & Date Service...
Oct 10 21:33:34 pdc-ad dbus[647]: [system] Successfully activated service 'org.freedesktop.timedate1'
Oct 10 21:33:34 pdc-ad dbus-daemon: dbus[647]: [system] Successfully activated service 'org.freedesktop.timedate1'
Oct 10 21:33:34 pdc-ad systemd: Started Time & Date Service.
Oct 10 21:33:34 pdc-ad esmith::event[28742]: Migrating existing database certificates
Oct 10 21:33:34 pdc-ad esmith::event[28742]: Migrating existing database networks
Oct 10 21:33:34 pdc-ad esmith::event[28742]: Migrating existing database routes
Oct 10 21:33:34 pdc-ad esmith::event[28742]: Migrating existing database accounts
Oct 10 21:33:34 pdc-ad esmith::event[28742]: Migrating existing database hosts
Oct 10 21:33:34 pdc-ad esmith::event[28742]: Migrating existing database proxypass
Oct 10 21:33:34 pdc-ad esmith::event[28742]: Migrating existing database fwrules
Oct 10 21:33:34 pdc-ad esmith::event[28742]: Migrating existing database fwservices
Oct 10 21:33:34 pdc-ad esmith::event[28742]: Migrating existing database portforward
Oct 10 21:33:34 pdc-ad esmith::event[28742]: Migrating existing database tc
Oct 10 21:33:34 pdc-ad esmith::event[28742]: Migrating existing database dhcp
Oct 10 21:33:34 pdc-ad esmith::event[28742]: Action: /etc/e-smith/events/nethserver-dc-update/S00initialize-default-databases SUCCESS [0.675099]
Oct 10 21:33:35 pdc-ad esmith::event[28742]: expanding /etc/sysconfig/nsdc
Oct 10 21:33:35 pdc-ad esmith::event[28742]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [0.414975]
Oct 10 21:33:35 pdc-ad esmith::event[28742]: Action: /etc/e-smith/events/nethserver-dc-update/S40nethserver-dc-fixchroot SUCCESS [0.684068]
Oct 10 21:33:36 pdc-ad esmith::event[28742]: Action: /etc/e-smith/events/nethserver-dc-update/S50nethserver-dc-autoupdate SUCCESS [0.51121]
Oct 10 21:33:37 pdc-ad esmith::event[28742]: Action: /etc/e-smith/events/nethserver-dc-update/S95nethserver-dc-firststart SUCCESS [0.577975]
Oct 10 21:33:38 pdc-ad esmith::event[28742]: Action: /etc/e-smith/events/nethserver-dc-update/S96nethserver-dc-machine-grants SUCCESS [1.096814]
Oct 10 21:33:38 pdc-ad esmith::event[28742]: Event: nethserver-dc-update SUCCESS
EDIT:
During installation, I didn’t see this package to be installed/upgraded:
nethserver-dc-debuginfo-1.2.6-1.6.g5d1cacc.ns7.x86_64.rpm
The new samba module release was installed in two mods:
- as an update for default Samba 4.6.5 (like here)
- as an update for already installed Samba 4.7.0 (like here: Backup (data): [ERROR] missing backup-config .md5 file - #27 by GG_jr )