Ran
|
Jobs
1
|
Files
95
|
Run time
5s
|
Badge
Embed ▾
README BADGES
|
travis-ci
CA-257740: Fix HA broken for NFS Commit <a class=hub.com/xapi-project/sm/commit/<a class="double-link" href="https://git"><a class=hub.com/xapi-project/sm/commit/8a19f82dcf7d6e1737908f7e2380bdb216404991">8a19f82dc had introduced a regression causing attach_from_config to fail, meaning the host would not boot properly with HA enabled since the attach static VDI would fail and ha_start_daemon would fail as well because there would not be any static VDI attached. Before 8a19f82dcf7d6e1737908f7e2380bdb216404991 FileVDI.load was failing during attach_from_config since the SR was not mounted but managed to set 'self.path = raw_path' before failing. After 8a19f82dcf7d6e1737908f7e2380bdb216404991 FileVDI.load was still failing during attach_from_config since the SR was not mounted but it was leaving 'self.path = None' This commit is fixing the problem by checking if 'self.path is None' and calling self._find_path_with_retries() again to set the path after the SR is mounted. Signed-off-by: Stefano Panella <stefano.panella@citrix.com> Signed-off-by: Mark Syms <mark.syms@citrix.com> Signed-off-by: Edvin Torok <edvin.torok@citrix.com> Reviewed-by: Edwin Török <edvin.torok@citrix.com>
817 of 6335 branches covered (12.9%)
5 of 5 new or added lines in 2 files covered. (100.0%)
6970 of 20722 relevant lines covered (33.64%)
0.34 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
2 |
15.31 |
-0.04% | drivers/FileSR.py |
3 |
69.38 |
-0.3% | drivers/VDI.py |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 526.1 | 95 |
33.64 |
Travis Job 526.1 |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|