ESA SCOS 2000 deployment automation with SlipStream in the Cloud

Konstantin Skaburskas

SCOS 2000 (S2K - ESA Operations Centre Ground Control System Software) is a complex software stack providing ESA’s satellite operators the ability to control and monitor the entire command and control chain. It consists of many components comprising cutting-edge software as well as legacy modules. A number (over five) industrial partners actively develop and maintain the S2K system on behalf of ESA.

MICONYS system

SixSq teamed-up with Terma, one of ESA’s sub-contractors, to help in automating the manual and laborious deployment and testing of S2K systems.

S2K runs on SLES11 and is distributed as a set of tarballs. In some cases the software components delivery between subcontractors and ESOC is even done using CDs.

In such case it’s difficult to talk about processes of continuous integration and delivery of the full software stack. From the bright side, for us it was great to know that all the participating parties acknowledge the shortcomings and were enthusiastic in changing the approach.

SlipStream with its abilities to

  • build new machine images
  • provision compute resources on Clouds using public and/or custom built images
  • orchestrate multi-machine deployments
  • run tests, collect results and deliver them for post-processing

is a perfect match to tackle the issues. Indeed, it provids a framework (running as PaaS) for complex multitiered software deployments enabling automation of laborious work via repeatability of complex tasks on dynamically provisioned resources. Recently we developed a Jenkins/Hudson continuous integration plugin for SlipStream allowing even tighter integration into continuous build, deployment and testing processes.

Cloud

For evaluation purposes, the decision was made to use the site’s local resources and deploy StratusLab as a private Cloud. A full deployment of StratusLab was done, including a local Marketplace service. For VMs, public IP addresses were used and we were running a local DHCP server provided with the StratusLab installation. SlipStream was also locally installed on the site.

Hardware

The test environment consisted of two low range servers: 4 cores, 8 GB RAM with plenty of disk space. These resources were just enough to be able to deploy S2K in a standard three-nodes deployment scenario, which consists of the following S2K servers

  • CLIENT - desktop server used by ESOC operators to launch client applications, which in turn connects to PRIME
  • PRIME - server providing most of the business logic for clients and holding databases
  • BACKUP - PRIME’s backup for failover

S2K three nodes deployment in SlipStream

The deployment order of the S2K PRIME, BACKUP and CLIENT nodes is the following: CLIENT nodes should wait until the PRIME is up and ready to accept connections, and only then connect to it; the PRIME and BACKUP can start concurrently since this concurrency is handled by S2K, where the BACKUP server will wait until the PRIME is up.

S2K Deployment Scenario

For each of the nodes a respective image module with the required deployment scripts and runtime parameters was created in SlipStream. After this, the nodes were combined into a deployment module resolving dependencies on runtime parameters between the participating nodes.

Below is a collection of screenshots of SlipStream during the S2K deployment: the deployment definition itself, running phase, and the set of collected reports per node.

S2K Deployment with SlipStream

MMI testing

The S2K components we had to deal with are Linux desktop GUI applications requiring KDE. All the applications have to be started from within the S2K application launcher running in the same X server session. To be able to manipulate the GUI applications in unattended manner LDTP was used. To be able to launch X11 (with LDTP server running inside) on headless machines a handy approach for X11 Automated GUI Testing in Hudson scripted here was used.

Finally, for each of the servers, we were able to create Python script utilizing LDTP framework that was emulating a user working with GUI: launching required applications, filling out fields in edit boxes, confirming selections in dialogs, clicking here-and-there etc. All the GUI apps and their elements were conveniently addressed by names.

Results

By utilizing SlipStream alongside with automated GUI testing we were able to greatly decrease the software deployment and testing times. This decrease in time is from days and weeks to minutes.

With the availability of the S2K components deployments, and possibility to retrieve and post-process the test results the whole QA turns into a fully automated process.

After the demonstration of the capabilities of SlipStream (provisioning VMs on StratusLab) and the implemented GUI testing method the overall approach is seen and acknowledged as a game changer by all the partners.

Retrospective

The time spent by the system to complete the deployment can be decomposed into the following steps:

  1. VMs provisioning, where the cloud engine (StratusLab in this case) allocates resources and starts the VM.
  2. VMs boot up to the point where they can accept external connections
  3. Orchestration of the deployment by SlipStream

With the modest hardware resources available for this environment, the entire workflow took less than 25 minutes, with each step listed above roughly taking a third of the time. Using better hardware and the latest version of StratusLab supporting image caching and thin provisioning, the first step would be reduced to a few seconds. The boot time would also improve significantly with more cores and memory available for the different VMs. The orchestration step would remain the same. We can therefor conclude that with a more modern hardware resources, we could execute the entire workflow within 10 minutes.

blog comments powered by Disqus

Customers

Our customers are large and small system integrators, high-tech companies, institutions and agencies. We value transparent relationships, built on trust and honesty. This approach is valued by our customers and partners, giving us an edge over competition.