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'