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

error messages that do not stop with newline

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • None
    • Lustre 2.12.6
    • 9223372036854775807

    Description

      When I am using grep to check how many CERROR in the codes, I found there are still a dozen of error messages that do not end with a newline. That will cause annoying messages in system log.

      lnet/klnds/gnilnd/gnilnd_cb.c(2378):

      			CERROR("Unexpected connstamp %#llx(%#llx expected)"
      				" from %s", rxmsg->gnm_connstamp,
      				found_conn->gnc_peer_connstamp,
      				libcfs_nid2str(peer->gnp_nid));
      

      lnet/klnds/gnilnd/gnilnd_conn.c(867):

      			CERROR("Looking up network: device is in shutdown");
      

      lustre/ptlrpc/service.c(731):

      				CERROR("%s: invalid CPT pattern string: %s",
      				       conf->psc_name, cconf->cc_pattern);
      

      lustre/ptlrpc/ptlrpcd.c(754):

      			CERROR("%s: invalid CPT pattern string: %s",
      			       "ptlrpcd_cpts", ptlrpcd_cpts);
      

      lustre/include/lustre_dlm.h(1159):

      			CERROR("lock %p: delayed lvb init failed (rc %d)",
      			       lock, rc);
      

      lustre/quota/qmt_lock.c(761):

      		CERROR("%s: failed to init env.", qmt->qmt_svname);
      

      lustre/osd-ldiskfs/osd_handler.c(2377):

      				CERROR("%s: unsupported checksum type of "
      				       "T10PI type '%s'",
      				       d->od_svname, name);
      

      lustre/osd-ldiskfs/osd_handler.c(2382):

      			CERROR("%s: unsupported T10PI type '%s'",
      			       d->od_svname, name);
      

      lustre/target/tgt_handler.c(945):

      		CERROR("No target passed");
      

      lustre/obdclass/lprocfs_status.c(78):

      		CERROR("LprocFS: No memory to create <debugfs> entry %s", name);
      

      Attachments

        Issue Links

          Activity

            [LU-14431] error messages that do not stop with newline
            adilger Andreas Dilger made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Reopened [ 4 ] New: Resolved [ 5 ]

            I've gone through and used strikeout on the messages that have already been fixed. There are still a few that could be done before closing the ticket.

            adilger Andreas Dilger added a comment - I've gone through and used strikeout on the messages that have already been fixed. There are still a few that could be done before closing the ticket.
            adilger Andreas Dilger made changes -
            Description Original: When I am using grep to check how many CERROR in the codes, I found there are still a dozen of error messages that do not end with a newline. That will cause annoying messages in system log.

            {noformat}
            lnet/klnds/gnilnd/gnilnd_cb.c(2378):
            CERROR("Unexpected connstamp %#llx(%#llx expected)"
            " from %s", rxmsg->gnm_connstamp,
            found_conn->gnc_peer_connstamp,
            libcfs_nid2str(peer->gnp_nid));
            lnet/klnds/gnilnd/gnilnd_conn.c(867):
            CERROR("Looking up network: device is in shutdown");
            lustre/ptlrpc/service.c(731):
            CERROR("%s: invalid CPT pattern string: %s",
            conf->psc_name, cconf->cc_pattern);
            lustre/ptlrpc/ptlrpcd.c(754):
            CERROR("%s: invalid CPT pattern string: %s",
            "ptlrpcd_cpts", ptlrpcd_cpts);
            lustre/include/lustre_dlm.h(1159):
            CERROR("lock %p: delayed lvb init failed (rc %d)",
            lock, rc);
            lustre/quota/qmt_lock.c(761):
            CERROR("%s: failed to init env.", qmt->qmt_svname);
            lustre/osd-ldiskfs/osd_handler.c(2377):
            CERROR("%s: unsupported checksum type of "
            "T10PI type '%s'",
            d->od_svname, name);
            lustre/osd-ldiskfs/osd_handler.c(2382):
            CERROR("%s: unsupported T10PI type '%s'",
            d->od_svname, name);
            lustre/target/tgt_handler.c(945):
            CERROR("No target passed");
            lustre/obdclass/lprocfs_status.c(78):
            CERROR("LprocFS: No memory to create <debugfs> entry %s", name);
            {noformat}
            New: When I am using grep to check how many CERROR in the codes, I found there are still a dozen of error messages that do not end with a newline. That will cause annoying messages in system log.

            -lnet/klnds/gnilnd/gnilnd_cb.c(2378):-
            {noformat}
            CERROR("Unexpected connstamp %#llx(%#llx expected)"
            " from %s", rxmsg->gnm_connstamp,
            found_conn->gnc_peer_connstamp,
            libcfs_nid2str(peer->gnp_nid));
            {noformat}
            -lnet/klnds/gnilnd/gnilnd_conn.c(867):-
            {noformat}
            CERROR("Looking up network: device is in shutdown");
            {noformat}
            -lustre/ptlrpc/service.c(731):-
            {noformat}
            CERROR("%s: invalid CPT pattern string: %s",
            conf->psc_name, cconf->cc_pattern);
            {noformat}
            -lustre/ptlrpc/ptlrpcd.c(754):-
            {noformat}
            CERROR("%s: invalid CPT pattern string: %s",
            "ptlrpcd_cpts", ptlrpcd_cpts);
            {noformat}
            -lustre/include/lustre_dlm.h(1159):-
            {noformat}
            CERROR("lock %p: delayed lvb init failed (rc %d)",
            lock, rc);
            {noformat}
            -lustre/quota/qmt_lock.c(761):-
            {noformat}
            CERROR("%s: failed to init env.", qmt->qmt_svname);
            {noformat}
            -lustre/osd-ldiskfs/osd_handler.c(2377):-
            {noformat}
            CERROR("%s: unsupported checksum type of "
            "T10PI type '%s'",
            d->od_svname, name);
            {noformat}
            -lustre/osd-ldiskfs/osd_handler.c(2382):-
            {noformat}
            CERROR("%s: unsupported T10PI type '%s'",
            d->od_svname, name);
            {noformat}
            -lustre/target/tgt_handler.c(945):-
            {noformat}
            CERROR("No target passed");
            {noformat}
            -lustre/obdclass/lprocfs_status.c(78):-
            {noformat}
            CERROR("LprocFS: No memory to create <debugfs> entry %s", name);
            {noformat}
            pjones Peter Jones made changes -
            Fix Version/s Original: Lustre 2.15.0 [ 14791 ]
            adilger Andreas Dilger made changes -
            Resolution Original: Fixed [ 1 ]
            Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

            I think there is still more to be done here.

            adilger Andreas Dilger added a comment - I think there is still more to be done here.
            pjones Peter Jones made changes -
            Fix Version/s New: Lustre 2.15.0 [ 14791 ]
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            pjones Peter Jones added a comment -

            Landed for 2.15

            pjones Peter Jones added a comment - Landed for 2.15

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41723/
            Subject: LU-14431 log: Add ending newline for some messages.
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 503bf7f29a49914082480a7cdceb914e42a95dd8

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41723/ Subject: LU-14431 log: Add ending newline for some messages. Project: fs/lustre-release Branch: master Current Patch Set: Commit: 503bf7f29a49914082480a7cdceb914e42a95dd8

            The current patch missed a few so another patch will be coming.

            simmonsja James A Simmons added a comment - The current patch missed a few so another patch will be coming.

            People

              flei Feng Lei
              lixi_wc Li Xi
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: