juju 无法在 Azure 上创建新机器

juju 无法在 Azure 上创建新机器

我在 Azure 上使用 juju 并设法部署(juju-gui、mysql、tomcat7)。并且我还破坏了一些服务。

我应该提到,我还使用命令启用了 juju 高可用性

juju ensure-availability

当我尝试部署 HaProxy charm 时,它卡住了,提示

agent-state-info: 'cannot get machine 9: EOF'

我在谷歌或 juju 文档中找不到这个。

请问这个错误信息是什么意思?下次如何避免?我的配置有误吗?如何解决?执行后,juju resolved haproxy/0ERROR unit "haproxy/0" is not in an error state应该销毁这个魔法吗?谢谢

这是我的juju status haproxy/0结果

C:\Program Files (x86)\Juju>juju status haproxy/0
environment: azure
machines:
  "9":
    agent-state-info: 'cannot get machine 9: EOF'
    instance-id: pending
    series: trusty
services:
  haproxy:
    charm: cs:trusty/haproxy-7
    exposed: false
    relations:
      peer:
      - haproxy
      reverseproxy:
      - tomcat7
    units:
      haproxy/0:
        agent-state: allocating
        machine: "9"

以下是完整状态(很长 ;p):

C:\Program Files (x86)\Juju>juju status
environment: azure
machines:
  "0":
    agent-state: started
    agent-version: 1.22.3
    dns-name: juju-azure-xxx.cloudapp.net
    instance-id: juju-azure-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    instance-state: ReadyRole
    series: trusty
    hardware: arch=amd64 cpu-cores=1 mem=1792M root-disk=130048M
    state-server-member-status: has-vote
  "1":
    agent-state: started
    agent-version: 1.22.3
    dns-name: juju-azure-xxx.cloudapp.net
    instance-id: juju-azure-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    instance-state: ReadyRole
    series: trusty
    hardware: arch=amd64 cpu-cores=1 mem=1792M root-disk=130048M
  "4":
    agent-state: started
    agent-version: 1.22.3
    dns-name: juju-azure-xxx.cloudapp.net
    instance-id: juju-azure-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    instance-state: ReadyRole
    series: trusty
    hardware: arch=amd64 cpu-cores=1 mem=1792M root-disk=130048M
  "5":
    agent-state: started
    agent-version: 1.22.3
    dns-name: juju-azure-xxx.cloudapp.net
    instance-id: juju-azure-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    instance-state: ReadyRole
    series: precise
    hardware: arch=amd64 cpu-cores=1 mem=1792M root-disk=130048M
  "6":
    agent-state: started
    agent-version: 1.22.3
    dns-name: juju-azure-xxx.cloudapp.net
    instance-id: juju-azure-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    instance-state: ReadyRole
    series: trusty
    hardware: arch=amd64 cpu-cores=1 mem=1792M root-disk=130048M
  "7":
    agent-state: started
    agent-version: 1.22.3
    dns-name: juju-azure-xxx.cloudapp.net
    instance-id: juju-azure-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    instance-state: ReadyRole
    series: trusty
    hardware: arch=amd64 cpu-cores=1 mem=1792M root-disk=130048M
    state-server-member-status: has-vote
  "8":
    agent-state: started
    agent-version: 1.22.3
    dns-name: juju-azure-xxx.cloudapp.net
    instance-id: juju-azure-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    instance-state: ReadyRole
    series: trusty
    hardware: arch=amd64 cpu-cores=1 mem=1792M root-disk=130048M
    state-server-member-status: has-vote
  "9":
    agent-state-info: 'cannot get machine 9: EOF'
    instance-id: pending
    series: trusty
services:
  haproxy:
    charm: cs:trusty/haproxy-7
    exposed: false
    relations:
      peer:
      - haproxy
      reverseproxy:
      - tomcat7
    units:
      haproxy/0:
        agent-state: allocating
        machine: "9"
  juju-gui:
    charm: cs:trusty/juju-gui-27
    exposed: true
    units:
      juju-gui/0:
        agent-state: started
        agent-version: 1.22.3
        machine: "1"
        open-ports:
        - 80/tcp
        - 443/tcp
        public-address: juju-azure-xxx.cloudapp.net
      juju-gui/1:
        agent-state: started
        agent-version: 1.22.3
        machine: "6"
        open-ports:
        - 80/tcp
        - 443/tcp
        public-address: juju-azure-xxx.cloudapp.net
  mysql:
    charm: cs:trusty/mysql-25
    exposed: false
    relations:
      cluster:
      - mysql
      db:
      - openmrs
    units:
      mysql/0:
        agent-state: started
        agent-version: 1.22.3
        machine: "4"
        public-address: juju-azure-xxx.cloudapp.net
  openmrs:
    charm: cs:precise/openmrs-1
    exposed: false
    relations:
      database:
      - mysql
      tomcat-war:
      - tomcat7
    subordinate-to:
    - tomcat7
  tomcat7:
    charm: cs:precise/tomcat7-4
    exposed: true
    relations:
      cluster:
      - tomcat7
      juju-info:
      - openmrs
      website:
      - haproxy
    units:
      tomcat7/0:
        agent-state: started
        agent-version: 1.22.3
        machine: "5"
        open-ports:
        - 8080/tcp
        public-address: juju-azure-xxx.cloudapp.net
        subordinates:
          openmrs/0:
            upgrading-from: cs:precise/openmrs-1
            agent-state: started
            agent-version: 1.22.3
            public-address: juju-azure-xxx.cloudapp.net

相关内容