Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1693233 - Add some additional MongoDB information to pulp sos plugin (Stats)
Summary: Add some additional MongoDB information to pulp sos plugin (Stats)
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sos
Version: 7.7
Hardware: All
OS: All
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Pavel Moravec
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-27 11:26 UTC by Waldirio M Pinheiro
Modified: 2019-04-10 20:42 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Github sosreport sos pull 1645 None None None 2019-04-10 20:40:39 UTC

Description Waldirio M Pinheiro 2019-03-27 11:26:11 UTC
Description of problem:
When doing the MongoDB troubleshooting, there is an output very useful that we don't have already on foreman sos plugin "db.stats()".

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. Steps below
2.
3.

Actual results:
We don't have the information, that said, we have to request.

Expected results:
See the info under sosreport / foreman plugin.

Additional info:

Comment 2 Waldirio M Pinheiro 2019-03-27 11:28:18 UTC
Hi

// Below the command to be executed on Sat server
---
# cat << EOF | mongo >/tmp/mongo_stats.log
use pulp_database
db.stats()
EOF
---

// Here we can see the output
---
# cat /tmp/mongo_stats.log 
MongoDB shell version: 2.6.11
connecting to: test
switched to db pulp_database
{
	"db" : "pulp_database",
	"collections" : 51,
	"objects" : 210805,
	"avgObjSize" : 9897.908531581319,
	"dataSize" : 2086528608,
	"storageSize" : 8197115904,
	"numExtents" : 160,
	"indexes" : 169,
	"indexSize" : 128216032,
	"fileSize" : 10666115072,
	"nsSizeMB" : 16,
	"dataFileVersion" : {
		"major" : 4,
		"minor" : 5
	},
	"extentFreeList" : {
		"num" : 2,
		"totalSize" : 139264
	},
	"ok" : 1
}
bye
---



Best Regards
-- 
Waldirio M Pinheiro | Senior Software Maintenance Engineer

Comment 4 Pavel Moravec 2019-04-10 20:40:40 UTC
Same as in https://bugzilla.redhat.com/show_bug.cgi?id=1693218#c6 ;-)


Note You need to log in before you can comment on or make changes to this bug.