maas-test package

Registered by Julian Edwards

Creation of a test package that can be used to plug in a piece of hardware and put it through some tests to determine if it will work with maas.

Blueprint information

Status:
Complete
Approver:
Julian Edwards
Priority:
Essential
Drafter:
Julian Edwards
Direction:
Approved
Assignee:
None
Definition:
Approved
Series goal:
Accepted for 1.5
Implementation:
Implemented
Milestone target:
milestone icon 14.04
Started by
Julian Edwards
Completed by
Julian Edwards

Related branches

Sprints

Whiteboard

Example invocation line:
maas-test eth0 --deploy-arch=amd64 --deploy-release=saucy --archive="ppa:<whatever> or cloud-archive:tools"

User will plug a cable from eth0 on laptop to hardware under test.
User will power on hardware which then enlists to maas.
Test scripts accept the node, then attempt to power up and commission.

Problems:
 * BMC may not be on a DHCP already so cannot specify IPMI address etc, so need to enlist first
 * test package needs to download ~220M of ephemerals, make sure it can reach cached archives as necessary

Detailed workflow:
 * maas-test creates a kvm on the test host with net bridge to specified network interface
 * maas-test copies itself to kvm instance
 * kvm downloads maas from specified archive (defaults to cloud archive)
 * kvm runs test scripts
  * script downloads ephemerals
  * scripts starts up maas components
  * wait for machine to enlist
  * accept enlisted machine
  * wait until "Ready"
optionally will also do a juju bootstrap in the future.

QA:
 * Jeff Lane has volunteered to test this development work

(?)

Work Items

Work items:
Spin up a VM bridged to specified net interface: DONE
Write test script: DONE
Installation to VM; maas, ephemerals and test script: DONE
Submission of results (checkbox to certification.c.c): DONE
Packaging: DONE
Documentation (man page): DONE

This blueprint contains Public information 
Everyone can see this information.