Projet

Général

Profil

Openstack » Historique » Version 43

Laurent GUERBY, 02/09/2014 14:43

1 1 Laurent GUERBY
{{>toc}}
2 1 Laurent GUERBY
3 1 Laurent GUERBY
h1. Openstack
4 1 Laurent GUERBY
5 1 Laurent GUERBY
h2. Objectifs
6 1 Laurent GUERBY
7 2 Laurent GUERBY
Monter un cluster openstack a tetaneutral.net en remplacement de ganeti (h1/4/5/6) + libvirt (n7).
8 1 Laurent GUERBY
9 24 Laurent GUERBY
h2. Liens
10 24 Laurent GUERBY
11 24 Laurent GUERBY
* http://opensource.com/business/14/5/new-openstack-tutorials
12 33 Mehdi Abaakouk
* [[Openstack Installation TTNN]]
13 24 Laurent GUERBY
14 11 Laurent GUERBY
h2. Ressources
15 10 Laurent GUERBY
16 1 Laurent GUERBY
Ressources dispo :
17 15 Laurent GUERBY
# h5 P8H67-M PRO i7-2600 16GB upgradable a 32 GB 4xSATA 3Gb 2xSATA 6Gb http://www.asus.com/Motherboards/P8H67M_PRO/specifications/
18 12 Laurent GUERBY
# h6 P8H67-M PRO i7-2600 16GB upgradable a 32 GB 
19 12 Laurent GUERBY
# h1 P8H67-M PRO i7-2600 16GB upgradable a 32 GB perso guerby 
20 15 Laurent GUERBY
# h4 P8H67-M EVO i7-2600 16GB upgradable a 32 GB 4xSATA 3Gb 2xSATA 6Gb 1x eSATA perso guerby http://www.asus.com/Motherboards/P8H67M_EVO/specifications/
21 32 Laurent GUERBY
# h8 Intel DQ67OW  i5-2500  32 GB (ex velizy) http://ark.intel.com/products/51999/Intel-Desktop-Board-DQ67OW
22 12 Laurent GUERBY
# z2-4 P8H67-M PRO i7-2600  16GB upgradable 32 GB FSF France
23 15 Laurent GUERBY
# z2-9 GA-890GPA-UD3H i7-2600  16GB pas upgradable 6x SATA 6Gb 2x SATA 3Gb FSF France http://www.gigabyte.com/products/product-page.aspx?pid=3516#sp
24 15 Laurent GUERBY
# bm0402 Q87M vPro  i7-4770 32 GB  FSF France 6x SATA 3Gb  http://www.asrock.com/mb/Intel/Q87M%20vPro/?cat=Specifications
25 12 Laurent GUERBY
# bm0403 Q87M vPro  i7-4770 32 GB FSF France
26 26 Laurent GUERBY
# lapaillasse.org GA-B75M-D3H  i3-3220 perso julien core i7 24 upgradable 32 GB + 5 disques http://www.gigabyte.com/products/product-page.aspx?pid=4150#sp
27 15 Laurent GUERBY
# xeon S1200BTL E3-1230 8GB upgradable a 32 GB 6x SATA  perso guerby http://ark.intel.com/products/53557/intel-server-board-s1200btl
28 15 Laurent GUERBY
# pc2 DQ67SW i5-2500 16GB upgradable 32 GB perso guerby http://ark.intel.com/products/51997/intel-desktop-board-dq67sw
29 31 Laurent GUERBY
# n7 PowerEdge R310 rackable 32 GB 4x SATA http://www.dell.com/downloads/emea/products/R310_spec_sheet.pdf
30 30 Laurent GUERBY
# STRI rackable 32 GB 1U SC813MTQ-350CBK - PWS-351-1H - 4x Hot-swap 3.5" SAS/SATA X9SCL-F 4xDDR3 UDIMM 8GB KVR1333D3E9S/8G xeon E3-1230V2 3x3TB WD3000FYYZ RE  http://www.supermicro.com/products/motherboard/Xeon/C202_C204/X9SCL-F.cfm
31 29 Laurent GUERBY
32 29 Laurent GUERBY
33 29 Laurent GUERBY
34 29 Laurent GUERBY
35 3 Laurent GUERBY
# TODO PC mutu Yannick ?
36 1 Laurent GUERBY
# TODO INSA ?
37 1 Laurent GUERBY
# perso autre ?
38 1 Laurent GUERBY
39 32 Laurent GUERBY
Total 5*32 + 1*24 + 7*16 + 1*8 = 304 GB upgradable  13*32 + 1*16 = 416 GB
40 1 Laurent GUERBY
41 17 Laurent GUERBY
Autres
42 17 Laurent GUERBY
43 17 Laurent GUERBY
# chaussette H77MA-G43 MS-7756 i3-3220 4GB RAM = 2x2 GB upgradable a 32 GB 2x1.5 TB 2x SATA6Gb + 4 x SATA3Gb http://www.msi.com/product/mb/H77MAG43.html#/?div=Basic
44 19 Laurent GUERBY
# lesplanade.org B75-D3V G620T 16GB RAM upgradable 32 GB 500GB disque 1xSATA6Gb 4x SATA3Gb 1xmSATA http://www.gigabyte.com/products/product-page.aspx?pid=4149#sp
45 23 Laurent GUERBY
# h7 Q87M vPro i5-4570 8GB upgradable a 32GB SSD Samsung_SSD_840_PRO_Series_S1ANNSAF106674W 6x SATA 3Gb   http://www.asrock.com/mb/Intel/Q87M%20vPro/
46 25 Laurent GUERBY
47 25 Laurent GUERBY
48 25 Laurent GUERBY
lapaillasse
49 25 Laurent GUERBY
<pre>
50 25 Laurent GUERBY
disque_dur WESTERN DIGITAL Caviar Red - 3 To - SATA 6Go/s  - 64 Mo cache - disque dur spécial pour NAS 
51 25 Laurent GUERBY
disque_dur WESTERN DIGITAL Caviar Green - 1 To - SATA   6Go/s - 64 Mo Cache WD10EZRX 
52 25 Laurent GUERBY
disque_dur WESTERN DIGITAL Caviar Red - 1 To - SATA 6Gos   - 64 Mo cache - disque dur spécial pour NAS 
53 25 Laurent GUERBY
processeur INTEL Core i3-3220 3.30GHz 3Mo Cache Socket    LGA1155 Graphics HD2500 35W BX80637I33220 |    BX80637I33220 
54 25 Laurent GUERBY
memoire_DDR3 KINGSTON Hyper X Blu Red Serie 8G (1x8Go)   PC12800 1600MHz CL10 | KHX16C10B1R/8 3x
55 25 Laurent GUERBY
carte_mere GIGABYTE GA-B75M-D3H | Chipset Intel B75 -    Socket 1155 - DDR3 - 2x PCIE 16X (dont 1x 3.0) - 1x SATA3 -    USB 3.0 - HDMI/DVI/VGA - mATX 
56 25 Laurent GUERBY
</pre>
57 25 Laurent GUERBY
58 1 Laurent GUERBY
Uses cases
59 1 Laurent GUERBY
60 1 Laurent GUERBY
# Je veux bien filer mes disques a installer sur d'autres machines mais je veux rester seul root sur mes machines physiques, je chiffrerai donc le stockage distant que j'utilise, possible ?
61 1 Laurent GUERBY
# Je veux bien partager des disques de ma machine mais je veux rester seul root sur mes machines physiques, possible ?
62 1 Laurent GUERBY
# Autre ?
63 1 Laurent GUERBY
64 1 Laurent GUERBY
h2. Reunions
65 1 Laurent GUERBY
66 21 Laurent GUERBY
h3. lundi 20140421 
67 1 Laurent GUERBY
68 21 Laurent GUERBY
midi Toulouse centre a la belle verte http://www.labellevertebio.com/
69 21 Laurent GUERBY
# Loic
70 21 Laurent GUERBY
# Elie
71 21 Laurent GUERBY
# Laurent
72 21 Laurent GUERBY
73 6 Laurent GUERBY
discussion droits et ceph : 
74 6 Laurent GUERBY
* http://ceph.com/docs/master/rados/operations/auth-intro/#cephx-limitations
75 6 Laurent GUERBY
* http://ceph.com/docs/master/rbd/rbd-ko/
76 7 Laurent GUERBY
* rados messages https://github.com/ceph/ceph/tree/master/src/messages
77 7 Laurent GUERBY
* rados messenger https://github.com/ceph/ceph/tree/master/src/msg
78 8 Laurent GUERBY
* Public access to RBD http://lists.ceph.com/pipermail/ceph-users-ceph.com/2014-April/019017.html
79 16 Laurent GUERBY
* Sharing hard drives with Ceph http://dachary.org/?p=2930
80 1 Laurent GUERBY
* patch par dachary pour simplifier : https://github.com/ceph/ceph/pull/1717
81 21 Laurent GUERBY
82 21 Laurent GUERBY
h3. vendredi 20140425
83 21 Laurent GUERBY
84 21 Laurent GUERBY
12h30 Labege http://www.lacoteetlarete.fr/
85 21 Laurent GUERBY
# Mehdi
86 21 Laurent GUERBY
# Joris
87 21 Laurent GUERBY
# Elie
88 21 Laurent GUERBY
# Lionel
89 21 Laurent GUERBY
# Laurent
90 22 Laurent GUERBY
91 22 Laurent GUERBY
* howto ubuntu http://redmine.the.re/projects/there/wiki/HOWTO_setup_OpenStack
92 22 Laurent GUERBY
* KVM debian rdb pb avec arm http://metadata.ftp-master.debian.org/changelogs//main/q/qemu/qemu_1.7.0+dfsg-9_changelog
93 22 Laurent GUERBY
* manifest enovance https://github.com/enovance/puppet-openstack-cloud
94 22 Laurent GUERBY
* BSD http://wiki.ceph.com/Planning/Blueprints/Emperor/Increasing_Ceph_portability
95 34 Laurent GUERBY
96 34 Laurent GUERBY
h3. mardi 20140902
97 34 Laurent GUERBY
98 34 Laurent GUERBY
9h 10 tricou, mehdi et laurent
99 34 Laurent GUERBY
100 34 Laurent GUERBY
<pre>
101 34 Laurent GUERBY
ceph osd tree
102 34 Laurent GUERBY
=> affiche les osd et devices
103 34 Laurent GUERBY
=> cat /proc/mounts pour voir ou c'est cree
104 34 Laurent GUERBY
105 34 Laurent GUERBY
ceph osd crush rule dump
106 34 Laurent GUERBY
=> regles
107 35 Laurent GUERBY
108 35 Laurent GUERBY
ceph osd pool get ssds min_size
109 35 Laurent GUERBY
=> repond ok apres min_size replica
110 35 Laurent GUERBY
ceph osd pool get ssds size
111 35 Laurent GUERBY
=> nb de replica
112 35 Laurent GUERBY
113 35 Laurent GUERBY
ceph -s
114 35 Laurent GUERBY
=> status du cluster
115 35 Laurent GUERBY
up => fonction
116 35 Laurent GUERBY
in => utilisé
117 35 Laurent GUERBY
118 35 Laurent GUERBY
pg = placement group
119 35 Laurent GUERBY
120 35 Laurent GUERBY
/etc/init.d/ceph stop osd 
121 35 Laurent GUERBY
=> simuler un arret
122 35 Laurent GUERBY
/etc/init.d/ceph stop osd.4
123 35 Laurent GUERBY
=> arret juste un disque
124 35 Laurent GUERBY
125 35 Laurent GUERBY
ceph osd set noout
126 35 Laurent GUERBY
ceph osd unset noout
127 35 Laurent GUERBY
=> desactive la replication automatique si on sait qu'on va couper une machine
128 35 Laurent GUERBY
129 35 Laurent GUERBY
rbp -p images import fichier_in fichier_dans_pool
130 36 Laurent GUERBY
=> ajout un pichier dans un pool ici images
131 36 Laurent GUERBY
132 36 Laurent GUERBY
rados lspools
133 36 Laurent GUERBY
=> liste des pools
134 37 Laurent GUERBY
135 37 Laurent GUERBY
rados -p disks ls
136 37 Laurent GUERBY
=> affiche les objets
137 37 Laurent GUERBY
138 37 Laurent GUERBY
ceph => osd/mon
139 37 Laurent GUERBY
rados => objets
140 37 Laurent GUERBY
rbd => block device
141 34 Laurent GUERBY
</pre>
142 38 Laurent GUERBY
143 38 Laurent GUERBY
question a loic sur les placement groups
144 38 Laurent GUERBY
145 38 Laurent GUERBY
consideration reseau /etc/ceph/ceph.conf
146 38 Laurent GUERBY
147 38 Laurent GUERBY
<pre>
148 38 Laurent GUERBY
cluster_network = 192.168.3.0/24
149 38 Laurent GUERBY
# replication entre les osd
150 38 Laurent GUERBY
151 38 Laurent GUERBY
public_network = 192.168.3.0/24
152 38 Laurent GUERBY
mon_host = 192.168.3.101,192.168.3.102,192.168.3.103
153 38 Laurent GUERBY
# acces aux moniteurs + osd pour les clients
154 38 Laurent GUERBY
</pre>
155 39 Laurent GUERBY
156 39 Laurent GUERBY
157 39 Laurent GUERBY
<pre>
158 39 Laurent GUERBY
source os.conf
159 40 Laurent GUERBY
nova list 
160 40 Laurent GUERBY
nova list --fields host,networks,name
161 39 Laurent GUERBY
nova show VM
162 40 Laurent GUERBY
nova list --host g1 
163 41 Laurent GUERBY
164 41 Laurent GUERBY
neutron net-list
165 41 Laurent GUERBY
neutron port-list
166 42 Laurent GUERBY
167 43 Laurent GUERBY
/var/log/libvirt/livirtd.log
168 39 Laurent GUERBY
</pre>