Actions
Bug #65367
closedPermissionError: [Errno 13] Permission denied in the fake filesystem
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Description
e.g.
https://jenkins.ceph.com/job/ceph-pull-requests/132835/consoleFull
Shows:
if winerror is not None and sys.platform == "win32" and self.is_windows_fs:
raise OSError(err_no, message, filename, winerror)
raise OSError(err_no, message, filename)
E PermissionError: [Errno 13] Permission denied in the fake filesystem: '/var/lib/ceph/31c1e19a-f4f3-11ee-8463-11514b768837/mon.host1'
/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/py3/lib/python3.10/site-packages/pyfakefs/fake_filesystem.py:430: PermissionError
_____________ TestBootstrap.test_skip_mon_network ______________
self = <tests.test_cephadm.TestBootstrap object at 0x7f7a61b44700>
cephadm_fs = <pyfakefs.fake_filesystem.FakeFilesystem object at 0x7f7a611c59c0>
funkypatch = <tests.fixtures.FunkyPatcher object at 0x7f7a611020e0>
def test_skip_mon_network(self, cephadm_fs, funkypatch):
funkypatch.patch('cephadmlib.systemd.call')
cmd = self._get_cmd('--mon-ip', '192.168.1.1')
with with_cephadm_ctx(cmd, list_networks={}) as ctx:
msg = r'--skip-mon-network'
with pytest.raises(_cephadm.Error, match=msg):
_cephadm.command_bootstrap(ctx)
cmd += ['--skip-mon-network']
with with_cephadm_ctx(cmd, list_networks={}) as ctx:
retval = _cephadm.command_bootstrap(ctx)
Actions