Project

General

Profile

Bug #7088

libshare should check nfs protocol value against netconfig(4) database

Added by Yuri Pankov over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
nfs - NFS server and client
Start date:
2016-06-09
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Using uppercase "TCP" or "UDP" as "protocol" property value is accepted by sharectl(1M), but will make nfs/server go into maintenance mode:

Jun  9 13:21:13 sirius svc.startd[100003]: svc:/network/nfs/server:default: Method "/lib/svc/method/nfs-server start" failed with exit status 95.
Jun  9 13:21:13 sirius svc.startd[100003]: network/nfs/server:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details)
Jun  9 13:21:13 sirius fmd: SUNW-MSG-ID: SMF-8000-YX, TYPE: defect, VER: 1, SEVERITY: major
Jun  9 13:21:13 sirius EVENT-TIME: Thu Jun  9 13:21:13 MSK 2016
Jun  9 13:21:13 sirius PLATFORM: ProLiant-DL160-G6, CSN: CZJ20704QY, HOSTNAME: sirius
Jun  9 13:21:13 sirius SOURCE: software-diagnosis, REV: 0.1
Jun  9 13:21:13 sirius EVENT-ID: 7c29d5df-00f1-c7d6-cd3f-b29c13f7ac94
Jun  9 13:21:13 sirius DESC: A service failed - a start, stop or refresh method failed.
Jun  9 13:21:13 sirius   Refer to http://illumos.org/msg/SMF-8000-YX for more information.
Jun  9 13:21:13 sirius AUTO-RESPONSE: The service has been placed into the maintenance state.
Jun  9 13:21:13 sirius IMPACT: svc:/network/nfs/server:default is unavailable.
Jun  9 13:21:13 sirius REC-ACTION: Run 'svcs -xv svc:/network/nfs/server:default' to determine the generic reason why the service failed, the location of any logfiles, and a list of other services impacted.

service log:

[ Jun  9 13:21:12 Stopping because service restarting. ]
[ Jun  9 13:21:12 Executing stop method ("/lib/svc/method/nfs-server stop 98"). ]
[ Jun  9 13:21:13 Method "stop" exited with status 0. ]
[ Jun  9 13:21:13 Executing start method ("/lib/svc/method/nfs-server start"). ]
couldn't find netconfig entry for protocol TCPCould not start NFS service for any protocol. Exiting/lib/svc/method/nfs-server: nfsd failed with 1
[ Jun  9 13:21:13 Method "start" exited with status 95. ]
[ Jun  9 13:21:13 Stopping for maintenance due to service_request. ]
[ Jun  9 13:21:13 Stopping for maintenance due to service_request. ]

#1

Updated by Yuri Pankov over 4 years ago

  • Subject changed from configuring NFS for TCP-only causes NFS service to be inoperable to libshare should check nfs protocol value against netconfig(4) database
#2

Updated by Electric Monk over 4 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100

git commit f091aea1782d0de0cb0f320b76b56ffb4b37ef5d

commit  f091aea1782d0de0cb0f320b76b56ffb4b37ef5d
Author: Yuri Pankov <yuri.pankov@nexenta.com>
Date:   2016-06-10T15:20:59.000Z

    7088 libshare should check nfs protocol value against netconfig(4) database
    Reviewed by: Marcel Telka <marcel@telka.sk>
    Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Also available in: Atom PDF