arista virt test fixture #4

Supports: xenial bionic focal
Add to new model

Description

The Arista test fixture installs KVM, runs an Arista CVX virtual machine on top of it and exposes its API.


Arista test fixture

This Juju charm installs KVM, runs an Arista CVX virtual machine on top of it and exposes its API (named eAPI). This allows you to easily implement and validate software talking to Arista's eAPI, like this OpenStack Neutron plugin.

It can be deployed on OpenStack. In other words it can run Arista CVX on KVM on KVM.

This charm is implemented with the Operator framework.

Deploying

$ juju deploy cs:~openstack-charmers-next/arista-virt-test-fixture  \
      --constraints mem=4G                                          \
      --resource arista-image=/path/to/arista-cvx-virt-test.qcow2   \
      --config arista-image-sha256sum=d19c70248ec44cf634496cce72051ca5ef2f8ef6dff04e0e6fca353476d3654e
$ juju status | grep ready
arista-virt-test-fixture/0*  active    idle   0        172.20.0.12            Unit is ready
$ curl --insecure --location --silent https://172.20.0.12 | grep "<title>"
   <title>Command API Explorer</title>

arista-cvx-virt-test.qcow2 is based on Arista's official image and is expected to:

  • configure the interface management 1 with the IP address 172.27.32.7/23,
  • expose eAPI to https/443, and
  • route all outgoing traffic to 172.27.32.1.

Configuration

arista-image-sha256sum
(string) sha256sum of the qcow2 image passed as `arista-image` resource.
d19c70248ec44cf634496cce72051ca5ef2f8ef6dff04e0e6fca353476d3654e