Project

General

Profile

Bug #23526

mdbci snapshot revert fails in case if stopped ntp

Added by Timofey Turenko over 1 year ago. Updated 4 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
MDBCI
Start date:
14.12.2017
Due date:
Estimated time:
Close

Description

if ntp is not running on some node and "bin/systemctl stop ntpd.service" returns non 0, MDBCI fails:

wikman@jwi-mariadb:~ $ mdbci/mdbci snapshot revert --path-to-nodes ubuntu_xenial_libvirt-2017-12-13_10-51 --snapshot-name clean
 INFO:  MariaDb CI CLI
 INFO:  mdbci called with: ["snapshot", "revert"]
 INFO:  Checking this machine configuration requirments
 INFO:  .....NOT IMPLEMENTED YET
 INFO:  Load Boxes from /home/wikman/mdbci/BOXES
 INFO:  Loaded boxes: 46
 INFO:  Load AWS config from /home/wikman/mdbci/aws-config.yml
 INFO:  Load Repos from /home/wikman/mdbci/repo.d
 INFO:  Looking up for repos /home/wikman/mdbci/repo.d
 INFO:  Loaded repos: 752
 INFO:  Reverting node node_000 to snapshot mdbci_snapshot_clean_ubuntu_xenial_libvirt-2017-12-13_10-51_node_000
 INFO:  
ERROR:  Redirecting to /bin/systemctl stop ntpd.service
 INFO:  14 Dec 12:07:36 ntpdate[30892]: step time server 77.245.18.26 offset 94531.016524 sec
ERROR:  Redirecting to /bin/systemctl start ntpd.service
 INFO:  Reverting node node_001 to snapshot mdbci_snapshot_clean_ubuntu_xenial_libvirt-2017-12-13_10-51_node_001
 INFO:  
ERROR:  Redirecting to /bin/systemctl stop ntpd.service
 INFO:  14 Dec 12:07:57 ntpdate[28249]: step time server 77.245.18.26 offset 94524.506270 sec
ERROR:  Redirecting to /bin/systemctl start ntpd.service
 INFO:  Reverting node node_002 to snapshot mdbci_snapshot_clean_ubuntu_xenial_libvirt-2017-12-13_10-51_node_002
 INFO:  
ERROR:  Redirecting to /bin/systemctl stop ntpd.service
 INFO:  14 Dec 12:08:23 ntpdate[30903]: step time server 77.245.18.26 offset 94529.381244 sec
ERROR:  Redirecting to /bin/systemctl start ntpd.service
 INFO:  Reverting node node_003 to snapshot mdbci_snapshot_clean_ubuntu_xenial_libvirt-2017-12-13_10-51_node_003
 INFO:  
ERROR:  Redirecting to /bin/systemctl stop ntpd.service
 INFO:  14 Dec 12:08:54 ntpdate[28454]: step time server 77.245.18.26 offset 94546.426753 sec
ERROR:  Redirecting to /bin/systemctl start ntpd.service
 INFO:  Reverting node galera_000 to snapshot mdbci_snapshot_clean_ubuntu_xenial_libvirt-2017-12-13_10-51_galera_000
 INFO:  
ERROR:  Redirecting to /bin/systemctl stop ntpd.service
 INFO:  14 Dec 12:09:26 ntpdate[26563]: step time server 77.245.18.26 offset 94563.241936 sec
ERROR:  Redirecting to /bin/systemctl start ntpd.service
 INFO:  Reverting node galera_001 to snapshot mdbci_snapshot_clean_ubuntu_xenial_libvirt-2017-12-13_10-51_galera_001
 INFO:  
ERROR:  Redirecting to /bin/systemctl stop ntpd.service
 INFO:  14 Dec 12:10:00 ntpdate[26551]: step time server 77.245.18.26 offset 94573.976633 sec
ERROR:  Redirecting to /bin/systemctl start ntpd.service
 INFO:  Reverting node galera_002 to snapshot mdbci_snapshot_clean_ubuntu_xenial_libvirt-2017-12-13_10-51_galera_002
 INFO:  
ERROR:  Redirecting to /bin/systemctl stop ntpd.service
 INFO:  14 Dec 12:10:38 ntpdate[28999]: step time server 91.148.192.49 offset 94577.092435 sec
ERROR:  Redirecting to /bin/systemctl start ntpd.service
 INFO:  Reverting node galera_003 to snapshot mdbci_snapshot_clean_ubuntu_xenial_libvirt-2017-12-13_10-51_galera_003
 INFO:  
ERROR:  Redirecting to /bin/systemctl stop ntpd.service
 INFO:  14 Dec 12:11:06 ntpdate[29014]: step time server 91.148.192.49 offset 94594.072088 sec
ERROR:  Redirecting to /bin/systemctl start ntpd.service
 INFO:  Reverting node maxscale to snapshot mdbci_snapshot_clean_ubuntu_xenial_libvirt-2017-12-13_10-51_maxscale
 INFO:  
ERROR:  Failed to stop ntpd.service: Unit ntpd.service not loaded.
ERROR:  /home/wikman/mdbci/core/snapshot.rb:185:in `execute_bash'
/home/wikman/mdbci/core/snapshot.rb:263:in `revert_snapshot'
/home/wikman/mdbci/core/snapshot.rb:284:in `block in revert_snapshots'
/home/wikman/mdbci/core/snapshot.rb:283:in `each'
/home/wikman/mdbci/core/snapshot.rb:283:in `revert_snapshots'
/home/wikman/mdbci/core/snapshot.rb:81:in `do'
/home/wikman/mdbci/core/session.rb:509:in `commands'
mdbci/mdbci:141:in `<main>'
ERROR:  vagrant ssh maxscale -c '/usr/bin/sudo service ntpd stop' command exited with non zero exit code 5
wikman@jwi-mariadb:~ $ 

Addition problem is info messages like " Redirecting to /bin/systemctl start ntpd.service" is printed as error:

ERROR:  Redirecting to /bin/systemctl start ntpd.service

History

#1

Updated by Andrey Vasilyev 4 months ago

  • Assignee set to Evgeny Vlasov
#2

Updated by Andrey Vasilyev 4 months ago

  • Category set to MDBCI
#3

Updated by Evgeny Vlasov 4 months ago

  • Status changed from New to Rejected

This issue is a copy of issue 24818

Also available in: Atom PDF