...
hzn register -p IBM/pattern-ibm.helloworld
run
hzn register -p IBM/pattern-ibm.helloworld -s ibm.helloworld --serviceorg IBM
from
https://github.com/open-horizon/examples/blob/master/edge/services/helloworld/README.md#preconditions
Code Block |
---|
ubuntu@ubuntu:~$ hzn register -p IBM/pattern-ibm.helloworld -s ibm.helloworld --serviceorg IBM |
...
Horizon Exchange base URL: http://192.168.100.32:3090/v1 |
...
Using node ID 'node1' from the Horizon agent |
...
Generated random node token |
...
Updating node token... |
...
Will proceeed with the given pattern IBM/pattern-ibm.helloworld. |
...
Initializing the Horizon node with node type 'device'... |
...
Note: no input file was specified. This is only valid if none of the services need variables set. |
...
However, if there is 'userInput' specified in the node already in the Exchange, the userInput will be used. |
...
Changing Horizon state to configured to register this node with Horizon... |
...
Horizon node is registered. Workload services should begin executing shortly. |
...
Waiting for up to 60 seconds for following services to start: |
...
IBM/ibm.helloworld |
...
Status of the services you are watching: |
...
IBM/ibm.helloworld Progress so far: agreement proposal has been received |
...
Status of the services you are watching: |
...
IBM/ibm.helloworld Progress so far: agreement is accepted |
...
Status of the services you are watching: |
...
IBM/ibm.helloworld Progress so far: service is created |
...
Status of the services you are watching: |
...
IBM/ibm.helloworld Progress so far: execution is started |
...
Status of the services you are watching: |
...
IBM/ibm.helloworld Success |
...
|
...
ubuntu@ubuntu:~$ |
Code Block |
---|
ubuntu@ubuntu:~$ hzn agreement list |
...
[ |
...
{
{ "name": "pattern-ibm.helloworld_ibm.helloworld_IBM_arm64 merged with pattern-ibm.helloworld_ibm.helloworld_IBM_arm64", |
...
"current_agreement_id": "8c61ebcabbafcf380758739116cb5603bed33d64984862a910c20c56a6b003b6", |
...
"consumer_id": "IBM/agbot", |
...
"agreement_creation_time": "2021-08-10 00:15:37 +0000 UTC", |
...
"agreement_accepted_time": "2021-08-10 00:15:40 +0000 UTC", |
...
"agreement_finalized_time": "2021-08-10 00:15:48 +0000 UTC", |
...
"agreement_execution_start_time": "2021-08-10 00:15:48 +0000 UTC", |
...
"agreement_data_received_time": "", |
...
"agreement_protocol": "Basic", |
...
"workload_to_run": |
...
{ "url": "ibm.helloworld", |
...
"org": "IBM", |
...
"version": "1.0.0", |
...
"arch": "arm64" |
...
}
}
...
}
}
]
ubuntu@ubuntu:~$ |
Code Block |
---|
ubuntu@ubuntu:~$ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 6a8c986c5955 openhorizon/ibm.helloworld_arm64 "/bin/sh -c /service…" 4 minutes ago Up 4 minutes 8c61ebcabbafcf380758739116cb5603bed33d64984862a910c20c56a6b003b6-ibm.helloworld |
...