[Resolved] Mitaka: openstack server create error HTTP 500 Timeout
2016年4月28日 发布Error:
# openstack server create --flavor m1.tiny --image cirros --nic net-id=d7eaf8ab-b4aa-4533-89b1-517f2ae2dba4 --security-group default --key-name mykey instance1
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'oslo_messaging.exceptions.MessagingTimeout'> (HTTP 500) (Request-ID: req-8701264a-a9a2-44da-acfb-4a7500c7cfdd)
Solution:
1. on controller node, add red lines !
vi /etc/nova/nova.conf
enabled_apis = osapi_compute,metadata
rpc_backend = rabbit
auth_strategy = keystone
my_ip = 192.168.0.115
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver
network_api_class = nova.network.neutronv2.api.API
security_group_api = neutron
linuxnet_interface_driver = nova.network.linux_net.NeutronLinuxBridgeInterfaceDriver
systemctl restart openstack-nova-api.service
2. on compute1 node, add red lines !
# vi /etc/nova/nova.conf
rpc_backend = rabbit
auth_strategy = keystone
my_ip = 192.168.0.116
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver
vif_plugging_is_fatal = False
vif_plugging_timeout = 0
network_api_class = nova.network.neutronv2.api.API
security_group_api = neutron
linuxnet_interface_driver = nova.network.linux_net.NeutronLinuxBridgeInterfaceDriver
# systemctl restart openstack-nova-compute.service
Still problem exists!
# openstack server list
+--------------------------------------+-----------+--------+------------------------+
| ID | Name | Status | Networks |
+--------------------------------------+-----------+--------+------------------------+
| 44048a5f-50b6-4719-852d-a446cd010b4f | instance0 | ACTIVE | selfservice=172.16.1.3 |
+--------------------------------------+-----------+--------+------------------------+
This is vm log from dashbaord, eth0 can not receive ip from openstack.
openstack gives fixed ip to instance0, but instance0 can not get ip inside vm.
route: fscanf
### ifconfig -a
eth0 Link encap:EthernetHWaddr FA:16:3E:FF:F7:FF
inet6 addr: fe80::f816:3eff:feff:f7ff/64 Scope:Link
UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1296 (1.2 KiB)TX bytes:1132 (1.1 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNINGMTU:16436Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1020 (1020.0 B)TX bytes:1020 (1020.0 B)
### route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
route: fscanf
### cat /etc/resolv.conf
cat: can't open '/etc/resolv.conf': No such file or directory
### gateway not found
/sbin/cirros-status: line 1: can't open /etc/resolv.conf: no such file
### pinging nameservers
### uname -a
Linux cirros 3.2.0-80-virtual #116-Ubuntu SMP Mon Mar 23 17:28:52 UTC 2015 x86_64 GNU/Linux
I solved this problem by installing ipset utility.
http://heavenkong.blogspot.kr/2016/04/resolved-mitaka-linux-bridge-agent.html
页:
[1]