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

Upon VM reboot antrea-agent does not work, OVS has invalid configuration #4122

Closed
Anandkumar26 opened this issue Aug 17, 2022 · 0 comments · Fixed by #4277
Closed

Upon VM reboot antrea-agent does not work, OVS has invalid configuration #4122

Anandkumar26 opened this issue Aug 17, 2022 · 0 comments · Fixed by #4277
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@Anandkumar26
Copy link
Contributor

Anandkumar26 commented Aug 17, 2022

Upon VM reboot, observed that interface configurations are stale in OVS as shown below.

root@testvm:~# ovs-vsctl show
b5fb7c75-0c80-41fa-9352-94ec318ae29f
    Bridge br-int
        datapath_type: system
        Port eth0
            Interface eth0
                type: internal
                error: "could not add network device eth0 to ofproto (File exists)"
        Port phy-eth0
            Interface phy-eth0
                error: "could not open network device phy-eth0 (No such device)"
    ovs_version: "2.13.5"

To recover, I had to manually cleanup ovs bridge on the VM and then restart antrea-agent.

@Anandkumar26 Anandkumar26 added the kind/bug Categorizes issue or PR as related to a bug. label Aug 17, 2022
@Anandkumar26 Anandkumar26 changed the title Upon VM reboot OVS contains stale configuration Upon VM reboot antrea-agent, OVS has invalid configuration Aug 17, 2022
@Anandkumar26 Anandkumar26 changed the title Upon VM reboot antrea-agent, OVS has invalid configuration Upon VM reboot antrea-agent does not work, OVS has invalid configuration Aug 17, 2022
Anandkumar26 added a commit to Anandkumar26/antrea that referenced this issue Oct 10, 2022
The antrea-monitor service would run
at system start up and clean up OVS
configuration.

Also fix typo and style issues.
Also update documentation.

Fixes antrea-io#4122

Signed-off-by: Anand Kumar <kumaranand@vmware.com>
Anandkumar26 added a commit to Anandkumar26/antrea that referenced this issue Oct 10, 2022
The antrea-monitor service would run
at system start up and clean up OVS
configuration.

Also fix typo and style issues.
Also update documentation.

Fixes antrea-io#4122

Signed-off-by: Anand Kumar <kumaranand@vmware.com>
Anandkumar26 added a commit to Anandkumar26/antrea that referenced this issue Oct 11, 2022
The antrea-monitor service would run
at system start up and clean up OVS
configuration.

Also fix typo and style issues.
Also update documentation.

Fixes antrea-io#4122

Signed-off-by: Anand Kumar <kumaranand@vmware.com>
Anandkumar26 added a commit to Anandkumar26/antrea that referenced this issue Oct 13, 2022
Before running the antrea-agent, validate
whether ovs configuration is in good state.
If there is an error, cleanup ovs configuration
and then start antrea-agent.

Also fix typo and style issues.
Also update documentation.

Fixes antrea-io#4122

Signed-off-by: Anand Kumar <kumaranand@vmware.com>
Anandkumar26 added a commit to Anandkumar26/antrea that referenced this issue Oct 13, 2022
Before running the antrea-agent, validate
whether ovs configuration is in good state.
If there is an error, cleanup ovs configuration
and then start antrea-agent.

Also fix typo and style issues.
Also update documentation.

Fixes antrea-io#4122

Signed-off-by: Anand Kumar <kumaranand@vmware.com>
Anandkumar26 added a commit to Anandkumar26/antrea that referenced this issue Oct 13, 2022
Before running the antrea-agent, validate
whether ovs configuration is in good state.
If there is an error, cleanup ovs configuration
and then start antrea-agent.

Also fix typo and style issues.
Also update documentation.

Fixes antrea-io#4122

Signed-off-by: Anand Kumar <kumaranand@vmware.com>
Anandkumar26 added a commit to Anandkumar26/antrea that referenced this issue Oct 17, 2022
Before running the antrea-agent, validate
whether ovs configuration is in good state.
If there is an error, cleanup ovs configuration
and then start antrea-agent.

Also fix typo and style issues.
Also update documentation.

Fixes antrea-io#4122

Signed-off-by: Anand Kumar <kumaranand@vmware.com>
tnqn pushed a commit that referenced this issue Oct 17, 2022
Before running the antrea-agent, validate
whether ovs configuration is in good state.
If there is an error, cleanup ovs configuration
and then start antrea-agent.

Also fix typo and style issues.
Also update documentation.

Fixes #4122

Signed-off-by: Anand Kumar <kumaranand@vmware.com>
heanlan pushed a commit to heanlan/antrea that referenced this issue Mar 29, 2023
Before running the antrea-agent, validate
whether ovs configuration is in good state.
If there is an error, cleanup ovs configuration
and then start antrea-agent.

Also fix typo and style issues.
Also update documentation.

Fixes antrea-io#4122

Signed-off-by: Anand Kumar <kumaranand@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant