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 racing cluster FIPS settings #235

Merged
merged 1 commit into from
Apr 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ private boolean initVirtResources() {
processStoragePoolStatus();
runUpdateMomPolicy(getCluster(), getVds());
refreshHostDeviceList();
// Check FIPS compatibility
resourceManager.getEventListener().handleVdsFips(getVdsId());
} else {
Map<String, String> customLogValues = new HashMap<>();
customLogValues.put("StoragePoolName", getStoragePoolName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -650,9 +650,6 @@ private void handleRefreshCapabilitiesResponse(VDS vds, VDSReturnValue caps) {

// Always check VdsVersion
resourceManager.getEventListener().handleVdsVersion(vds.getId());

// Check FIPS compatibility
resourceManager.getEventListener().handleVdsFips(vds.getId());
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,6 @@ public void afterRefreshTreatment() {

if (refreshedCapabilities) {
getVdsEventListener().handleVdsVersion(vds.getId());
getVdsEventListener().handleVdsFips(vds.getId());
markIsSetNonOperationalExecuted();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,6 @@ private void updateProperties() {

setKernelFeatures(formatKernelFeatures(vds.getKernelFeatures()));
setvncEncryptionEnabled(vds.isVncEncryptionEnabled());
setFipsEnabled(vds.isFipsEnabled());
setOvnConfigured(vds.isOvnConfigured());
}

Expand Down Expand Up @@ -1254,19 +1253,6 @@ public void setvncEncryptionEnabled(boolean value) {
}
}

private boolean fipsEnabled;

public boolean isFipsEnabled() {
return fipsEnabled;
}

public void setFipsEnabled(boolean value) {
if (fipsEnabled != value) {
fipsEnabled = value;
onPropertyChanged(new PropertyChangedEventArgs("fipsEnabled")); //$NON-NLS-1$
}
}

private String hostName;

public void setHostName(String hostName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3557,8 +3557,6 @@ public interface ApplicationConstants extends CommonApplicationConstants {

String vncEncryptionLabel();

String fipsEnabledLabel();

String ovnConfiguredLabel();

String vdsmName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ interface ViewIdHandler extends ElementIdHandler<HostGeneralSubTabView> {
StringValueLabel clusterCompatibilityVersion = new StringValueLabel();
StringValueLabel hugePages = new StringValueLabel();
BooleanTextBoxLabel vncEncryptionEnabled = new BooleanTextBoxLabel(constants.enabled(), constants.disabled());
BooleanTextBoxLabel fipsEnabled = new BooleanTextBoxLabel(constants.enabled(), constants.disabled());
BooleanTextBoxLabel ovnConfigured = new BooleanTextBoxLabel(constants.yes(), constants.no());

MemorySizeTextBoxLabel<Integer> physicalMemory = new MemorySizeTextBoxLabel<>();
Expand Down Expand Up @@ -212,7 +211,7 @@ private void generateSoftwareFormPanel() {
boolean glusterSupported = ApplicationModeHelper.isModeSupported(ApplicationMode.GlusterOnly);

// Build a form using the FormBuilder
softwareFormBuilder = new FormBuilder(softwareFormPanel, 1, 15);
softwareFormBuilder = new FormBuilder(softwareFormPanel, 1, 14);
softwareFormBuilder.setRelativeColumnWidth(0, 12);
softwareFormBuilder.addFormItem(new FormItem(constants.osVersionHostGeneral(), oS, 0).withAutoPlacement(), 2, 10);
softwareFormBuilder.addFormItem(new FormItem(constants.osPrettyName(), osPrettyName, 0).withAutoPlacement(), 2, 10);
Expand All @@ -239,7 +238,6 @@ private void generateSoftwareFormPanel() {
softwareFormBuilder.addFormItem(new FormItem(constants.kernelFeatures(), kernelFeatures, 0, true)
.withAutoPlacement(), 2, 10);
softwareFormBuilder.addFormItem(new FormItem(constants.vncEncryptionLabel(), vncEncryptionEnabled, 0).withAutoPlacement(), 2, 10);
softwareFormBuilder.addFormItem(new FormItem(constants.fipsEnabledLabel(), fipsEnabled, 0).withAutoPlacement(), 2, 10);
softwareFormBuilder.addFormItem(new FormItem(constants.ovnConfiguredLabel(), ovnConfigured, 0).withAutoPlacement(), 2, 10);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1777,7 +1777,6 @@ notifDoNotDisturbNextLogin=until Next Log In
vncEncryptionEnabled=Enable VNC Encryption
vncEncryptionEnabledHelpMessage=Enabling VNC Encryption will enforce VNC communication over TLS (using X509Vnc VeNCrypt)
vncEncryptionLabel=VNC Encryption
fipsEnabledLabel=FIPS mode enabled
ovnConfiguredLabel=OVN configured
vdsmName=VDSM Name
portSecurityEnabledLabel=Network Port Security
Expand Down