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/cluster status #605

Merged
merged 18 commits into from
Apr 14, 2023
Merged

Feat/cluster status #605

merged 18 commits into from
Apr 14, 2023

Conversation

Despire
Copy link
Contributor

@Despire Despire commented Feb 23, 2023

Closes #440

The ErrorMessage field in the mongo document was replaced by a map<string, Workflow> which holds. the information of the current state for each cluster of the config.

This is also used when the config is being processed by scheduler mainly to indicate where it failed (before it will be picked up by builder to store the states of each cluster)

Frontend polls contextbox every ~40 seconds to get the state of each cluster to display it more readable in the logs

Screenshot 2023-02-23 at 20 41 36

onfig: TestSet-2 - cluster ts2-c-2 currently in stage TERRAFORMER with status IN_PROGRESS module=frontend
7:31PM INF ../go/services/frontend/server.go:227 > Config: TestSet-2 - cluster ts2-c-1 currently in stage TERRAFORMER with status IN_PROGRESS module=frontend
7:31PM INF ../go/services/frontend/server.go:227 > Config: TestSet-3 - cluster ts3-c-1 currently in stage DESTROY_TERRAFORMER with status IN_PROGRESS module=frontend
7:31PM INF ../go/services/frontend/server.go:227 > Config: TestSet-1 - cluster ts1-hetzner currently in stage ANSIBLER with status IN_PROGRESS Processing stage [1/2] module=frontend
7:31PM INF ../go/services/frontend/server.go:227 > Config: TestSet-1 - cluster ts1-aws currently in stage TERRAFORMER with status IN_PROGRESS Processing stage [1/2] module=frontend
7:31PM INF ../go/services/frontend/server.go:227 > Config: TestSet-1 - cluster ts1-azure currently in stage TERRAFORMER with status IN_PROGRESS module=frontend
7:31PM INF ../go/services/frontend/server.go:227 > Config: TestSet-1 - cluster ts1-oci currently in stage TERRAFORMER with status IN_PROGRESS Processing stage [1/2] module=frontend
7:31PM INF ../go/services/frontend/server.go:227 > Config: TestSet-1 - cluster ts1-gcp currently in stage TERRAFORMER with status IN_PROGRESS Processing stage [1/2] module=frontend
7:31PM INF ../go/services/frontend/server.go:227 > Config: TestSet-2 - cluster ts2-c-2 currently in stage TERRAFORMER with status IN_PROGRESS module=frontend
7:31PM INF ../go/services/frontend/server.go:227 > Config: TestSet-2 - cluster ts2-c-1 currently in stage TERRAFORMER with status IN_PROGRESS module=frontend

...

44PM INF ../go/services/frontend/server.go:227 > Config: TestSet-2 - cluster ts2-c-2 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
7:44PM INF ../go/services/frontend/server.go:227 > Config: TestSet-2 - cluster ts2-c-1 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
7:44PM INF ../go/services/frontend/server.go:227 > Config: TestSet-1 - cluster ts1-gcp currently in stage DELETE_NODES with status IN_PROGRESS Processing stage [1/2] module=frontend
7:44PM INF ../go/services/frontend/server.go:227 > Config: TestSet-1 - cluster ts1-aws currently in stage ANSIBLER with status IN_PROGRESS Processing stage [2/2] module=frontend
7:44PM INF ../go/services/frontend/server.go:227 > Config: TestSet-1 - cluster ts1-azure currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
7:44PM INF ../go/services/frontend/server.go:227 > Config: TestSet-1 - cluster ts1-oci currently in stage ANSIBLER with status IN_PROGRESS Processing stage [2/2] module=frontend
7:45PM INF ../go/services/frontend/server.go:227 > Config: TestSet-2 - cluster ts2-c-1 currently in stage KUBER with status IN_PROGRESS module=frontend
7:45PM INF ../go/services/frontend/server.go:227 > Config: TestSet-2 - cluster ts2-c-2 currently in stage KUBER with status IN_PROGRESS module=frontend
7:45PM INF ../go/services/frontend/server.go:227 > Config: TestSet-1 - cluster ts1-oci currently in stage KUBE_ELEVEN with status IN_PROGRESS Processing stage [2/2] module=frontend
7:45PM INF ../go/services/frontend/server.go:227 > Config: TestSet-1 - cluster ts1-gcp currently in stage DELETE_NODES with status IN_PROGRESS Processing stage [1/2] module=frontend
7:45PM INF ../go/services/frontend/server.go:227 > Config: TestSet-1 - cluster ts1-aws currently in stage ANSIBLER with status IN_PROGRESS Processing stage [2/2] module=frontend
7:45PM INF ../go/services/frontend/server.go:227 > Config: TestSet-1 - cluster ts1-azure currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend

...

8:03PM INF ../go/services/frontend/server.go:227 > Config: TestSet-2 - cluster ts2-c-2 currently in stage DESTROY_TERRAFORMER with status IN_PROGRESS module=frontend
8:04PM INF ../go/services/frontend/server.go:227 > Config: TestSet-2 - cluster ts2-c-2 currently in stage DESTROY_TERRAFORMER with status IN_PROGRESS module=frontend
8:04PM INF ../go/services/frontend/server.go:227 > Config: TestSet-2 - cluster ts2-c-1 currently in stage DESTROY_TERRAFORMER with status IN_PROGRESS module=frontend
8:05PM INF ../go/services/frontend/server.go:227 > Config: TestSet-2 - cluster ts2-c-1 currently in stage DESTROY_TERRAFORMER with status IN_PROGRESS module=frontend
8:05PM INF ../go/services/frontend/server.go:227 > Config: TestSet-2 - cluster ts2-c-2 currently in stage DESTROY_TERRAFORMER with status IN_PROGRESS module=frontend
8:05PM INF ../go/services/frontend/server.go:227 > Config: TestSet-2 - cluster ts2-c-1 currently in stage DESTROY_TERRAFORMER with status IN_PROGRESS module=frontend
8:05PM INF ../go/services/frontend/server.go:227 > Config: TestSet-2 - cluster ts2-c-2 currently in stage DESTROY_TERRAFORMER with status IN_PROGRESS module=frontend
8:06PM INF ../go/services/frontend/server.go:227 > Config: TestSet-2 - cluster ts2-c-1 currently in stage DESTROY_TERRAFORMER with status IN_PROGRESS module=frontend
8:06PM INF ../go/services/frontend/server.go:227 > Config: TestSet-2 - cluster ts2-c-2 currently in stage DESTROY_TERRAFORMER with status IN_PROGRESS module=frontend
8:07PM INF ../go/services/frontend/server.go:227 > Config: TestSet-2 - cluster ts2-c-1 currently in stage DESTROY_KUBER with status IN_PROGRESS module=frontend
8:07PM INF ../go/services/frontend/server.go:227 > Config: TestSet-2 - cluster ts2-c-2 currently in stage DESTROY_TERRAFORMER with status IN_PROGRESS module=frontend
8:07PM INF ../go/services/frontend/server.go:197 > Config: TestSet-1 - cluster ts1-gcp has been deleted module=frontend
8:07PM INF ../go/services/frontend/server.go:197 > Config: TestSet-2 - cluster ts2-c-2 has been deleted module=frontend
8:07PM INF ../go/services/frontend/server.go:197 > Config: TestSet-2 - cluster ts2-c-1 has been deleted module=frontend
8:07PM INF ../go/services/frontend/server.go:197 > Config: TestSet-1 - cluster ts1-azure has been deleted module=frontend
8:07PM INF ../go/services/frontend/server.go:197 > Config: TestSet-1 - cluster ts1-aws has been deleted module=frontend
8:07PM INF ../go/services/frontend/server.go:197 > Config: TestSet-1 - cluster ts1-hetzner has been deleted module=frontend
8:07PM INF ../go/services/frontend/server.go:197 > Config: TestSet-1 - cluster ts1-oci has been deleted module=frontend
8:07PM INF ../go/services/frontend/server.go:197 > Config: TestSet-3 - cluster ts3-c-1 has been deleted module=frontend
...

Copy link
Contributor

@MiroslavRepka MiroslavRepka left a comment

Choose a reason for hiding this comment

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

I left some comments, and questions on the PR, otherwise good job.

One more thing I want to mention is that the 40s might be a bit long IMO. I would prefer to have it every ~10s, but let's see what others will say.

services/context-box/server/claudieDB/claudieMongo.go Outdated Show resolved Hide resolved
services/context-box/server/claudieDB/claudieMongo.go Outdated Show resolved Hide resolved
services/frontend/process_configs.go Outdated Show resolved Hide resolved
services/scheduler/scheduler.go Outdated Show resolved Hide resolved
services/builder/serviceCaller.go Show resolved Hide resolved
services/frontend/server.go Outdated Show resolved Hide resolved
services/frontend/server.go Outdated Show resolved Hide resolved
services/frontend/server.go Outdated Show resolved Hide resolved
services/frontend/server.go Outdated Show resolved Hide resolved
services/frontend/server.go Outdated Show resolved Hide resolved
@Despire
Copy link
Contributor Author

Despire commented Feb 24, 2023

made the time to check for the state 10 seconds
added more granular descriptions for ansibler and kuber

11:25AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage TERRAFORMER with status IN_PROGRESS module=frontend
11:25AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage TERRAFORMER with status IN_PROGRESS module=frontend
11:25AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage TERRAFORMER with status IN_PROGRESS module=frontend
11:25AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage TERRAFORMER with status IN_PROGRESS module=frontend
11:25AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage TERRAFORMER with status IN_PROGRESS module=frontend
11:25AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage TERRAFORMER with status IN_PROGRESS module=frontend
11:26AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage ANSIBLER with status IN_PROGRESS installing VPN module=frontend
11:26AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage ANSIBLER with status IN_PROGRESS installing VPN module=frontend
11:26AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage ANSIBLER with status IN_PROGRESS installing VPN module=frontend
11:26AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage ANSIBLER with status IN_PROGRESS installing VPN module=frontend
11:26AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage ANSIBLER with status IN_PROGRESS installing VPN module=frontend
11:26AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage ANSIBLER with status IN_PROGRESS installing VPN module=frontend
11:27AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage ANSIBLER with status IN_PROGRESS installing VPN module=frontend
11:27AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage ANSIBLER with status IN_PROGRESS installing VPN module=frontend
11:27AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage ANSIBLER with status IN_PROGRESS installing VPN module=frontend
11:27AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage ANSIBLER with status IN_PROGRESS installing VPN module=frontend
11:27AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage ANSIBLER with status IN_PROGRESS installing VPN module=frontend
11:27AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage ANSIBLER with status IN_PROGRESS installing VPN module=frontend
11:28AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage ANSIBLER with status IN_PROGRESS installing node requirments module=frontend
11:28AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage ANSIBLER with status IN_PROGRESS setting up loadbalancers module=frontend
11:28AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage ANSIBLER with status IN_PROGRESS setting up loadbalancers module=frontend
11:28AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:28AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:28AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:29AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:29AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:29AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:29AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:29AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:29AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:30AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:30AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:30AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:30AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:30AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:30AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:31AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:31AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:31AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:31AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:31AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:31AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:32AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:32AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:32AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBE_ELEVEN with status IN_PROGRESS module=frontend
11:32AM INF services/frontend/server.go:227 > Config: TestSet-3 - cluster matus-ts3 currently in stage KUBER with status IN_PROGRESS setting up storage module=frontend
11:32AM INF services/frontend/server.go:215 > workflow finished for cluster matus-ts3 module=frontend

@MiroslavRepka MiroslavRepka marked this pull request as draft April 11, 2023 11:27
@Despire Despire marked this pull request as ready for review April 13, 2023 16:03
Despire and others added 3 commits April 13, 2023 18:04
# Conflicts:
#	manifests/claudie/kustomization.yaml
#	manifests/testing-framework/kustomization.yaml
Copy link
Contributor

@MiroslavRepka MiroslavRepka left a comment

Choose a reason for hiding this comment

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

LGTM

@Despire Despire added this pull request to the merge queue Apr 14, 2023
Merged via the queue into master with commit 026d7ce Apr 14, 2023
@Despire Despire deleted the feat/cluster-status branch April 14, 2023 13:41
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

Successfully merging this pull request may close these issues.

Feed cluster creation status into frontend
2 participants