-
Story
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
With the API changes made in MCO-1675, new properties were added in the MachineConfigNode (MCN) Spec and Status to hold the values of the `machineconfiguration.openshift.io/desiredImage` and `machineconfiguration.openshift.io/currentImage` node annotations. This test should ensure that the MCN properties, both new and pre-existing, are set as expected when on cluster image mode is enabled and disabled.
This test will be similar to the test created in MCO-1595. However, it needs to validate the new MCN properties added in MCO-1675 both when on-cluster image mode is enabled on a node and when it is not.
At a high-level, the sequence of this test will likely be something like:
- Validate starting properties of the MCN.
- Create a custom MachineConfigPool (MCP) & add a node to it.
- Validate the properties of the MCN.
- Enable on cluster image mode by applying a MachineOSConfig.
- Validate the properties of the MCN.
- Disable on cluster image mode by deleting the applied MachineOSConfig.
- Validate the properties of the MCN.
Done when:
- Test exists for the ImageModeStatusReporting feature gate to validate that MCN properties are correctly populated when on-cluster image mode is enabled on a node and when it is not in openshift/machine-config-operator/test/extended
References:
- Information for creating and apply MCs can be found here.
- On-cluster image mode 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).
- depends on
-
MCO-1228 Retool how MCN conditions are used to update MCP status
-
- Code Review
-
- links to