Code Monkey home page Code Monkey logo

Comments (8)

ahalimx86 avatar ahalimx86 commented on May 20, 2024

@zshi-redhat I suspect the VFs are in DPDK mode or there's no IPAM config in the net CRD, can you please confirm?

from sriov-cni.

vpickard avatar vpickard commented on May 20, 2024

I see the same for network status, and this is a pod where the VFs are in DPDK mode.

But, we still need this info (especially MAC) for DPDK mode so that the app can use the MAC assigned to the VF and not have to disable spoof checking on the VF.

[root@vpickard-k8s deployments]# kubectl describe pod pod-dpdk
Name: pod-dpdk
Namespace: default
Priority: 0
PriorityClassName:
Node: nfvsdn-20.oot.lab.eng.rdu2.redhat.com/10.8.125.30
Start Time: Mon, 01 Jul 2019 23:44:13 +0000
Labels:
Annotations: k8s.v1.cni.cncf.io/networks: sriov-net1, sriov-net1
k8s.v1.cni.cncf.io/networks-status:
[{
"name": "cbr0",
"ips": [
"10.244.1.120"
],
"default": true,
"dns": {}
},{
"name": "sriov-network",
"dns": {}
},{
"name": "sriov-network",
"dns": {}
}]
Status: Running
IP: 10.244.1.120

from sriov-cni.

mJace avatar mJace commented on May 20, 2024

Same here,
This happened when I upgrade my sriov-cni from v1.0 to v2.1.
And all the rest of the plugin version is the same. The only one difference is sriov-cni version.
The ifconfig in my pod is able to show vf IP, but not annotation for sriov-cni v2.1.

root@testpod2:/# ifconfig 
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1450
        inet 10.233.65.6  netmask 255.255.255.0  broadcast 0.0.0.0
        ether 0a:58:0a:e9:41:06  txqueuelen 0  (Ethernet)
        RX packets 12487  bytes 18099068 (18.0 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8424  bytes 561254 (561.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

sriov-a: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.56.217.171  netmask 255.255.255.0  broadcast 0.0.0.0
        ether 7e:f0:99:7e:f6:b2  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

@ahalim-intel My VF is not in DPDK mode.
And here is my net-attach-def

apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
  name: sriov-net-a
  annotations:
    k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_pool
spec:
  config: '{
  "type": "sriov",
  "vlan": 1000,
  "if0name": "sriov-a",
  "ipam": {
    "type": "host-local",
    "subnet": "10.56.217.0/24",
    "rangeStart": "10.56.217.171",
    "rangeEnd": "10.56.217.181",
    "routes": [{
      "dst": "0.0.0.0/0"
    }],
    "gateway": "10.56.217.1"
    }
  }'

from sriov-cni.

ahalimx86 avatar ahalimx86 commented on May 20, 2024

@mJace, @vpickard For network status to work properly you need to add "cniVersion": "0.3.1" in your network CR.
Please see the sample CR here.

As a side note "if0name" field is deprecated in latest sriov-cni.

from sriov-cni.

mJace avatar mJace commented on May 20, 2024

@ahalim-intel Thank you.
Adding cniVersion works!

from sriov-cni.

vpickard avatar vpickard commented on May 20, 2024

@ahalim-intel Thanks!

from sriov-cni.

killianmuldoon avatar killianmuldoon commented on May 20, 2024

@zshi-redhat we can close this, right?

from sriov-cni.

zshi-redhat avatar zshi-redhat commented on May 20, 2024

@zshi-redhat we can close this, right?

Yes, I don't see this issue anymore with latest sriov-cni when cniVersion is set correctly.

from sriov-cni.

Related Issues (20)

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.