And the verification for Ubuntu 18.10 (cosmic) has also passed:

bdmurray@clean-cosmic-amd64:~$ apt-cache policy base-files
base-files:
  Installed: 10.1ubuntu7.1
  Candidate: 10.1ubuntu7.1
  Version table:
 *** 10.1ubuntu7.1 100
        100 /var/lib/dpkg/status
     10.1ubuntu7 500
        500 http://ubuntu.osuosl.org/ubuntu cosmic/main amd64 Packages
bdmurray@clean-cosmic-amd64:~$ systemctl list-timers motd* --all
NEXT                         LEFT     LAST                         PASSED       
UNIT            ACTIVATES
Wed 2019-07-17 22:01:58 PDT  13h left Wed 2019-07-17 08:02:02 PDT  1min 35s ago 
motd-news.timer motd-news.service

1 timers listed.
bdmurray@clean-cosmic-amd64:~$ systemctl list-timers motd* --all
NEXT                         LEFT    LAST                         PASSED      
UNIT            ACTIVATES
Wed 2019-07-17 22:01:58 PDT  8h left Wed 2019-07-17 08:02:02 PDT  5h 2min ago 
motd-news.timer motd-news.service

1 timers listed.
bdmurray@clean-cosmic-amd64:~$ systemctl list-timers motd* --all
NEXT                         LEFT          LAST                         PASSED 
UNIT            ACTIVATES
Thu 2019-07-18 10:10:54 PDT  2h 17min left Wed 2019-07-17 22:02:39 PDT  9h ago 
motd-news.timer motd-news.service

1 timers listed.
bdmurray@clean-cosmic-amd64:~$ ls -lh /var/cache/motd-news
-rw-r--r-- 1 root root 0 Jul 17 22:02 /var/cache/motd-news


** Tags removed: verification-needed-cosmic
** Tags added: verification-done-cosmic

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to base-files in Ubuntu.
https://bugs.launchpad.net/bugs/1829968

Title:
  motd [on at least some instances] does not auto-update daily

Status in base-files package in Ubuntu:
  Fix Released
Status in base-files source package in Bionic:
  Fix Released
Status in base-files source package in Cosmic:
  Fix Committed
Status in base-files source package in Disco:
  Fix Released
Status in base-files source package in Eoan:
  Fix Released

Bug description:
  [Impact]
  motd-news timer is not properly configured and may not run regularly so long 
running systems will not get an updated motd

  [Test Case]
  The motd-news.timer is known to be incorrectly configured because 
motd-news.services is a one shot service which will not become active. 
Subsequently, have a timer with OnUnitActiveSec is wrong and the timer will not 
work reliably. However, because it can work some of the time it is difficult to 
find a case where the timer always fails so test case will involve only 
confirming that the new timer is correct.

  1) On a system with curl installed, install the new version of base-files
  2) Run 'systemctl list-timers motd* --all
  3) Confirm that "LEFT" is less than 12 hours (Its less than 24 hours because 
we don't want people to miss important messages)
  4) Wait until "NEXT" is reached
  5) Confirm that there is another "NEXT" and that the time stamp of 
/var/cache/motd-news was updated

  [Regression Potential]
  I can't think of any on the client side as the job wasn't working as it was 
intended but it may cause extra load on the motd server.

  Original Description
  --------------------
  I have a VM running on AWS. It was launched on May 9th:

    $ uptime
     05:26:21 up 12 days,  6:34,  1 user,  load average: 0.00, 0.00, 0.00
    $ date
    Wed May 22 05:26:24 UTC 2019

  I touched none of the system defaults, and yet the motd has not
  updated automatically.

    $ ls -l /var/cache/motd-news
    -rw-r--r-- 1 root root 0 May  9 22:53 /var/cache/motd-news

  The systemd timer unit looks like this:

    $ systemctl status motd-news.timer
    ● motd-news.timer - Message of the Day
       Loaded: loaded (/lib/systemd/system/motd-news.timer; enabled; vendor 
preset: enabled)
       Active: active (elapsed) since Thu 2019-05-09 22:51:58 UTC; 1 weeks 5 
days ago
      Trigger: n/a

    May 09 22:51:58 ip-172-31-23-224 systemd[1]: Started Message of the
  Day.

  If I run /etc/update-motd.d/50-motd-news --force manually, the file
  does update correctly.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to