Monday, 2025-05-12

opendevreviewchandan kumar proposed openstack/watcher stable/2024.2: [host_maintenance] Pass des hostname in add_action solution  https://review.opendev.org/c/openstack/watcher/+/94944206:14
opendevreviewchandan kumar proposed openstack/watcher-tempest-plugin master: Add tests for host_maintenance strategy with backup node  https://review.opendev.org/c/openstack/watcher-tempest-plugin/+/94794406:22
amoralejfyi, i sent https://review.opendev.org/c/openstack/watcher/+/949225 , please, review when you have a chance, thanks!09:25
amoralejHi, while preparing the spec for the SKIPPED state in Actions, I found this https://github.com/openstack/watcher/blob/f38ab70ba46756b2c3ae74b1a2fafdb39ac58cc7/watcher/api/controllers/v1/action.py#L49-L51 so, apparently, someone thought on this behavior, althoug it is not implemented10:26
amoralejthe only two cases where CANCELLED status is used so far is for actions which were ONGOING when starting the applier (so the applier was stopped right in the middle of an action execution) and when an action plan is cancelled, all the nested actions are set to CANCELLED10:29
amoralejbut I understand that our two new use cases, cloud admin explicitely excluding an action execution from an action pland and pre-condition to find some specific conditions, would be also valid for CANCELLED state10:31
amoralejwdyt? ^ , use CANCELLED for those or implement new SKIPPED one as we discussed?10:31
jgilaberusing CANCELLED makes sense, but I think I would still clearly differentiate in the logs or elsewhere the two cases (i.e cancelled because of some pre-condition or cancelled because the operator actually executed a cancel command)10:44
amoralejadding a new filed cancel_reason would be good10:57
amoralejuser visible10:57
jgilaberyes, that would solve my concern11:06

Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!