【问题标题】:MCF: Can't provision mysql serviceMCF:无法提供 mysql 服务
【发布时间】:2012-09-06 09:37:04
【问题描述】:

在 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.

(此处混淆的网址和电子邮件 - 日志中的内容看起来正确)

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

【问题讨论】:

    标签: mysql provisioning cloud-foundry vmc


    【解决方案1】:

    不管什么原因,mysql节点没有启动(每个服务都有一个节点和一个网关)。查看 /var/vcap/sys/log/mysql/mysqld.err.log 的最后 100 行,看看是否有任何明显的地方。

    更好的是,通过安装 telnet 并连接到 VM 本身的端口 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 也应该出现在进程列表中。

    【讨论】:

    • 谢谢 -- 嗯,该日志文件中没有任何内容,因为几天前看起来像是一个成功的启动。我可以从 localhost 在端口上 telnet,并且 ps ax 显示了一组可信的 mysql 相关进程。在 VMWare Fusion 控制台上,该服务也报告为 OK。那么根据我原始帖子中记录的 mysql 网关超时,接下来要检查什么?
    • VM 是否与您下载时的状态相同?如果没有,最快的选择可能是开始一个新副本。同时,我将咨询我的一位对 MCF 更有经验的同事。
    • 谢谢。我将重试一个新的虚拟机,尽管我很确定我昨天这样做了,但无济于事。会让你知道的。
    • 我看不出运行 VM 的环境会产生什么影响。我自己在 Fusion 中运行 MCF!
    • 适用于新的虚拟机(第二次尝试!)。希望我知道原因,因为除了通过 vmc 进行部署/调试之外,我没有对原始版本进行任何更改。看看事情会如何发展...感谢到目前为止的帮助..
    猜你喜欢
    • 1970-01-01
    • 2021-09-07
    • 2020-01-25
    • 2020-04-18
    • 2014-02-09
    • 1970-01-01
    • 2016-02-14
    • 2017-09-21
    • 1970-01-01
    相关资源
    最近更新 更多