-
Notifications
You must be signed in to change notification settings - Fork 386
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
[Windows] Prepare-AntreaAgent.ps1
fails for containerized ovs
#5852
Comments
Hi @antoninbas
Yes, and i think in case of containerized ovs instead of
https://github.com/antrea-io/antrea/blob/main/docs/windows.md#:~:text=%23%20If%20OVS%20userspace%20processes%20were%20running%20inside%20container%20in%20antrea%2Dagent%20Pod%0A./Clean%2DAntreaNetwork.ps1%20%2DOVSRunMode%20%22container%22 |
In any case, it would make sense to fix |
If it's just about invoking |
In "containerized OVS" mode, Clean-AntreaNetwork.ps1 should be invoked with `-OVSRunMode "container"`. Fixes antrea-io#5852 Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
@antoninbas I also think it is better to still use Prepare-AntreaAgent.ps1 and invoke Clean-AntreaNetwork.ps1 with right parameters in ovs containerization case. |
In "containerized OVS" mode, Clean-AntreaNetwork.ps1 should be invoked with `-OVSRunMode "container"`. Fixes antrea-io#5852 Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
) In "containerized OVS" mode, Clean-AntreaNetwork.ps1 should be invoked with `-OVSRunMode "container"`. Fixes #5852 Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
In "containerized OVS" mode, Clean-AntreaNetwork.ps1 should be invoked with `-OVSRunMode "container"`. Fixes antrea-io#5852 Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
In "containerized OVS" mode, Clean-AntreaNetwork.ps1 should be invoked with `-OVSRunMode "container"`. Fixes antrea-io#5852 Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
) In "containerized OVS" mode, Clean-AntreaNetwork.ps1 should be invoked with `-OVSRunMode "container"`. Fixes #5852 Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
) In "containerized OVS" mode, Clean-AntreaNetwork.ps1 should be invoked with `-OVSRunMode "container"`. Fixes #5852 Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
Describe the bug
I am trying to add a Windows Node to a K8s cluster using the "containerized OVS" installation method for Antrea.
When trying to run
Prepare-AntreaAgent.ps1
, I get the following error:The error is generated by
Clean-AntreaNetwork.ps1
, which is invoked byPrepare-AntreaAgent.ps1
.We can see that the script tries to create an OVS service, which doesn't make sense for the containerized OVS case.
The following questions come to mind:
Prepare-AntreaAgent.ps1
with-RunOVSServices $false
, shouldClean-AntreaNetwork.ps1
be invoked with-OVSRunMode "container"
?Prepare-AntreaAgent.ps1 -InstallKubeProxy $false -RunOVSServices $false
, it seems thatPrepare-AntreaAgent.ps1
doesn't actually do anything besides callingClean-AntreaNetwork.ps1
. Is that accurate? I just want to check that my understanding is correct.Versions:
Antrea v1.14 and top-of-tree
The text was updated successfully, but these errors were encountered: