Project

General

Profile

Bug #5627

svccfg export should accept instance FMRIs

Added by Robert Mustacchi almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
smf
Start date:
2015-02-15
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

It would be nice if svccfg export accepted instance FMRIs, since these are what one would get and cut-and-paste from e.g. svcs(1). Currently this results in a correct but difficult to interpret error message, because the purpose of svccfg export is to export services. Since this is the converse of manifest import (manifests describe services also), it's somewhat sensible.

Reasonable behaviour here is to export the service of which the instance FMRI is a child, and issue a warning that the entire service is being exported because single-instance export is not a thing. In addition, if the instance does not actually exist but the service does, issue an additional warning to that effect. Then export the damned service anyway.

#1

Updated by Electric Monk almost 6 years ago

  • Status changed from New to Closed
  • % Done changed from 90 to 100

git commit bfce16ba853698e8a82133cf3ddb3ff143d14289

commit  bfce16ba853698e8a82133cf3ddb3ff143d14289
Author: Keith M Wesolowski <wesolows@foobazco.org>
Date:   2015-02-20T23:57:22.000Z

    5627 svccfg export should accept instance FMRIs
    Reviewed by: Garrett D'Amore <garrett@damore.org>
    Reviewed by: Dan McDonald <danmcd@omniti.com>
    Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF