mirror of
https://github.com/containers/podman.git
synced 2025-06-25 12:20:42 +08:00
@ -809,7 +809,7 @@ func (r *Runtime) teardownCNI(ctr *Container) error {
|
|||||||
requestedMAC = ctr.config.StaticMAC
|
requestedMAC = ctr.config.StaticMAC
|
||||||
}
|
}
|
||||||
|
|
||||||
podNetwork := r.getPodNetwork(ctr.ID(), ctr.Name(), ctr.state.NetNS.Path(), networks, ctr.config.PortMappings, requestedIP, requestedMAC, ContainerNetworkDescriptions{})
|
podNetwork := r.getPodNetwork(ctr.ID(), ctr.Name(), ctr.state.NetNS.Path(), networks, ctr.config.PortMappings, requestedIP, requestedMAC, ctr.state.NetInterfaceDescriptions)
|
||||||
|
|
||||||
if err := r.netPlugin.TearDownPod(podNetwork); err != nil {
|
if err := r.netPlugin.TearDownPod(podNetwork); err != nil {
|
||||||
return errors.Wrapf(err, "error tearing down CNI namespace configuration for container %s", ctr.ID())
|
return errors.Wrapf(err, "error tearing down CNI namespace configuration for container %s", ctr.ID())
|
||||||
|
@ -193,6 +193,13 @@ var _ = Describe("Podman network connect and disconnect", func() {
|
|||||||
exec = podmanTest.Podman([]string{"exec", "-it", "test", "ip", "addr", "show", "eth1"})
|
exec = podmanTest.Podman([]string{"exec", "-it", "test", "ip", "addr", "show", "eth1"})
|
||||||
exec.WaitWithDefaultTimeout()
|
exec.WaitWithDefaultTimeout()
|
||||||
Expect(exec.ExitCode()).To(BeZero())
|
Expect(exec.ExitCode()).To(BeZero())
|
||||||
|
|
||||||
|
// make sure no logrus errors are shown https://github.com/containers/podman/issues/9602
|
||||||
|
rm := podmanTest.Podman([]string{"rm", "-f", "test"})
|
||||||
|
rm.WaitWithDefaultTimeout()
|
||||||
|
Expect(rm.ExitCode()).To(BeZero())
|
||||||
|
Expect(rm.ErrorToString()).To(Equal(""))
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
It("podman network connect when not running", func() {
|
It("podman network connect when not running", func() {
|
||||||
|
Reference in New Issue
Block a user