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

build/ops: rpm: package cephfs-shell for SUSE as well as Fedora #23656

Merged
merged 1 commit into from Aug 25, 2018

Conversation

smithfarm
Copy link
Contributor

@smithfarm smithfarm commented Aug 20, 2018

6dd06b0 introduced RPM packaging of cephfs-shell

This initial packaging was Fedora-only, but colorama and cmd2 are packaged
for both openSUSE and SLE.

Note: there is no py2-compatible version of cephfs-shell.

Signed-off-by: Nathan Cutler ncutler@suse.com

@smithfarm
Copy link
Contributor Author

Is cephfs-shell py3-only? By this I mean, it will not even compile or run when installed via pip on a py2-only system?

Alternatively (same question asked in a different way), if the right python modules were available in py2 versions, would the current cephfs-shell code run on CentOS 7?

@batrick
Copy link
Member

batrick commented Aug 20, 2018

Is cephfs-shell py3-only? By this I mean, it will not even compile or run when installed via pip on a py2-only system?

I'm not sure but I also don't think we should care. py3 is the future thrust upon us so I don't want to spend any effort making this py2 compatible. Keep in mind the shell will only become available broadly in Nautilus.

# python3-cmd2 and python3-colorama are not available in RHEL/CentOS, openSUSE
# or SLES
%if 0%{?fedora}
%if 0%{with cephfs_shell}
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@smithfarm
Copy link
Contributor Author

smithfarm commented Aug 21, 2018

@batrick OK. Sounds like cephfs-shell should be built only if with_python2 is false.

@smithfarm
Copy link
Contributor Author

The (probably rhetorical) question is: do we know yet whether Python 3 will still be "in the future" when Nautilus release rolls around?

@batrick
Copy link
Member

batrick commented Aug 21, 2018

@batrick OK. Sounds like cephfs-shell should be built only if with_python2 is false.

Why? Wouldn't you still install it if with_python3 is true?

@smithfarm
Copy link
Contributor Author

@batrick I see what's needed: whenever cephfs-shell is built, it should be built for py3 unconditionally.

ceph.spec.in Outdated
Requires: python%{python3_pkgversion}-cmd2
Requires: python%{python3_pkgversion}-colorama
Requires: python%{python3_pkgversion}-cephfs
Requires: python%{_python_buildid}-cmd2
Copy link
Contributor

Choose a reason for hiding this comment

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

python3_pkgversion is used on purpose.

@smithfarm smithfarm force-pushed the wip-cephfs-shell-fixes branch 3 times, most recently from 16cdc19 to 072f1c5 Compare August 21, 2018 14:11
@smithfarm
Copy link
Contributor Author

ok, ready now

ceph.spec.in Outdated
@@ -47,14 +47,14 @@
%endif
%endif
%bcond_with seastar
%if 0%{?suse_version} >= 1500
%if 0%{?fedora} || 0%{?suse_version} >= 1500 # distros where py2 is _optional_
Copy link
Contributor

Choose a reason for hiding this comment

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

error: /tmp/install-deps.1467/ceph.spec:50: bad %if condition

Copy link
Contributor

Choose a reason for hiding this comment

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

probably we should put comment in separated lines?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

gah, yes

@smithfarm smithfarm changed the title build/ops: rpm: fix cephfs-shell packaging build/ops: rpm: package cephfs-shell for SUSE Aug 21, 2018
6dd06b0 introduced RPM packaging of cephfs-shell

This initial packaging was Fedora-only, but colorama and cmd2 *are* packaged
for both openSUSE and SLE.

Note: there is no py2-compatible version of cephfs-shell.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
@smithfarm smithfarm changed the title build/ops: rpm: package cephfs-shell for SUSE build/ops: rpm: package cephfs-shell for SUSE as well as Fedora Aug 21, 2018
@batrick batrick merged commit e0f7936 into ceph:master Aug 25, 2018
batrick added a commit that referenced this pull request Aug 25, 2018
* refs/pull/23656/head:
	build/ops: rpm: package cephfs-shell for SUSE as well as Fedora

Reviewed-by: Kefu Chai <kchai@redhat.com>
@smithfarm smithfarm deleted the wip-cephfs-shell-fixes branch September 8, 2018 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants