← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Bug 2075146] [NEW] hwclock failing on N-oracle BM.Standard2.52 with "No such file or directory"

 

Public bug reported:

When running the hwclock test on N-oracle BM.Standard2.52, it failed with:
$ /sbin/hwclock --verbose --set --date "2004-10-20 04:10:00"
/bin/bash: line 1: /sbin/hwclock: No such file or directory

This test has passed on other instances on Oracle simply because they're
VM instances, and the test got skipped.

Manual test shows /sbin/hwclock does not exist, install util-linux-extra
can fix this issue.

However as pointed out in this comment[1] from Robie Basak:
The reason hwclock isn't shipped any more is that Ubuntu now uses systemd's functionality to perform the same task instead. To configure RTC translation between UTC and local time, the primary supported method is now "sudo timedatectl set-local-rtc 0" or "sudo timedatectl set-local-rtc 1". See timedatectl(1) for details (including why '1' is unreliable). Use of hwclock should be considered a deprecated method on newer releases of Ubuntu.

I think we should stop testing this on Noble+ instead.

[1] https://bugs.launchpad.net/ubuntu/+source/open-vm-
tools/+bug/2039206/comments/16

** Affects: ubuntu-kernel-tests
     Importance: Undecided
     Assignee: Po-Hsu Lin (cypressyew)
         Status: In Progress


** Tags: 6.8 hwclock noble sru-20240708

** Changed in: ubuntu-kernel-tests
     Assignee: (unassigned) => Po-Hsu Lin (cypressyew)

** Changed in: ubuntu-kernel-tests
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Canonical
Platform QA Team, which is subscribed to ubuntu-kernel-tests.
https://bugs.launchpad.net/bugs/2075146

Title:
  hwclock failing on N-oracle BM.Standard2.52 with "No such file or
  directory"

Status in ubuntu-kernel-tests:
  In Progress

Bug description:
  When running the hwclock test on N-oracle BM.Standard2.52, it failed with:
  $ /sbin/hwclock --verbose --set --date "2004-10-20 04:10:00"
  /bin/bash: line 1: /sbin/hwclock: No such file or directory

  This test has passed on other instances on Oracle simply because
  they're VM instances, and the test got skipped.

  Manual test shows /sbin/hwclock does not exist, install util-linux-
  extra can fix this issue.

  However as pointed out in this comment[1] from Robie Basak:
  The reason hwclock isn't shipped any more is that Ubuntu now uses systemd's functionality to perform the same task instead. To configure RTC translation between UTC and local time, the primary supported method is now "sudo timedatectl set-local-rtc 0" or "sudo timedatectl set-local-rtc 1". See timedatectl(1) for details (including why '1' is unreliable). Use of hwclock should be considered a deprecated method on newer releases of Ubuntu.

  I think we should stop testing this on Noble+ instead.

  [1] https://bugs.launchpad.net/ubuntu/+source/open-vm-
  tools/+bug/2039206/comments/16

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/2075146/+subscriptions



Follow ups