[openstack-dev] [Ironic] Functional testing, Tempest

Adam Gandelman adamg at ubuntu.com
Fri Mar 21 02:16:14 UTC 2014


Hi--

We've made some progress over the last week or so toward more thorough
Ironic CI:

* Initial devstack support has been merged enabling an all-in-one Ironic
environment that uses libvirt+VMs+OVS to support baremetal deployments [1]

* Devananda and myself have been getting patches pushed into infra. that
add an experimental devstack gate check using the new support

While we continue to work out the kinks in the devstack gate, I've started
thinking about what functional Ironic tests in Tempest would look like.
 I've been capturing my thoughts in an etherpad [2] and invite anyone
interested to add theirs.

I've put together a Tempest scenario test that validates instance spawn and
corresponding Ironic orchestration  [3].  This initial test assumes its
being tested against the pxe_ssh driver (which devstack enrolls nodes with)
and verifies assumptions accordingly.  A longer term goal would be for this
same test to be run against other non-devstack environments (ie, TripleO
undercloud) and verify other things specific to the drivers in use there.

I'm curious to know what others think should be, or even can be, stressed
and tested from the outside by Tempest.  Since Tempest cannot assume it has
access to poke at management resources like libvirt, IPMI, etc. it can
really only inspect what is provided by the APIs.  Validating that
nova/neutron/etc injects the correct data into Ironic node/port/etc objects
seems like the most that can happen beyond simply spawning an instance and
waiting for it to show up on the network.

On a related note, running Tempest in the gate against Ironic presents some
interesting challenges that we'll need to work with the Tempest team to
solve.  The API and smoke tests that are run assume many things about the
supported features of the running compute driver. Many of these are not
supported in Ironic (eg,, boot from volume).  This not specific to Ironic
(eg, lxc) but will require some discussion and work before Tempest is just
point-and-shoot against Ironic.   I'm wondering if it would make sense to
lean on the soon-to-be-deprecated devstack exercises for verification in
the short-term, while we work through the larger issues in Tempest.

-Adam


[1] https://review.openstack.org/#/c/70348/
[2] https://etherpad.openstack.org/p/IronicCI
[2] https://review.openstack.org/#/c/81958/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140320/0130d3e0/attachment.html>


More information about the OpenStack-dev mailing list