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 1927679 - tuning runs without valid tuning level
Summary: tuning runs without valid tuning level
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.9.0
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: 6.10.0
Assignee: Eric Helms
QA Contact: Devendra Singh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-11 10:25 UTC by Kenny Tordeurs
Modified: 2021-11-16 14:10 UTC (History)
3 users (show)

Fixed In Version: tfm-rubygem-kafo-6.4.0,foreman-installer-2.5.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:10:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 32532 0 High Closed tuning runs without valid tuning level 2021-07-15 12:17:52 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:10:12 UTC

Description Kenny Tordeurs 2021-02-11 10:25:31 UTC
Description of problem:
When running satellite-installer --tuning with --help it applies tuning

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

How reproducible:
100%

Steps to Reproduce:
1. # satellite-installer --tuning --help
2. # satellite-installer --tuning --something
3. # satellite-installer --tuning --mediuum

Actual results:
# satellite-installer --tuning --help
~~~
Package versions are locked. Continuing with unlock.
  Success!
  * Satellite is running at https://ktordeur-testathon.kenny.lan

  * To install an additional Capsule on separate machine continue by running:

      capsule-certs-generate --foreman-proxy-fqdn "$CAPSULE" --certs-tar "/root/$CAPSULE-certs.tar"
  * Capsule is running at https://ktordeur-testathon.kenny.lan:9090

  The full log is at /var/log/foreman-installer/satellite.log
Package versions are being locked.
~~~

# satellite-installer --tuning --something
~~~
2021-02-11 10:10:02 [NOTICE] [pre_migrations] Executing hooks in group pre_migrations
2021-02-11 10:10:02 [NOTICE] [pre_migrations] All hooks in group pre_migrations finished
2021-02-11 10:10:02 [NOTICE] [boot] Executing hooks in group boot
2021-02-11 10:10:02 [NOTICE] [boot] All hooks in group boot finished
2021-02-11 10:10:02 [NOTICE] [init] Executing hooks in group init
2021-02-11 10:10:02 [NOTICE] [init] All hooks in group init finished
2021-02-11 10:10:02 [NOTICE] [root] Loading default values from puppet modules...
2021-02-11 10:10:09 [NOTICE] [root] ... finished
2021-02-11 10:10:09 [NOTICE] [pre_values] Executing hooks in group pre_values
2021-02-11 10:10:09 [NOTICE] [pre_values] All hooks in group pre_values finished
2021-02-11 10:10:12 [NOTICE] [pre_validations] Executing hooks in group pre_validations
2021-02-11 10:10:13 [NOTICE] [pre_validations] All hooks in group pre_validations finished
2021-02-11 10:10:13 [NOTICE] [root] Running validation checks
2021-02-11 10:10:13 [NOTICE] [pre_commit] Executing hooks in group pre_commit
2021-02-11 10:10:16 [NOTICE] [pre_commit] All hooks in group pre_commit finished
2021-02-11 10:10:16 [NOTICE] [pre] Executing hooks in group pre
2021-02-11 10:10:24 [NOTICE] [pre] All hooks in group pre finished
2021-02-11 10:10:24 [NOTICE] [configure] Starting system configuration.
  The total number of configuration tasks may increase during the run.
  Observe logs or specify --verbose-log-level to see individual configuration tasks.
2021-02-11 10:10:46 [NOTICE] [configure] 100 out of 2466 done.
2021-02-11 10:10:46 [NOTICE] [configure] 200 out of 2466 done.
2021-02-11 10:10:47 [NOTICE] [configure] 300 out of 2466 done.
2021-02-11 10:10:47 [NOTICE] [configure] 400 out of 2466 done.
2021-02-11 10:11:11 [NOTICE] [configure] 500 out of 2466 done.
2021-02-11 10:11:12 [NOTICE] [configure] 600 out of 2466 done.
2021-02-11 10:11:13 [NOTICE] [configure] 700 out of 2466 done.
2021-02-11 10:11:14 [NOTICE] [configure] 800 out of 2468 done.
2021-02-11 10:11:14 [NOTICE] [configure] 900 out of 2468 done.
2021-02-11 10:11:16 [NOTICE] [configure] 1000 out of 2471 done.
2021-02-11 10:11:16 [NOTICE] [configure] 1100 out of 2472 done.
2021-02-11 10:11:17 [NOTICE] [configure] 1200 out of 2477 done.
2021-02-11 10:11:17 [NOTICE] [configure] 1300 out of 2479 done.
2021-02-11 10:11:17 [NOTICE] [configure] 1400 out of 2480 done.
2021-02-11 10:11:17 [NOTICE] [configure] 1500 out of 2483 done.
2021-02-11 10:11:27 [NOTICE] [configure] 1600 out of 2483 done.
2021-02-11 10:11:28 [NOTICE] [configure] 1800 out of 2485 done.
2021-02-11 10:13:02 [NOTICE] [configure] 1900 out of 2485 done.
2021-02-11 10:13:03 [NOTICE] [configure] 2000 out of 2485 done.
2021-02-11 10:13:08 [NOTICE] [configure] 2100 out of 3297 done.
2021-02-11 10:13:08 [NOTICE] [configure] 2200 out of 3297 done.
2021-02-11 10:13:08 [NOTICE] [configure] 2300 out of 3297 done.
2021-02-11 10:13:09 [NOTICE] [configure] 2400 out of 3297 done.
2021-02-11 10:13:09 [NOTICE] [configure] 2500 out of 3297 done.
2021-02-11 10:13:09 [NOTICE] [configure] 2600 out of 3297 done.
2021-02-11 10:13:10 [NOTICE] [configure] 2700 out of 3297 done.
2021-02-11 10:13:10 [NOTICE] [configure] 2800 out of 3297 done.
2021-02-11 10:13:10 [NOTICE] [configure] 2900 out of 3302 done.
2021-02-11 10:13:11 [NOTICE] [configure] 3000 out of 3302 done.
2021-02-11 10:13:11 [NOTICE] [configure] 3100 out of 3302 done.
2021-02-11 10:13:19 [NOTICE] [configure] 3200 out of 3302 done.
2021-02-11 10:13:21 [NOTICE] [configure] 3300 out of 3302 done.
2021-02-11 10:13:26 [NOTICE] [configure] System configuration has finished.
2021-02-11 10:13:26 [NOTICE] [post] Executing hooks in group post
  Success!
  * Satellite is running at https://ktordeur-testathon.kenny.lan

  * To install an additional Capsule on separate machine continue by running:

      capsule-certs-generate --foreman-proxy-fqdn "$CAPSULE" --certs-tar "/root/$CAPSULE-certs.tar"
  * Capsule is running at https://ktordeur-testathon.kenny.lan:9090

  The full log is at /var/log/foreman-installer/satellite.log
Package versions are being locked.
2021-02-11 10:13:29 [NOTICE] [post] All hooks in group post finished
~~~

Expected results:
Invalid tuning profile
'something' is not one of default, medium, large, extra-large, extra-extra-large


Additional info:
This probably affects older versions also.

Comment 1 Kenny Tordeurs 2021-02-11 10:41:00 UTC
Changing sev to medium as it can cause issues by reverting tuning in place:

[root@ktordeur-testathon ~]# grep -i conc /etc/default/pulp_workers 
~~~
PULP_CONCURRENCY=8
~~~

[root@ktordeur-testathon ~]# satellite-installer --tuning --help && grep -i conc /etc/default/pulp_workers
~~~
2021-02-11 10:33:12 [NOTICE] [pre_migrations] Executing hooks in group pre_migrations
2021-02-11 10:33:12 [NOTICE] [pre_migrations] All hooks in group pre_migrations finished
2021-02-11 10:33:12 [NOTICE] [boot] Executing hooks in group boot
2021-02-11 10:33:12 [NOTICE] [boot] All hooks in group boot finished
2021-02-11 10:33:12 [NOTICE] [init] Executing hooks in group init
2021-02-11 10:33:12 [NOTICE] [init] All hooks in group init finished
2021-02-11 10:33:12 [NOTICE] [root] Loading default values from puppet modules...
2021-02-11 10:33:19 [NOTICE] [root] ... finished
2021-02-11 10:33:19 [NOTICE] [pre_values] Executing hooks in group pre_values
2021-02-11 10:33:19 [NOTICE] [pre_values] All hooks in group pre_values finished
2021-02-11 10:33:22 [NOTICE] [pre_validations] Executing hooks in group pre_validations
2021-02-11 10:33:23 [NOTICE] [pre_validations] All hooks in group pre_validations finished
2021-02-11 10:33:23 [NOTICE] [root] Running validation checks
2021-02-11 10:33:23 [NOTICE] [pre_commit] Executing hooks in group pre_commit
2021-02-11 10:33:26 [NOTICE] [pre_commit] All hooks in group pre_commit finished
2021-02-11 10:33:26 [NOTICE] [pre] Executing hooks in group pre
2021-02-11 10:33:34 [NOTICE] [pre] All hooks in group pre finished
2021-02-11 10:33:34 [NOTICE] [configure] Starting system configuration.
  The total number of configuration tasks may increase during the run.
  Observe logs or specify --verbose-log-level to see individual configuration tasks.
2021-02-11 10:33:56 [NOTICE] [configure] 100 out of 2466 done.
2021-02-11 10:33:57 [NOTICE] [configure] 200 out of 2466 done.
2021-02-11 10:33:57 [NOTICE] [configure] 300 out of 2466 done.
2021-02-11 10:33:57 [NOTICE] [configure] 400 out of 2466 done.
2021-02-11 10:34:21 [NOTICE] [configure] 500 out of 2466 done.
2021-02-11 10:34:22 [NOTICE] [configure] 600 out of 2466 done.
2021-02-11 10:34:24 [NOTICE] [configure] 700 out of 2466 done.
2021-02-11 10:34:24 [NOTICE] [configure] 800 out of 2468 done.
2021-02-11 10:34:24 [NOTICE] [configure] 900 out of 2468 done.
2021-02-11 10:34:26 [NOTICE] [configure] 1000 out of 2471 done.
2021-02-11 10:34:27 [NOTICE] [configure] 1100 out of 2472 done.
2021-02-11 10:34:28 [NOTICE] [configure] 1200 out of 2477 done.
2021-02-11 10:34:28 [NOTICE] [configure] 1300 out of 2479 done.
2021-02-11 10:34:28 [NOTICE] [configure] 1400 out of 2480 done.
2021-02-11 10:34:28 [NOTICE] [configure] 1500 out of 2483 done.
2021-02-11 10:34:39 [NOTICE] [configure] 1600 out of 2483 done.
2021-02-11 10:34:49 [NOTICE] [configure] 1800 out of 2485 done.
2021-02-11 10:36:37 [NOTICE] [configure] 1900 out of 2485 done.
2021-02-11 10:36:37 [NOTICE] [configure] 2000 out of 2485 done.
2021-02-11 10:36:43 [NOTICE] [configure] 2100 out of 3297 done.
2021-02-11 10:36:43 [NOTICE] [configure] 2200 out of 3297 done.
2021-02-11 10:36:44 [NOTICE] [configure] 2300 out of 3297 done.
2021-02-11 10:36:44 [NOTICE] [configure] 2400 out of 3297 done.
2021-02-11 10:36:44 [NOTICE] [configure] 2500 out of 3297 done.
2021-02-11 10:36:44 [NOTICE] [configure] 2600 out of 3297 done.
2021-02-11 10:36:45 [NOTICE] [configure] 2700 out of 3297 done.
2021-02-11 10:36:45 [NOTICE] [configure] 2800 out of 3297 done.
2021-02-11 10:36:46 [NOTICE] [configure] 2900 out of 3302 done.
2021-02-11 10:36:46 [NOTICE] [configure] 3000 out of 3302 done.
2021-02-11 10:36:46 [NOTICE] [configure] 3100 out of 3302 done.
2021-02-11 10:36:57 [NOTICE] [configure] 3200 out of 3302 done.
2021-02-11 10:36:58 [NOTICE] [configure] 3300 out of 3302 done.
2021-02-11 10:37:04 [NOTICE] [configure] System configuration has finished.
2021-02-11 10:37:04 [NOTICE] [post] Executing hooks in group post
  Success!
  * Satellite is running at https://ktordeur-testathon.kenny.lan

  * To install an additional Capsule on separate machine continue by running:

      capsule-certs-generate --foreman-proxy-fqdn "$CAPSULE" --certs-tar "/root/$CAPSULE-certs.tar"
  * Capsule is running at https://ktordeur-testathon.kenny.lan:9090

  The full log is at /var/log/foreman-installer/satellite.log
Package versions are being locked.
2021-02-11 10:37:07 [NOTICE] [post] All hooks in group post finished
~~~

~~~
PULP_CONCURRENCY=4
~~~

Comment 2 Eric Helms 2021-05-05 20:48:34 UTC
Created redmine issue https://projects.theforeman.org/issues/32532 from this bug

Comment 3 Bryan Kearney 2021-05-09 16:19:36 UTC
Upstream bug assigned to ehelms

Comment 4 Bryan Kearney 2021-05-09 16:19:38 UTC
Upstream bug assigned to ehelms

Comment 5 Bryan Kearney 2021-05-10 16:04:17 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/32532 has been resolved.

Comment 6 Devendra Singh 2021-06-01 09:57:41 UTC
FailedQA

tuning command still runs without valid parameters.


1- "satellite-installer --tuning --help" command stuck at, "Package versions are locked. Continuing with unlock." 
# satellite-installer --tuning --help
Package versions are locked. Continuing with unlock.

2- "satellite-installer --tuning --something" command sets the tuning parameter

# satellite-installer --tuning --something
2021-06-01 05:41:36 [NOTICE] [root] Loading installer configuration. This will take some time.
2021-06-01 05:41:41 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2021-06-01 05:41:41 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2021-06-01 05:41:52 [NOTICE] [configure] Starting system configuration.
2021-06-01 05:42:05 [NOTICE] [configure] 250 configuration steps out of 2007 steps complete.
2021-06-01 05:42:25 [NOTICE] [configure] 500 configuration steps out of 2007 steps complete.
................
0 orphaned consumer id(s) found in candlepin.
Candlepin orphaned consumers: []
  Success!
3- "satellite-installer --tuning --mediuum" command sets the tuning parameter.

# satellite-installer --tuning --mediuum
2021-06-01 05:53:28 [NOTICE] [root] Loading installer configuration. This will take some time.
2021-06-01 05:53:33 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2021-06-01 05:53:33 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
..............
Candlepin orphaned consumers: []
  Success!

Comment 10 Devendra Singh 2021-08-03 08:04:33 UTC
Verified on 6.10 Snap11

Verification points:

1- Installed the 6.10 Snap11 setup.
2- Ran the "satellite-installer --tuning --mediuum" command and it returned "ERROR: Invalid option supplied for --tuning" 

# satellite-installer --tuning --mediuum
ERROR: Invalid option supplied for --tuning. Please choose from one of: default, medium, large, extra-large, extra-extra-large

3- Ran the "satellite-installer --tuning --something" command and it returned "ERROR: Invalid option supplied for --tuning"

satellite-installer --tuning --something
ERROR: Invalid option supplied for --tuning. Please choose from one of: default, medium, large, extra-large, extra-extra-large

See: 'satellite-installer --help'

#satellite-installer --tuning --mediuum
ERROR: Invalid option supplied for --tuning. Please choose from one of: default, medium, large, extra-large, extra-extra-large

See: 'satellite-installer --help'

# satellite-installer --tuning --help
ERROR: Invalid option supplied for --tuning. Please choose from one of: default, medium, large, extra-large, extra-extra-large

See: 'satellite-installer --help'

# satellite-installer --tuning --something
ERROR: Invalid option supplied for --tuning. Please choose from one of: default, medium, large, extra-large, extra-extra-large

See: 'satellite-installer --help'

4 Verified in-fixed version of "tfm-rubygem-kafo" and foreman-installer.

# rpm -qa|grep tfm-rubygem-kafo
tfm-rubygem-kafo-6.4.0-1.el7sat.noarch

# rpm -qa|grep foreman-installer
foreman-installer-2.5.2-3.el7sat.noarch

Comment 13 errata-xmlrpc 2021-11-16 14:10:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.10 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:4702


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