Bug #7852
Updated by Andrew Stormont almost 4 years ago
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.
<pre>
root@omnios:~/illumos-gate# svccfg archive -a > /tmp/archive.xml
root@omnios:~/illumos-gate# svccfg restore /tmp/archive.xml
svccfg: Invalid input.
</pre>
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.
<pre>
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>
</pre>
Before change the events in the notification_parameters section look like this:
<pre>
<event value='list.suspect,fmnotify'/>
</pre>
The "fmnotify" suffix is the SCF_NOTIFY_PG_POSTFIX. After the change:
<pre>
<event value='list.suspect'/>
</pre>
The restore code is able to parse this.
Webrev: http://cr.illumos.org/~webrev/andy_js/7852/