-
Story
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
During a successful node update, the MachineConfigNode (MCN) conditions (for example: UpdatePrepared & UpdateExecuted) transition through different stages (typically False —> Unknown —> True —> False). This test should ensure that the MCN conditions transition as expected on a node update not requiring an image build when on cluster image mode is enabled.
This test will be similar to the test created in MCO-1596. However, instead of simply applying a MachineConfig (MC) to trigger a standard node update, this test will need to enable on-cluster image mode before applying the MC. Note that for this test, the node update should be one that does not require an image build, as defined in this PR. MCO-1715 will handle updates requiring image builds.
At a high-level, the sequence of this test will likely be something like:
- Create a custom MachineConfigPool (MCP) & add a node to it.
- Note that creating a custom MCP and adding only one node to it will allow the end-to-end test to run in a more appropriate amount of time as it limits the scope of updating nodes to just one.
- Enable on cluster image mode by applying a MachineOSConfig.
- Trigger a node update that does not require an image build, validating the condition transitions throughout.
- Cleanup to return cluster to pre-test state.
Done when:
- Test exists for the ImageModeStatusReporting feature gate to test the MCN condition transitions for an on-cluster image mode enabled node update not requiring an image build in openshift/machine-config-operator/test/extended
References:
- Docs for creating and using a custom MCP can be found here.
- On-cluster image mode docs docs can be found here.
Depends on:
- This test will probably need to be tagged as `Disruptive` since it will result in node reboots. Thus, completing this story depends on the MCO team having a test suite where running disruptive tests is allowed (see
MCO-1679&MCO-1652). - Creating this test will be much simpler and straightforward once the framework for on-cluster image mode tests in the MCO is established (see
MCO-1609). - These tests should contribute to the StatusReporting feature gate’s component readiness score. Therefore, this test should be created after the StatusReporting feature gate exists (see
MCO-1681). - This test depends on on-cluster image mode tests statuses existing in the MCN API & the associated functionality being implemented in the MCO (see
MCO-1675, andMCO-1713).