transient day2 misleading validation message
When there is no api vip connectivity information yet on the host
the disk validation shows a misleading message about missing role
assignment.
This PR sorts out the cases for ValidationPending and prints a
proper message for each case
@@ -490,7 +490,10 @@ func (v *validator) printDiskEncryptionRequirementsSatisfied(c *validationContex
if c.inventory == nil {
return "Missing host inventory"
}
+ if common.GetEffectiveRole(c.host) == models.HostRoleAutoAssign {
return "Missing role assignment"
+ }
+ return "Missing ignition information"
default:
return fmt.Sprintf("Unexpected status %s", status)
}
