Skip to content

test/lsm_test.sh encountering error: exportfs: can't open /var/lib/nfs/etab for reading #107

@tasleson

Description

@tasleson

When running the test/lsm_test.sh we encounter:

export_fs:
  - msg: "PLUGIN_BUG(2): Got error 1 from targetd: RuntimeError: Unexpected exit code\
      \ \"['exportfs', '-o', 'ro,anonuid=-1,anongid=-1', '192.168.2.1:/mnt/btrfs/targetd_fs/RADK_fs_CXMQ']\"\
      \ 1, out= :exportfs: can't open /var/lib/nfs/etab for reading\n "
    rc: false
    stack_trace: "Traceback (most recent call last):\n  File \"/tmp/libstoragemgmt/test/plugin_test.py.in\"\
      , line 216, in present\n    rc = getattr(self.o, _proxy_method_name)(*args,\
      \ **kwargs)\n  File \"/usr/lib64/python3.13/site-packages/lsm/_common.py\",\
      \ line 591, in inner\n    r = func(*args, **kwargs)\n  File \"/usr/lib64/python3.13/site-packages/lsm/_client.py\"\
      , line 1061, in export_fs\n    return self._tp.rpc('export_fs', _del_self(locals()))\n\
      \           ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib64/python3.13/site-packages/lsm/_transport.py\"\
      , line 149, in rpc\n    (reply, msg_id) = self.read_resp()\n               \
      \       ~~~~~~~~~~~~~~^^\n  File \"/usr/lib64/python3.13/site-packages/lsm/_transport.py\"\
      , line 182, in read_resp\n    raise LsmError(**e)\nlsm._common.LsmError: PLUGIN_BUG(2):\
      \ Got error 1 from targetd: RuntimeError: Unexpected exit code \"['exportfs',\
      \ '-o', 'ro,anonuid=-1,anongid=-1', '192.168.2.1:/mnt/btrfs/targetd_fs/RADK_fs_CXMQ']\"\
      \ 1, out= :exportfs: can't open /var/lib/nfs/etab for reading\n \n"

according to this the problem stems from not starting the nfs-server at least once, which creates /var/lib/nfs/etab

Manually starting & stoping nfs-server did indeed allow us to run the test/lsm_test.sh without errors.

We need to update the test scripts to do this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions