Project

Profile

Help

Task #8610

Fixing ntp work on permanent machines

Added by Ilfat Kinyaev over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Timofey Turenko
Category:
mdbci features
Sprint/Milestone:
Start date:
11.09.2017
Due date:
% Done:

100%

Estimated time:
Target branch:
Test scenario:

https://github.com/mariadb-corporation/mdbci/tree/8610_fix_time_on_revert

https://github.com/mariadb-corporation/mdbci/pull/28

# Sample config posted on
https://dev.osll.ru/issues/8610#note-6

#Generate:
./mdbci --override --template confs/centos_7_libvirt.json generate centos_7_libvirt

#Up:
./mdbci up centos_7_libvirt/node000

#Take snapshot:
./mdbci snapshot take --path-to-nodes centos_7_libvirt --snapshot-name checktime1

#Get time in node:
./mdbci ssh --command "date" centos_7_libvirt/node_000

#After 5 minutes revert snapshot:
./mdbci snapshot revert --path-to-nodes centos_7_libvirt --snapshot-name checktime1

#Check time in node and compare it with host time:
./mdbci ssh --command "date" centos_7_libvirt/node_000

# As result time on node and host must be same.


Description

Time is lost on the machine clock.
UPD: it seems revert snapshot incorrect working, maybe it save old current time

Proposed solve:
- call ntp time syncronize after snapshot revert

~/vms/centos_7_libvirt on 02

History

#1 Updated by Ilfat Kinyaev over 3 years ago

  • Status changed from New to Active / In progress

#2 Updated by Ilfat Kinyaev over 3 years ago

  • Description updated (diff)

#3 Updated by Ilfat Kinyaev over 3 years ago

  • Description updated (diff)

#4 Updated by Ilfat Kinyaev over 3 years ago

[vagrant@node000 ]$ date
Thu Sep 28 09:43:31 EDT 2017
...
vagrant@ns3014560:
/mdbci_kinyaev/mdbci$ ./mdbci snapshot list --path-to-nodes centos_7_libvirt --node-name node_000
INFO: MariaDb CI CLI
INFO: mdbci called with: ["snapshot", "list"]
INFO: Checking this machine configuration requirments
INFO: .....NOT IMPLEMENTED YET
INFO: Load Boxes from /home/vagrant/mdbci_kinyaev/mdbci/BOXES
INFO: Loaded boxes: 45
INFO: Load AWS config from /home/vagrant/mdbci_kinyaev/mdbci/aws-config.yml
INFO: Load Repos from /home/vagrant/mdbci_kinyaev/mdbci/repo.d
INFO: Looking up for repos /home/vagrant/mdbci_kinyaev/mdbci/repo.d
INFO: Loaded repos: 752
mdbci_snapshot_checktime1_centos_7_libvirt_node_000

vagrant@ns3014560:~/mdbci_kinyaev/mdbci$ ./mdbci snapshot revert --path-to-nodes centos_7_libvirt --snapshot-name checktime1
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/vagrant/mdbci_kinyaev/mdbci/BOXES
INFO: Loaded boxes: 45
INFO: Load AWS config from /home/vagrant/mdbci_kinyaev/mdbci/aws-config.yml
INFO: Load Repos from /home/vagrant/mdbci_kinyaev/mdbci/repo.d
INFO: Looking up for repos /home/vagrant/mdbci_kinyaev/mdbci/repo.d
INFO: Loaded repos: 752
INFO: Reverting node node_000 to snapshot mdbci_snapshot_checktime1_centos_7_libvirt_node_000
INFO:
..
vagrant@ns3014560:~/mdbci_kinyaev/mdbci/centos_7_libvirt$ vagrant ssh
Last login: Thu Sep 28 09:42:30 2017 from 192.168.121.1
[vagrant@node000 ~]$ date
Thu Sep 28 09:43:20 EDT 2017

#5 Updated by Ilfat Kinyaev over 3 years ago

  • Test scenario updated (diff)

#6 Updated by Ilfat Kinyaev over 3 years ago

confs/centos_7_libvirt.json file

{
  "cookbook_path" : "../recipes/cookbooks/",
  "node_000" :
  {
    "hostname" : "node000",
    "box" : "centos_7_libvirt",
    "memory_size" : "2048",
    "product" : {
            "name": "mariadb",
        "version": "5.5",
                "cnf_template" : "server1.cnf",
                "cnf_template_path": "~/build-scripts/test-setup-scripts/cnf" 
    }
  }
}

#7 Updated by Ilfat Kinyaev over 3 years ago

  • Test scenario updated (diff)

#8 Updated by Ilfat Kinyaev over 3 years ago

  • % Done changed from 0 to 100
  • Test scenario updated (diff)

#9 Updated by Ilfat Kinyaev over 3 years ago

  • Status changed from Active / In progress to Testing
  • Assignee changed from Ilfat Kinyaev to Timofey Turenko

#10 Updated by Ilfat Kinyaev over 3 years ago

  • Status changed from Testing to Closed

Also available in: Atom PDF