Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: add capability to fetch IMS job logs #61

Open
Masber opened this issue Apr 3, 2024 · 0 comments
Open

FEAT: add capability to fetch IMS job logs #61

Masber opened this issue Apr 3, 2024 · 0 comments

Comments

@Masber
Copy link
Collaborator

Masber commented Apr 3, 2024

IMS jobs translates to k8s jobs. Unfortunately, kubectl -n ims describe job <ims job name> won't show the pod it relates to. There for to find our the pod related to an IMS job we need to filter pods in ims namespace by jobname label like:

$ kubectl -n ims get pods --selector=job-name=cray-ims-e8b8092a-5312-47d2-a434-8cf76e49f10e-create
NAME                                                         READY   STATUS     RESTARTS   AGE
cray-ims-e8b8092a-5312-47d2-a434-8cf76e49f10e-create-v7bjs   0/2     Init:3/4   0          85m

then fetch the logs

$ kubectl -n ims logs cray-ims-e8b8092a-5312-47d2-a434-8cf76e49f10e-create-v7bjs -c build-image

Extend the manta log <job name> functionality so it can fetch the logs from an IMS job, the command does not know if the job name belongs to CFS session or an IMS job therefore it needs to search both

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant