Skip to content

OCTRL-1078 Make Task Controller able to control OCC tasks#804

Merged
knopers8 merged 12 commits intomasterfrom
OCTRL-1078
Apr 27, 2026
Merged

OCTRL-1078 Make Task Controller able to control OCC tasks#804
knopers8 merged 12 commits intomasterfrom
OCTRL-1078

Conversation

@justonedev1
Copy link
Copy Markdown
Collaborator

introduction of controller for kubernetes inside the controller-operator folder.

This version allows us to control all OCC tasks (tested on readout, stfsender and stfbuilder). Currently there is not image and controller was run directly via make run on the node where the kubernetes cluster is running. If you run it locally and cluster is on different computer, you would not be able to communicate with OCC process as these require opened ports
Manifests required to run these tasks are inside the ecs-manifests subfolder.

In order to apply these manifests use kubectl. There is an explanation which file is which inside the kubernetes-ecs.md.

Copy link
Copy Markdown
Collaborator

@knopers8 knopers8 left a comment

Choose a reason for hiding this comment

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

thanks! I did not try to run it yet, but I already have some questions/suggestions.

Comment thread control-operator/api/v1alpha1/groupversion_info.go Outdated
Comment thread control-operator/cmd/main.go
Comment thread control-operator/config/manager/kustomization.yaml Outdated
Comment thread control-operator/ecs-manifests/control-workflows/readout-kube.yaml
Comment thread control-operator/internal/controller/fairmq_transition.go
Comment thread control-operator/exampletask-test.yaml Outdated
Comment thread control-operator/Makefile
Comment thread control-operator/internal/controller/task_controller.go
Comment thread control-operator/internal/controller/task_controller.go
command: ["/opt/o2/bin/o2-readout-exe"]
args: ["consul-ini://mtichak-ost.cern.ch:8500/o2/components/readout/ANY/any/readout-stfb-mtichak-ost"]
# setup proper uri for your test case change this part
args: ["consul-ini://localhost:8500/o2/components/readout/ANY/any/readout-stfb-mtichak-ost"]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

aah, we don't need any changes to the file, but it's auto-generated with the file name including the host name, am I correct?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

yes, the argument is autogenerated by ansible during flp-suite deployment... But as far as I know (I haven't tried this) you can just pass config file to readout and it will be fine. .. The file in question http://mtichak-ost.cern.ch:8500/ui/alice-o2-cluster/kv/o2/components/readout/ANY/any/readout-stfb-mtichak-ost/edit doesn't contain any generated snippets as far as I can say. So we might probably be fine to store it in the repo and make the example args containing the path of this config file.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

ah, I can get around consul with following: https://kubernetes.io/docs/concepts/configuration/configmap/

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I added shm arguments to all kubernetes examples and used configMap for kubernetes, which creates config image in /etc/readout/readout-config.ini

Copy link
Copy Markdown
Collaborator

@knopers8 knopers8 left a comment

Choose a reason for hiding this comment

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

thank you

@knopers8 knopers8 merged commit 9e6bfdc into master Apr 27, 2026
4 checks passed
@knopers8 knopers8 deleted the OCTRL-1078 branch April 27, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants