Bug 1276460 - [perf] oo-admin-repair --orphaned-envs does not need to populate data hashes
[perf] oo-admin-repair --orphaned-envs does not need to populate data hashes
Product: OpenShift Online
Classification: Red Hat
Component: Pod (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Vu Dinh
Jianwei Hou
Depends On:
Blocks: 1277547
  Show dependency treegraph
Reported: 2015-10-29 14:52 EDT by Andy Grimm
Modified: 2017-05-31 14:22 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-05-31 14:22:11 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Andy Grimm 2015-10-29 14:52:22 EDT
oo-admin-repair is brutally slow (i.e., takes tens of minutes) in OpenShift Online production due to the initial population of hashes for all users, domains, and apps.  For the --orphaned-envs subcommand, there is no reason to populate these hashes, so this code should be skipped.
Comment 1 Vu Dinh 2015-11-02 13:52:37 EST
PR <https://github.com/openshift/origin-server/pull/6303> is submitted to fix this issue.
Comment 2 Abhishek Gupta 2015-11-12 15:44:14 EST
Note to QE: The fix for this bug involved changes to the portion of the script that fixes stale ssh keys as well. A regression test for that option would be helpful.
Comment 3 openshift-github-bot 2015-11-12 16:32:56 EST
Commit pushed to master at https://github.com/openshift/origin-server

Bug 1276460: oo-admin-repair --orphaned-envs no need to populate hashes

The 'oo-admin-repair' commands populate hashes for user, domain, app and district
regardless if they are necessary or not. After this change only needed hashes are
for specific commands by using several flags to determine which commands are used.
This change will improve the performance by avoid populating unnecessary hashes.

The current "--ssh-keys" option removes orphaned environment variables which should
only be done by using "--orphaned-envs" option. This change removes that task from
"--ssh-keys" option. Furthermore, with this change, the orphaned variables are now
only removed from the domains but not from the gears as they are updated when the
applications are updated. Even if the orphaned variables remain in the gears, there
are no harms. Also, the orphaned variables will be grouped by domain and then removed
all at once for each domain to reduce database access. All changes are intended to
further improve the overall performance of the oo-admin-repair command.

Bug 1276460
Link <https://bugzilla.redhat.com/show_bug.cgi?id=1276460>

Signed-off-by: Vu Dinh <vdinh@redhat.com>
Comment 4 Jianwei Hou 2015-11-25 22:31:46 EST
Verified on devenv_5723, oo-admin-chk is able to detect the stale ssh keys and oo-admin-repair could fix that.
Comment 6 Eric Paris 2017-05-31 14:22:11 EDT
We apologize, however, we do not plan to address this report at this time. The majority of our active development is for the v3 version of OpenShift. If you would like for Red Hat to reconsider this decision, please reach out to your support representative. We are very sorry for any inconvenience this may cause.

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