Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
docker container ps

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

89d149cab8af openhorizon/ibm.helloworld_amd64 "/bin/sh -c /service…" 3 days ago Up About an hour faf1ba0cfc9ec7344d985b23856427c54841d773f75a9ffa8a90db5a1db9ceca-ibm.helloworld

38852a8c7957 openhorizon/amd64_agbot:latest "/bin/sh -c /usr/hor…" 3 days ago Up 59 minutes (healthy) 127.0.0.1:3110->8080/tcp, 0.0.0.0:3111->8083/tcp agbot

71cc38d60c24 openhorizon/sdo-owner-services:latest "/bin/sh -c $WORKDIR…" 3 days ago Up About an hour (healthy) 0.0.0.0:8040->8040/tcp, 0.0.0.0:8042->8042/tcp, 0.0.0.0:9008->9008/tcp sdo-owner-services

324a6a4009af openhorizon/amd64_cloud-sync-service:latest "/usr/edge-sync-serv…" 3 days ago Up About an hour (healthy) 0.0.0.0:9443->8080/tcp css-api

587afb807273 openhorizon/amd64_exchange-api:latest "/bin/sh -c '/usr/bi…" 3 days ago Up About an hour (healthy) 8083/tcp, 0.0.0.0:3090->8080/tcp exchange-api

15e71961ae9b mongo:latest "docker-entrypoint.s…" 3 days ago Up About an hour (healthy) 27017/tcp mongo

98b48ab9ccaf postgres:latest "docker-entrypoint.s…" 3 days ago Up About an hour (healthy) 5432/tcp postgres



Configuration after installation Open Horizon Management Hub and Agent

Next steps requires stetting proper environmental variables on both HUB and Agent sites according to https://github.com/edgexfoundry-holding/orra/tree/master/demos/SDO-OH-EXF-dev-simple.

Code Block
titleEnvironemtal variables
export HZN_ORG_ID=myorg
export HZN_EXCHANGE_USER_AUTH=admin:

...

<insert value from installation 

...

credentials>
export HZN_DEVICE_TOKEN=

...

<insert value from installation credentials or use random 

...

string>
export HZN_DEVICE_ID=node1
export HZN_EXCHANGE_URL=http://

...

<HUB-IP-address-

...

here>:3090/v1/
export HZN_FSS_CSSURL=http://

...

<HUB-IP-address-

...

here>:9443/

How to use Open Horizon

https://open-horizon.github.io/common-requests/use.html

Check whether exchange container is accessible outside on HUB and agent site

Code Block
curl -s http://192.168.100.32:3090/v1/admin/version

Sample output

Code Block
2.78.0

Trying to configure agent

Issues:

ubuntu@ubun2:~$ git clone https://github.com/edgexfoundry-holding/orra.git
Cloning into 'orra'...
remote: Enumerating objects: 95, done.
remote: Counting objects: 100% (95/95), done.
remote: Compressing objects: 100% (63/63), done.
remote: Total 95 (delta 41), reused 77 (delta 28), pack-reused 0
Unpacking objects: 100% (95/95), 383.10 KiB | 2.07 MiB/s, done.
ubuntu@ubun2:~$ cd orra/demos/SDO-OH-EXF-dev-simple
ubuntu@ubun2:~/orra/demos/SDO-OH-EXF-dev-simple$ hzn exchange service publish -P -f configuration/service.json
Checking private key file format ...
Verifying public key file ...
Signing service...
Pulling edgexfoundry/docker-edgex-volume:1.0.0...
Error: could not inspect image edgexfoundry/docker-edgex-volume:1.0.0: Get "http://unix.sock/images/edgexfoundry/docker-edgex-volume:1.0.0/json": dial unix /var/run/docker.sock: connect: permission denied.

  • Create the docker group.

...

  • Add your user to the docker group.

...

HUB requires to set HZN_ORG_ID and HZN_EXCHANGE_USER_AUTH. For Agent all those variables has to be set.

Check configuration

Code Block
titleLocal HUB variables
ubuntu@ubun2:~$ env | grep HZN
HZN_ORG_ID=myorg
HZN_EXCHANGE_USER_AUTH=admin:1eAVOw1dWRKve5b5KIkRk2PcBjXLnO


Code Block
titleAgent environmental variables
ubuntu@ubun2:~$ env | grep HZN
HZN_ORG_ID=myorg
HZN_EXCHANGE_USER_AUTH=admin:1eAVOw1dWRKve5b5KIkRk2PcBjXLnO






How to use Open Horizon

https://open-horizon.github.io/common-requests/use.html


Check whether exchange container is accessible outside on HUB and agent site

Code Block
curl -s http://192.168.100.32:3090/v1/admin/version

Sample output

Code Block
2.78.0



Trying to configure agent


Issues:


Agent configuration

https://open-horizon.github.io/docs/installing/automated_install.html

...