Pruebas Openstack
Pruebas Openstack
Este Anexo contiene las pruebas unitarias realizadas individualmente Módulo a Módulo (siguiendo el
orden instalación) y finalmente las Pruebas de integración con todos los Módulos interconectados.
A continuación se lanzarán comandos típicos de cada uno de los módulos de OpenStack. Se pueden
lanzar los comandos vía el interface online de Openstack (también con euca2ools usando la compatibilidad
con el API de Amazon AWS) o vía la web.
En el caso que nos ocupa se lanzarán con el interface online de Openstack. Mayormente los
comandos que se lanzarán serán de funciones de listar todo tipo de recursos. Existen obviamente comandos
para crear, borrar, modificar, parar, pausar, terminar, arrancar,etc... los recursos en general según las
especificidades de cada elemento o recurso en cuestión. Es intuitivo en base a las funciones que se
presentarán a continuación deducir las facilidades disponible para todas las funciones asociadas. Por otra
parte la visualización de los recursos vía los comandos, sin errores, permite validar, al menos parcialmente
los sucesivos módulos.
Nota: Inicialmente exportamos las variables que utilizarán los interfaces de comandos en línea para trabajar
más comodamente, y no tener que añadirlas en cada sentencia que se introduzca. También por comodidad
trabajamos con el usuario admin, sobre el proyecto admin.
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=admin_password
export OS_AUTH_URL="http://192.168.73.128:5000/v2.0/"
1 Pruebas Unitarias
◦ Keystone
Se prueba el módulo Keystone que básico para el resto de los módulos. Sin este operativo o
correctamente configurado, al basarse la autentificación en éste, el resto no funcionaría.
• Se listan los proyectos existentes:
root@controller:/home/jlperez/installation# keystone tenant-list
+----------------------------------+-----------+---------+
| id | name | enabled |
+----------------------------------+-----------+---------+
| 650c009d7b9848fa80e8713a690f18b0 | Proyecto1 | True |
| 9aa0719fd80d4600a1c3a1e37d76a17b | Proyecto2 | True |
| 2c475211a97d45219754c3862abcbed3 | Proyecto3 | True |
| 42901f7c9572470c90841fd7021f51d4 | admin | True |
| 1caa6e6efb374c6c85390eea82ac12d6 | service | True |
+----------------------------------+-----------+---------+
• Listado de servicios.
root@controller:/home/jlperez/installation# keystone service-list
+----------------------------------+------------+----------------+------------------------------+
| id | name | type | description |
+----------------------------------+------------+----------------+------------------------------+
| 73b2bbc52438465784a2037ec6e3b002 | ceilometer | metering | Ceilometer Telemetry Service |
| 3c1af1febdfe4e759967725ba68611dc | cinder | volume | OpenStack Volume Service |
| ccefdbfa8dd449bc9e6eefeb43a886f9 | ec2 | ec2 | OpenStack EC2 service |
| c02fd4c1ca3d4781bd3f022ceea64f6d | glance | image | OpenStack Image Service |
| 791668e2e55a43179fe0d9888afe361c | heat | orchestration | HEAT Orchestration API |
| 9f2464cea2a846769ec179b268ffddd5 | heat-cfn | cloudformation | Heat CloudFormation API |
| 0daf35a421b14f14a8c31caab43b43c5 | keystone | identity | OpenStack Identity |
| 93ae452eef6c4ec0a5ced0f32bece035 | nova | compute | OpenStack Compute Service |
| 8687e4c4b34540c3a7398c628f1c0507 | quantum | network | OpenStack Networking service |
+----------------------------------+------------+----------------+------------------------------+
• Listado de conexión de APIs para cada uno de los servicios (tanto acceso interno, como
externo). Es completamente configurable.
Nota: Es utilizado a nivel interno para comunicar todas los módulos entre sí.
root@controller:/home/jlperez/installation# keystone endpoint-list
+----------------------------------+-----------+---------------------------------------------+---------------------------------------------
+---------------------------------------------+----------------------------------+
| id | region | publicurl | internalurl | adminurl
| service_id |
+----------------------------------+-----------+---------------------------------------------+---------------------------------------------
+---------------------------------------------+----------------------------------+
| 1e06a05dcbc14b9f8f595bf54522a28e | RegionOne | http://192.168.73.128:8774/v2/$(tenant_id)s | http://192.168.73.128:8774/v2/$
(tenant_id)s | http://192.168.73.128:8774/v2/$(tenant_id)s | 93ae452eef6c4ec0a5ced0f32bece035 |
| 28d0b56498a54e5fb7430034b14063da | RegionOne | http://192.168.73.128:5000/v2.0 |
http://192.168.73.128:5000/v2.0 | http://192.168.73.128:35357/v2.0 | 0daf35a421b14f14a8c31caab43b43c5 |
| 388b0dd59d6f4e5fa611d8110f085ba9 | RegionOne | http://192.168.73.128:8004/v1/%(tenant_id)s |
http://192.168.73.128:8004/v1/%(tenant_id)s | http://192.168.73.128:8004/v1/%(tenant_id)s | 791668e2e55a43179fe0d9888afe361c
|
| 6d71220be0d040daa226aa81b8644421 | RegionOne | http://192.168.73.128:9292 | http://192.168.73.128:9292
| http://192.168.73.128:9292 | c02fd4c1ca3d4781bd3f022ceea64f6d |
| a2d7825a66ea4d3fb97befaa2cec6b08 | RegionOne | http://192.168.73.127:9696/ | http://192.168.73.127:9696/
| http://192.168.73.127:9696/ | 8687e4c4b34540c3a7398c628f1c0507 |
| c6a5b1276ac5412d94b5e958f7dae28f | RegionOne | http://192.168.73.128:8773/services/Cloud |
http://192.168.73.128:8773/services/Cloud | http://192.168.73.128:8773/services/Admin | ccefdbfa8dd449bc9e6eefeb43a886f9 |
| c9b548fb629e47c8bb9a9478e34ad0a9 | RegionOne | http://192.168.73.128:8777 | http://192.168.73.128:8777/
| http://192.168.73.128:8777/ | 73b2bbc52438465784a2037ec6e3b002 |
| ca20388eff4e4313b491e81034896d72 | RegionOne | http://192.168.73.126:8776/v1/$(tenant_id)s | http://192.168.73.126:8776/v1/$
(tenant_id)s | http://192.168.73.126:8776/v1/$(tenant_id)s | 3c1af1febdfe4e759967725ba68611dc |
| e9b58890e46d4c1fad0de208c06e50be | RegionOne | http://192.168.73.128:8000/v1 | http://192.168.73.128:8000/v1
| http://192.168.73.128:8000/v1 | 9f2464cea2a846769ec179b268ffddd5 |
+----------------------------------+-----------+---------------------------------------------+---------------------------------------------
+---------------------------------------------+----------------------------------+
◦ Glance
◦ Nova
• Listado instancias en ejecución (con sus ips locales y flotantes). Del proyecto admin.
Hay otros proyectos que no aparecen con sus máquinas en este listado.
root@controller:/home/jlperez/installation# nova list
+--------------------------------------+----------------------------+--------+------------+-------------+-------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+----------------------------+--------+------------+-------------+-------------------------------+
| bcd54d96-121f-4733-8160-d11e0e06f470 | Smokeping1 | ACTIVE | None | Running | red1=172.0.0.12,
212.231.5.85 |
| 0aa3e559-f2b6-43a3-81cc-1f5281f037d2 | Smokeping2 | ACTIVE | None | Running | red1=172.0.0.14 |
| bf685b25-74fa-4256-9c44-8f5747a2dc71 | Smokeping3 | ACTIVE | None | Running | red1=172.0.0.13 |
| 0766f7dc-6fbe-4a72-811f-0e402ef68dc0 | Windows2013_server_admin_1 | ACTIVE | None | Running | red1=172.0.0.15
|
| ee5a2dec-115d-448a-81b3-3b1576774f04 | instancia1 | ACTIVE | None | Running | red1=172.0.0.1, 212.231.5.66
|
| b1beb641-7225-4d84-b44a-f12d355feeac | instancia10 | ACTIVE | None | Running | red1=172.0.0.9 |
| 0f99577d-42ec-44ab-978e-ddcb4c476db7 | instancia2 | ACTIVE | None | Running | red1=172.0.0.2, 212.231.5.79 |
| 8798ca85-62ef-43d5-8aad-9050093d45d0 | instancia3 | ACTIVE | None | Running | red1=172.0.0.10, 212.231.5.69
|
| 02ae7bed-d407-434c-8558-e051cc59bfcf | instancia4 | ACTIVE | None | Running | red1=172.0.0.4, 212.231.5.76 |
| b1afe09b-3632-4cb7-9cff-388b53e43882 | instancia5 | ACTIVE | None | Running | red1=172.0.0.6 |
| f66061b7-a4d4-4ca5-986c-3f680351b2ff | instancia6 | ACTIVE | None | Running | red1=172.0.0.11 |
| de2f8712-56c6-45a8-be4d-db00be58ab22 | instancia7 | ACTIVE | None | Running | red1=172.0.0.8 |
| 941949e3-0410-4acd-9791-a0e0b9ca5cca | instancia8 | ACTIVE | None | Running | red1=172.0.0.7 |
| a2791a2a-aefa-43ce-9576-d4a2dffa4ec8 | instancia9 | ACTIVE | None | Running | red1=172.0.0.5 |
+--------------------------------------+----------------------------+--------+------------+-------------+-------------------------------+
• Listado caracteristicas especificas de una instancia dada (en este caso una con Windows
2012 server).
root@controller:/home/jlperez/installation# nova show 0766f7dc-6fbe-4a72-811f-0e402ef68dc0
+--------------------------------------+----------------------------------------------------------------------------+
| Property | Value |
+--------------------------------------+----------------------------------------------------------------------------+
| status | ACTIVE |
| updated | 2014-01-01T22:02:25Z |
| OS-EXT-STS:task_state | None |
| OS-EXT-SRV-ATTR:host | compute1 |
| key_name | jlperez |
| image | Windows_server_2012_r2_standar_eval (1bc9c8e5-334e-42a5-90a1-7fb15765baa2) |
| red1 network | 172.0.0.15 |
| hostId | 69776897834008db21330b069b5de1660f9c6fa869c39b126655bd48 |
| OS-EXT-STS:vm_state | active |
| OS-EXT-SRV-ATTR:instance_name | instance-000000c2 |
| OS-SRV-USG:launched_at | 2014-01-01T22:02:24.000000 |
| OS-EXT-SRV-ATTR:hypervisor_hostname | compute1 |
| flavor | jlp3 (f54146fe-db07-435f-bffd-0aa4249e2a0a) |
| id | 0766f7dc-6fbe-4a72-811f-0e402ef68dc0 |
| security_groups | [{u'name': u'jffnms'}] |
| OS-SRV-USG:terminated_at | None |
| user_id | 2aebe03c0a824b2cbc0502ac0e71b082 |
| name | Windows2013_server_admin_1 |
| created | 2014-01-01T22:02:18Z |
| tenant_id | 42901f7c9572470c90841fd7021f51d4 |
| OS-DCF:diskConfig | MANUAL |
| metadata | {} |
| os-extended-volumes:volumes_attached | [] |
| accessIPv4 | |
| accessIPv6 | |
| progress |0 |
| OS-EXT-STS:power_state |1 |
| OS-EXT-AZ:availability_zone | nova |
| config_drive | |
+--------------------------------------+----------------------------------------------------------------------------+
• Valores de cuota asignados para cada recurso a un determinado proyecto
Nota: Todos los elementos se identificar por valor_Id. En el caso siguiente el tenant_id del proyecto
admin es el valor que figura como proyecto
root@controller:/home/jlperez/installation# nova-manage project quota --project=42901f7c9572470c90841fd7021f51d4
Quota Limit In Use Reserved
metadata_items 128 0 0
injected_file_content_bytes 10240 0 0
ram 51200 12288 0
floating_ips 10 0 0
security_group_rules 20 0 0
instances 50 14 0
key_pairs 100 0 0
injected_files 50 0 0
cores 50 15 0
fixed_ips unlimited 0 0
injected_file_path_bytes 255 0 0
security_groups 10 0 0
• Listado para cada nodo de computación de recursos consumidos (también agrupado por
proyecto).
◦ Cinder
• Listado de volumenes creados (De diferentes tamaños). Notese que algunos están
asignados a Ids de instancias y otros no.
root@controller:/home/jlperez/installation# cinder list
+--------------------------------------+-----------+--------------+------+----------------+----------+--------------------------------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+--------------+------+----------------+----------+--------------------------------------+
| 0d10b749-6695-43e8-8238-ce449afd93f4 | in-use | Volumen10 | 10 | Volumen_Backup | false | bcd54d96-121f-4733-8160-
d11e0e06f470 |
| 13dd13af-b661-4e93-932c-6c842c20eb14 | available | Volumen3 | 3 | Volumen_Normal | false | |
| 1cd6f18e-fda3-46e8-9487-0d42032d1dbc | available | Volumen9 | 9 | Volumen_Backup | false | |
| 1fea8244-1596-420c-abae-b44a6bcff946 | available | Volumen7 | 7 | Volumen_Backup | false | |
| 624d4ce1-1020-463c-9a8b-4372d7282c25 | in-use | Volumen2 | 2 | Volumen_Normal | false | 0f99577d-42ec-44ab-978e-
ddcb4c476db7 |
| 7f786f71-6563-4821-9b57-24f2b2663806 | available | Volumen8 | 8 | Volumen_Backup | false | |
| 9b96e220-a57c-4760-81ec-4ed68c2166cd | in-use | Volumen6 | 6 | Volumen_Backup | false | f66061b7-a4d4-4ca5-986c-
3f680351b2ff |
| b2dd4c5e-50f6-4ad9-8ab4-db94b4493b95 | available | Volumen12 | 12 | Volumen_SSD | false | |
| ce4cfbed-ab0e-4b5d-ae56-596f2d24ba32 | in-use | Volumen1 | 1 | Volumen_Normal | false | ee5a2dec-115d-448a-81b3-
3b1576774f04 |
| d25ae079-eeb8-4282-a9c9-d30eec4cbc53 | in-use | Volumen11 | 11 | Volumen_SSD | false | 0aa3e559-f2b6-43a3-81cc-
1f5281f037d2 |
| d32d2b4d-1a03-492c-8346-511edb704cc3 | in-use | Volumen5 | 5 | Volumen_Normal | false | 941949e3-0410-4acd-9791-
a0e0b9ca5cca |
| f855417a-580f-4648-8e7f-ede5043f3ad4 | available | Volumen4 | 4 | Volumen_Normal | false | |
+--------------------------------------+-----------+--------------+------+----------------+----------+--------------------------------------+
◦ Neutron
• Listado de redes del sistema
root@controller:/home/jlperez/installation# neutron net-list
+--------------------------------------+-------------+------------------------------------------------------+
| id | name | subnets |
+--------------------------------------+-------------+------------------------------------------------------+
| 5e5b0b60-ae9b-4af0-a868-b59ebfad6820 | red2 | 7593cfad-f4f6-49a5-8ee8-898173d6c156 172.0.1.0/24 |
| 7da6f3eb-1e29-4ffa-88d6-3a430d2241ab | red1 | 56bf27be-7ad5-4786-9c26-92da694d3c7e 172.0.0.0/24 |
| 80f66904-e8f4-440d-8fb5-6b906834f899 | red3 | 820e836f-0a46-4af9-828c-f5acfd84d9da 172.0.2.0/24 |
| a88f0ede-475a-43b7-98bc-3975993dbae8 | red4 | f16fe191-1c7b-4662-a855-410f9fa9e8d4 172.0.3.0/24 |
| ab9f1557-52c5-4933-9e42-cb016b88c7e6 | Red-Externa | 78b2d80e-f27c-46d6-9d2f-a5e498612245 212.231.5.64/27 |
+--------------------------------------+-------------+------------------------------------------------------+
• Listado de Ips públicas y su asignación (para el proyecto admin, no para todos los
proyectos).
root@controller:/home/jlperez/installation# neutron floatingip-list
+--------------------------------------+------------------+---------------------+--------------------------------------+
| id | fixed_ip_address | floating_ip_address | port_id |
+--------------------------------------+------------------+---------------------+--------------------------------------+
| 0419d199-a04c-49f4-bcf3-2b48dbd060db | 172.0.0.16 | 212.231.5.90 | 46c37f21-bb69-4c74-9d77-a7937ead2172 |
| 21e4a8ff-4155-4a4d-b202-51c1c0bb7ce3 | 172.0.3.3 | 212.231.5.83 | 5e58db75-f542-4260-b75e-748477660062 |
| 22ae44e7-a513-4f48-a76e-d13a278d3179 | 172.0.0.4 | 212.231.5.76 | 335bf076-0578-4fa4-9945-52e36cff1fe7 |
| 2c0e3f12-f49a-46c6-92f6-e9d6aa314aeb | 172.0.2.4 | 212.231.5.81 | f1c7ca30-871e-400d-ad51-8ce94caf3338 |
| 534e8f8e-1599-42d0-a2a6-b4858ab2f55f | | 212.231.5.87 | |
| 5e849373-5845-45e2-a861-f75c4d4340e4 | 172.0.0.2 | 212.231.5.79 | 9a85ad7e-d595-44d7-8fc9-dc33f0afe429 |
| 90eb56e5-84f9-4aca-be34-cb08140a32ae | | 212.231.5.93 | |
| a8f8859c-0877-41af-8baf-60eae2c87681 | | 212.231.5.68 | |
| b47c4eea-047e-4618-98af-41c8ab4bb6f9 | | 212.231.5.89 | |
| b9cff3a3-4a81-4356-bffa-c9a466a90c30 | 172.0.1.1 | 212.231.5.82 | 7cc446d7-1783-480d-844c-f99fa5c42c31 |
| bc1039a6-9560-4e52-87c5-c3fa0e0aff63 | 172.0.0.10 | 212.231.5.69 | 7bc7688e-a206-481d-84e8-717e5a9d7ff5 |
| bd803836-5e5f-46bd-a383-7904b66eaed5 | 172.0.0.1 | 212.231.5.66 | c9a106f4-5080-42af-9fe8-578620613320 |
| d69aea1e-dc45-45cd-b757-551cf3d708e6 | 172.0.0.12 | 212.231.5.85 | bbb7a17c-bd29-4d69-8f69-6389aa3885f8 |
| ed664226-a986-4615-b95e-ce0b16fab159 | | 212.231.5.92 | |
| f7132c25-17e7-4a4c-809f-ff2cd15f46fa | 172.0.3.2 | 212.231.5.88 | d4194af6-f556-4053-8f10-f60eb9e894db |
| fe2bba7d-1a70-49b1-9dff-4979c8592a9f | | 212.231.5.86 | |
+--------------------------------------+------------------+---------------------+--------------------------------------+
◦ Ceilometer
• Listado mediciones del sistema. Para cada recurso,etc... aparece un fragmento muy
pequeño sobre CPU de diferentes tipos, unidades,recursos, proyectos,etc...
root@controller:/home/jlperez/installation# ceilometer meter-list | more
+--------------------------+------------+----------+--------------------------------------+----------------------------------
+----------------------------------+
| Name | Type | Unit | Resource ID | User ID | Project ID |
+--------------------------+------------+----------+--------------------------------------+----------------------------------
+----------------------------------+
| cpu | cumulative | ns | 06f98ee1-08c1-45e9-959a-b6728944dac3 | 0d696638423c4f67a6d5156d6cebf42d |
ac86b387b5c8464b98a6eb2ee1b32cc2 |
| cpu | cumulative | ns | 09041b35-3e10-42b6-b458-be2a1ba47d98 | 2aebe03c0a824b2cbc0502ac0e71b082 |
42901f7c9572470c90841fd7021f51d4 |
| cpu | cumulative | ns | 0b833147-069c-45d0-83f1-c49a53fc0d62 | 2aebe03c0a824b2cbc0502ac0e71b082 |
650c009d7b9848fa80e8713a690f18b0 |
| cpu | cumulative | ns | 16675f96-6221-43a1-b8f7-33e67c127644 | 0d696638423c4f67a6d5156d6cebf42d |
ac86b387b5c8464b98a6eb2ee1b32cc2 |
| cpu | cumulative | ns | 17c6255f-cfdd-44d7-9304-39f85746fb81 | 2aebe03c0a824b2cbc0502ac0e71b082 |
e50641afd909458aaa10f0ed216aaf55 |
| cpu | cumulative | ns | 20025dcd-abfe-4dd1-820f-6c44a8675e33 | 0d696638423c4f67a6d5156d6cebf42d |
ac86b387b5c8464b98a6eb2ee1b32cc2 |
| cpu | cumulative | ns | 2016bd1d-edc0-49fc-8e17-85aff717a0fc | 2aebe03c0a824b2cbc0502ac0e71b082 |
e50641afd909458aaa10f0ed216aaf55 |
| cpu | cumulative | ns | 3605af82-1e57-4c96-94bf-3eac8014c171 | 2aebe03c0a824b2cbc0502ac0e71b082 |
e50641afd909458aaa10f0ed216aaf55 |
| cpu | cumulative | ns | 3efc03d1-436f-405d-9079-a1f72d7285ff | 0d696638423c4f67a6d5156d6cebf42d |
ac86b387b5c8464b98a6eb2ee1b32cc2 |
| cpu | cumulative | ns | 4c2c9f7b-7d55-4bba-a700-aa4b784fbf25 | 2aebe03c0a824b2cbc0502ac0e71b082 |
42901f7c9572470c90841fd7021f51d4 |
| cpu | cumulative | ns | 4cd913d3-a06d-4eba-9b3a-eb9c32f548aa | 2aebe03c0a824b2cbc0502ac0e71b082 |
42901f7c9572470c90841fd7021f51d4 |
| cpu | cumulative | ns | 526bfe0a-ec30-4b9c-be7d-8cae1db28a45 | 0d696638423c4f67a6d5156d6cebf42d |
ac86b387b5c8464b98a6eb2ee1b32cc2 |
etc....
• Descripción de la plantilla creada. Pueden ser tan complejas y extensas como se desee.
root@controller:/home/jlperez/installation# heat stack-show mystack
+----------------------+--------------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+----------------------+--------------------------------------------------------------------------------------------------------------------------------+
| capabilities | [] |
| creation_time | 2013-12-24T10:18:30Z |
| description | Template to test Neutron resources |
| disable_rollback | True |
| id | 88522465-2940-4951-91e9-9d4ef7c1cf68 |
| links | http://192.168.73.128:8004/v1/42901f7c9572470c90841fd7021f51d4/stacks/mystack/88522465-2940-4951-91e9-9d4ef7c1cf68
|
| notification_topics | [] |
| outputs |[ |
| | { |
| | "output_value": null, |
| | "description": "MAC address of the port", |
| | "output_key": "port_mac_address" |
| | }, |
| | { |
| | "output_value": null, |
| | "description": "All attributes for router", |
| | "output_key": "router_show" |
| | }, |
| | { |
| | "output_value": null, |
| | "description": "Device owner of the port", |
| | "output_key": "port_device_owner" |
| | }, |
| | { |
| | "output_value": null, |
| | "description": "All attributes for network", |
| | "output_key": "network_show" |
| | }, |
| | { |
| | "output_value": null, |
| | "description": "Status of the port", |
| | "output_key": "port_status" |
| | }, |
| | { |
| | "output_value": null, |
| | "description": "Status of network", |
| | "output_key": "the_network_status" |
| | }, |
| | { |
| | "output_value": null, |
| | "description": "All attributes for subnet", |
| | "output_key": "subnet_show" |
| | }, |
| | { |
| | "output_value": null, |
| | "description": "All attributes for port", |
| | "output_key": "port_show" |
| | }, |
| | { |
| | "output_value": null, |
| | "description": "Fixed IPs of the port", |
| | "output_key": "port_fixed_ips" |
| | } |
| |] |
| parameters |{ |
| | "AWS::StackId": "arn:openstack:heat::42901f7c9572470c90841fd7021f51d4:stacks/mystack/88522465-2940-4951-91e9-9d4ef7c1cf68",
|
| | "AWS::Region": "ap-southeast-1", |
| | "AWS::StackName": "mystack" |
| |} |
| stack_name | mystack |
| stack_status | CREATE_COMPLETE |
| stack_status_reason | Stack create completed successfully |
| template_description | Template to test Neutron resources |
| timeout_mins | 60 |
| updated_time | 2013-12-24T10:18:36Z |
+----------------------+--------------------------------------------------------------------------------------------------------------------------------+
2 Pruebas de Integración
Finalmente vamos a comprobar el acceso vía consola local y vía terminal server.
1) Consola local.
▪ Maquina Linux
Trabajamos ahora en el Proyecto/Tenant Admin que tiene 14 VM funcionado con diferentes Sistemas
Operativos, mayormente Linux, algun Windows,etc..
Se puede observar que todos los servidores están en la red 1 y se conectan con el router1 a la red
externa.
Hemos configurado un servidor con Ubuntu y le hemos instalado el Smokeping (servidor smokeping1).
Algo importante que no he mencionado antes es que deben de asignase siempre keypairs a los servidores,
para acceso vía ssh, para recuperar el password (como en el caso de windows,etc...). Siempre se de asignar
al servidor cuando se cree la instancia. Usaré keypair jlperez (que la descargaré y guardaré en sitio seguro).
Otro aspecto igualmente importante es el relativo a la gestión de las reglas de seguridad que también deben
aplicarse en el momento de lanzar la instancia (aun cuando se puedan cambiar después). Un ejemplo:
Me conectaré remotamente en primera instancia por ssh usando el keypair jlperez.
[root@fc18-atica .ssh]# ssh -i jlperez.pem [email protected]
Welcome to Ubuntu 12.04.3 LTS (GNU/Linux 3.2.0-56-virtual x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Thu Jan 2 02:22:29 UTC 2014
System load: 0.0 Processes: 72
Usage of /: 11.9% of 9.84GB Users logged in: 1
Memory usage: 15% IP address for eth0: 172.0.0.12
Swap usage: 0%
Graph this data and manage this system at:
https://landscape.canonical.com/
Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud
Use Juju to deploy your cloud instances and workloads:
https://juju.ubuntu.com/#cloud-precise
*** System restart required ***
Last login: Thu Jan 2 02:20:49 2014
ubuntu@smokeping1:~$
Procedería a cambiar el password al usuario ubuntu y entonces podría conectarme vía consola:
También he podido comprobar que dispone del volumen que le tengo asignado
root@smokeping1:/home/ubuntu# fdisk -l
Disk /dev/vda: 10.7 GB, 10737418240 bytes
4 heads, 32 sectors/track, 163840 cylinders, total 20971520 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d96ff
Device Boot Start End Blocks Id System
/dev/vda1 * 2048 20971519 10484736 83 Linux
▪ Monitorización Nagios
Nagios se utiliza para detectar fallos en los procesos relevantes del sistema. Además de
cambiar el estado en la web, para el envio de emails automáticos cuando un proceso falle, un puerto
no responda, se supere la carga de cpu,etc..
En estado normal:
Pero si un proceso (voy a detener el proceso mongodb que afectaría al Módulo Ceilometer, pero no
al resto de Openstack).
root@swift:~# service mongodb status
mongodb start/running, process 23204
root@swift:~# service mongodb stop
mongodb stop/waiting
root@swift:~#
Se observa como en menos de un minuto salta la alarma que dispararía emails, y pudiera
también hacerlo con sms, si habilitasemos una pasarela a tal fin.
▪ Monitorización Munin
Con Munin buscamos obtener gráficas de rendimiento de los Servidores de la Arquitectura y
también internamente de las Máquinas Virtuales.
Por ejemplo particularmente importante es monitorizar lo relativo a los volumenes que se
utilicen. También Memoria, Cpu,etc..
3 CONCLUSIONES
El entorno creado es completamente operativo y está listo para ponerlo en producción en real. Es un
sistema de Gestión Cloud capaz de dar respuestas a las necesidades básicas definidas en el proyecto.
Tiene funcionalidades avanzadas de todo tipo que permiten escalar la plataforma de forma sencilla,
migrar las instancias en vivo, crear snapshots también en vivo,etc.. Todo plenamente probado durante el
presente proyecto.
Todo ello redundará en ahorros de costes operativos de Recursos IT, en costes eléctricos, housing,
etc.. y una enorme mejora de eficiencia de los servicios prestados.