Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openshift is configured with the sriov network card, but the network card cannot be seen in the pod. But it can be seen in the yaml configuration #8047

Open
wangkai111111 opened this issue Feb 20, 2024 · 2 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@wangkai111111
Copy link

wangkai111111 commented Feb 20, 2024

version:4.14.0
Phenomenon:
------------------------------------------------------------------------------------------------------------------------------
root@nginx-pod:/# ip ad
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0@if172: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1400 qdisc noqueue state UP group default 
    link/ether 0a:58:0a:81:08:9c brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 10.129.8.156/23 brd 10.129.9.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::858:aff:fe81:89c/64 scope link 
       valid_lft forever preferred_lft forever
root@nginx-pod:/# 
------------------------------------------------------------------------------------------------------------------------------
yaml
------------------------------------------------------------------------------------------------------------------------------
kind: Pod
apiVersion: v1
metadata:
  name: nginx-pod
  uid: 4e3f9d71-93eb-4d23-805a-ca7ba90c2cbd
  resourceVersion: '89212580'
  creationTimestamp: '2024-02-20T06:33:22Z'
  labels:
    app: nginx-pod
  annotations:
    k8s.ovn.org/pod-networks: >-
      {"default":{"ip_addresses":["10.129.8.156/23"],"mac_address":"0a:58:0a:81:08:9c","gateway_ips":["10.129.8.1"],"routes":[{"dest":"10.129.0.0/16","nextHop":"10.129.8.1"},{"dest":"172.101.0.0/16","nextHop":"10.129.8.1"},{"dest":"100.64.0.0/16","nextHop":"10.129.8.1"}],"ip_address":"10.129.8.156/23","gateway_ip":"10.129.8.1"}}
    k8s.v1.cni.cncf.io/network-status: |-
      [{
          "name": "ovn-kubernetes",
          "interface": "eth0",
          "ips": [
              "10.129.8.156"
          ],
          "mac": "0a:58:0a:81:08:9c",
          "default": true,
          "dns": {}
      },{
          "name": "eth-network",
          "interface": "net1",
          "ips": [
              "172.16.19.177"
          ],
          "mac": "3e:56:47:9b:91:85",
          "dns": {},
          "device-info": {
              "type": "pci",
              "version": "1.1.0",
              "pci": {
                  "pci-address": "0000:1a:0a.2"
              }
          },
          "gateway": [
              "\u003cnil\u003e"
          ]
      }]
    k8s.v1.cni.cncf.io/networks: eth-network
    openshift.io/scc: anyuid
------------------------------------------------------------------------------------------------------------------------------


@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 20, 2024
@openshift-bot
Copy link
Contributor

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

2 participants