Excerpts from Shang Gao's message of 2015-06-30 12:23 +10:00:
I was trying to provision 2 machines in beaker for kvm migration,
they
need to be on the same subnet, can we set up it in follow section of
Job XML? Thanks!
Unfortunately Beaker doesn't know anything about the lab network
topology so there is no way to express this requirement in
<hostRequires/>.
If you are using dedicated hardware belonging to your team, you can get
them set up in the lab with the desired network topology and then limit
your recipes to those particular systems. Either name them all:
<or>
<hostname value="system1.example.com"/>
<hostname value="system2.example.com"/>
...
</or>
or better, create a system pool for this purpose and limit the recipes
to that pool:
<pool value="sgao-kvm-migration-testing-hardware" />
If you are just using general lab hardware then you might be able to
match on a specific hostname pattern. For example I believe all *.khw.*
systems are on a single VLAN, if you have access to those:
<hostname op="like" value="%.khw.%"/>
--
Dan Callaghan <dcallagh(a)redhat.com>
Senior Software Engineer, Products & Technologies Operations
Red Hat, Inc.