Xenial verification

Versions we are handling:
base-files 9.4ubuntu4.12 -> 9.4ubuntu4.13
ubuntu-server 1.361.4    -> 1.361.5
motd-news-config n/a     -> 9.4ubuntu4.13

Note that in xenial, at the moment, ubuntu-server is not pre-installed
in the images.

This verification is quite long, given the amount of tests involved.

TL;DR All tests from (a) to (j) passed as required.

xenial verification succeeded.


a) base-files installed, ubuntu-server installed, unmodified /e/d/motd-news
apt install base-files
- upgrades ubuntu-server
- installs motd-news-config
- /e/d/motd-news remains, motd-news remains enabled

starting point:
ubuntu@xenial-motd-news-split:~$ dpkg -l base-files ubuntu-server 
motd-news-config | grep ^ii
dpkg-query: no packages found matching motd-news-config
ii  base-files     9.4ubuntu4.12 amd64        Debian base system miscellaneous 
files
ii  ubuntu-server  1.361.4       amd64        The Ubuntu Server system

unmodified config:
ubuntu@xenial-motd-news-split:~$ dpkg -s base-files | grep 
/etc/default/motd-news; echo -n ' '; md5sum /etc/default/motd-news | awk 
'{print $2,$1}'
 /etc/default/motd-news c08a329a603b640095da5ffe4e73491c
 /etc/default/motd-news c08a329a603b640095da5ffe4e73491c

motd-news enabled:
ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news --force

 * Are you ready for Kubernetes 1.19? It's nearly here! Try RC3 with
   sudo snap install microk8s --channel=1.19/candidate --classic

   https://microk8s.io/ has docs and details.
ubuntu@xenial-motd-news-split:~$ echo $?
0

apt install base-files result:
The following NEW packages will be installed:
  motd-news-config
The following packages will be upgraded:
  base-files ubuntu-server
2 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.

new state:
ubuntu@xenial-motd-news-split:~$ dpkg -l base-files ubuntu-server 
motd-news-config | grep ^ii
ii  base-files       9.4ubuntu4.13 amd64        Debian base system 
miscellaneous files
ii  motd-news-config 9.4ubuntu4.13 all          Configuration for motd-news 
shipped in base-files
ii  ubuntu-server    1.361.5       amd64        The Ubuntu Server system

motd-news remains enabled:
ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news 
--force;echo $?

 * Are you ready for Kubernetes 1.19? It's nearly here! Try RC3 with
   sudo snap install microk8s --channel=1.19/candidate --classic

   https://microk8s.io/ has docs and details.
0


b) base-files installed, ubuntu-server installed, modified /e/d/motd-news
apt install base-files
- upgrades ubuntu-server
- installs motd-news-config
- /e/d/motd-news remains with the original modification

Starting point:
ubuntu@xenial-motd-news-split:~$ dpkg -l base-files ubuntu-server 
motd-news-config | grep ^ii
dpkg-query: no packages found matching motd-news-config
ii  base-files     9.4ubuntu4.12 amd64        Debian base system miscellaneous 
files
ii  ubuntu-server  1.361.4       amd64        The Ubuntu Server system

Modified config file, to disable motd-news:
ubuntu@xenial-motd-news-split:~$ sudo sed -i 's,^ENABLED=.*,ENABLED=0,' 
/etc/default/motd-news 
ubuntu@xenial-motd-news-split:~$ dpkg -s base-files | grep 
/etc/default/motd-news; echo -n ' '; md5sum /etc/default/motd-news | awk 
'{print $2,$1}'
 /etc/default/motd-news c08a329a603b640095da5ffe4e73491c
 /etc/default/motd-news e2d38a5c7454c64a967d6a2fe033558f
ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news 
--force;echo $?
0

base-files install result:
The following NEW packages will be installed:
  motd-news-config
The following packages will be upgraded:
  base-files ubuntu-server
2 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.

new state:
ii  base-files       9.4ubuntu4.13 amd64        Debian base system 
miscellaneous files
ii  motd-news-config 9.4ubuntu4.13 all          Configuration for motd-news 
shipped in base-files
ii  ubuntu-server    1.361.5       amd64        The Ubuntu Server system

motd-news remains disabled:
ubuntu@xenial-motd-news-split:~$ ll /etc/default/motd-news*
-rw-r--r-- 1 root root 682 Aug 25 21:15 /etc/default/motd-news
ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news 
--force;echo $?
0

config file moved to the motd-news-config package and the modification was 
preserved:
ubuntu@xenial-motd-news-split:~$ dpkg -s motd-news-config | grep 
/etc/default/motd-news; echo -n ' '; md5sum /etc/default/motd-news | awk 
'{print $2,$1}'
 /etc/default/motd-news c08a329a603b640095da5ffe4e73491c
 /etc/default/motd-news e2d38a5c7454c64a967d6a2fe033558f


c) base-files installed, ubuntu-server not installed, unmodified /e/d/motd-news
apt install base-files
- upgrades base-files
- removes /e/d/motd-news
- motd-news is disabled

initial state:
ubuntu@xenial-motd-news-split:~$ dpkg -l base-files ubuntu-server 
motd-news-config | grep ^ii
dpkg-query: no packages found matching ubuntu-server
dpkg-query: no packages found matching motd-news-config
ii  base-files     9.4ubuntu4.12 amd64        Debian base system miscellaneous 
files

unmodified config:
ubuntu@xenial-motd-news-split:~$ dpkg -s base-files | grep 
/etc/default/motd-news; echo -n ' '; md5sum /etc/default/motd-news | awk 
'{print $2,$1}'
 /etc/default/motd-news c08a329a603b640095da5ffe4e73491c
 /etc/default/motd-news c08a329a603b640095da5ffe4e73491c

motd-news enabled:
ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news 
--force;echo $?

 * Are you ready for Kubernetes 1.19? It's nearly here! Try RC3 with
   sudo snap install microk8s --channel=1.19/candidate --classic

   https://microk8s.io/ has docs and details.
0

Installing base-files pulls nothing else in:
The following packages will be upgraded:
  base-files
1 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

new state shows just base-files:
ubuntu@xenial-motd-news-split:~$ dpkg -l base-files ubuntu-server 
motd-news-config | grep ^ii
dpkg-query: no packages found matching motd-news-config
ii  base-files     9.4ubuntu4.13 amd64        Debian base system miscellaneous 
files

config file is gone:
ubuntu@xenial-motd-news-split:~$ ll /etc/default/motd-news*
ls: cannot access '/etc/default/motd-news*': No such file or directory

and motd-news is disabled as a result;
ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news 
--force;echo $?
0


d) base-files installed, ubuntu-server not installed, modified /e/d/motd-news
apt install base-files
- upgrades base-files
- /e/d/motd-news gets renamed to backup
- motd-news is disabled

starting point:
ubuntu@xenial-motd-news-split:~$ dpkg -l base-files ubuntu-server 
motd-news-config | grep ^ii
dpkg-query: no packages found matching ubuntu-server
dpkg-query: no packages found matching motd-news-config
ii  base-files     9.4ubuntu4.12 amd64        Debian base system miscellaneous 
files

modified config file, disabling the service:
ubuntu@xenial-motd-news-split:~$ sudo sed -i 's,^ENABLED=.*,ENABLED=0,' 
/etc/default/motd-news 
ubuntu@xenial-motd-news-split:~$ dpkg -s base-files | grep 
/etc/default/motd-news; echo -n ' '; md5sum /etc/default/motd-news | awk 
'{print $2,$1}'
 /etc/default/motd-news c08a329a603b640095da5ffe4e73491c
 /etc/default/motd-news e2d38a5c7454c64a967d6a2fe033558f
ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news 
--force;echo $?
0

installing base-files pulls in nothing else:
The following packages will be upgraded:
  base-files
1 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

new state:
ubuntu@xenial-motd-news-split:~$ dpkg -l base-files ubuntu-server 
motd-news-config | grep ^ii
dpkg-query: no packages found matching motd-news-config
ii  base-files     9.4ubuntu4.13 amd64        Debian base system miscellaneous 
files

Config file is renamed:
ubuntu@xenial-motd-news-split:~$ ll /etc/default/motd-news*
-rw-r--r-- 1 root root 682 Aug 25 21:22 /etc/default/motd-news.dpkg-bak

motd-news is disabled:
ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news 
--force;echo $?
0


e) removing motd-news-config will also remove ubuntu-server (since it's a 
depends, and not a recommends)

starting point is with the packages from proposed installed:
ubuntu@xenial-motd-news-split:~$ dpkg -l base-files ubuntu-server 
motd-news-config | grep ^ii
ii  base-files       9.4ubuntu4.13 amd64        Debian base system 
miscellaneous files
ii  motd-news-config 9.4ubuntu4.13 all          Configuration for motd-news 
shipped in base-files
ii  ubuntu-server    1.361.5       amd64        The Ubuntu Server system

Removing motd-news-config also removes ubuntu-server:
The following packages will be REMOVED:
  motd-news-config ubuntu-server
0 upgraded, 0 newly installed, 2 to remove and 9 not upgraded.
After this operation, 63.5 kB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 25792 files and directories currently installed.)
Removing ubuntu-server (1.361.5) ...
Removing motd-news-config (9.4ubuntu4.13) ...


f) upgrading just ubuntu-server should pull motd-news-config in, and 
force-upgrade base-files
Starting point:
ubuntu@xenial-motd-news-split:~$ dpkg -l base-files ubuntu-server 
motd-news-config | grep ^ii
dpkg-query: no packages found matching motd-news-config
ii  base-files     9.4ubuntu4.12 amd64        Debian base system miscellaneous 
files
ii  ubuntu-server  1.361.4       amd64        The Ubuntu Server system

Upgrading ubuntu-server pulls in motd-news-config and also upgrades base-files:
ubuntu@xenial-motd-news-split:~$ sudo apt install ubuntu-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  base-files motd-news-config
The following NEW packages will be installed:
  motd-news-config
The following packages will be upgraded:
  base-files ubuntu-server
2 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.


g) Removing motd-news-server leaves /e/d/motd-news around; purging 
motd-news-server removes the /e/d/motd-news config file
Starting point:
ubuntu@xenial-motd-news-split:~$ dpkg -l base-files ubuntu-server 
motd-news-config | grep ^ii
ii  base-files       9.4ubuntu4.13 amd64        Debian base system 
miscellaneous files
ii  motd-news-config 9.4ubuntu4.13 all          Configuration for motd-news 
shipped in base-files
ii  ubuntu-server    1.361.5       amd64        The Ubuntu Server system

Config file present and unmodified:
ubuntu@xenial-motd-news-split:~$ ll /etc/default/motd-news*
-rw-r--r-- 1 root root 682 Aug  7 20:02 /etc/default/motd-news

ubuntu@xenial-motd-news-split:~$ dpkg -s motd-news-config | grep 
/etc/default/motd-news; echo -n ' '; md5sum /etc/default/motd-news | awk 
'{print $2,$1}'
 /etc/default/motd-news c08a329a603b640095da5ffe4e73491c
 /etc/default/motd-news c08a329a603b640095da5ffe4e73491c

motd-news enabled:
ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news 
--force;echo $?

 * Are you ready for Kubernetes 1.19? It's nearly here! Try RC3 with
   sudo snap install microk8s --channel=1.19/candidate --classic

   https://microk8s.io/ has docs and details.
0

