我一直遵循在CentOS 7 VM上安装堆栈驱动程序代理的说明。
这个VM可以访问internet:我可以运行一个针对www.google.com或其他公共服务的traceroute,而不存在任何问题。
[root@dbrocket sysconfig]# ping www.google.com
PING www.google.com (74.125.141.99) 56(84) bytes of data.
64 bytes from vl-in-f99.1e100.net (74.125.141.99): icmp_seq=1 ttl=49 time=74.0 ms
64 bytes from vl-in-f99.1e100.net (74.125.141.99): icmp_seq=2 ttl=49 time=73.0 ms当我尝试启动堆栈驱动程序代理时,它会失败如下:
Apr 03 02:42:55 dbrocket stackdriver-agent[25065]: Starting stackdriver-collectd: Unable to determine collectd endpoint!
Apr 03 02:42:55 dbrocket systemd[1]: stackdriver-agent.service: control process exited, code=exited status=1
Apr 03 02:42:55 dbrocket systemd[1]: Failed to start LSB: start and stop Stackdriver Agent.从源代码看,它似乎无法连接到堆栈驱动程序网关服务,而且实际上无法访问它:
[root@dbrocket sysconfig]# traceroute -n collectd-gateway.google.stackdriver.com
traceroute to collectd-gateway.google.stackdriver.com (173.255.114.144), 30 hops max, 60 byte packets
1 10.80.0.2 36.808 ms 36.733 ms 36.764 ms
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *这些是此VM具有的API权限:
[root@dbrocket sysconfig]# curl --silent -f -H "Metadata-Flavor: Google" http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/scopes
https://www.googleapis.com/auth/cloud.useraccounts.readonly
https://www.googleapis.com/auth/devstorage.read_only
https://www.googleapis.com/auth/logging.write
https://www.googleapis.com/auth/monitoring我将使用附加的google-cloud-plaform API授权范围构建另一个VM,但是这个路由问题看起来还是很奇怪的。我尝试过从不同的越南船民与适当的互联网接入,他们都表现出相同的行为。
我做错了什么?
发布于 2016-04-03 03:12:39
这已经通过修复主网络配置中的防火墙规则来解决。
https://serverfault.com/questions/767814
复制相似问题