Bug #65367
closedPermissionError: [Errno 13] Permission denied in the fake filesystem
0%
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)
Updated by Adam King 24 days ago
- Status changed from New to In Progress
- Assignee set to Adam King
- Pull request ID set to 56760
This is an issue on all branches. I have opened a patch to pin pyfakefs to fix this on each branch.
main PR: https://github.com/ceph/ceph/pull/56760 (merged as of writing this)
squid PR: https://github.com/ceph/ceph/pull/56761 (merged as of writing this)
reef PR: https://github.com/ceph/ceph/pull/56762
quincy PR: https://github.com/ceph/ceph/pull/56763