curl 169.254.169.254
1.0
2007-01-19
2007-03-01
...
2009-04-04
curl http://169.254.169.254/2009-04-04
报错
500 internal server error
tail -f /var/log/neutron/metadata-agent.log
2015-12-08 17:09:48.228 26540 WARNING neutron.agent.metadata.agent [-] The remote metadata server responded with Forbidden. This response usually occurs when shared secrets do not match.
2015-12-08 17:09:48.228 26540 INFO eventlet.wsgi.server [-] 10.0.2.14,<local> - - [08/Dec/2015 17:09:48] "GET /latest/meta-data/ HTTP/1.1" 403 179 0.032440
配置文件:
controller:
[root@controller neutron]# cat /etc/nova/nova.conf |grep meta
service_metadata_proxy = True
neutron_metadata_proxy_shared_secret = mmim
metadata_host=controller
enabled_apis=ec2,osapi_compute,metadata
compute1:
service_neutron_metadata_proxy = true
neutron_metadata_proxy_shared_secret = mmim
metadata_host=controller
enabled_apis=ec2,osapi_compute,metadata
network:
[DEFAULT]
verbose = True
auth_url = http://controller:5000/v2.0
auth_region = regionOne
admin_tenant_name = service
admin_user = neutron
admin_password = 123456
nova_metadata_ip = controller
metadata_proxy_shared_secret = mmim
# ip netns exec qdhcp-fdc4153a-b9d8-4390-b675-453c7bb7d3d9 ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
10: tap11ab2fb8-55: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether fa:16:3e:ff:1c:53 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.11/24 brd 10.0.2.255 scope global tap11ab2fb8-55
valid_lft forever preferred_lft forever
inet 169.254.169.254/16 brd 169.254.255.255 scope global tap11ab2fb8-55
valid_lft forever preferred_lft forever
inet6 fe80::f816:3eff:feff:1c53/64 scope link
valid_lft forever preferred_lft forever
虚拟机route -n
### route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.2.1 0.0.0.0 UG 0 0 0 eth0
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.169.254 10.0.2.11 255.255.255.255 UGH 0 0 0 eth0
请大侠们帮分析一下问题出在那?
|
|