The reapply operation needs to do the same checks done on the apply
operation. These checks prevent reapplying the application on
some ceph or system scenarios.
Moreover, on the method pre_auto_apply_check, it is possible that
conductor_object._ceph (CephOperator) is not initialized yet, and trying
to access its methods will raise an AttributeError exception. As this is
a possible scenario, this case is now tested, and a
LifecycleSemanticCheckException is raised.
Test Plan:
PASS: (AIO-DX) Check that platform-integ-apps is on uploaded state
PASS: (AIO-DX) Unmanage ceph-mon
PASS: (AIO-DX) Stop ceph-mon service
PASS: (AIO-DX) Restart sysinv-conductor service
PASS: (AIO-DX) Check on sysinv logs that the new Exception is
being logged and the platform-integ-apps still trying to
be applied
PASS: (AIO-DX) Manage ceph-mon
PASS: (AIO-DX) Start ceph-mon service
PASS: (AIO-DX) After the Ceph cluster has become responsive,
check that platform-integ-apps is being successfully
applied.
PASS: (AIO-DX) Check that platform-integ-apps is on applied state
PASS: (AIO-DX) Unmanage ceph-mon
PASS: (AIO-DX) Stop ceph-mon service
PASS: (AIO-DX) Restart sysinv-conductor service
PASS: (AIO-DX) Check on sysinv logs that the new Exception is
being logged and the platform-integ-apps still trying
to be applied.
PASS: (AIO-DX) Wait until platform-integ-apps is on
apply-failed state
Closes-bug: 2052315
Change-Id: I8c3318cc6f002671cb2e4bf81b14238ac4467131
Signed-off-by: Guilherme Costa <guilherme.costa@windriver.com>