Post Views:
2,257
Jadi ceritanya hari ini tanggal 6 Februari 2018 saya mencoba menginstall openstack ocata multi node, yang saya install diatas CentOS, pada awalnya semua berjalan lancar dimulai provisioning vm ubuntu, kemudian saya mencoba provisioning windows cloud base, muncul error seperti dibawah ini.
|
2018-02-06 03:50:06.496 3777 ERROR nova.compute.manager [req-906459f9-6985-4a2c-a57b-d48532b4a26c 2d66793ad98943edbd0f787ab6cbebb4 e249291ffdf147c6a93a302e5d78130d - - -] [instance: 43d61b38-658f-4752-bdb9-3da7aa2e2806] Failed to allocate network(s) 2018-02-06 03:50:06.496 3777 ERROR nova.compute.manager [instance: 43d61b38-658f-4752-bdb9-3da7aa2e2806] Traceback (most recent call last): 2018-02-06 03:50:06.496 3777 ERROR nova.compute.manager [instance: 43d61b38-658f-4752-bdb9-3da7aa2e2806] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1938, in _build_and_run_instance 2018-02-06 03:50:06.496 3777 ERROR nova.compute.manager [instance: 43d61b38-658f-4752-bdb9-3da7aa2e2806] block_device_info=block_device_info) 2018-02-06 03:50:06.496 3777 ERROR nova.compute.manager [instance: 43d61b38-658f-4752-bdb9-3da7aa2e2806] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2756, in spawn 2018-02-06 03:50:06.496 3777 ERROR nova.compute.manager [instance: 43d61b38-658f-4752-bdb9-3da7aa2e2806] destroy_disks_on_failure=True) 2018-02-06 03:50:06.496 3777 ERROR nova.compute.manager [instance: 43d61b38-658f-4752-bdb9-3da7aa2e2806] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5195, in _create_domain_and_network 2018-02-06 03:50:06.496 3777 ERROR nova.compute.manager [instance: 43d61b38-658f-4752-bdb9-3da7aa2e2806] raise exception.VirtualInterfaceCreateException() 2018-02-06 03:50:06.496 3777 ERROR nova.compute.manager [instance: 43d61b38-658f-4752-bdb9-3da7aa2e2806] VirtualInterfaceCreateException: Virtual Interface creation failed |
setelah di lihat dari errornya, ternayata masalahnya karena “Failed to allocate the network(s), not rescheduling.” itu menyebabkan virtual port dari instance ke host compute tidak terbentuk, sehingga muncul error seperti itu. untuk mengatasi masalah tersebut sebernarnya caranya cukup simple dan mudah untuk dijalankan (ya iyalah namanya juga simple :P, becanda :D).
[Topologi]
|
-------------- ------------- | controller | ------------------------>| compute01 | -------------- ------------- | | ------------- ------------------------------->| compute02 | ------------- |
jadi saya punya 1 controller dan 2 compute
edit pada semua node (controller dan kedua compute)
|
[root@controller ~(keystone_admin)]# vim /etc/nova/nova.conf vif_plugging_is_fatal = False vif_plugging_timeout = 0 |
ubah nilainya seperti diatas, kalo udah tingal restart servicenya aja pada semua node
|
[root@controller ~(keystone_admin)]# systemctl restart openstack-nova-* [root@controller ~(keystone_admin)]# systemctl status openstack-nova-* |
untuk testing, coba buat instance lagi, harusnya berhasil, kalo masih gagal coba liat log nya lagi 😀
semoga dapat membantu 😀
wassalamualaikum
sumber : http://thaiserv.blogspot.co.id/2016/08/issue-failed-to-allocate-networks-not.html
Komentar