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

doc: remove duplicate python packages #22203

Merged
merged 1 commit into from May 29, 2018
Merged

Conversation

hydro-b
Copy link
Contributor

@hydro-b hydro-b commented May 24, 2018

Small documentation fixes based on my experience of following the manual installation instructions.

@tchaikov
Copy link
Contributor

tchaikov commented May 24, 2018

@hydro-b could you squash these three commits into a single one?

and, could you prefix the title of your commit message with the subcomponent your are changing ? see https://github.com/ceph/ceph/blob/master/SubmittingPatches.rst#3-describe-your-changes . in this case, it would be "doc: ".

also, could you add a "Signed-off-by" line at the end of your commit message? "git commit -s" will do the trick for you. see https://github.com/ceph/ceph/blob/master/SubmittingPatches.rst#1-sign-your-work

@hydro-b
Copy link
Contributor Author

hydro-b commented May 24, 2018

@tchaikov Sure, I have just done all that. Should be fine now. Thanks for the pointers.

@dillaman dillaman changed the title Remove duplicate python packages, add cp command for rbd-target-gw / … doc: remove duplicate python packages, add cp command for rbd-target-gw / … May 24, 2018
@@ -147,6 +145,7 @@ on each machine that will be a iSCSI gateway:
> cd ceph-iscsi-cli
> python setup.py install
> cp usr/lib/systemd/system/rbd-target-api.service /lib/systemd/system
> cp rbd-target-api.py /usr/bin/rbd-target-api

Choose a reason for hiding this comment

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

The setup.py script is supposed to strip the .py extension from the scripts [1][2]. Is it not working for some reason for you?

[1] https://github.com/ceph/ceph-iscsi-cli/blob/master/setup.py#L45
[2] https://github.com/ceph/ceph-iscsi-config/blob/master/setup.py#L46

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, it does. But it copies to "/usr/local/bin". The systemd unit file has a ExecStart path of "/usr/bin/rbd-target-api":

ExecStart=/usr/bin/rbd-target-api

I checked the status of the service: reporting it couldn't find the script. I assumed an extra "cp" step was needed, but it turns out the default install path, on Ubuntu 18.04 LTS at least, is /usr/local/bin.

Installing with "python setup.py install --install-scripts=/usr/bin" results in the script being installed in /usr/bin (without the .py extension)

Maybe add the "install --install-scripts=/usr/bin" to ensure where the script will be installed?

Choose a reason for hiding this comment

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

Sure, thx

@hydro-b hydro-b force-pushed the rbd-docu-fixes branch 2 times, most recently from f9e0e26 to 7f3803f Compare May 29, 2018 12:17
@dillaman dillaman changed the title doc: remove duplicate python packages, add cp command for rbd-target-gw / … doc: remove duplicate python packages May 29, 2018
…t installation in path /usr/bin.

        Signed-off-by: Stefan Kooman <stefan@kooman.org>

    Signed-off-by: Stefan Kooman <stefan@kooman.org>
Copy link

@dillaman dillaman left a comment

Choose a reason for hiding this comment

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

lgtm

@dillaman dillaman merged commit 7c01362 into ceph:master May 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants