[skip ci]Add log info after chaos applied (#10851)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
zhuwenxing 2021-10-28 20:26:54 +08:00 committed by GitHub
parent 059561a809
commit a301fe8368
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,12 +138,14 @@ class TestChaos(TestChaosBase):
assert_statistic(self.health_checkers)
# apply chaos object
meta_name = chaos_config.get('metadata', None).get('name', None)
chaos_res = CusResource(kind=chaos_config['kind'],
group=constants.CHAOS_GROUP,
version=constants.CHAOS_VERSION,
namespace=constants.CHAOS_NAMESPACE)
chaos_res.create(chaos_config)
log.info("chaos injected")
log.info(f"chaos information: {chaos_res.get(meta_name)}")
sleep(constants.WAIT_PER_OP * 2.1)
# reset counting
cc.reset_counting(self.health_checkers)
@ -166,7 +168,6 @@ class TestChaos(TestChaosBase):
})
# delete chaos
meta_name = chaos_config.get('metadata', None).get('name', None)
chaos_res.delete(meta_name)
log.info("chaos deleted")
for k, t in self.checker_threads.items():