nova/nova/tests/live_migration/hooks
Lee Yarwood 373c4ffde2 nova-live-migration: Wait for n-cpu services to come up after configuring Ceph
Previously the ceph.sh script used during the nova-live-migration job
would only grep for a `compute` process when checking if the services
had been restarted. This check was bogus and would always return 0 as it
would always match itself. For example:

2020-03-13 21:06:47.682073 | primary | 2020-03-13 21:06:47.681 | root
29529  0.0  0.0   4500   736 pts/0    S+   21:06   0:00 /bin/sh -c ps
       aux | grep compute
2020-03-13 21:06:47.683964 | primary | 2020-03-13 21:06:47.683 | root
29531  0.0  0.0  14616   944 pts/0    S+   21:06   0:00 grep compute

Failures of this job were seen on the stable/pike branch where slower CI
nodes appeared to struggle to allow Libvirt to report to n-cpu in time
before Tempest was started. This in-turn caused instance build failures
and the overall failure of the job.

This change resolves this issue by switching to pgrep and ensuring
n-cpu services are reported as fully up after a cold restart before
starting the Tempest test run.

Closes-Bug: 1867380
Change-Id: Icd7ab2ca4ddbed92c7e883a63a23245920d961e7
(cherry picked from commit e23c3c2c8d)
(cherry picked from commit 70447bca2f)
2020-03-19 11:04:02 +00:00
..
ceph.sh nova-live-migration: Wait for n-cpu services to come up after configuring Ceph 2020-03-19 11:04:02 +00:00
nfs.sh Replace ansible --sudo with --become in live_migration/hooks scripts 2019-02-20 14:47:42 -05:00
run_tests.sh Re-enable Ceph in live migration testing 2019-03-14 18:48:55 +00:00
utils.sh remove unused functions 2017-05-02 10:36:30 -04:00