Hi Kristina,

Apologies for not getting to this sooner, it's code I'm not familiar with in
any way.

Overall things are looking good, but I do have some questions/comments:

- In conv.py:

  - The method __create_any_boot_disk() doesn't appear to be of any use,
    should it be still there? Lines 1710-1716 suggest that something should be
    done.

  - In __add_device, line 705-708, you appear to be creating a diskname node
    in-line rather than using the method __create_diskname_node(), why not use
    the method?

  - In __add_device, line 709, you seem to add a partition, but this should
    only be done for an x86 based profile, if it's SPARC based the generated
    manifest will fail, on SPARC slices are direct children of the <disk>
    node. While the DTD will validate, AI itself will fail.

    If you've not done it already, it would really be worth running the
    generated XML manifests, on snv_167+, through a call to:

      auto-install -i -m <manifest>

    The -i will stop before doing anything destructive, of course this would
    also assume that the machine has the right devices.

    Or alternatively, in the tests, you could take a look at the
    $SRC/cmd/auto-install/test/test_target_selection_*.py and mimic what it
    does in calling select_targets, passing your XML to it to ensure that it
    will get through that validation at least.

  - Similarly in __valid_to_add_slice(), line 729, you assume that a partition
    should always be present if specifying a slice, that is not true on SPARC.

  - Lines 1249-1257, are these commented lines needed or can they be removed?

Thanks,

Darren.


On 06/06/2011 15:01, Kristina Tripp wrote:
> I still need at least two volunteers to do a review for the following.  I'm 
> out
> of the office next week Jun 9th and 10th so I'd appreciate getting this into 
> the
> tree before then.  The webrev has been updated to reflect a change from the 
> tech
> writer that js2ai(1) be moved to js2ai(1m).
>
> Webrev
> http://cr.opensolaris.org/~enpointe/cr_7021883/
>
> 7021883 <http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=7021883>
js2ai needs to be updated to work with the new target DTD
> 7040753 <http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=7040753>
js2ai specifying -p with long path name failure
> 7044397 <http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=7044397>
js2ai update to support SC Profile changes made in svn_164
> 7050992 <http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=7050992>
js2ai move man page from js2ai(1) to js2ai(1m)
>
>
>
> Testing:
> Most of the testing for this product still relies on the unit tests and 
> running
> against some known jumpstart configuration profiles and ensuring the converted
> profiles have no validation errors.  The unit test code coverage is 80%+ for 
> all
> files.
>
> There is still a need to test js2ai by running it against some Jumpstart
> profiles and doing some installs based on the files created by js2ai.  
> However,
> I haven't been able to get a AI Server running with all the proper bits so 
> this
> work will need to occur at a latter time period.
> --
>
> <http://www.oracle.com/><http://www.oracle.com/>
> *Kristina Tripp, Senior Software Engineer*
> OracleRevenue Product Engineering
> 500 Eldorado Blvd, MS UBRM05-171
> Broomfield, CO, 80021
> Office: 303-272-8655
> Email: [email protected]
>
> Oracle is committed to developing practices and products that help protect the
> environment
>
>
>
> _______________________________________________
> caiman-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

Reply via email to