Skip to content

Python script that check cloud provider availability by creating a test instance

License

Notifications You must be signed in to change notification settings

exogmi/cloud-canary

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cloud-canary

Bunch of Python scripts that perform various checks to test cloud provider availability.

  • cloud-canary

The goal of the script is to schedule a recurring test on a given cloud provider (in our case exoscale) by creating a "canary instance", try to connect to it using SSH and finally destroy it. If any exception occur during the process, an alarm is sent to Riemann monitoring system. Exec time metric is also sent to Riemann to get the latency.

  • api-canary

The goal of the script is to schedule a recurring test on a given cloud provider (in our case exoscale) by performing a test api call (list size). If any exception occur during the process, an alarm is sent to Riemann monitoring system. Exec time metric is also sent to Riemann to get the latency.

  • s3-canary

The goal of the script is to schedule a recurring test on a given s3 provider by creating a file, read it's content and delete it. If any exception occur during the process, an alarm is sent to Riemann monitoring system. Exec time metric is also sent to Riemann to get the latency.

These scripts relies on Apache Libcloud (https://libcloud.apache.org/) and Riemann (http://riemann.io/) and boto.

Requirements

You may install the requirements using the following commands:

pip install apache-libcloud
pip install paramiko (may require python-dev package)
pip install bernhard
pip install boto

Scripts tested only on Ubuntu.

About

Python script that check cloud provider availability by creating a test instance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%