Azure / AKS-Edge

Welcome to the Azure Kubernetes Service (AKS) Edge repo.
MIT License
56 stars 37 forks source link

[BUG] Windows Node status "NotReady" after restarting Host machine #127

Closed edgarhal closed 11 months ago

edgarhal commented 1 year ago

Describe the bug The Windows Node status stays as "NotReady" after restarting the Host machine when deploying a "SingleMachineCluster". Initially, the Windows Node works fine before restarting the Host machine, even after executing the below commands:

Once the Host machine gets rebooted, the Windows Node status stays as "NotReady".

To Reproduce Steps to reproduce the behavior:

  1. Deploy Single Machine Cluster
  2. Verify the Windows Node status is "Ready"
  3. Stop-AksEdgeNode -NodeType Windows
  4. Stop-AksEdgeNode -NodeType Linux
  5. Restart Host Machine
  6. Start-AksEdgeNode -NodeType Linux
  7. Start-AksEdgeNode -NodeType Windows
  8. The Windows Node status is "NotReady"

Expected behavior The Windows Node should be in "Ready" state even after the Host Machine reboots.

Screenshots The below image shows how the Windows Node is registered but cannot reach the "Ready" state.

image

image

Environment:

Additional context None.

patrickvargas commented 1 year ago

I`ve found a way to get it working. Instead leting AKSEdge create the aksedgesw-ext vSwitch on Hyper-V, do that yourself and rename the newly vSwitch created from vEthernet(aksedgesw-ext) to just aksedgesw-ext.

Create image

Rename image

And use the same name as Adapter Name: image

Another step that Im doing is shutdown just the Windows node using Stop-AksEdgeNode -NodeType Windows before shutdown the computer or VM if nested VM, Im not sure if this is an essential step, but it`s working fine after all this. image

fcabrera23 commented 1 year ago

Hi @patrickvargas,

Are you still seeing this issue?

Thanks, Francisco

patrickvargas commented 1 year ago

@fcabrera23, I have to do a normal installation again to check if the issue is still there. Give me sometime and I`ll back to you if the answer. Thanks.

fcabrera23 commented 11 months ago

Hi @patrickvargas,

Closing this issue due to inactivity.

Thanks, Francisco