Edge Software Catalog
Support for issues related to Edge Software Catalog
471 Discussions

Not able to store and retrieve images from image store bucket with Orchestrator

Rekha07
Débutant
4 543 Visites

I am not able to store images and retrieve images from Image store bucket when running EIS application with Orchestrator. I am not able to store and retrieve any data from /opt/intel/eis folder.

Étiquettes (1)
0 Compliments
1 Solution
WengWai_C_Intel
Modérateur
4 516 Visites

For the key value pair, you can define anything as it is just a tag. For example, you can use below for both InfluxDBConnector and Imagestore. This key value pair will be used later with the CSL API command to tag with the CSL client node that you wish to pin. 

"DB": "true"

Below is the example of the API command with the key value pair for your reference:

curl -k -H "Content-type: application/json" -u <user> -X PUT "https://csl-manager-host:8443/api/v1/nodes/<nodename>/metadata" -d '{"DB": "true"}'

For the node name, you can refer to the CSL manager web UI to obtain the client node name for the API command above.

Voir la solution dans l'envoi d'origine

0 Compliments
11 Réponses
WengWai_C_Intel
Modérateur
4 531 Visites

Hi @Rekha07 ,

If you wish to use the Image store bucket with Orchestrator on a multi nodes setup, it is recommended to pin the  InfluxDBConnector and ImageStore services to a specific node so it will get consistent data from the running services. To do this, you can refer to the section 10 in the README.md file under EdgeInsightsSoftware-v2.3.3-PV/IEdgeInsights/build/csl directory.

0 Compliments
Rekha07
Débutant
4 526 Visites

section 10 in the README.md file under EdgeInsightsSoftware-v2.3.3-PV/IEdgeInsights/build/csl directory, key value pair is mentioned. What is the key value pair??Is it generic or something specific we need to give. What is the label I am supposed to give for a node.

0 Compliments
Smrithi
Nouveau contributeur I
4 522 Visites

Hi

section 10 in the README.md file under EdgeInsightsSoftware-v2.3.3-PV/IEdgeInsights/build/csl directory, it also mentions that Adding "Constraints" to modules will tie the Pods of those modules to particular node. Which node is it talking about, the server node or the client node?And should database orchestration be in client or server node? Also the node name would be what we had given during csl client or server installation?

0 Compliments
WengWai_C_Intel
Modérateur
4 514 Visites

Hi @Smrithi 

From the README.md file, you will need to add the "constraints" with key value pair to the containers that you wish to pin on a specific node. The node here is referring to CSL client node, where the client node to run your workload. In this case, the InfluxDBConnector and ImageStore should be pinned on the CSL client node, as the workload should be running on client node, not server node.

In summary, below is the flow to pin the containers to a specific client node according to the README,md file.

1) Open the csl_app_spec.json file, add the "Constraints" with key value pair to the containers that you wish to pin on a specific client node.

2) Use the API command below, to pin the containers by using the key value pair that defined in step 1.

curl -k -H "Content-type: application/json" -u <user> -X PUT "https://csl-manager-host:8443/api/v1/nodes/<nodename>/metadata" -d '{"key":"value"}'

3) At the CSL manager web UI, use the Submit New App button to deploy the containers using the updated csl_app_spec.json file which added the "Constraints".

4) From the CSL manager web UI, you will be able to see the key value pair appear on the meta key and meta value column under the client node tab. And the pinned containers will only be running on that specific client node.

0 Compliments
Smrithi
Nouveau contributeur I
4 506 Visites

I added the the "constraints" with key value pair to the containers to pin on a specific node in csl_app_spec.json file.It was added successfully and  I have attached the SS of the csl manager dashboard also. But those images are not getting stored in the image store bucket, hence I am unable to access it.

0 Compliments
WengWai_C_Intel
Modérateur
4 486 Visites

@Smrithi ,

can you provide the log for the ImageStore and InfluxDBConnector from the CSL manager UI? And, are these 2 containers running fine and saved the images in the local directory without CSL, and the same container image being deployed on CSL?

0 Compliments
Smrithi
Nouveau contributeur I
4 477 Visites

I am unable to retrieve the logs of image store from the csl manager dashboard as it says error retrieving logs and I have attached the SS. And when I check for the stored images in the image store bucket, the folder is empty.

0 Compliments
WengWai_C_Intel
Modérateur
4 471 Visites

@Smrithi 

Alternatively, you can also check the log by using standard docker approach.

1) Use 'docker ps' command to list all running containers.

2) Use 'docker logs -f <container_id>' command to check the log, where container_id can be obtained from the output from 'docker ps' command.

0 Compliments
Snehal_Yesugade
Débutant
4 338 Visites

In curl command

curl -k -H "Content-type: application/json" -u <user> -X PUT "https://csl-manager-host:8443/api/v1/nodes/<nodename>/metadata" -d '{"key":"value"}'

1. Do we need to use ip address in place of csl-manager-host?

2. what should be <user> ?

 

0 Compliments
WengWai_C_Intel
Modérateur
4 330 Visites

@Snehal_Yesugade 

Please see below:

1) Yes, it should use the CSL manager system IP in that command.

2) The <user> is referring to the CSL manager user ID that you created during the setup. Alternatively, you can check this in the EII master node (Client node#1) in the directory IEdgeInsights/build/provision/.env file. In this file you should see the CSL_MGR_USERNAME that being configured previously.

Hope this information help.

0 Compliments
WengWai_C_Intel
Modérateur
4 517 Visites

For the key value pair, you can define anything as it is just a tag. For example, you can use below for both InfluxDBConnector and Imagestore. This key value pair will be used later with the CSL API command to tag with the CSL client node that you wish to pin. 

"DB": "true"

Below is the example of the API command with the key value pair for your reference:

curl -k -H "Content-type: application/json" -u <user> -X PUT "https://csl-manager-host:8443/api/v1/nodes/<nodename>/metadata" -d '{"DB": "true"}'

For the node name, you can refer to the CSL manager web UI to obtain the client node name for the API command above.

0 Compliments
Répondre