[BUG] AksHci/Moc commands fail with rpc error: code = Unknown desc = Location 'MocLocation' doesn't expose any nodes to create
- Dominant language
- PowerShell
- Stars
- 118
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
If the wssdagent tokens expires and wssdagent restarts it fails to join the cloudagent. This causes the wssdcloudagent to have any node resources active within the location, leaving the wssdcloudagent to not find a node to place the resources.
Expected behavior
The following error would happen when we try to create new cluster, scale existing cluster, etc.
```rpc error: code = Unknown desc = Location 'MocLocation' doesn't expose any nodes to create **** ```
Solution
We should run the below command to fix the wssdagent tokens.
```Repair-Moc```
Contributor guide
Research direction
Start with the AksHci/Moc commands and the wssdagent, cloudagent, and wssdcloudagent behavior described in the report. Reproduce token expiry and restart, then run Repair-Moc and verify that node resources are exposed and cluster creation or scaling no longer returns the reported RPC error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kubernetes, powershell
- Domain
- backend, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100