hardcord service nfs-kernel-server for debian distribution

Bug #1647915 reported by Akira KAMIO
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Invalid
Low
Tom Barron

Bug Description

An error occurs when deleting nfs, because it is different in red hat because the path of nfs-server is different.

```
2016-11-24 19:32:47.740 25436 ERROR oslo_messaging.rpc.server File "/opt/manila/lib/python2.7/site-packages/manila/share/drivers/lvm.py", line 155, in _ssh_exec_as_root
2016-11-24 19:32:47.740 25436 ERROR oslo_messaging.rpc.server return self._execute(*command, **kwargs)
2016-11-24 19:32:47.740 25436 ERROR oslo_messaging.rpc.server File "/opt/manila/lib/python2.7/site-packages/manila/utils.py", line 65, in execute
2016-11-24 19:32:47.740 25436 ERROR oslo_messaging.rpc.server return processutils.execute(*cmd, **kwargs)
2016-11-24 19:32:47.740 25436 ERROR oslo_messaging.rpc.server File "/opt/manila/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 394, in execute
2016-11-24 19:32:47.740 25436 ERROR oslo_messaging.rpc.server cmd=sanitized_cmd)
2016-11-24 19:32:47.740 25436 ERROR oslo_messaging.rpc.server ProcessExecutionError: Unexpected error while running command.
2016-11-24 19:32:47.740 25436 ERROR oslo_messaging.rpc.server Command: service nfs-kernel-server restart
2016-11-24 19:32:47.740 25436 ERROR oslo_messaging.rpc.server Exit code: 6
2016-11-24 19:32:47.740 25436 ERROR oslo_messaging.rpc.server Stdout: u''
2016-11-24 19:32:47.740 25436 ERROR oslo_messaging.rpc.server Stderr: u'Redirecting to /bin/systemctl restart nfs-kernel-server.service\nFailed to restart nfs-kernel-server.service: Unit nfs-kernel-server.service failed to load: No such file or directory.\n'
2016-11-24 19:32:47.740 25436 ERROR oslo_messaging.rpc.server
```

Akira KAMIO (kamio)
Changed in manila:
assignee: nobody → Akira KAMIO (kamio)
Changed in manila:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on manila (master)

Change abandoned by Tom Barron (<email address hidden>) on branch: master
Review: https://review.openstack.org/407846
Reason: No activity since Feb 2017; restore and rebase if appropriate.

Revision history for this message
Jason Grosso (jgrosso) wrote :

Akira and update on this the change was abandoned due to inactivity, are you still seeing this issue?

Changed in manila:
importance: Undecided → Low
Revision history for this message
Akira KAMIO (kamio) wrote :

Hi Jason,
I maybe think can still seeing this issue.

Revision history for this message
Tom Barron (tpb) wrote :

Akira, can you tell us what RHEL based distribution you are using? Is the issue that we should be running 'systemctl restart nfs-server' instead of 'systemctl restart nfs-kernel-server' ?

Revision history for this message
Tom Barron (tpb) wrote :

Akira, also, I see this bug is assigned to you -- do you have or are you planning to submit a patch for this?

Revision history for this message
Vida Haririan (vhariria) wrote :
Tom Barron (tpb)
Changed in manila:
assignee: Akira KAMIO (kamio) → Tom Barron (tpb)
Revision history for this message
Tom Barron (tpb) wrote :

Closing since this isn't a bug anymore. The non-portable 'service restart' commands were replaced by 'systemctl ' commands quite some time ago and AFAICT the systemctl commands used are portable across Linux distributions that run OpenStack.

Please open a new bug with new specifics if new portability issues are encountered.

Changed in manila:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.