kubevirt / kubevirt

Kubernetes Virtualization API and runtime in order to define and manage virtual machines.
https://kubevirt.io
Apache License 2.0
5.62k stars 1.34k forks source link

Kubevirt 0.46 - "status.interface" of SRIOV network is missing #6668

Closed talcoh2x closed 2 years ago

talcoh2x commented 3 years ago

on Kubevirt 0.46 status.interface does not appear and show me only "name": sriov i can tell you that on release version 0.43 and 0.45.1 all is working fine.

BUG REPORT:

/kind bug

What happened: status.interface is missing and include only "name"

What you expected to happen: I expect to see status.interface info

How to reproduce it (as minimally and precisely as possible): install Kubevirt 0.46 create VMI + SRIOV network interface and run "describe vmi "

0.46 image

0.45.1 image

Anything else we need to know?:

Environment:

ormergi commented 3 years ago

Hi, could you please share the VMI manifest you used on both versions?

talcoh2x commented 3 years ago
         "spec": {
                "domain": {
                    "cpu": {
                        "cores": 26,
                        "dedicatedCpuPlacement": true,
                        "model": "host-passthrough",
                        "numa": {
                            "guestMappingPassthrough": {}
                        },
                        "sockets": 2,
                        "threads": 2
                    },
                    "devices": {
                        "blockMultiQueue": true,
                        "disks": [
                            {
                                "dedicatedIOThread": true,
                                "disk": {
                                    "bus": "virtio"
                                },
                                "name": "localdisk"
                            },
                            {
                                "disk": {
                                    "bus": "virtio"
                                },
                                "name": "cloud-init"
                            }
                        ],
                        "filesystems": [
                            {
                                "name": "disk0",
                                "virtiofs": {}
                            }
                        ],
                        "gpus": [
                            {
                                "deviceName": "habana.ai/gaudi",
                                "name": "gpu0"
                            },
                            {
                                "deviceName": "habana.ai/gaudi",
                                "name": "gpu1"
                            },
                            {
                                "deviceName": "habana.ai/gaudi",
                                "name": "gpu2"
                            },
                            {
                                "deviceName": "habana.ai/gaudi",
                                "name": "gpu3"
                            }
                        ],
                        "interfaces": [
                            {
                                "name": "sriov-net",
                                "sriov": {}
                            }
                        ],
                        "networkInterfaceMultiqueue": true
                    },
                    "features": {
                        "acpi": {
                            "enabled": true
                        }
                    },
                    "firmware": {
                        "uuid": "5df412aa-4bc4-5676-8e19-b8bf6fc5606e"
                    },
                    "ioThreadsPolicy": "auto",
                    "machine": {
                        "type": "q35"
                    },
                    "memory": {
                        "guest": "630Gi",
                        "hugepages": {
                            "pageSize": "2Mi"
                        }
                    },
                    "resources": {
                        "requests": {
                            "memory": "660Gi"
                        }
                    }
                },
                "networks": [
                    {
                        "multus": {
                            "networkName": "habana/sriov-net"
                        },
                        "name": "sriov-net"
                    }
                ],
                "nodeSelector": {
                    "habana.ai/qa.nightly": "false",
                    "habana.ai/schedulable": "true"
                },
                "terminationGracePeriodSeconds": 0,
                "volumes": [
                    {
                        "name": "localdisk",
                        "persistentVolumeClaim": {
                            "claimName": "dpitossi-habana-i3uw-pvc"
                        }
                    },
                    {
                        "name": "disk0",
                        "persistentVolumeClaim": {
                            "claimName": "ccache-volume-pvc"
                        }
                    },
                    {
                        "cloudInitNoCloud": {
                            "userData": "#cloud-config\nhostname: i-habana-i3uw-vm\nruncmd:\n- [sudo, mount, -a]\n- [wget, -O, \"/etc/auto.home\" ,\"https://atofs/auto.home\"]\n- [sudo, systemctl, restart, autofs.service]"
                        },
                        "name": "cloud-init"
                    }
                ]
            },
talcoh2x commented 3 years ago

@ormergi

ormergi commented 3 years ago

@talcoh2x I am not sure why it doesnt appear on the system you work with, could you please try with kubectl get vmi <name> -o yaml?

EdDev commented 2 years ago

@talcoh2x I think that the problem you are seeing originates from the fact that the guest-agent is not active in the guest (or there is a problem with communicating to it).

Currently, SR-IOV interfaces are reported only by the guest-agent. But work is undergoing to resolve this. See #7050 for more information.

Try to confirm the guest-agent is active and let us know if it got resolved.

EdDev commented 2 years ago

/assign EdDev

EdDev commented 2 years ago

@talcoh2x , we are closing this issue. You are welcome to re-open it when you have more info.

/close

kubevirt-bot commented 2 years ago

@EdDev: Closing this issue.

In response to [this](https://github.com/kubevirt/kubevirt/issues/6668#issuecomment-1019442650): >@talcoh2x , we are closing this issue. You are welcome to re-open it when you have more info. > >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.