Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix setting tuned profile #378

Merged
merged 2 commits into from
May 19, 2022

Conversation

dangel101
Copy link
Member

move profile setting from ansible role to engine

@dangel101 dangel101 requested a review from mwperina as a code owner May 18, 2022 07:36
String tunedProfile = isGlusterServiceSupported ? hostCluster.getGlusterTunedProfile() : null;
boolean isVirtEnabled = hostCluster.supportsVirtService();
String tunedProfile = isVirtEnabled && !isGlusterServiceSupported ? "virtual-host"
: isGlusterServiceSupported ? hostCluster.getGlusterTunedProfile() : null;
Copy link
Member

@mwperina mwperina May 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this fix the issue that gluster services are enabled for the cluster, but gluster tuned profile is set to NULL due to the UI bug? Wouldn't below condition be more clear?

String tunedProfile = "virtual-host";
if (hostCluster.supportsGlusterService() && StringUtils.isNotBlank(hostCluster.getGlusterTunedProfile())) {
    // custom tuned profile is specified for gluster cluster
    tunedProfile = hostCluster.getGlusterTunedProfile();
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, done

move profile setting from ansible role to engine
@dangel101 dangel101 force-pushed the B2073074_tuned_profile_on_gluster branch from 62b215a to 22b0d32 Compare May 19, 2022 09:04
Copy link
Member

@mwperina mwperina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@mwperina
Copy link
Member

/ost

@mwperina mwperina merged commit 2afdb98 into oVirt:master May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants