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

add ability for named Changelog consumers

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.12.8, Lustre 2.15.0
    • None
    • None
    • 9223372036854775807

    Description

      Currently Lustre Changelog consumers are always named e.g. "cl1" or "cl14". It would be useful to be able to declare the changelog username (e.g. "cl-rbh" or "cl-audit") so that it is clear who the Changelog users are, and to avoid duplicate changelog registrations. Otherwise, it can happen that the original Changelog user registration can be lost, and the application registers a new user, and the old user causes the Changelog records to accumulate.

      Attachments

        Issue Links

          Activity

            [LU-13055] add ability for named Changelog consumers

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/43710/
            Subject: LU-13055 mdd: don't assert on unknown changelog lrh_type
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set:
            Commit: 7759078c2be6df278bcdfab3eced738496f87331

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/43710/ Subject: LU-13055 mdd: don't assert on unknown changelog lrh_type Project: fs/lustre-release Branch: b2_12 Current Patch Set: Commit: 7759078c2be6df278bcdfab3eced738496f87331

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/44022/
            Subject: LU-13055 doc: update changelog manpages
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 393885c027793d27ec948fd4fccb47aa530d2bf8

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/44022/ Subject: LU-13055 doc: update changelog manpages Project: fs/lustre-release Branch: master Current Patch Set: Commit: 393885c027793d27ec948fd4fccb47aa530d2bf8

            Mike Pershin (mpershin@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/44404
            Subject: LU-13055 changelog: use default mask if server has no mask
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 17994d3fd5f294931ab30289c0dd565d08fb89ec

            gerrit Gerrit Updater added a comment - Mike Pershin (mpershin@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/44404 Subject: LU-13055 changelog: use default mask if server has no mask Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 17994d3fd5f294931ab30289c0dd565d08fb89ec

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43380/
            Subject: LU-13055 mdd: per-user changelog names and mask
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: a15eb4f13224e148810015896101b2950c85adff

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43380/ Subject: LU-13055 mdd: per-user changelog names and mask Project: fs/lustre-release Branch: master Current Patch Set: Commit: a15eb4f13224e148810015896101b2950c85adff

            Mike Pershin (mpershin@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/44022
            Subject: LU-13055 doc: update changelog manpages
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 7bdb0af8f93a70ebf7f465da6c0ca49109aae723

            gerrit Gerrit Updater added a comment - Mike Pershin (mpershin@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/44022 Subject: LU-13055 doc: update changelog manpages Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 7bdb0af8f93a70ebf7f465da6c0ca49109aae723

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43741/
            Subject: LU-13055 libcfs: allow comma-separated masks
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 6b6fde1026311a28595ea43af56392ca6ad24d79

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43741/ Subject: LU-13055 libcfs: allow comma-separated masks Project: fs/lustre-release Branch: master Current Patch Set: Commit: 6b6fde1026311a28595ea43af56392ca6ad24d79

            Mike Pershin (mpershin@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/43892
            Subject: LU-13055 mdd: make current changelog mask writable
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 11e30ad4770811df392870e09a92dda022574ee6

            gerrit Gerrit Updater added a comment - Mike Pershin (mpershin@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/43892 Subject: LU-13055 mdd: make current changelog mask writable Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 11e30ad4770811df392870e09a92dda022574ee6

            Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/43741
            Subject: LU-13055 libcfs: allow comma-separated masks
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 17ed95152ff513dcfe4c1a8f36e66b8bfeeba895

            gerrit Gerrit Updater added a comment - Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/43741 Subject: LU-13055 libcfs: allow comma-separated masks Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 17ed95152ff513dcfe4c1a8f36e66b8bfeeba895

            Mike Pershin (mpershin@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/43710
            Subject: LU-13055 mdd: don't assert on unknown changelog lrh_type
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set: 1
            Commit: 1259811054a0e41f7fe646e8ad05307d693549f7

            gerrit Gerrit Updater added a comment - Mike Pershin (mpershin@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/43710 Subject: LU-13055 mdd: don't assert on unknown changelog lrh_type Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: 1259811054a0e41f7fe646e8ad05307d693549f7

            Patch is updated. For now name uniqueness is not provided, if you think it must be - let me know. The another patch for b2_12 branches is on its way to provide better compatibility during downgrade

            tappro Mikhail Pershin added a comment - Patch is updated. For now name uniqueness is not provided, if you think it must be - let me know. The another patch for b2_12 branches is on its way to provide better compatibility during downgrade

            well, I was asking mostly because having unique names means changelog scan for all registered names upon new user registration, while right now the only ID is increased. That would require patch modification.

            Another problem I have right now is backward compatibility. New name format like 'cl$ID-$NAME' means that our scripts and any other one on customer side will get changelog user name in that format from the new server and later call to 'lfs changelog_clear' would return error because of sscanf() format in chgl_write(). That is not problem to change it or 'lfs' to skip '-$NAME' addition and still use cl$ID part after all but that is client side changes which means old client is not compatible with a new server changelog names. I am not sure if a client wants to work with any name registered from other client, so probably that is not problem, but if it is problem then I have no good solution except compatibility patch to an older Lustre client

            tappro Mikhail Pershin added a comment - well, I was asking mostly because having unique names means changelog scan for all registered names upon new user registration, while right now the only ID is increased. That would require patch modification. Another problem I have right now is backward compatibility. New name format like 'cl$ID-$NAME' means that our scripts and any other one on customer side will get changelog user name in that format from the new server and later call to 'lfs changelog_clear' would return error because of sscanf() format in chgl_write(). That is not problem to change it or 'lfs' to skip '-$NAME' addition and still use cl$ID part after all but that is client side changes which means old client is not compatible with a new server changelog names. I am not sure if a client wants to work with any name registered from other client, so probably that is not problem, but if it is problem then I have no good solution except compatibility patch to an older Lustre client

            People

              tappro Mikhail Pershin
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: