aporeto-inc / trireme-lib

Simple, scalable and secure application segmentation
https://trireme.io
Apache License 2.0
300 stars 51 forks source link

Fix init sequence where CNIs are not complete with IP address allocation #889

Closed dstiliadis closed 5 years ago

dstiliadis commented 5 years ago

Fixes the initialization of the local interfaces and makes sure we recover from this even if the CNIs are not ready when we are ready.

dstiliadis commented 5 years ago

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0

[
  {
    "project": "",
    "component": "trireme-lib",
    "pr-id": "889",
    "commit-sha": "936de0ccc6a56d1bfa66aae9eddad69cabb6498b"
  },
  {
    "project": "",
    "component": "enforcerd",
    "pr-id": "1426",
    "commit-sha": "cd6f9d72be3bea8be8b7e94b8bcbd6c3d305f8d8"
  }
]
codecov[bot] commented 5 years ago

Codecov Report

Merging #889 into master will decrease coverage by 0.08%. The diff coverage is 4.76%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #889      +/-   ##
==========================================
- Coverage   55.94%   55.85%   -0.09%     
==========================================
  Files         110      110              
  Lines       11034    11051      +17     
==========================================
  Hits         6173     6173              
- Misses       4263     4280      +17     
  Partials      598      598
Impacted Files Coverage Δ
...enforcer/applicationproxy/markedconn/markedconn.go 42.63% <0%> (ø) :arrow_up:
...nal/enforcer/applicationproxy/protomux/protomux.go 2.17% <0%> (-0.31%) :arrow_down:
monitor/internal/kubernetes/handler.go 70.21% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update e6b60b0...8ac9e89. Read the comment docs.

dstiliadis commented 5 years ago

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0

[
  {
    "project": "",
    "component": "enforcerd",
    "pr-id": "1426",
    "commit-sha": "cd6f9d72be3bea8be8b7e94b8bcbd6c3d305f8d8"
  },
  {
    "project": "",
    "component": "trireme-lib",
    "pr-id": "889",
    "commit-sha": "c81d8458d12e9fe3d20c16f13897a326e7d44d61"
  }
]
dstiliadis commented 5 years ago

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0

[
  {
    "project": "",
    "component": "trireme-lib",
    "pr-id": "889",
    "commit-sha": "c81d8458d12e9fe3d20c16f13897a326e7d44d61"
  },
  {
    "project": "",
    "component": "enforcerd",
    "pr-id": "1426",
    "commit-sha": "78fb33586d12033cd268d0ad7a4edcdc28ac9110"
  }
]
dstiliadis commented 5 years ago

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0

[
  {
    "project": "",
    "component": "enforcerd",
    "pr-id": "1426",
    "commit-sha": "9e963c9c6d03c6451d0de53a1a5df32eec5a426e"
  },
  {
    "project": "",
    "component": "trireme-lib",
    "pr-id": "889",
    "commit-sha": "c81d8458d12e9fe3d20c16f13897a326e7d44d61"
  }
]
dstiliadis commented 5 years ago

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0

[
  {
    "project": "",
    "component": "trireme-lib",
    "pr-id": "889",
    "commit-sha": "c81d8458d12e9fe3d20c16f13897a326e7d44d61"
  },
  {
    "project": "",
    "component": "enforcerd",
    "pr-id": "1426",
    "commit-sha": "9e963c9c6d03c6451d0de53a1a5df32eec5a426e"
  }
]
dstiliadis commented 5 years ago

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0

[
  {
    "project": "",
    "component": "trireme-lib",
    "pr-id": "889",
    "commit-sha": "c81d8458d12e9fe3d20c16f13897a326e7d44d61"
  },
  {
    "project": "",
    "component": "enforcerd",
    "pr-id": "1426",
    "commit-sha": "9e963c9c6d03c6451d0de53a1a5df32eec5a426e"
  }
]
dstiliadis commented 5 years ago

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0

[
  {
    "project": "",
    "component": "trireme-lib",
    "pr-id": "889",
    "commit-sha": "8ac9e892e9588aa445a3386202799eba6589fed1"
  },
  {
    "project": "",
    "component": "enforcerd",
    "pr-id": "1426",
    "commit-sha": "4c7e49e3ba13e114af1ddb94b53e7c5345a7faa8"
  }
]
dstiliadis commented 5 years ago

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0

[
  {
    "project": "",
    "component": "trireme-lib",
    "pr-id": "889",
    "commit-sha": "8ac9e892e9588aa445a3386202799eba6589fed1"
  },
  {
    "project": "",
    "component": "enforcerd",
    "pr-id": "1426",
    "commit-sha": "d72e6e79cf5136ccc111256398f5fe6cef30e65f"
  }
]
dstiliadis commented 5 years ago

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0

[
  {
    "project": "",
    "component": "trireme-lib",
    "pr-id": "889",
    "commit-sha": "8ac9e892e9588aa445a3386202799eba6589fed1"
  },
  {
    "project": "",
    "component": "enforcerd",
    "pr-id": "1426",
    "commit-sha": "d105e0fc0725fd7f878ac4a6c353798a6a5d3c97"
  }
]
dstiliadis commented 5 years ago

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0

[
  {
    "project": "",
    "component": "trireme-lib",
    "pr-id": "889",
    "commit-sha": "8ac9e892e9588aa445a3386202799eba6589fed1"
  },
  {
    "project": "",
    "component": "enforcerd",
    "pr-id": "1426",
    "commit-sha": "f1321fd165440b6e56a1fd9709b31bf1f150d13a"
  }
]
dstiliadis commented 5 years ago

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0

[
  {
    "project": "",
    "component": "trireme-lib",
    "pr-id": "889",
    "commit-sha": "8ac9e892e9588aa445a3386202799eba6589fed1"
  },
  {
    "project": "",
    "component": "enforcerd",
    "pr-id": "1426",
    "commit-sha": "05ffdcd11bc73adccde954b641591ad327ee2b73"
  }
]
dstiliadis commented 5 years ago

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0

[
  {
    "project": "",
    "component": "trireme-lib",
    "pr-id": "889",
    "commit-sha": "8ac9e892e9588aa445a3386202799eba6589fed1"
  },
  {
    "project": "",
    "component": "enforcerd",
    "pr-id": "1426",
    "commit-sha": "6dd85e0d06c3660d7672d801ae2ae838491a9b3a"
  }
]