Skip to content

Comments

fix AnsibleFailedError: hwclock: Cannot access the Hardware Clock via…#807

Open
guomuwen wants to merge 1 commit intoceph:mainfrom
guomuwen:fix_ansible_failed_hwclock
Open

fix AnsibleFailedError: hwclock: Cannot access the Hardware Clock via…#807
guomuwen wants to merge 1 commit intoceph:mainfrom
guomuwen:fix_ansible_failed_hwclock

Conversation

@guomuwen
Copy link

In virtual machines or containers, running the smoke test case can easily lead to failure due to errors like "['hwclock: Cannot access the Hardware Clock via any known method.', 'hwclock: Use the --verbose option to see the details of our search for an access method.']". This is because virtual machines or containers typically lack the necessary permissions to directly execute the hwclock command, and such errors are not usually serious and should not cause test case failures. In containers or virtual machines, hwclock errors should be ignored to allow the test case to continue execution.

fix https://tracker.ceph.com/issues/69280

Comment on lines +35 to +37
become: true
become_method: sudo
become_user: root
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modifying this file isn't necessary for your stated use case of VMs or containers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants