Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1508506 - [Ceph-ansible]: Stopping of NFS-server service required prior to installation of RGW-NFS
[Ceph-ansible]: Stopping of NFS-server service required prior to installation...
Status: POST
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: Ceph-Ansible (Show other bugs)
3.0
Unspecified Unspecified
unspecified Severity unspecified
: rc
: 3.*
Assigned To: Ali Maredia
vidushi
Bara Ancincova
:
Depends On:
Blocks: 1494421
  Show dependency treegraph
 
Reported: 2017-11-01 11:02 EDT by vidushi
Modified: 2018-04-12 14:32 EDT (History)
12 users (show)

See Also:
Fixed In Version:
Doc Type: Known Issue
Doc Text:
.The `nfs-server` must be disabled on the NFS Ganesha node When the `nfs-server` service is running on the NFS Ganesha node, an attempt to start the NFS Ganesha instance after its installation fails. To work around this issue, ensure that `nfs-server` is stopped and disabled on the NFS Ganesha node before installing NFS Ganesha. To do so: ---- # systemctl disable nfs-server # systemctl stop nfs-server ----
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Github ceph/ceph-ansible/pull/2488 None None None 2018-04-12 14:32 EDT
Github ceph/ceph-ansible/pull/2514 None None None 2018-04-12 14:32 EDT

  None (edit)
Description vidushi 2017-11-01 11:02:08 EDT
Description of problem:
Stopping/disabling kNFS service required before installing NFS-Ganesha via ceph-ansible. 

Version-Release number of selected component (if applicable):
ceph-ansible-3.0.4-1.el7cp.noarch

How reproducible:
always

Steps to Reproduce:
1. Configured ceph-ansible to have a NFS role.
2. Ran ansible-playbook (site.yml)
3. After installation, Check for the nfs-ganesha service. It fails to start.

Actual results:


Expected results:


Additional info:
For details refer BZ https://bugzilla.redhat.com/show_bug.cgi?id=1452762
Comment 4 Ali Maredia 2017-11-03 13:49:12 EDT
Bara,

The exact name of the service is "nfs-server". In your description on this bug, everywhere you say "nfs-service" should be "nfs-server". 

-Ali
Comment 7 leseb 2018-03-15 09:55:29 EDT
Why was nfs-server running in the first place?
Looks like a system misconfiguration to me.
Comment 8 Alfredo Deza 2018-03-16 07:23:53 EDT
I get that this might be a system misconfiguration, but why wouldn't ceph-ansible be able to stop the service if it is running in order to continue the installation?
Comment 10 leseb 2018-03-21 03:46:29 EDT
Ok, so this sounds more like a request.
I didn't get that this was on purpose.
I guess we can if the service runs and stop it/disable it.

However, I'm just really hesitant changing the system configuration, if kNFS is running it might be for a good reason.

The best thing we should do IMHO is to check if the service runs, fail the playbook and ask to stop it before pursuing the installation.

Is that acceptable to everyone?
Thanks
Comment 11 vidushi 2018-03-21 08:53:40 EDT
(In reply to leseb from comment #10)
> Ok, so this sounds more like a request.
> I didn't get that this was on purpose.
> I guess we can if the service runs and stop it/disable it.
> 
> However, I'm just really hesitant changing the system configuration, if kNFS
> is running it might be for a good reason.
> 
> The best thing we should do IMHO is to check if the service runs, fail the
> playbook and ask to stop it before pursuing the installation.
> 
> Is that acceptable to everyone?
> Thanks

Hi leseb,

When we do the manual way of installing nfs-ganesha, it is mandatory to stop and disable kNFS before installing nfs-ganesha-rgw. NFS-Ganesha will not start if another NFS instance is running.  

As per the doc:
" If the nfs-service service is running, stop and disable it:
# systemctl stop nfs-server.service
# systemctl disable nfs-server.service "

As we are automating nfs-ganesha-rgw installation in 3.0, it will be better to stop and disable nfs-server.service via ceph-ansible. 

Thanks,
Vidushi
Comment 12 Ali Maredia 2018-04-02 13:56:23 EDT
Here is a PR that stops the service before the nfs-ganesha service can be started:

https://github.com/ceph/ceph-ansible/pull/2488
Comment 13 Ali Maredia 2018-04-12 14:27:32 EDT
The above PR has been merged. Ceph-ansible now stops nfs-server via systemd if before it start nfs-ganesha.

Note You need to log in before you can comment on or make changes to this bug.