open-horizon-services / service-edgelake

Deployment of EdgeLake using OpenHorizon
0 stars 2 forks source link

policy-based deployment fails with error: `Registration failed because service config for version 1.0.0 of alog/edgelake is missing` #9

Open oshadmon opened 4 months ago

oshadmon commented 4 months ago

OpenHorzon Version: v2.30.0-1476_amd64 Machine: Ubuntu 22.04 LTS (jammy) on amd64 Extends On: HelloWorld Timesout when using agent-install.sh

Steps:

  1. Copy content (including Makefile) from HelloWorld into EdgeLake & update content to match EdgeLake - hzn-hello

    • In Makefile, change Docker Hub and Image params
    • In service.json update file to include EdgeLake related userInput values
  2. Register service and pattern

    make publish-service
    make publish-pattern

    Expect : Success Actual: Sucess

  3. run agent

    make agent-run

    Expect: Success Actual: Registration failed because service config for version 1.0.0 of alog/edgelake is missing Reason: I believe there’s a confusion between the Docker Hub ID (anylogco) and OpenHorizon user (alog).

    
    The node is not registered.
    Horizon Exchange base URL: http://132.177.125.232:3090/v1
    Using node ID 'alog-edgelake-node' from the Horizon agent
    Generated random node token
    Updating node token...
    Will proceed with the given pattern alog/edglake-service.
    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...
    Error setting node state to configured: Registration failed because service config for version 1.0.0 of alog/edgelake is missing.. Please create an input file, define variables for service alog/edgelake. Run 'hzn unregister' and then 'hzn register...' again with the -f flag to specify the input file.
    Critical error encountered in registration. Attempting to undo registration steps to leave node in the unregistered state.

Waiting for Horizon node unregister to complete: Timeout in 885 seconds ...

Waiting for agent service to restart and checking the node configuration state... Error: Registration failed. Node successfully returned to unregistered state.

oshadmon commented 4 months ago

we'll remove hzn-hello once pattern-based deployment is working