Project

General

Profile

Actions

Bug #19890

closed

src/test/pybind/test_cephfs.py fails

Added by Zheng Yan almost 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
kraken
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

http://qa-proxy.ceph.com/teuthology/teuthology-2017-05-08_03:15:05-fs-master---basic-smithi/1113004/teuthology.log

src/pybind/cephfs/cephfs.pyx

    def open(self, path, flags, mode=0):
        self.require_state("mounted")
        path = cstr(path, 'path')

        if not isinstance(mode, int):
            raise TypeError('mode must be an int')
        if isinstance(flags, str):
            cephfs_flags = 0
            if flags == '':
                cephfs_flags = os.O_RDONLY
            else:
                for c in flags:
                    if c == 'r':
                        cephfs_flags |= os.O_RDONLY
                    elif c == 'w':
                        cephfs_flags |= os.O_WRONLY | os.O_TRUNC | os.O_CREAT
                    elif c == '+':
                        cephfs_flags |= os.O_RDWR
                    else:
                        raise OperationNotSupported(
                            "open flags doesn't support %s" % c)

(O_RDWR | O_WRONLY) is not a vaild open flag


Related issues 2 (0 open2 closed)

Has duplicate CephFS - Bug #19896: client: test failure for O_RDWR file openDuplicate05/09/2017

Actions
Copied to CephFS - Backport #20500: kraken: src/test/pybind/test_cephfs.py fails ResolvedNathan CutlerActions
Actions #2

Updated by Zheng Yan almost 7 years ago

  • Status changed from New to Fix Under Review
Actions #3

Updated by Patrick Donnelly almost 7 years ago

  • Has duplicate Bug #19896: client: test failure for O_RDWR file open added
Actions #4

Updated by John Spray almost 7 years ago

  • Status changed from Fix Under Review to Resolved
Actions #5

Updated by Nathan Cutler almost 7 years ago

  • Status changed from Resolved to Pending Backport
  • Backport set to kraken
Actions #6

Updated by Nathan Cutler almost 7 years ago

  • Copied to Backport #20500: kraken: src/test/pybind/test_cephfs.py fails added
Actions #7

Updated by Nathan Cutler almost 7 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF