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

Error adding linux metrics: "systemctl" failed: exit status 1, Failed to execute operation: Access denied

Details

    • Bug
    • Status: Done
    • Medium
    • Resolution: Won't Fix
    • 1.7.0
    • None
    • PMM Client
    • None

    Description

      Trying to test Upgrade for OVA image.
      Started CentOS 7 VM and connected it to OVA instance:

      [[email protected] log]$ sudo pmm-admin check-network
      PMM Network Status
      
      Server Address | 192.168.0.149
      Client Address | 192.168.0.109 
      
      * System Time
      NTP Server (0.pool.ntp.org)         | 2018-02-21 15:19:35 +0400 +04
      PMM Server                          | 2018-02-21 11:19:35 +0000 GMT
      PMM Client                          | 2018-02-21 15:19:35 +0400 +04
      PMM Server Time Drift               | OK
      PMM Client Time Drift               | OK
      PMM Client to PMM Server Time Drift | OK
      
      * Connection: Client --> Server
      -------------------- -------      
      SERVER SERVICE       STATUS       
      -------------------- -------      
      Consul API           OK
      Prometheus API       OK
      Query Analytics API  OK
      
      Connection duration | 904.99┬Ás
      Request duration    | 1.69017ms
      Full round trip     | 2.59516ms
      
      
      * Connection: Client <-- Server
      No metric endpoints registered.
      
      [[email protected] log]$ sudo pmm-admin list
      pmm-admin 1.7.0
      
      PMM Server      | 192.168.0.149 (password-protected)
      Client Name     | pmp
      Client Address  | 192.168.0.109 
      Service Manager | linux-systemd
      
      No services under monitoring.
      

      And now trying to add mysql instance:

      $ sudo pmm-admin add mysql --socket=/tmp/mysql_sandbox20996.sock --port=20996 --user msandbox --password msandbox
      [linux:metrics] Error adding linux metrics: "systemctl" failed: exit status 1, Failed to execute operation: Access denied
      
      [[email protected] log]$ sudo pmm-admin list
      pmm-admin 1.7.0
      
      PMM Server      | 192.168.0.149 (password-protected)
      Client Name     | pmp
      Client Address  | 192.168.0.109 
      Service Manager | linux-systemd
      
      -------------- ----- ----------- -------- ------------ --------
      SERVICE TYPE   NAME  LOCAL PORT  RUNNING  DATA SOURCE  OPTIONS 
      -------------- ----- ----------- -------- ------------ --------
      linux:metrics  pmp   42000       NO       -                    
      [[email protected] log]$ sudo pmm-admin rm --all
      Error removing one of the services: "systemctl" failed: exit status 1, Failed to execute operation: Access denied
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            shahriyar.rzayev Shahriyar Rzayev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h

                Smart Checklist