Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pybind/ceph_argparse.py: do not create file for validating CephFilepath #24578

Merged
merged 1 commit into from Oct 16, 2018

Conversation

tchaikov
Copy link
Contributor

before this change, a file is opened with append mode for validating the
specified CephFilepath argument. but this file is never removed after
the validation. we cannot assume that this file will be overwritten or
removed by the Ceph daemon who serves the command.

after this change, no file is created for the validation, instead we
check if the file is readable or writable.

Signed-off-by: Kefu Chai kchai@redhat.com

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

before this change, a file is opened with append mode for validating the
specified CephFilepath argument. but this file is never removed after
the validation. we cannot assume that this file will be overwritten or
removed by the Ceph daemon who serves the command.

after this change, no file is created for the validation, instead we
check if the file is readable or writable.

Signed-off-by: Kefu Chai <kchai@redhat.com>
@tchaikov
Copy link
Contributor Author

retest this please.

@tchaikov
Copy link
Contributor Author

161/161 Test   #1: run-rbd-unit-tests.sh ...................***Timeout 3600.02 sec
...
[       OK ] TestMockOperationDisableFeaturesRequest.ObjectMapError (1 ms)
[ RErrors while running CTest

@tchaikov
Copy link
Contributor Author

retest this please.

Copy link
Contributor

@badone badone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@liewegas liewegas merged commit 90c2c28 into ceph:master Oct 16, 2018
liewegas added a commit that referenced this pull request Oct 16, 2018
* refs/pull/24578/head:
	pybind/ceph_argparse.py: do not create file for validating CephFilepath

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
@tchaikov tchaikov deleted the wip-validate-CephFilepath branch October 17, 2018 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants