[systest] We should sync time if ceph is command fails in test deploy_ceph_ha
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
Medium
|
Artem Panchenko | ||
4.1.x |
Fix Released
|
Medium
|
Artem Panchenko | ||
5.0.x |
Fix Released
|
Medium
|
Artem Panchenko |
Bug Description
Test http://
....
....
....
File "/home/
raise TimeoutError(
TimeoutError: Waiting timed out
Several things should be done:
1. Add error message to the ceph_health check in case of failure(we can use sdterr to know what happens)
2. In this case ceph health was warn according to mon-0 has feature time, after sync time - on all nodes ceph health is fine -so we need to add dsome workaround here like:
try:
wait(....)
except TimeoutError:
if 'clocks not synchronized ' in output from ceph -w command:
run sync time command(method) and try again to verify health
Below we can see why ceph health is warn
[root@node-4 ~]# ceph -w
cluster 7cec7fda-
health HEALTH_WARN clock skew detected on mon.node-2, mon.node-4
monmap e3: 3 mons at {node-1=
osdmap e65: 12 osds: 12 up, 12 in
pgmap v104: 3264 pgs: 3264 active+clean; 14464 KB data, 25085 MB used, 568 GB / 592 GB avail
mdsmap e1: 0/0/1 up
2014-07-01 03:15:57.938597 mon.1 [WRN] message from mon.0 was stamped 0.231240s in the future, clocks not synchronized
^C[root@node-4 ~]# exit
logout
Connection to node-4 closed.
[root@nailgun ~]# ssh node-1
Warning: Permanently added 'node-1' (RSA) to the list of known hosts.
Last login: Tue Jul 1 03:18:29 2014 from 10.108.15.2
[root@node-1 ~]# sudo hwclock --show
Tue 01 Jul 2014 11:19:28 AM UTC -0.624457 seconds
[root@node-1 ~]# date
Tue Jul 1 03:23:01 UTC 2014
Changed in fuel: | |
status: | New → Confirmed |
summary: |
- [System tests] We should sync time if ceph is command fails in test + [systest] We should sync time if ceph is command fails in test deploy_ceph_ha |
Fix proposed to branch: master /review. openstack. org/108434
Review: https:/