Project

General

Profile

Bug #19890

src/test/pybind/test_cephfs.py fails

Added by Zheng Yan 6 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
05/09/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
kraken
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Component(FS):
Needs Doc:
No

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

Duplicated by fs - Bug #19896: client: test failure for O_RDWR file open Duplicate 05/09/2017
Copied to fs - Backport #20500: kraken: src/test/pybind/test_cephfs.py fails Resolved

History

#2 Updated by Zheng Yan 6 months ago

  • Status changed from New to Need Review

#3 Updated by Patrick Donnelly 6 months ago

  • Duplicated by Bug #19896: client: test failure for O_RDWR file open added

#4 Updated by John Spray 5 months ago

  • Status changed from Need Review to Resolved

#5 Updated by Nathan Cutler 4 months ago

  • Status changed from Resolved to Pending Backport
  • Backport set to kraken

#6 Updated by Nathan Cutler 4 months ago

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

#7 Updated by Nathan Cutler 3 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF