Bug #7852
svccfg archive should drop SCF_NOTIFY_PG_POSTFIX
Start date:
2017-02-11
Due date:
% Done:
100%
Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
Description
The svccfg restore fails with "Invalid input." because it is unable to parse the FMA events stored in the "notification_parameters" section of the archive.
root@omnios:~/illumos-gate# svccfg archive -a > /tmp/archive.xml root@omnios:~/illumos-gate# svccfg restore /tmp/archive.xml svccfg: Invalid input.
This is because the parser doesn't recognise SCF_NOTIFY_PG_POSTFIX. This is something used internally and is added on restore. The archive logic should not be exporting it.
root@omnios:~# svccfg svc:/system/fm/notify-params> select notify-params:default svc:/system/fm/notify-params:default> listpg general framework list.suspect,fmnotify notify_params list.repaired,fmnotify notify_params list.resolved,fmnotify notify_params restarter framework NONPERSISTENT restarter_actions framework NONPERSISTENT svc:/system/fm/notify-params:default>
Where SCF_NOTIFY_PG_POSTFIX is appended on restore: https://github.com/illumos/illumos-gate/blob/master/usr/src/cmd/svc/svccfg/svccfg_xml.c#L1621