Uploaded image for project: 'Percona Toolkit'
  1. Percona Toolkit
  2. PT-1930

pt-k8s-debug-collector should not attempt collecting PXC information when running against PSMDB

Details

    • Bug
    • Status: Done
    • Low
    • Resolution: Fixed
    • 3.3.0
    • 3.5.2
    • pt-k8s-debug-collector
    • None
    • 0.5

    Description

      As stated in the summary, the tool should avoid trying to get PXC-related information when it knows it runs against PSMDB operator.

      $ ~/bin/pt-k8s-debug-collector --namespace sktest-psmdb-prod --cluster sktest-psmdb-prod --resource psmdb
      2021/02/10 11:33:29 Start collecting cluster data
      2021/02/10 11:33:55 Error: get resource perconaxtradbbackups in namespace sktest-psmdb-prod: error: exit status 1, stderr: error: the server doesn't have a resource type "perconaxtradbbackups"
      , stdout:
      2021/02/10 11:33:56 Error: get resource perconaxtradbclusterbackups in namespace sktest-psmdb-prod: error: exit status 1, stderr: error: the server doesn't have a resource type "perconaxtradbclusterbackups"
      , stdout:
      2021/02/10 11:33:57 Error: get resource perconaxtradbclusterrestores in namespace sktest-psmdb-prod: error: exit status 1, stderr: error: the server doesn't have a resource type "perconaxtradbclusterrestores"
      , stdout:
      2021/02/10 11:33:58 Error: get resource perconaxtradbclusters in namespace sktest-psmdb-prod: error: exit status 1, stderr: error: the server doesn't have a resource type "perconaxtradbclusters"
      , stdout:
      2021/02/10 11:34:03 Done
      

      When executed without arguments against context where there's no PXC, the errors are repeated multiple times for each namespace.

      Attachments

        Issue Links

          Activity

            People

              sveta.smirnova Sveta Smirnova
              sergey.kuzmichev Sergey Kuzmichev (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Smart Checklist