Hey jzupka:

The reason they get different params is that some configurations in
guest-os.cfg
can be only accessed by unattended_install.After you change the case's name,
these parameters will not be imported.

Just as follow:
...
             - JeOS:
                no setup
                variants:
                    - 17.x86_64:
                        image_name = images/jeos-17-64
                        vm_arch_name = x86_64
                        shell_prompt = "^\[.*\][\#\$]\s*$"
                        no unattended_install..floppy_ks
                        _unattended_install:_
                            kernel_params = "repo=cdrom:/dev/sr0
ks=cdrom:/dev/sr1 nicdelay=60 console=ttyS0,115200 console=tty0"
                            boot_path = "images/pxeboot"
                            anaconda_log = "yes"
                            unattended_file = unattended/JeOS-17.ks
                            cdrom_unattended = images/jeos-17-64/ks.iso
                            kernel = images/jeos-17-64/vmlinuz
                            initrd = images/jeos-17-64/initrd.img
                            syslog_server_proto = tcp
                        _unattended_install.cdrom:_
                            cdrom_cd1 = isos/linux/Fedora-17-x86_64-DVD.iso
                            md5sum_cd1 = 26f3358a5f8973f0956093f28a0106e7
                            md5sum_1m_cd1 = 51988b8593ad488fe5a790a183cf3d81
...

Thanks
Yu


On 06/27/2013 07:41 PM, Jiri Zupka wrote:
> Hi Dongsheng,
>   what was the problem?
>
> regards,
>   Jiří Župka
>
> ----- Original Message -----
>> OK!!
>> I found the reason with the help from Yu.
>> Thank you very much.
>> Also thanx Qingtang. :)
>>
>> On 06/27/2013 11:36 AM, Yang Dongsheng wrote:
>>> On 06/27/2013 11:31 AM, Qingtang Zhou wrote:
>>>> * On 2013-06-27 10:54:02 +0800, Yang Dongsheng
>>>> ([email protected]) wrote:
>>>>> Hi  jzupka and others:
>>>>>      I need some help about cartesian config.
>>>>> Example:
>>>>>      (1). I config the subtests.cfg and tests.cfg as what I attached.
>>>>>             (Actually, just copy the default config of
>>>>> unattended_install.)
>>>>>      (2). I write a src file named parser_test.py in
>>>>> libvirt/tests/src/ to
>>>>>             get the params in the two cases.
>>>>>      (3). I execute "../../autotest libvirt/control --verbose"
>>>>>      (4). Two files created on /tmp/other_name and
>>>>> /tmp/unattended_install.
>>>>>      (5). I write a python file named "diff.py" to diff the two
>>>>> params in the two file.
>>>>>      (6). This is the result of diff.py in attached files named result.
>>>>>
>>>>> Is there something special for the name of unattended_install??? Why
>>>>> the same
>>>>> config in subtests.cfg will get a different params??
>>>>> I need your help, Thanx :)
>>>>>
>>>>> result:
>>>>> *****Missing*****
>>>>> Key: syslog_server_enabled not in other_name.
>>>>> Key: syslog_server_proto not in other_name.
>>>>> Key: md5sum_1m_cd1 not in other_name.
>>>>> Key: cdrom_cd1 not in other_name.
>>>>> Key: unattended_file not in other_name.
>>>>> Key: cdrom_unattended not in other_name.
>>>>> Key: kernel_params not in other_name.
>>>>> Key: md5sum_cd1 not in other_name.
>>>>> Key: boot_path not in other_name.
>>>>> *****Diff*****
>>>>> Key: kernel, diff: {'unattended_install':
>>>>> 'images/rhel63-64/vmlinuz', 'other_name': 'vmlinuz'}.
>>>>> Key: initrd, diff: {'unattended_install':
>>>>> 'images/rhel63-64/initrd.img', 'other_name': 'initrd.img'}.
>>>>> Key: host_setup_flag, diff: {'unattended_install': 1, 'other_name': 2}.
>>>> Hi, Dongsheng,
>>>>
>>>> There are some setting stored in the guest-os's config files.
>>>> I guess you need to have a look at them.
>>>> eg. shared/cfg/guest-os/Linux/RHEL/6.3/x86_64.cfg
>>>>
>>> Thanx for your reply. :)
>>> Yes, the all difference are about guest-os.
>>> It seems the guest-os.cfg is not parsed in other_name case.
>>> But I confusion is why the other_name case configed "only
>>> RHEL.6.3.x86_64"
>>> got no params from guest-os.cfg?
>>> And why the "unattended_install" name is special?
>>> There is nothing different except the name.
>>>
>>>

_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel

Reply via email to