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

py2 backports 20200514 #1477

Merged
merged 10 commits into from May 15, 2020
Merged

py2 backports 20200514 #1477

merged 10 commits into from May 15, 2020

Conversation

kshtsk
Copy link
Contributor

@kshtsk kshtsk commented May 14, 2020

No description provided.

David Galloway and others added 10 commits May 14, 2020 02:25
Signed-off-by: David Galloway <dgallowa@redhat.com>
(cherry picked from commit 4e4a699)
py2: `str(signal.SIGHUP) == "1"`
py3: `str(signal.SIGHUP) == "signal.SIGHUP"`

Fixes: https://tracker.ceph.com/issues/45297

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit bc101d5)
Signed-off-by: sunilkumarn417 <sunnagar@redhat.com>
(cherry picked from commit 6fc0a1d)
the remote file is created using "ubuntu" user. in ubuntu xenial,
superuser is able to write to that file using tar, it seems that "tar"
starts another process when writing to the dest file specified by "-f",
and that process does not have the privilege for writing that file.

so when we are trying to archive a directory on ubuntu/focal test node,
we have following error:
```
tar (child): /tmp/tmp.vkl0kAtc06: Cannot open: Permission denied
tar (child): Error is not recoverable: exiting now
tar: /tmp/tmp.vkl0kAtc06: Cannot write: Broken pipe
tar: Child returned status 2
tar: Error is not recoverable: exiting now
```

and this is reproduciable with tar 1.30:
```
$ touch /tmp/helloworld
$ mkdir /tmp/foobar
$ sudo tar czf /tmp/helloworld -C /tmp/foobar -- .
tar (child): /tmp/helloworld: Cannot open: Permission denied
tar (child): Error is not recoverable: exiting now
tar: /tmp/helloworld: Cannot write: Broken pipe
tar: Child returned status 2
tar: Error is not recoverable: exiting now
```

but we can workaround this by writing the temp file using "ubuntu" user, like
```
sudo tar czf - -C /tmp/foobar -- . > /tmp/helloworld
```

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 3acc2af)
This reverts commit 478bb3f.

Fixes: https://tracker.ceph.com/issues/45255
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 759500c)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
(cherry picked from commit e8b9c68)
otherwise we could have
```
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'file' is not defined
```

Fixes: https://tracker.ceph.com/issues/45512
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 9874f7a)
Add --filter-all parameter to 'teuthology-suite' to allow
precise test case selection. The --filter-in makes use of filter list
with logical 'or' operation to include test cases.
The --filter-out takes filter list and excludes any test case which
match any from the filter list.

This patch provides with 'and' logical operation for a given filter list.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
(cherry picked from commit 33593ff)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
(cherry picked from commit b035d2c)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>

Fix unit test cases

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
(cherry picked from commit 7618b75)
@kshtsk
Copy link
Contributor Author

kshtsk commented May 14, 2020

@susebot run deploy

@susebot
Copy link

susebot commented May 14, 2020

Commit c6f90e6 is OK.
Check tests results in the Jenkins job: https://ceph-ci.suse.de/job/pr-teuthology-deploy/172/

@tchaikov
Copy link
Contributor

tchaikov commented May 14, 2020

why are you backporting py3 related fix to py2?

@kshtsk
Copy link
Contributor Author

kshtsk commented May 14, 2020

why are you backporting py3 related fix to py2?

as far as I can see those fixes are py2 compatible, and it would be good to have them if it will ease future backport of the conflicting code.

@kshtsk
Copy link
Contributor Author

kshtsk commented May 14, 2020

which ones do you will to drop?

@tchaikov tchaikov merged commit 6844213 into ceph:py2 May 15, 2020
@kshtsk kshtsk deleted the wip-py2-backport-20200514 branch May 15, 2020 22:33
@kshtsk kshtsk requested a review from batrick May 16, 2020 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants