Les agents neutron sont installés sur une autre VM Network , et sont bien démarrés root@controller:~# neutron agent-list +--------------------------------------+--------------------+---------+-------+----------------+---------------------------+ | id | agent_type | host | alive | admin_state_up | binary | +--------------------------------------+--------------------+---------+-------+----------------+---------------------------+ | 1714d4a5-3323-40e3-8d3f-f205eaf9423a | Metadata agent | network | :-) | True | neutron-metadata-agent | | 31d94ed6-2aa0-4e15-9214-0b3b7c32fa1c | L3 agent | network | :-) | True | neutron-l3-agent | | 33ef1b17-677b-4840-839d-bc5dab1c4549 | DHCP agent | network | :-) | True | neutron-dhcp-agent | | 492a8b2f-3299-4f34-b9f9-0e3a4ac1f6f7 | Open vSwitch agent | compute | :-) | True | neutron-openvswitch-agent | | 7b9c470b-3496-494d-84fa-662ba2e7f07f | Open vSwitch agent | network | :-) | True | neutron-openvswitch-agent | +--------------------------------------+--------------------+---------+-------+----------------+---------------------------+ root@network:~# service neutron-plugin-openvswitch-agent status neutron-plugin-openvswitch-agent start/running, process 1604 *Ismail SEBBANE*Consultant Informatique @ NEOXIA <http://www.neoxia.com> sebbane.ismail@gmail.com 0033 6 83 00 88 57 Pensez à l’environnement. N’imprimez ce courriel que si vous en avez vraiment besoin. Le 27 avril 2015 12:26, Trelohan Christophe <ctrelohan@voyages-sncf.com> a écrit :
Bonjour,
Les agents openvSwitch tournent bien sur les compute ?
*De :* ismail SEBBANE [mailto:sebbane.ismail@gmail.com] *Envoyé :* lundi 27 avril 2015 12:17 *À :* Sebastien DEON *Cc :* openstack-fr@lists.openstack.org *Objet :* Re: [OpenStack-fr] Erreur lors de la création d'une instance de test
J'ai ajouté 1Gio de Ram j'ai en total 2Gio sur la VM Compute.
Le type d'instance que j'installe est m1.tiny donc 512Mio Ram et 1Gio de Disque je pense.
Pour infos :
# free -m
total used free shared buffers cached
Mem: 2001 441 1560 0 33 222
-/+ buffers/cache: 185 1815
Swap: 1019 0 1019
root@compute:/var/log/nova#
# df -h
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
/dev/mapper/ubuntu--vg-root 6,5G 2,1G 4,1G 35% /
none 4,0K 0 4,0K 0% /sys/fs/cgroup
udev 990M 4,0K 990M 1% /dev
tmpfs 201M 476K 200M 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 1001M 0 1001M 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/sda1 236M 68M 156M 31% /boot
Est il suffisant ?
Le message d'erreur est : Failed to allocate the network(s), not rescheduling.
N'est il pas un problème avec libvirt ! :
2015-04-27 11:35:28.546 1975 WARNING nova.virt.libvirt.driver [-] Timeout waiting for vif plugging callback for instance e61a2db8-2d44-4cd1-b07d-3c14c4cdcb51
..
2015-04-27 11:35:30.681 1975 ERROR nova.compute.manager [-] [instance: e61a2db8-2d44-4cd1-b07d-3c14c4cdcb51] Failed to allocate network(s)
..
2015-04-27 11:35:30.689 1975 ERROR nova.compute.manager [-] [instance: e61a2db8-2d44-4cd1-b07d-3c14c4cdcb51] Build of instance e61a2db8-2d44-4cd1-b07d-3c14c4cdcb51 aborted: Failed to allocate the network(s), not rescheduling.
[image: Images intégrées 1]
*Ismail SEBBANE **Consultant Informatique @ **NEOXIA* <http://www.neoxia.com> *sebbane.ismail@gmail.com* <sebbane.ismail@gmail.com> 0033 6 83 00 88 57 *Pensez à l’environnement. N’imprimez ce courriel que si vous en avez vraiment besoin.*
2015-04-27 11:56 GMT+02:00 Sebastien DEON <sebastien.deon@pharmagest.com>:
Bonjour,
Ça sent le manque de ressources sur ton virtualbox. Augmente la ram et le disque de ta VM.
sd
*De :* ismail SEBBANE [mailto:sebbane.ismail@gmail.com] *Envoyé :* lundi 27 avril 2015 11:48 *À :* openstack-fr@lists.openstack.org *Objet :* [OpenStack-fr] Erreur lors de la création d'une instance de test
Bonjour,
Je débute sur OpenStack, j'ai installé que les briques de bases en suivant la doc officiel <http://docs.openstack.org/juno/install-guide/install/apt/content/> sur VirtualBox (Ubuntu) .
Par contre je rencontre des problèmes à la création des instances en utilisant l'image de test cirros-0.3.3-x86_64
Les logs en PJ, et ci-dessous quelques éléments utiles.
Pouvez vous m'aider a débloquer cette situation .
Merci
root@controller:~# source admin-openrc.sh
root@controller:~# neutron net-list
+--------------------------------------+-----------+-------------------------------------------------------+
| id | name | subnets |
+--------------------------------------+-----------+-------------------------------------------------------+
| eed8ae7c-43d5-473e-80b0-3404cf6361fa | demo-net2 | 2229302c-401c-4d26-8cac-f888c328fc45 192.168.1.0/24 |
| 865128d4-d8d1-4c8b-bbef-4229e2703ce8 | ext-net | 2d1a4e2b-a0c0-4314-ae07-ec80c27764ef 192.168.100.0/24 |
+--------------------------------------+-----------+-------------------------------------------------------+
root@controller:~# neutron subnet-list
+--------------------------------------+--------------+------------------+--------------------------------------------------------+
| id | name | cidr | allocation_pools |
+--------------------------------------+--------------+------------------+--------------------------------------------------------+
| 2229302c-401c-4d26-8cac-f888c328fc45 | demo-subnet2 | 192.168.1.0/24 | {"start": "192.168.1.2", "end": "192.168.1.254"} |
| 2d1a4e2b-a0c0-4314-ae07-ec80c27764ef | ext-subnet | 192.168.100.0/24 | {"start": "192.168.100.101", "end": "192.168.100.200"} |
+--------------------------------------+--------------+------------------+--------------------------------------------------------+
root@controller:~# neutron router-list
+--------------------------------------+--------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
| id | name | external_gateway_info
| distributed | ha |
+--------------------------------------+--------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
| f91c86fc-ce64-4ddb-a20d-293b2fe9f908 | demo-router2 | {"network_id": "865128d4-d8d1-4c8b-bbef-4229e2703ce8", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "2d1a4e2b-a0c0-4314-ae07-ec80c27764ef", "ip_address": "192.168.100.103"}]} | False | False |
+--------------------------------------+--------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
root@controller:~# keystone service-list
+----------------------------------+----------+----------+----------------------------+
| id | name | type | description |
+----------------------------------+----------+----------+----------------------------+
| 00e15b4acd1f4137863f39bf084087c9 | glance | image | OpenStack Image Service |
| 9401ac24d9d24ca3ac91feeefa79f2df | keystone | identity | OpenStack Identité Service |
| c826e7b944a74bd98373c68b954b3d9c | neutron | network | OpenStack Networking |
| 66fc7dccce0c4f238bf4f7ab92a2dfe5 | nova | compute | OpenStack Compute |
+----------------------------------+----------+----------+----------------------------+
root@controller:~# glance image-list
+--------------------------------------+---------------------+-------------+------------------+----------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+--------------------------------------+---------------------+-------------+------------------+----------+--------+
| d5443117-3b0d-4875-848d-4ff6fdc38bd0 | cirros-0.3.3-x86_64 | qcow2 | bare | 13200896 | active |
+--------------------------------------+---------------------+-------------+------------------+----------+--------+
root@controller:~# source demo-openrc.sh
nova boot --flavor m1.tiny --image cirros-0.3.3-x86_64 --nic net-id=eed8ae7c-43d5-473e-80b0-3404cf6361fa --security-group default --key-name openstack demo-instance1
+--------------------------------------+------------------------------------------------------------+
| Property | Value |
+--------------------------------------+------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | building |
| OS-SRV-USG:launched_at | - |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| adminPass | r55uSgYuyyMB |
| config_drive | |
| created | 2015-04-27T09:02:40Z |
| flavor | m1.tiny (1) |
| hostId | |
| id | 237df3fb-7100-438c-b63c-d180b37b59ec |
| image | cirros-0.3.3-x86_64 (d5443117-3b0d-4875-848d-4ff6fdc38bd0) |
| key_name | openstack |
| metadata | {} |
| name | demo-instance1 |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | BUILD |
| tenant_id | 1adba37b4e074499a1597a62e91f29f5 |
| updated | 2015-04-27T09:02:40Z |
| user_id | f91fe6ea397d41e08aa7803c181ea5cf |
+--------------------------------------+------------------------------------------------------------+
root@controller:/var/log# nova list
+--------------------------------------+----------------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+----------------+--------+------------+-------------+----------+
| 237df3fb-7100-438c-b63c-d180b37b59ec | demo-instance1 | ERROR | spawning | NOSTATE | |
+--------------------------------------+----------------+--------+------------+-------------+----------+
Merci
*Ismail SEBBANE **Consultant Informatique @ **NEOXIA* <http://www.neoxia.com> *sebbane.ismail@gmail.com* <sebbane.ismail@gmail.com> 0033 6 83 00 88 57 *Pensez à l’environnement. N’imprimez ce courriel que si vous en avez vraiment besoin.*