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

agent-install.sh should error out earlier if node id of the cluster agent already exists in a different namespace #4182

Closed
LiilyZhang opened this issue Dec 4, 2024 · 0 comments · Fixed by #4183
Assignees

Comments

@LiilyZhang
Copy link
Contributor

Need to error out before hitting the registration error

2024-04-08 16:49:11 Waiting for state: Horizon agent pod ready
2024-04-08 16:49:12 Done: Horizon agent pod ready
Defaulted container anax out of: anax, initcontainer (init)
2024-04-08 16:49:18 Registering the edge node...
hzn register -m 'ROKS-br-cluster1-oh-testing' -o 'ISV_qatoolbox-pablo_andres_fuero' -u ******** -n ********
Defaulted container anax out of: anax, initcontainer (init)
Horizon Exchange base URL: https://abc.test.cloud.ibm.com/v1
Generated random node token
Updating node token...
Error: bad HTTP code 400 from PATCH https://abc.test.cloud.ibm.com/v1/orgs/ISV_qatoolbox-pablo_andres_fuero/nodes/ROKS-br-cluster1-oh-testing: invalid-input, node 'ISV_qatoolbox-pablo_andres_fuero/ROKS-br-cluster1-oh-testing' not inserted or updated: public key is set for node 'ISV_qatoolbox-pablo_andres_fuero/ROKS-br-cluster1-oh-testing', cannot set a token 
@LiilyZhang LiilyZhang added the bug label Dec 4, 2024
@LiilyZhang LiilyZhang self-assigned this Dec 4, 2024
LiilyZhang added a commit to LiilyZhang/anax that referenced this issue Dec 4, 2024
…f node id of the cluster agent already exists in a different namespace

Signed-off-by: zhangl <zhangl@us.ibm.com>
LiilyZhang added a commit to LiilyZhang/anax that referenced this issue Dec 5, 2024
…f node id of the cluster agent already exists in a different namespace

Signed-off-by: zhangl <zhangl@us.ibm.com>
LiilyZhang added a commit to LiilyZhang/anax that referenced this issue Dec 5, 2024
…f node id of the cluster agent already exists in a different namespace

Signed-off-by: zhangl <zhangl@us.ibm.com>
LiilyZhang added a commit to LiilyZhang/anax that referenced this issue Dec 10, 2024
…f node id of the cluster agent already exists in a different namespace

Signed-off-by: zhangl <zhangl@us.ibm.com>
LiilyZhang added a commit to LiilyZhang/anax that referenced this issue Dec 10, 2024
…f node id of the cluster agent already exists in a different namespace

Signed-off-by: zhangl <zhangl@us.ibm.com>
LiilyZhang added a commit to LiilyZhang/anax that referenced this issue Dec 10, 2024
…f node id of the cluster agent already exists in a different namespace

Signed-off-by: zhangl <zhangl@us.ibm.com>
LiilyZhang added a commit to LiilyZhang/anax that referenced this issue Dec 11, 2024
…f node id of the cluster agent already exists in a different namespace

Signed-off-by: zhangl <zhangl@us.ibm.com>
LiilyZhang added a commit to LiilyZhang/anax that referenced this issue Dec 11, 2024
…f node id of the cluster agent already exists in a different namespace

Signed-off-by: zhangl <zhangl@us.ibm.com>
LiilyZhang added a commit to LiilyZhang/anax that referenced this issue Dec 11, 2024
…f node id of the cluster agent already exists in a different namespace

Signed-off-by: zhangl <zhangl@us.ibm.com>
LiilyZhang added a commit that referenced this issue Dec 11, 2024
Issue #4182 - agent-install.sh should error out earlier i…
LiilyZhang added a commit to LiilyZhang/anax that referenced this issue Dec 13, 2024
…f node id of the cluster agent already exists in a different namespace

Signed-off-by: zhangl <zhangl@us.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant