pt-mongodb-summary fails on standalone mongodb instances

Description

The tool will fail if we run it against a standalone instance, user test has "root" role here.

I don't see any indication that pt-mongodb-summary is not suited to collect information from single standalone instances. Otherwise this is going to be a DOC issue.

If the tool is expected to work on standalone mongodb instances, we should account for error 203 when the getShardMap command is executed in https://github.com/percona/percona-toolkit/blob/3.0/src/go/mongolib/util/util.go#L120

And assume that this host is a standalone instance instead of failing.

Environment

None

AFFECTED CS IDs

274990, 274840

Smart Checklist

Activity

Lalit Choudhary September 21, 2020 at 2:16 PM

created followup issue for SSL case: https://jira.percona.com/browse/PT-1891

 

Lalit Choudhary September 21, 2020 at 1:39 PM

The issue still exists for MongoDB configured to use SSL. 

Looks like pt-mongodb-summary can't connect to SSL enabled mongodb .

 

Test:

MongoDB with SSL configuration.

case1:

case 2:

case3:

 

Disabling SSL in mongodb.conf // working fine

 

Nailya Kutlubaeva June 3, 2020 at 9:02 PM

verified with single and shared cluster

Done

Details

Assignee

Reporter

Priority

Affects versions

Needs Review

Yes

Needs QA

Yes

Time tracking

4h 40m logged

Sprint

Smart Checklist

Created April 10, 2020 at 5:44 AM
Updated February 29, 2024 at 9:00 PM
Resolved June 15, 2020 at 10:45 AM