[SPDK] Re: spdk doesn't seem to recognize the drive in container with unprivileged mode

Luse, Paul E <paul.e.luse at intel.com>
Newsgroups dev.linux.lists.spdk
Message-ID <[email protected]>
Hi,

Saw your note on Slack, that's probably a better place to have the discussion.  Will get back to you over there shortly...

Thanks!
Paul

On 7/23/20, 10:50 AM, "Pharthiphan Asokan" <pharthiphan(a)gmail.com> wrote:

    Hi Folks,

    I am trying to run k8s pod with unprivileged mode but spdk doesn't seem to
    recognize the drive but the vfio device seems to be present on the pod.

    nvme.c: 609:spdk_nvme_probe_internal: *ERROR*: NVMe ctrlr scan failed
    bdev_nvme.c:1766:spdk_bdev_nvme_create: *ERROR*: No controller was found
    with provided trid (traddr: 0000:88:00.0)

    $ kubectl exec -it pod-0 /bin/bash
    $ ls -ld /dev/vfio/91
    crw------- 1 root root 241, 10 Jul 16 14:44 /dev/vfio/91
    $ readlink /sys/bus/pci/devices/0000\:88\:00.0/iommu_group
    ../../../../../../kernel/iommu_groups/91

    Note:- with privilege mode there are no issues
    _______________________________________________
    SPDK mailing list -- spdk(a)lists.01.org
    To unsubscribe send an email to spdk-leave(a)lists.01.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.