Ah, sorry I forgot one thing... the 3_vlan.xml recipe also requests the
eth devices to have a specific driver:
<eth id="eth1" label="tnet">
<params>
<param name="driver"
value="{$driver}"/>
</params>
</eth>
where the {$driver} refers to the alias define:
<alias name="driver" value="ixgbe"/>
"ixgbe" is the default value here, which you can override with
"-A driver=value" on the lnst-ctl command
The recipe requested parameters are checked against the parameters
present in the pool configuration so for the 3_vlan.xml recipe to find a
match with the default driver value you'd need to add this:
<param name="driver" value="ixgbe"/>
to the eth nics in your pool.
Based on the mac addresses you listed it looks like you're using libvirt
in which case your eth nics are most probably virtio or e1000 driver, in
that case i'd use those values and add the "-A driver=virtio" to the
lnst-ctl command line.
As a side note: the parameters are arbitrary name,value pairs, lnst
doesn't actually check if the nics driver really is ixgbe at the moment.
-Ondrej
On Thu, Jan 17, 2019 at 05:00:51PM +0800, yangj wrote:
> thanks for someone answer my question,but i set the pool like you did ,but
> it doesn't work ,when i test this case
> /root/lnst/recipes/regression_tests/phase1/3_vlans.xml
>
> slave1.html
>
> <slavemachine>
> <params>
> <param name="hostname" value="192.168.102.49"/>
> </params>
> <interfaces>
> <eth label="A" id="1">
> <params>
> <param name="hwaddr"
value="52:54:00:7e:88:d6"/>
> </params>
> </eth>
> </interfaces>
> </slavemachine>
>
> slave2.html
>
> <slavemachine>
> <params>
> <param name="hostname" value="192.168.102.50"/>
> </params>
> <interfaces>
> <eth label="A" id="1">
> <params>
> <param name="hwaddr"
value="52:54:00:45:c6:ea"/>
> </params>
> </eth>
> </interfaces>
> </slavemachine>
>
>
> it will get following error:
>
> 2019-01-17 03:45:14 (localhost) - INFO: Matching machines,
> without virtuals.
> 2019-01-17 03:45:14 (localhost) - INFO: Trying match with
> pool: pool
> 2019-01-17 03:45:14 (localhost) - INFO: Match with pool pool
> not found.
> 2019-01-17 03:45:14 (localhost) - INFO: Trying match with
> pool: poola
> 2019-01-17 03:45:14 (localhost) - INFO: Match with pool
> poola not found.
> 2019-01-17 03:45:14 (localhost) - INFO: Trying match with
> pool: poolb
> 2019-01-17 03:45:14 (localhost) - DEBUG:
> Traceback (most recent call last):
> File "/usr/bin/lnst-ctl", line 180, in get_recipe_result
> nettestctl.provision_machines()
> File
> "/usr/lib/python2.7/site-packages/lnst/Controller/NetTestController.py",
> line 238, in provision_machines
> raise NoMatchError(msg)
> NoMatchError: This setup cannot be provisioned with the current pool.
>
> 2019-01-17 03:45:14 (localhost) - ERROR: This setup cannot be
> provisioned with the current pool.
> 2019-01-17 03:45:14 (localhost) - INFO:
> ===================================== SUMMARY
> =====================================
> 2019-01-17 03:45:14 (localhost) - INFO: 3_vlans.xml match:
> 1 FAIL
> 2019-01-17 03:45:14 (localhost) - INFO: error message:
> This setup cannot be provisioned with the current pool.
> 2019-01-17 03:45:14 (localhost) - INFO:
===================================================================================
> 2019-01-17 03:45:14 (localhost) - INFO: Total test time: 0
> days, 0 hours, 0 minutes, 0 seconds
> 2019-01-17 03:45:14 (localhost) - INFO: Logs are stored in
> '/root/.lnst/logs/2019-01-17_03:45:14'
>
>
> _______________________________________________
> LNST-developers mailing list -- lnst-developers(a)lists.fedorahosted.org
> To unsubscribe send an email to lnst-developers-leave(a)lists.fedorahosted.org
> Fedora Code of Conduct:
https://getfedora.org/code-of-conduct.html
> List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
https://lists.fedorahosted.org/archives/list/lnst-developers@lists.fedora...