MCF:无法预配 mysql 服务



在OSX 10.7.4上的VMWare Fusion 5.0.1上运行MCF。VMC版本为0.3.19

当我尝试在MCF上创建mysql服务时,我会使用vmc:

maguro:Desktop darrellberry$ vmc create-service
1: redis
2: mongodb
3: postgresql
4: mysql
5: rabbitmq
Which service would you like to provision?: 4
Creating Service [mysql-eaca7]: 
Error 503: Unexpected response from service gateway

在MCF实例上,/var/vcap/sys/log/mysql_gateway/mysql_gateway.log显示:

[2012-09-06 09:14:56] mysql_gateway - 3249 c74f 72e9   INFO -- Sending info to cloud controller: http://api.xx.cloudfoundry.me/services/v1/offerings
[2012-09-06 09:14:56] mysql_gateway - 3249 c74f 72e9   INFO -- Successfully registered with cloud controller
[2012-09-06 09:15:55] mysql_gateway - 3249 c74f 72e9  DEBUG -- Provision request for label=mysql-5.1 plan=free
[2012-09-06 09:15:55] mysql_gateway - 3249 c74f 72e9  DEBUG -- [MyaaS-Provisioner] Attempting to provision instance (request={:label=>"mysql-5.1", :name=>"mysql-83457", :email=>"xx@xx.com", :plan=>"free"})
[2012-09-06 09:15:56] mysql_gateway - 3249 c74f 72e9   INFO -- Sending info to cloud controller: http://api.xx.cloudfoundry.me/services/v1/offerings
[2012-09-06 09:15:56] mysql_gateway - 3249 c74f 72e9   INFO -- Successfully registered with cloud controller
[2012-09-06 09:15:57] mysql_gateway - 3249 c74f 72e9  DEBUG -- [MyaaS-Provisioner] Found the following nodes: []
[2012-09-06 09:16:05] mysql_gateway - 3249 c74f 72e9   WARN -- Request timeout in 10 seconds.

(URL和电子邮件在这里被混淆了——日志中的那些看起来是正确的)

这是100%可重复的。然而,我可以毫无错误地提供其他类型的服务(postgresql、rabbitmq等)。感谢所有的帮助。

无论出于何种原因,mysql节点都没有启动(每个服务都有一个节点和一个网关)。查看/var/vcap/sys/log/mysql/mysqld.err.log的最后100行,看看是否有明显的内容。

更好的是,通过安装telnet并连接到虚拟机本身的端口3306来仔细检查服务是否正在运行;

sudo apt-get install telnet
telnet localhost 3306

如果连接立即打开,而你有类似的东西;

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
<
5.1.54-rel12.5?xaZ!5%Wh?'%&,Ks%Xn@4"^]

那么mysql肯定在运行。mysqld也应该出现在进程列表中。

相关内容

  • 没有找到相关文章

最新更新