Git Product home page Git Product logo

Comments (6)

celebdor avatar celebdor commented on June 23, 2024

@Gal-Zaidman restarting the pod does not re-generate the mdns configuration, could you delete the configuration and use crictl to delete the pod? If you do, kubelet should create the pod again and that will trigger the initcontainer again.

from baremetal-runtimecfg.

stbenjam avatar stbenjam commented on June 23, 2024

This is happening even on baremetal IPI, all installs started failing for us yesterday.

In mdns-publisher, I see this:

[core@master-0 ~]$ sudo crictl logs 3ec9fcdd466c2
time="2020-01-16T14:54:21Z" level=info msg="Publishing with settings" collision_avoidance=hostname ip=192.168.111.0
time="2020-01-16T14:54:21Z" level=fatal msg="Failed to find interface for specified ip" ip=192.168.111.0

Happy to share access to the env if you'd like

from baremetal-runtimecfg.

Gal-Zaidman avatar Gal-Zaidman commented on June 23, 2024

@Gal-Zaidman restarting the pod does not re-generate the mdns configuration, could you delete the configuration and use crictl to delete the pod? If you do, kubelet should create the pod again and that will trigger the initcontainer again.

That is what we did, we stopped kubelet, removed the mdns pod, removed the file and then started the kubelet. We made sure the init container runs again

from baremetal-runtimecfg.

cybertron avatar cybertron commented on June 23, 2024

This is because net.ParseCIDR zeroes out the part of the address past the netmask. See https://play.golang.org/p/ZZcvN-JpS6A

I think we need to reconstruct the IPNet by keeping the first two return values from ParseCIDR and then packing them back together.

ip, n, _ := net.ParseCIDR("1.1.1.1/16")
n = &net.IPNet{IP: ip, Mask: n.Mask}

from baremetal-runtimecfg.

rgolangh avatar rgolangh commented on June 23, 2024

was this fixed by #42 ?

from baremetal-runtimecfg.

cybertron avatar cybertron commented on June 23, 2024

Technically it was fixed by #41, but yeah it should be working now.

from baremetal-runtimecfg.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.