NethServer Version: nethserver latest (7-8-2003)
Module: nsdc
I noticed this web page in the wiki:
https://wiki.nethserver.org/doku.php?id=samba_dc#update_the_container
It obsolete, but i tried the update command to see what happens.
I build the nsdc domain about 4 years ago on a nethserver with centos 7.1 under the hood. This update statement upgraded 53 packages. It still works fine.
There are several packages in the list for which I am pretty sure if you don’t upgrade it may one day break the container
Ex:Package krb5-libs.x86_64 0:1.15.1-37.el7_7.2 will be updated (2018-12)
—> Package krb5-libs.x86_64 0:1.15.1-46.el7 will be an update (2020-06)
—> Package glibc.x86_64 0:2.17-292.el7 will be updated
—> Package glibc.x86_64 0:2.17-307.el7.1 will be an update
What is the current nethserver policy on the nsdc packages updates?
Or is there just something wrong with my server because it should have auto-updated itself?
davidep
(Davide Principi)
June 11, 2020, 7:59am
2
It is updated when a new ns-samba version within the nethserver-dc RPM is released.
You could check the ns-samba package version. This is the latest one:
[root@server ~]# nsdc-run -e -- rpm -q ns-samba
ns-samba-4.9.18-1.ns7.x86_64
If you have a previous release you can try to run the following action manually, provided the system is updated with the latest packages.
as your current system status is unknown. Run a complete backup or system snapshot before running the following command.
bash -x /etc/e-smith/events/actions/nethserver-dc-upgrade
Please attach the output here.
Thx for the help.
ns-samba-4.9.18-1.ns7.x86_64
+ event=
+ nsroot=/var/lib/machines/nsdc
+ [[ ! -x /var/lib/machines/nsdc/usr/sbin/samba ]]
+ rsync -ai --delete /etc/yum.repos.d/ /var/lib/machines/nsdc/etc/yum.repos.d
.d..t...... ./
>f+++++++++ docker-ce.repo
>f..t...... remi-glpi91.repo
>f..t...... remi-glpi92.repo
>f..t...... remi-glpi93.repo
>f..t...... remi-glpi94.repo
>f..t...... remi-modular.repo
>f..t...... remi-php54.repo
>f..t...... remi-php70.repo
>f..t...... remi-php71.repo
>f..t...... remi-php72.repo
>f..t...... remi-php73.repo
>f..t...... remi-php74.repo
>f..t...... remi-safe.repo
>f..t...... remi.repo
>f+++++++++ stephdl-dolibarr.repo
>f+++++++++ stephdl-roundcubemail.repo
>f..t...... stephdl.repo
+ rsync -ai --delete /etc/yum/vars/ /var/lib/machines/nsdc/etc/yum/vars
.d..t...... ./
>f..t...... nsrelease
+ /usr/libexec/nethserver/ptrack-nsdc-install
+ yum -y --releasever=/ --installroot=/var/lib/machines/nsdc update '*' /usr/lib/nethserver-dc/ns-samba-4.9.18-1.ns7.x86_64.rpm -y
Loaded plugins: changelog, fastestmirror, nethserver_events
Loading mirror speeds from cached hostfile
* ce-base: mirrors.prometeus.net
* ce-extras: mirrors.prometeus.net
* ce-sclo-rh: mirrors.prometeus.net
* ce-sclo-sclo: mirrors.prometeus.net
* ce-updates: mirrors.prometeus.net
* epel: epel.mirror.wearetriple.com
* nethforge: mirror.framassa.org
* nethserver-base: mirror.framassa.org
* nethserver-updates: mirror.framassa.org
* remi-safe: remi.mirror.liteserver.nl
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethForge-7
Importing GPG key 0x39BAF5C1:
Userid : "NethServer 7 (NethServer 7 Official Signing Key) <security@nethserver.org>"
Fingerprint: 594c 3fd8 fae1 8ff5 32fe ae23 9cb2 8ea0 39ba f5c1
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-NethForge-7
Examining /usr/lib/nethserver-dc/ns-samba-4.9.18-1.ns7.x86_64.rpm: ns-samba-4.9.18-1.ns7.x86_64
/usr/lib/nethserver-dc/ns-samba-4.9.18-1.ns7.x86_64.rpm: does not update installed package.
No packages marked for update
+ [[ 0 != 0 ]]
+ cp -vfp /var/lib/machines/nsdc/var/lib/samba/private/krb5.conf /var/lib/machines/nsdc/etc/krb5.conf
‘/var/lib/machines/nsdc/var/lib/samba/private/krb5.conf’ -> ‘/var/lib/machines/nsdc/etc/krb5.conf’
+ systemctl -M nsdc restart samba
+ systemctl -M nsdc enable --now nsdc-run.socket
+ cp -af /usr/libexec/nethserver/nsdc-run-worker /var/lib/machines/nsdc/usr/libexec/nsdc-run-worker
1 Like
davidep
(Davide Principi)
June 11, 2020, 7:26pm
4
It seems you already have the latest packages!