Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1390694 - [RFE] Need Satellite size estimation script
Summary: [RFE] Need Satellite size estimation script
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Satellite Maintain
Version: 6.2.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: Swapnil Abnave
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: 1496794
TreeView+ depends on / blocked
 
Reported: 2016-11-01 16:57 UTC by Mike McCune
Modified: 2018-09-04 19:07 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-04 19:07:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Requested script (1.83 KB, text/rub)
2016-11-01 22:10 UTC, Andrew Kofink
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 20267 0 Normal Ready For Testing Need Foreman size estimation script 2020-10-15 09:56:51 UTC

Description Mike McCune 2016-11-01 16:57:19 UTC
We need a simple script that users can run that can collect the following information:

1) Disk consumption and availability of the following directories:

/var/lib/pulp/
/var/lib/mongodb/
/var/lib/pgsql/

2) Disk speed using hdparm:

# hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   31332 MB in  2.00 seconds = 15689.05 MB/sec
 Timing buffered disk reads: 466 MB in  3.01 seconds = 154.99 MB/sec

Not all Satellites will have this installed so just automatically install it if you have to

3) Table sizes:

https://gist.github.com/mccun934/e93358be72902aa67dc450cb4f7c4574

cat tablesizes.sql | sudo -u postgres psql -d foreman

4) Table counts:

select count(*) from hosts;
select count(*) from dynflow_actions;
select count(*) from dynflow_steps;
select count(*) from katello_repositories;

A second phase would be to take these #s and calculate an estimated upgrade time but just gathering this data will be helpful and can be included in foreman-debug if possible.

A name like:

# satellite-size-report

would be easy to remember

Comment 2 Andrew Kofink 2016-11-01 22:10:07 UTC
Created attachment 1216261 [details]
Requested script

Here is the requested script

Comment 4 Andrew Kofink 2017-01-09 13:07:44 UTC
Marking as POST, since the script is posted to the BZ.

Comment 5 Andrew Kofink 2017-06-15 14:25:35 UTC
Created redmine issue http://projects.theforeman.org/issues/20028 from this bug

Comment 6 Swapnil Abnave 2017-06-19 14:16:04 UTC
> 2) Disk speed using hdparm:
> 
> # hdparm -tT /dev/sda
> 
> /dev/sda:
>  Timing cached reads:   31332 MB in  2.00 seconds = 15689.05 MB/sec
>  Timing buffered disk reads: 466 MB in  3.01 seconds = 154.99 MB/sec
> 
> Not all Satellites will have this installed so just automatically install it
> if you have to
>
https://github.com/theforeman/foreman_maintain are already checks for disk speed to be atleast 80 mbps(Draft: https://docs.google.com/document/d/18HrTVeD21wdJLvBie-4qRt5fgaghLLFu5mt78qX1IkU/edit)
Except the displaying of speed part.


> A name like:
> 
> # satellite-size-report
> 
> would be easy to remember
Along with #2, 1,3,4 can be respective checks in foreman-maintain tagged as 'size-report'(to generalize with upstream) and would be visible in command:

foreman_maintain health check --tags=size-report

Comment 7 Mike McCune 2017-07-10 18:58:50 UTC
This should get merged into foreman-maintain, switching components

Comment 8 Mike McCune 2017-07-10 19:03:54 UTC
new upstream:

http://projects.theforeman.org/issues/20267

Comment 9 Satellite Program 2017-12-14 17:23:07 UTC
Upstream bug assigned to sabnave

Comment 11 Satellite Program 2018-03-20 00:22:54 UTC
Upstream bug assigned to sabnave

Comment 12 Bryan Kearney 2018-09-04 18:56:44 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.

Comment 13 Bryan Kearney 2018-09-04 19:07:17 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.


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