Ńň i'dWc@srddkiZddklZddklZddklZddk l Z l Z dei fd„ƒYZ dS(i˙˙˙˙N(tApplicationData(tUnifiedArchive(tALT_POOL_DATASET(tbe_create_snapshottbe_listtCreateSnapshotcBs,eZdZd„Zed„Zd„ZRS(shICT checkpoint class creates an initial snapshot of the installed boot environment data set. cCs#tt|ƒi|ƒd|_dS(sŁInitializes the class Parameters: -name - this arg is required by the AbstractCheckpoint and is not used. tinstallN(tsuperRt__init__t snapshot_name(tselftname((s../create_snapshot.pyR&sc Csş|iƒd }d }|iiidtƒ}|o|iitƒ}n|i }|d j o |}n |i }t ||ƒ}|p|pt d|ƒ‚qÖn.t |ƒdjot d||fƒ‚n|pŮ|iiidtƒ}|d j o$|ididjo d|_n|i|ddjoEtiiƒiƒ}|id |7_|iid ||iƒn|iid ||iƒt||id |ƒnd S(s The AbstractCheckpoint class requires this method in sub-classes. Creates snapshots for the specified data set once the installation completes. Parameters: - the dry_run keyword paramater. The default value is False. If set to True, the log message provides the steps that would be run for the checkpoint. Returns: - Nothing On failure, a RuntimeError is raised by the cfunc interface. t class_typesTarget BE '%s' does not existis*Multiple BEs named '%s' found in pool '%s'itrecoveryt recoveredit-s:Creating additional install snapshot. be: %s, snapshot: %ss/Creating initial snapshot. be: %s, snapshot: %staltpoolN(t parse_doctNonetdoct persistenttget_first_childRt data_dicttgetRt boot_env_nametboot_env_poolnameRt RuntimeErrortlentvolatileRtarchive_objectst archive_typeR tdatetimetnowt isoformattloggertdebugR( R tdry_runtalt_pool_datasettapp_datatbe_nametpoolnametbelisttuat timestamp((s../create_snapshot.pytexecute1s>           cCsdS(sČ The AbstractCheckpoint class requires this method in sub-classes. This returns an estimate of how long the execute() method will take to run. i((R ((s../create_snapshot.pytget_progress_estimates (t__name__t __module__t__doc__RtFalseR,R-(((s../create_snapshot.pyR"s P(tsolaris_install.ictticttICTtsolaris_installRtsolaris_install.archiveRt)solaris_install.target.instantiation_zoneRtsolaris_install.target.libbeRRt ICTBaseClassR(((s../create_snapshot.pyts