Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-5842

PMM2 pmm-admin --create-user proper warning

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.8.0
    • Component/s: PMM Admin
    • Labels:
    • Story Points:
      0
    • Sprint:
      Platform Sprint 15, Platform Sprint 16
    • Needs Review:
      Yes
    • Needs QA:
      Yes
    • Needs Doc:
      No

      Description

      In PMM1  we had a flag '--create-user' for 'pmm-admin add mysql' command

      PMM2 doesn't have this flag working as for now, but it's absence confuses people.

      # pmm-admin add mysql ps5726 127.0.0.1:5726 --username=root --password=root --query-source=slowlog --create-user
      pmm-admin: error: unknown long flag '--create-user', try --help

       

      Proposed solution : 

       

      # pmm-admin add mysql ps5726 127.0.0.1:5726 --username=root --password=root --query-source=slowlog --create-user
      pmm-admin: error: Unrecognized option. To create a user, see  'https://www.percona.com/doc/percona-monitoring-and-management/2.x/concepts/services-mysql.html#pmm-conf-mysql-user-account-creating' 

       

      Note

      • This must not lead to adding  Service  with root:root credentials, this is no  what user expects 
      • --create-user flag should be not visible on `pmm-admin add mysql --help` command 
      • Full feature implementation in PMM-4776

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nailya.kutlubaeva Nailya Kutlubaeva
              Reporter:
              lalit.choudhary Lalit Choudhary
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 40 minutes
                  40m

                    Smart Checklist