Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Change failed AnsibleEE job pod message and document the report in docs
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Podivin <[email protected]>
  • Loading branch information
jpodivin committed Feb 16, 2024
1 parent 22de1fe commit 82d65bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/openstackdataplanenodeset_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ func (r *OpenStackDataPlaneNodeSetReconciler) SetupWithManager(ctx context.Conte
for _, pod := range podsList.Items {
Log.Info(
fmt.Sprintf(
"openstack dataplane pod %s failed due to %s message: %s",
"openstackansibleee job %s failed due to %s with message: %s",
pod.Name, pod.Status.Reason, pod.Status.Message))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,13 @@ AnsibleEE jobs have an associated condition message that indicates the current s
* `AnsibleExecutionJob error occured <error_message>`: The job stopped executed unexpectedly. The `<error_message>` is replaced with a specific error message.

To further investigate a service displaying a particular job condition message, use the command `oc logs job/<service>` to display the logs associated with that service. For example, to display the logs for the `repo-setup-openstack-edpm` service, use the command `oc logs job/repo-setup-openstack-edpm`.


.Check service pod status reports

During reconciliation of OpenStackDataPlaneDeployment resources, Kubernetes Pods associated with OpenStackAnsibleEE jobs are marked with label `osdpd=<OpenStackDataPlaneDeployment.Name>`.
This allows selection and monitoring of these pods using CLI commands.

When encountering failures within OpenStackAnsibleEE jobs, the resulting Kubernetes Pod reports will be formatted with an error message in the following manner: `openstackansibleee job <POD_NAME> failed due to <ERROR> with message: <ERROR_MSG>`.

These reports can provide valuable insights into the cause of the failure and aid in resolving related issues.

0 comments on commit 82d65bf

Please sign in to comment.