Skip to content
This repository was archived by the owner on Aug 4, 2020. It is now read-only.

MGMT-1443 Wait for dummy job to finish pre proceeding#375

Open
oshercc wants to merge 1 commit into
masterfrom
osher/MGMT-1443
Open

MGMT-1443 Wait for dummy job to finish pre proceeding#375
oshercc wants to merge 1 commit into
masterfrom
osher/MGMT-1443

Conversation

@oshercc

@oshercc oshercc commented Jul 8, 2020

Copy link
Copy Markdown
Collaborator

No description provided.

if err := jobApi.Create(context.Background(), b.createImageJob(jobName, imgName, "Dummy")); err != nil {
log.WithError(err).Errorf("failed to generate dummy ISO image")
}
if err := b.job.Monitor(context.Background(), jobName, b.Namespace); err != nil {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure it will help. because K8S will think that the service is operational and the subsystem will fail because the service will not reply to API

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have no problem that Generate iso API will take a long time. this part was only a hack to help in the deployment and this will help in system environment but not in the CI.

@filanov

filanov commented Jul 8, 2020

Copy link
Copy Markdown
Owner

suggesting to add a script that will wait for the job to start running or complete

kubectl get pod  | grep dummyimage | grep 'Running\|Completed'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants