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

operator can not read the hostPath mount model #96

Open
Huimintai opened this issue Dec 22, 2023 · 1 comment
Open

operator can not read the hostPath mount model #96

Huimintai opened this issue Dec 22, 2023 · 1 comment
Assignees

Comments

@Huimintai
Copy link

Hello, I deployment the ovms chart use the command:

helm install ovms-pipeline ovms --set models_settings.config_configmap_name=ovms-pipeline,models_settings.single_model_mode=false,models_repository.models_host_path=/opt/,models_settings.model_path=/opt/

And I follow the demo steps :https://github.com/openvinotoolkit/operator/blob/main/helm-charts/ovms/README.md#demo---deployment-of-the-model-server-with-a-vehicle-analysis-pipeline
The pod can running:

kubectl get pods | grep ovms
ovms-pipeline-b845894db-6qzwc    1/1     Running   0          11m

But it report the errors that it can not find the hostPath model:

[2023-12-22 08:15:54.859][127][modelmanager][error][modelmanager.cpp:1340] Directory does not exist: /opt/vehicle-detection-0202/
[2023-12-22 08:15:55.860][127][modelmanager][error][modelmanager.cpp:1340] Directory does not exist: /opt/vehicle-attributes-recognition-barrier-0042/

I add the config:

models_repository:
  runAsUser: 5000
  runAsGroup: 5000

But it can not work as expect.
I can login the pod to see the model files has mounted into pods:

ovms@ovms-pipeline-b845894db-6qzwc:/models$ ls
cni  containerd  img_arrays_for_acc.txt  vehicle-attributes-recognition-barrier-0042  vehicle-detection-0202
whoami
ovms

Can anyone can help with this issue?Thanks a lot.

@dtrawins dtrawins self-assigned this Mar 12, 2024
@dtrawins
Copy link
Contributor

In the config.json file added to the configmap, there should be updated the path to the model. Probably the sed command was not executed. The models are mounted in /models folder but the config.json is expecting them in /opt.

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

2 participants