• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

noironetworks / opflex / 315
68%

Build:
DEFAULT BRANCH: master
Ran 26 Apr 2020 06:39AM UTC
Jobs 1
Files 253
Run time 18s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
315

push

travis-ci

gautvenk
Support for nodeport stats with service-pod granularity

- When a LB service is configured in k8s, external ip, cluster ip and nodeport gets allocated. This will also lead to creation of 2 service files by host-agent - 1 external (ext-LB) and 1 non-external (nodeport+cluster). Both will have nodeport set by host-agent.
- A nodePort service will have a cluster IP allocated as well, so we need to support E-W stats for nodePort services as well.
- A cluster service will have just cluster IP allocated; nodeport wont be set.
- Since both cluster and nodeport stats flows are created for the same service file, both the stats are housed under svc-target and svc counter mo.
- Since the non-external service file service-pods (next hops) are a super-set of the external service file's service-pods (only local to the node), node port flows get created only for "non-external" services. Also, this will cover pure node-port services in k8s.
- nodeport stats will get reported whenever there is traffic from "node ip subnet" <--> service-pod.
- optimization: avoided creation of pod<-->svc flows between veth_host_ac and service
- veth host add/delete/modify will lead to updation of these nodeport stats flows.
- Added vethhostac as a new endpoint. Added nodeport stats related tests and other associated tests for veth_host_ac in make check.
- Verified in local environment and tested service-pod add/mod/del; service add/mod/del and vethhostac add/mod/del.
- Will be creating a nodeport service and test further on vagrant setup.

TODO (will be done in followup commit):
Optimization: Need to integrate new service attribute changes (service-type and actual nodeport value (no-op for now)). The stats flows between node <--> service-pod can be avoided if only service-type=cluster services is created.

new flows (veth_host_ac ip is 1.100.201.1/24):
cookie=0x4, duration=79610.812s, table=13, n_packets=0, n_bytes=0, send_flow_rem priority=98,tcp,nw_src=10.0.0.2,nw_dst=1.100.201.0/24,... (continued)

19894 of 26547 relevant lines covered (74.94%)

3389.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 315.1 26 Apr 2020 06:39AM UTC 0
74.94
Travis Job 315.1
Source Files on build 315
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #315
  • 870325d4 on github
  • Prev Build on master (#314)
  • Next Build on master (#316)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc