Upload
jean-daniel-bonnetot
View
99
Download
1
Embed Size (px)
Citation preview
Initiez vous à OpenStackAvec RunAbove
@runabovecom
runabove.com
RunAbove ?
* Startup au sein d'OVH * Ouvert en avril 2014
* Ofres d'Infrastructures as a Service avecOpenstack
Pourquoi RunAbove ?
* Super hardware : - une vm par host physique - 10 Gbps par vm - SSD 400Mbps I/O... * Le réseau mondial de OVH
* Tarifcation simple
Comment utiliser RunAbove ?
* Mode “simple” - API simple (moins de fonctionnalités) - Espace client simple * Mode “expert”
- API OpenStack- Espace client standard: horizon !
RunAbove & OpenStack
* Trois composants proposés : - Nova (instances) - Swift (object storage) - Keystone (authentifcation) * Openstack sans additifs ni conservateurs
* https://auth.runabove.io/v2.0/
Use case
Serveur de logs avec archivage
* Objectifs métiers :
- Centraliser les logs - Archiver de manière scalable * Objectifs pédagogiques :
- Exploiter OpenStack - Utiliser de l'outillage “cloud”
Création d'une instance avec Juju
* Suivre un guide “How to install an Orchestration tool? Juju with OpenStack” https://community.runabove.com
* Environnement :$ export OS_*$ cat ~/.juju/environments.yamlenvironments:
runabove:type: openstacknetwork: ‘Ext-Net’…
$ juju deploy rsyslog$ juju expose rsyslog
→ Le serveur est prêt à recevoir les logs
Paramétrage des clients
* Confguration côté client :
# echo ‘*.* @111.222.111.222’ >> /etc/rsyslog.conf# service rsyslog restart# logger ‘plop :p’
* Check côté serveur :
$ juju ssh rsyslog/0# tail –n1 /var/log/syslogSep 12 10:05:08 machine-client root: plop :p
Archivage des logs dans Swift
* Coté serveur : installation du client swift
# apt-get install python-swiftclient
* Édition /etc/logrotate.d/rsyslog
/var/log/syslog{…compressdateextlastaction
swift --os-username [email protected] \--os-tenant-name 111222333 \--os-auth-url https://auth.runabove.io/v2.0 \--os-password XXXXXXXXXX \upload logs /var/log/syslog-$(date +%Y%m%d).gz
endscript}
Accéder aux logs depuis Swift
* Lister les logs # swift list --lh logs 10K 2014-09-12 08:25:19 var/log/syslog-20140912.gz
* Download un log
# swift download logs var/log/syslog-20140912.gz var/log/syslog-20140912.gz [headers 1.809s, total 1.810s, 0.006 MB/s]
# ll var/log/syslog-20140912.gz -rw-r--r-- 1 root root 10571 Sep 12 08:23 var/log/syslog-20140912.gz
Questions ?
Jean-Daniel Bonnetot
Vincent Cassé
@vcasse
Jean-Daniel Bonnetot
@pilgrimstack
@runabovecom
runabove.com