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

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 this issue Apr 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@oshadmon
Copy link
Collaborator

oshadmon commented Apr 1, 2024

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

  1. 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 oshadmon added the bug Something isn't working label Apr 1, 2024
@oshadmon oshadmon self-assigned this Apr 1, 2024
@oshadmon
Copy link
Collaborator Author

oshadmon commented Apr 1, 2024

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

@oshadmon oshadmon removed their assignment Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant