Skip to content

Commit

Permalink
Skip chmod of ENGINE_EXTERNAL_PROVIDERS_TRUST_STORE in DEVELOPER_MODE
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dupondje authored and didib committed Mar 6, 2024
1 parent af1e3c1 commit 421a6fd
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -877,11 +877,12 @@ def _upate_external_providers_keystore(self):
'pass': truststore_password,
},
)
self._set_file_permissions(
truststore,
True,
stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH,
)
if not self.environment[osetupcons.CoreEnv.DEVELOPER_MODE]:
self._set_file_permissions(
truststore,
True,
stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH,
)

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

0 comments on commit 421a6fd

Please sign in to comment.