Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-9842

If you disable xattr cache on client and run sanity 102n it will crash the MDS server

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.10.1, Lustre 2.11.0
    • Lustre 2.10.0, Lustre 2.11.0
    • None
    • Any lustre client
    • 3
    • 9223372036854775807

    Description

      Run the following on a client with the maloo test suite installed:

      lctl set_param llite.lustre-*.xattr_cache=0
      ONLY="102n" sh ./sanity.sh

      You will get the following crash on the MDS server:

      2017-08-07T13:55:33.198203-04:00 ninja34.ccs.ornl.gov kernel: Lustre: DEBUG MARKER: == sanity test 102n: silently ignor
      e setxattr on internal trusted xattrs ============================= 13:55:32 (1502128532)
      2017-08-07T13:55:33.734878-04:00 ninja34.ccs.ornl.gov kernel: LustreError: 28812:0:(osd_handler.c:3818:osd_xattr_get())
      ASSERTION( osd_dev(dt->do_lu.lo_dev)->od_is_ost ) failed:
      2017-08-07T13:55:33.734922-04:00 ninja34.ccs.ornl.gov kernel: LustreError: 28812:0:(osd_handler.c:3818:osd_xattr_get())
      LBUG
      2017-08-07T13:55:33.734942-04:00 ninja34.ccs.ornl.gov kernel: Pid: 28812, comm: mdt01_004
      2017-08-07T13:55:33.740968-04:00 ninja34.ccs.ornl.gov kernel: #012Call Trace:
      2017-08-07T13:55:33.749351-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffffa08e081e>] libcfs_call_trace+0x4e/0x60 [libcfs]
      2017-08-07T13:55:33.758102-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffffa08e08ac>] lbug_with_loc+0x4c/0xb0 [libcfs]
      2017-08-07T13:55:33.766438-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffffa0c65184>] osd_xattr_get+0x804/0x840 [osd_ldisk
      fs]
      2017-08-07T13:55:33.775382-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffff813217d2>] ? strlcpy+0x42/0x60
      2017-08-07T13:55:33.782529-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffffa163acbc>] lod_xattr_get+0xdc/0x6a0 [lod]
      2017-08-07T13:55:33.790618-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffffa0c5b82c>] ? osd_read_lock+0x5c/0xe0 [osd_ldisk
      fs]
      2017-08-07T13:55:33.799460-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffffa16a838b>] mdd_xattr_get+0x10b/0x360 [mdd]
      2017-08-07T13:55:33.807619-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffffa156b1ce>] mdt_getxattr+0xa4e/0x1080 [mdt]
      2017-08-07T13:55:33.824972-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffffa12731e2>] ? lustre_msg_get_transno+0x22/0xf0 [
      ptlrpc]
      2017-08-07T13:55:33.825006-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffffa15554bc>] mdt_tgt_getxattr+0x1c/0x30 [mdt]
      2017-08-07T13:55:33.841968-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffffa12d797d>] tgt_request_handle+0xa3d/0x1310 [ptl
      rpc]
      2017-08-07T13:55:33.842003-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffffa12802de>] ptlrpc_server_handle_request+0x28e/0
      xa30 [ptlrpc]
      2017-08-07T13:55:33.851568-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffff810ba628>] ? __wake_up_common+0x58/0x90
      2017-08-07T13:55:33.859338-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffffa1284250>] ptlrpc_main+0xaa0/0x1de0 [ptlrpc]
      2017-08-07T13:55:33.875537-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffffa12837b0>] ? ptlrpc_main+0x0/0x1de0 [ptlrpc]
      2017-08-07T13:55:33.875571-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffff810b0a4f>] kthread+0xcf/0xe0
      2017-08-07T13:55:33.882185-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffff810b0980>] ? kthread+0x0/0xe0
      2017-08-07T13:55:33.888871-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffff81697418>] ret_from_fork+0x58/0x90
      2017-08-07T13:55:33.895964-04:00 ninja34.ccs.ornl.gov kernel: [<ffffffff810b0980>] ? kthread+0x0/0xe0

      Attachments

        Activity

          People

            yong.fan nasf (Inactive)
            simmonsja James A Simmons
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: