Comments (7)
out=$(chronyc tracking)
offset=$(awk '/RMS offset/ {print $4}' <<<"$out")
echo "clock offset is $offset" >&2
from risu.
Are you executing it with bash/sh? What is the reproducer?
from risu.
PM with cc, executing inside citellus
from risu.
sh -x /home/remote/piranzo/citellus/citellus/plugins/system/clock-1-chrony.sh
+ : 1
+ [[ 0 = 0 ]]
+ '[' '!' -f ./sos_commands/systemd/systemctl_list-units_--all ']'
+ grep -q 'chronyd.*active' ./sos_commands/systemd/systemctl_list-units_--all
+ '[' '!' -f ./sos_commands/chrony/chronyc_tracking ']'
+ grep -q 'Not synchronised' ./sos_commands/chrony/chronyc_tracking
++ awk '/RMS offset/ {print $4}' ./sos_commands/chrony/chronyc_tracking
+ offset=
+ echo 'clock offset is '
clock offset is
++ echo '<1 && >-1'
++ bc -l
(standard_in) 1: syntax error
+ ((
))
from risu.
Contents of chronyc_tracking are:
cat sos_commands/chrony/chronyc_tracking
506 Cannot talk to daemon
So hence, the var is not set and the error appears
from risu.
https://review.gerrithub.io/376756
from risu.
Verified:
INFO:citellus:using default plugin path
_________ .__ __ .__ .__
\_ ___ \|__|/ |_ ____ | | | | __ __ ______
/ \ \/| \ __\/ __ \| | | | | | \/ ___/
\ \___| || | \ ___/| |_| |_| | /\___ \
\______ /__||__| \___ >____/____/____//____ >
\/ \/ \/
found #1 tests at
mode: fs snapshot .
# /home/remote/piranzo/citellus/citellus/plugins/system/clock-1-chrony.sh: failed
clock is not synchronized
Closing
from risu.
Related Issues (20)
- Broken link found (/risuorg/risu/search?l=python)
- Broken link found (/risuorg/risu/search?l=shell)
- Broken link found (/risuorg/risu/search?l=html)
- Broken link found (/risuorg/risu/search?l=python)
- Broken link found (https://education.github.com)
- Broken link found (/risuorg/risu/search?l=python)
- Broken link found (/risuorg/risu/search?l=shell)
- Broken link found (/risuorg/risu/search?l=html)
- Broken link found (/risuorg/risu/search?l=python)
- Broken link found (/risuorg/risu/search?l=shell)
- Broken link found (/risuorg/risu/search?l=html)
- Broken link found (/risuorg/risu/search?l=python)
- Broken link found (/risuorg/risu/search?l=shell)
- Broken link found (/risuorg/risu/search?l=html)
- Broken link found (/risuorg/risu/search?l=shell)
- Broken link found (/risuorg/risu/search?l=html)
- Broken link found (https://resources.github.com/devops/fundamentals/devsecops)
- Broken link found (https://resources.github.com/learn/pathways)
- Broken link found (/risuorg/risu/search?l=python)
- Broken link found (/risuorg/risu/search?l=shell)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from risu.