Skip to content

Commit 421a6fd

Browse files
dupondjedidib
authored andcommitted
Skip chmod of ENGINE_EXTERNAL_PROVIDERS_TRUST_STORE in DEVELOPER_MODE
The keytool command before this _set_file_permissions is not executed in DEVELOPER_MODE. If we execute the chmod, it fails with: Failed to execute stage 'Misc configuration': [Errno 2] No such file or directory: '/home/xxx/xxx/var/lib/ovirt-engine/external_truststore' as the file was not created. Signed-off-by: Jean-Louis Dupond <[email protected]>
1 parent af1e3c1 commit 421a6fd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/network/ovirtproviderovn.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -877,11 +877,12 @@ def _upate_external_providers_keystore(self):
877877
'pass': truststore_password,
878878
},
879879
)
880-
self._set_file_permissions(
881-
truststore,
882-
True,
883-
stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH,
884-
)
880+
if not self.environment[osetupcons.CoreEnv.DEVELOPER_MODE]:
881+
self._set_file_permissions(
882+
truststore,
883+
True,
884+
stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH,
885+
)
885886

886887
def _is_provider_installed(self):
887888
# TODO: we currently only check against installations done by

0 commit comments

Comments
 (0)