Skip to content

Commit ad5895e

Browse files
committed
Update NodeSet condition message when Deployment hasn't started yet
closes OSPRH-10047 Signed-off-by: Fabricio Aguiar <[email protected]>
1 parent b84a1ae commit ad5895e

File tree

11 files changed

+19
-25
lines changed

11 files changed

+19
-25
lines changed

apis/dataplane/v1beta1/conditions.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,8 @@ const (
9292
// NodeSet Deployment is finished and successful.
9393
NodeSetDeploymentReadyCondition condition.Type = "NodeSetDeploymentReady"
9494

95-
// NodeSetDeploymentReadyMessage ready
96-
NodeSetDeploymentReadyMessage = "Deployment ready for NodeSet"
97-
9895
// NodeSetDeploymentReadyWaitingMessage not yet ready
99-
NodeSetDeploymentReadyWaitingMessage = "Deployment not yet ready for NodeSet"
100-
101-
// NodeSetDeploymentErrorMessage error
102-
NodeSetDeploymentErrorMessage = "Deployment error occurred %s for NodeSet"
96+
NodeSetDeploymentReadyWaitingMessage = "NodeSet setup ready, waiting for Deployment..."
10397

10498
// NodeSetServiceDeploymentReadyMessage ready
10599
NodeSetServiceDeploymentReadyMessage = "Deployment ready for %s service"

controllers/dataplane/openstackdataplanenodeset_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ func (r *OpenStackDataPlaneNodeSetReconciler) Reconcile(ctx context.Context, req
423423
Log.Info("Set NodeSet DeploymentReadyCondition false")
424424
instance.Status.Conditions.MarkFalse(condition.DeploymentReadyCondition,
425425
condition.RequestedReason, condition.SeverityInfo,
426-
condition.DeploymentReadyInitMessage)
426+
dataplanev1.NodeSetDeploymentReadyWaitingMessage)
427427
}
428428

429429
if isDeploymentReady {

docs/assemblies/proc_creating-a-set-of-data-plane-nodes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ $ oc create -f openstack-edpm.yaml
308308
----
309309
$ oc get openstackdataplanenodeset
310310
NAME STATUS MESSAGE
311-
openstack-edpm-ipam False Deployment not started
311+
openstack-edpm-ipam False NodeSet setup ready, waiting for Deployment...
312312
----
313313

314314
. Verify that the `Secret` resource was created for the node set:

tests/kuttl/tests/dataplane-create-test/00-assert.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ status:
7979
tenant: 172.19.0.100
8080
ctlplaneSearchDomain: ctlplane.example.com
8181
conditions:
82-
- message: Deployment not started
82+
- message: NodeSet setup ready, waiting for Deployment...
8383
reason: Requested
8484
status: "False"
8585
type: Ready
86-
- message: Deployment not started
86+
- message: NodeSet setup ready, waiting for Deployment...
8787
reason: Requested
8888
status: "False"
8989
type: DeploymentReady

tests/kuttl/tests/dataplane-deploy-global-service-test/00-assert.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ spec:
106106
status:
107107
observedGeneration: 1
108108
conditions:
109-
- message: Deployment not started
109+
- message: NodeSet setup ready, waiting for Deployment...
110110
reason: Requested
111111
severity: Info
112112
status: "False"
113113
type: Ready
114-
- message: Deployment not started
114+
- message: NodeSet setup ready, waiting for Deployment...
115115
reason: Requested
116116
severity: Info
117117
status: "False"

tests/kuttl/tests/dataplane-deploy-multiple-secrets/00-assert.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ spec:
123123
status:
124124
observedGeneration: 1
125125
conditions:
126-
- message: Deployment not started
126+
- message: NodeSet setup ready, waiting for Deployment...
127127
reason: Requested
128128
status: "False"
129129
type: Ready
130-
- message: Deployment not started
130+
- message: NodeSet setup ready, waiting for Deployment...
131131
reason: Requested
132132
status: "False"
133133
type: DeploymentReady

tests/kuttl/tests/dataplane-deploy-no-nodes-test/00-assert.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ spec:
3838
status:
3939
observedGeneration: 1
4040
conditions:
41-
- message: Deployment not started
41+
- message: NodeSet setup ready, waiting for Deployment...
4242
reason: Requested
4343
status: "False"
4444
type: Ready
45-
- message: Deployment not started
45+
- message: NodeSet setup ready, waiting for Deployment...
4646
reason: Requested
4747
status: "False"
4848
type: DeploymentReady

tests/kuttl/tests/dataplane-deploy-tls-test/00-assert.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ spec:
9494
status:
9595
observedGeneration: 1
9696
conditions:
97-
- message: Deployment not started
97+
- message: NodeSet setup ready, waiting for Deployment...
9898
reason: Requested
9999
status: "False"
100100
type: Ready
101-
- message: Deployment not started
101+
- message: NodeSet setup ready, waiting for Deployment...
102102
reason: Requested
103103
status: "False"
104104
type: DeploymentReady

tests/kuttl/tests/dataplane-multinode-nodeset-create-test/00-assert.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ status:
2828
observedGeneration: 1
2929
ctlplaneSearchDomain: ctlplane.example.com
3030
conditions:
31-
- message: Deployment not started
31+
- message: NodeSet setup ready, waiting for Deployment...
3232
reason: Requested
3333
status: "False"
3434
type: Ready
35-
- message: Deployment not started
35+
- message: NodeSet setup ready, waiting for Deployment...
3636
reason: Requested
3737
status: "False"
3838
type: DeploymentReady

tests/kuttl/tests/dataplane-multinode-nodeset-create-test/01-assert.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ status:
1717
tenant: 172.19.0.150
1818
ctlplaneSearchDomain: ctlplane.example.com
1919
conditions:
20-
- message: Deployment not started
20+
- message: NodeSet setup ready, waiting for Deployment...
2121
reason: Requested
2222
status: "False"
2323
type: Ready
24-
- message: Deployment not started
24+
- message: NodeSet setup ready, waiting for Deployment...
2525
reason: Requested
2626
status: "False"
2727
type: DeploymentReady

0 commit comments

Comments
 (0)