[OpenStack-fr] Erreur lors de la création d'une instance de test

Haïkel hguemar at fedoraproject.org
Lun 27 Avr 10:29:11 UTC 2015


Pour du CirrOS, t'as pas besoin d'autant de ressources, redéfinit un type
d'instances plus light. Si possible utilise kvm avec la nested
virtualisation activée, ça te permettra de travailler dans de meilleures
conditions qu'avec virtualbox.

@+
H.
Le 27 avr. 2015 12:18, "ismail SEBBANE" <sebbane.ismail at gmail.com> a écrit :

> 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 at 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 at 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 at 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 at gmail.com]
>> *Envoyé :* lundi 27 avril 2015 11:48
>> *À :* openstack-fr at 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 at controller:~# source admin-openrc.sh
>>
>> root at 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 at 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 at 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 at 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 at 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 at 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 at 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 at gmail.com* <sebbane.ismail at gmail.com>
>> 0033 6 83 00 88 57
>> *Pensez à l’environnement. N’imprimez ce courriel que si vous en avez
>> vraiment besoin.*
>>
>>
>
> _______________________________________________
> OpenStack-fr mailing list
> OpenStack-fr at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-fr
>
>
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://lists.openstack.org/pipermail/openstack-fr/attachments/20150427/e82762ec/attachment-0001.html>
-------------- section suivante --------------
Une pièce jointe autre que texte a été nettoyée...
Nom: image.png
Type: image/png
Taille: 85036 octets
Desc: non disponible
URL: <http://lists.openstack.org/pipermail/openstack-fr/attachments/20150427/e82762ec/attachment-0001.png>
-------------- section suivante --------------
Une pièce jointe autre que texte a été nettoyée...
Nom: image001.jpg
Type: image/jpeg
Taille: 673 octets
Desc: non disponible
URL: <http://lists.openstack.org/pipermail/openstack-fr/attachments/20150427/e82762ec/attachment-0002.jpg>
-------------- section suivante --------------
Une pièce jointe autre que texte a été nettoyée...
Nom: 1120908724.jpg
Type: image/jpeg
Taille: 673 octets
Desc: non disponible
URL: <http://lists.openstack.org/pipermail/openstack-fr/attachments/20150427/e82762ec/attachment-0003.jpg>


Plus d'informations sur la liste de diffusion OpenStack-fr