Thanks Jack this sounds great. Mark
On 02/18/09 12:03 PM, Jack Schwartz wrote: > Hi Mark. > > While it is possible for DC, AI and other tools to be enhanced with > better diagnostic output, there is a tool delivered with the others > which can be used to figure out where the errors are in a manifest. > > On your install server, run it as follows: > > /usr/bin/ManifestServ -t -v -f /usr/share/auto_install/ai_manifest > <manifest_file.xml> > > The -t option dumps the temporary file. The -v option gives verbose > validation (and default setting) output. > > In general, there are two kinds of validation failure: semantic > validation, and validation vs schema. AI does only schema validation, > as far as I can tell. > > For schema validation: when there are errors, you will see a line > number in the temporary file and "Relax-NG validity error". Look up > the line in the temporary file and match it to the one in your manifest. > > For completeness, please note that the same command can be used to > check DC manifests. > - The command to run ManifestServ is: > /usr/bin/ManifestServ -t -v -f /usr/share/distro_const/DC-manifest > <manifest_file.xml> > > - DC does semantic validation too, which runs methods on the data to > check it. The validator methods are here: > usr/lib/python2.4/vendor-packages/osol_install/distro_const/ValidatorModule.py > > > If semantic validation fails, you will see something like this: > > Validating node(s) at nodepath img_params/user/homedir > Processing new parent node > call validator method is_abs_path() > validate_node: Content "export/home/jack" at img_params/user/homedir > did not validate > > This particular example says that the is_abs_path() validator method > failed to validate the value export/home/jack at img_params/user/homedir. > > I hope that helps, > Jack > > > On 02/17/09 16:37, MARK BLEND wrote: >> Hi, >> >> One time I ran the automated install tool and it told me that my >> manifest failed >> validation. The program new where it failed but refused to tell me so >> I began >> to trouble shoot my one page manifest, un-necessarily. >> >> Mark >> >> _______________________________________________ >> caiman-discuss mailing list >> caiman-discuss at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/caiman-discuss >