g1) removing motd-news-config leaves config file in place and motd-news remains 
enabled:
ubuntu@xenial-motd-news-split:~$ sudo apt remove motd-news-config
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  motd-news-config ubuntu-server
0 upgraded, 0 newly installed, 2 to remove and 9 not upgraded.
After this operation, 63.5 kB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 25792 files and directories currently installed.)
Removing ubuntu-server (1.361.5) ...
Removing motd-news-config (9.4ubuntu4.13) ...

ubuntu@xenial-motd-news-split:~$ ll /etc/default/motd-news*
-rw-r--r-- 1 root root 682 Aug  7 20:02 /etc/default/motd-news

ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news
--force;echo $?

 * Are you ready for Kubernetes 1.19? It's nearly here! Try RC3 with
   sudo snap install microk8s --channel=1.19/candidate --classic

   https://microk8s.io/ has docs and details.
0


g2) purging motd-news-config removes config file and thus disables motd-news:
ubuntu@xenial-motd-news-split:~$ sudo apt purge motd-news-config
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  motd-news-config* ubuntu-server*
0 upgraded, 0 newly installed, 2 to remove and 9 not upgraded.
After this operation, 63.5 kB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 25792 files and directories currently installed.)
Removing ubuntu-server (1.361.5) ...
Removing motd-news-config (9.4ubuntu4.13) ...
Purging configuration files for motd-news-config (9.4ubuntu4.13) ...

ubuntu@xenial-motd-news-split:~$ ll /etc/default/motd-news*
ls: cannot access '/etc/default/motd-news*': No such file or directory

ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news 
--force;echo $?
0


h) base-files installed, ubuntu-server installed, removed /e/d/motd-news
- apt install base-files
- upgrades base-files, upgrades ubuntu-server, installs motd-news-config
- /e/d/motd-news is installed with ENABLED=0

Starting point:
ubuntu@xenial-motd-news-split:~$ dpkg -l base-files ubuntu-server 
motd-news-config | grep ^ii
dpkg-query: no packages found matching motd-news-config
ii  base-files     9.4ubuntu4.12 amd64        Debian base system miscellaneous 
files
ii  ubuntu-server  1.361.4       amd64        The Ubuntu Server system

ubuntu@xenial-motd-news-split:~$ sudo rm /etc/default/motd-news 
ubuntu@xenial-motd-news-split:~$ ll /etc/default/motd-news*
ls: cannot access '/etc/default/motd-news*': No such file or directory

motd-news disabled:
ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news 
--force;echo $?
0

Upgrading base-files also upgrades ubuntu-server and pulls in motd-news-config:
ubuntu@xenial-motd-news-split:~$ sudo apt install base-files
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  motd-news-config ubuntu-server
The following NEW packages will be installed:
  motd-news-config
The following packages will be upgraded:
  base-files ubuntu-server
2 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.

/e/d/motd-news is reinstalled but disabled with a note:
ubuntu@xenial-motd-news-split:~$ head -n 7 /etc/default/motd-news 
# Enable/disable the dynamic MOTD news service
# This is a useful way to provide dynamic, informative
# information pertinent to the users and administrators
# of the local system
# Changed by motd-news-config.postinst:
# config file was manually removed - disable the service
ENABLED=0

And motd-news remains disabled:
ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news 
--force;echo $?
0


i) base-files installed, ubuntu-server NOT installed, removed e/d/motd-news
- apt install base-files
- base-files is upgraded
- no /e/d/motd-news is installed, motd-news remains disabled

Starting point:
ubuntu@xenial-motd-news-split:~$ dpkg -l base-files ubuntu-server 
motd-news-config | grep ^ii
dpkg-query: no packages found matching ubuntu-server
dpkg-query: no packages found matching motd-news-config
ii  base-files     9.4ubuntu4.12 amd64        Debian base system miscellaneous 
files

No config:
ubuntu@xenial-motd-news-split:~$ sudo rm /etc/default/motd-news 
ubuntu@xenial-motd-news-split:~$ ll /etc/default/motd-news*
ls: cannot access '/etc/default/motd-news*': No such file or directory

motd-news thus disabled:
ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news 
--force;echo $?
0

Upgrading base-files:
ubuntu@xenial-motd-news-split:~$ sudo apt install base-files
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  base-files
1 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

Just the empty ".wasremoved" file in place:
ubuntu@xenial-motd-news-split:~$ ll /etc/default/motd-news*
-rw-r--r-- 1 root root 0 Aug 25 21:37 /etc/default/motd-news.wasremoved

motd-news remains disabled:
ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news 
--force;echo $?
0


j) Perform a release upgrade from the previous ubuntu release to the one being 
tested while having ubuntu-server NOT installed (or use a desktop install). At 
the end, motd-news should be disabled. Verify with:

$ sudo /etc/update-motd.d/50-motd-news --force
$ (no output)

j1) release-upgrade without the candidate packages from xenial-proposed 
installed, and ubuntu-server not installed as requested
Starting point:
ubuntu@xenial-motd-news-split:~$ dpkg -l base-files ubuntu-server 
motd-news-config | grep ^ii
dpkg-query: no packages found matching ubuntu-server
dpkg-query: no packages found matching motd-news-config
ii  base-files     9.4ubuntu4.12 amd64        Debian base system miscellaneous 
files

motd-news is enabled:
ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news 
--force;echo $?

 * Are you ready for Kubernetes 1.19? It's nearly here! Try RC3 with
   sudo snap install microk8s --channel=1.19/candidate --classic

   https://microk8s.io/ has docs and details.
0

Added a sources.list line for bionic-proposed.

Final state:
ubuntu@xenial-motd-news-split:~$ dpkg -l base-files ubuntu-server 
motd-news-config | grep ^ii
dpkg-query: no packages found matching motd-news-config
ii  base-files     10.1ubuntu2.10 amd64        Debian base system miscellaneous 
files

That base-files comes from bionic-proposed:
ubuntu@xenial-motd-news-split:~$ apt-cache policy base-files
base-files:
  Installed: 10.1ubuntu2.10
  Candidate: 10.1ubuntu2.10
  Version table:
 *** 10.1ubuntu2.10 500
        500 http://br.archive.ubuntu.com/ubuntu bionic-proposed/main amd64 
Packages

and motd-news is disabled as expected:
ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news 
--force;echo $?
0


j2) release-upgrade with the candidate packages from xenial-proposed installed, 
and xenial-proposed disabled, and ubuntu-server not installed as requested
Starting point:
ubuntu@xenial-motd-news-split:~$ dpkg -l base-files ubuntu-server 
motd-news-config | grep ^ii
dpkg-query: no packages found matching motd-news-config
ii  base-files     9.4ubuntu4.13 amd64        Debian base system miscellaneous 
files

no motd-news config, and thus the service is disabled:
ubuntu@xenial-motd-news-split:~$ ll /etc/default/motd-news*
ls: cannot access '/etc/default/motd-news*': No such file or directory
ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news 
--force;echo $?
0

Added a sources.list line for bionic-proposed.

Final state:
$ dpkg -l base-files ubuntu-server motd-news-config | grep ^ii
dpkg-query: no packages found matching motd-news-config
ii  base-files     10.1ubuntu2.10 amd64        Debian base system miscellaneous 
files

Which is from bionic-proposed:
 *** 10.1ubuntu2.10 500
        500 http://br.archive.ubuntu.com/ubuntu bionic-proposed/main amd64 
Packages

motd-news remains disabled:
ubuntu@xenial-motd-news-split:~$ sudo /etc/update-motd.d/50-motd-news 
--force;echo $?
0



** Tags removed: verification-needed-bionic verification-needed-xenial
** Tags added: verification-done-bionic verification-done-xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1888575

Title:
  Split motd-news config into a new package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/1888575/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to