Giter Club home page Giter Club logo

core-network's People

Contributors

jptmoore avatar seveneng avatar toshbrown avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

core-network's Issues

getaddrinfo ENOTFOUND from container manager proxy

I've been trying to track this down for a while, but it appears to be an issue with the core-network dns resolver. To repeat:

./start-databox
install driver-os-monitor
install app-os-monitor

Then go to the app-os-monitor ui (you will see the odd error in the cm logs "ERROR: /app-os-monitor/ui/load.png?rand=0.7721667057062178 getaddrinfo ENOTFOUND app-os-monitor app-os-monitor:8080" but it mostly works)

then:

docker exec -it [container-manager id] sh
# nslookup app-os-monitor 10.0.0.3 (this should work)
# for i in `seq 1 10`; do echo "### $i ###"; nslookup app-os-monitor 10.0.0.3; done (this causes the falure)

from this point on dns resolution is completely broken 

If I increase the core-network dns log level I see a lot of resolve app-os-monitor later... not sure if this is related but looks odd.

t.privileged not updated in policy.substitute

    Log.info (fun m -> m "Policy.substititue %a for %a" pp_ip old_ip pp_ip new_ip) >>= fun () ->
    if PrivilegedSet.mem (SrcIP old_ip) t.privileged then begin
      PrivilegedSet.remove (SrcIP old_ip) t.privileged
      |> PrivilegedSet.add (SrcIP new_ip)
--    |> fun npriv -> t.privileged <- t.privileged end;

It appears that the last line should be fun npriv -> t.privileged <- npriv since npriv is the accumulation of all the changes above it.

(additionally subsequently matching is done on the old_ip to update it, should it not match on name?)

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.