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
Fix opensuse provisioning support #1369
Conversation
Can one of the admins verify this patch? |
ok to test |
@susebot run deploy |
Commit b0910b4 is OK. |
@susebot run deploy |
Commit b0910b4 is OK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to have a bit more of a description (in the commit msg) what is broken and why this is needed (see also https://github.com/ceph/ceph/blob/master/SubmittingPatches.rst#id7 )
b0910b4
to
d9265e4
Compare
Ti be honest
commit message is updated |
suse:tier0 in sepia for this PR http://pulpito.ceph.com/kyr-2019-12-09_19:46:45-suse:tier0-nautilus-none-basic-smithi/ |
teuthology/nuke/actions.py
Outdated
if dist_release in ['opensuse', 'sle']: | ||
remote.run( | ||
args=['sudo', 'zypper', 'clean'] | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason why remote.run
instead of remote.sh
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah... looks like copy-paster
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should I replace it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new code, why not to make it humanized?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please use remote.sh like this:
remote.sh('sudo zippier clean')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@ryg- the run above has used following file:
And the command:
I had to apply the patch from the #1373 to the teuthology in order to successfully schedule the run. |
a2411f3
to
626a6f3
Compare
@susebot run deploy |
Commit 626a6f3 is NOT OK. |
2ef24c2
to
54509bf
Compare
@ryg- needs a rebase to fix the test failure |
54509bf
to
4f8834e
Compare
@susebot run deploy |
1 similar comment
@susebot run deploy |
Commit 4f8834e is NOT OK. |
Hi @ryg- This doesn't fix the kernel task, though, right? We still have to use |
teuthology/task/selinux.py
Outdated
elif remote.os.name in ['opensuse', 'sle']: | ||
msg = "Excluding {host}: \ | ||
SELinux is not supported for '{os}' os_type yet" | ||
log.info(msg.format(host=remote.shortname)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
os=remote.os.name
missing here, causing test failure:
2020-01-17T20:50:22.461 INFO:teuthology.run_tasks:Running task selinux...
2020-01-17T20:50:22.482 ERROR:teuthology.run_tasks:Saw exception from tasks.
Traceback (most recent call last):
File "/home/teuthworker/src/git.ceph.com_git_teuthology_wip-fix-opensuse-provisioning/teuthology/run_tasks.py", line 86, in run_tasks
manager = run_one_task(taskname, ctx=ctx, config=config)
File "/home/teuthworker/src/git.ceph.com_git_teuthology_wip-fix-opensuse-provisioning/teuthology/run_tasks.py", line 65, in run_one_task
return task(**kwargs)
File "/home/teuthworker/src/git.ceph.com_git_teuthology_wip-fix-opensuse-provisioning/teuthology/task/selinux.py", line 42, in __init__
super(SELinux, self).__init__(ctx, config)
File "/home/teuthworker/src/git.ceph.com_git_teuthology_wip-fix-opensuse-provisioning/teuthology/task/__init__.py", line 36, in __init__
self.filter_hosts()
File "/home/teuthworker/src/git.ceph.com_git_teuthology_wip-fix-opensuse-provisioning/teuthology/task/selinux.py", line 59, in filter_hosts
log.info(msg.format(host=remote.shortname))
KeyError: 'os'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am able to test this PR in the Sepia lab now. It's currently failing with KeyError: 'os'
in the selinux task for the reason noted.
66dda9a
to
b31a085
Compare
task/selinux.py, orchestra/remote.py: disable SELinux for opensuse/suse distros nuke/actions.py: added support for sle/opensuse distros Signed-off-by: Roman Grigorev <rgrigorev@suse.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay, with this and -k none
I get through provisioning phase! It still fails in the install task but that can be fixed in a follow-up PR.
@susebot run deploy |
Commit b31a085 is NOT OK. |
@susebot run deploy |
run in sepia started in 01/19 |
@susebot run deploy |
Commit b31a085 is OK. |
task/selinux.py, orchestra/remote.py: disable SELinux for opensuse/suse distros
nuke/actions.py: added support for sle/opensuse distros
Signed-off-by: Roman Grigorev rgrigorev@suse.de