Comments (8)
@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.
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.
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.
@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.
@ahalim-intel Thank you.
Adding cniVersion works!
from sriov-cni.
@ahalim-intel Thanks!
from sriov-cni.
@zshi-redhat we can close this, right?
from sriov-cni.
@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)
- Can this plugin be used with Docker containers? If Yes, please point to the documentation. HOT 2
- with DPDK userspace driver config, how to attach the dummy interface inside the container HOT 2
- go versrion 1.19 bulid error HOT 3
- Request: publish a new release HOT 13
- Multidevice network ordering and network to device mapping not clearly documented. HOT 2
- CNI CMD Add - Avoid relying on err var in cleanup
- Does sriov-cni still support Kubernetes 1.10-1.22? HOT 3
- Build error with go.1.20 HOT 4
- GetPfName here uncorrectly, when enable representor interface HOT 3
- Question: differences from host-device plugin? HOT 3
- sriov-cni del doesn't work when there is altName on the interace HOT 6
- github workflow for static analysis to run lint using "make lint" command HOT 2
- sriov-cni build is not idempotent HOT 6
- Feature to specify VFs range to SRIOV HOT 4
- Validate cache file exist before cmdDel procedure HOT 1
- sriov-cni plugin silently throws away issues with LoadConfFromCache HOT 2
- Regression (commit 6217a32b62352c4ca506e7dc28ea886f2f1e9ecc) i.c.w. SRIOV operator HOT 2
- SRIOV-CNI failed to configure VF "failed to set vf 0 vlan configuration - id 0, qos 0 and proto 802.1q: operation not supported" HOT 8
- feature: Allow configuration of num_queues for vf HOT 6
- Skip setting VLAN ID when VLAN is 0 - breaks on VF trunk policy HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sriov-cni.