使用 lxc [关闭] 部署 openstack-dashboard 和 cinder 与 juju

使用 lxc [关闭] 部署 openstack-dashboard 和 cinder 与 juju

在使用 juju 部署 openstack-dashboard 时,使用以下命令:

juju deploy --to lxc:0 openstack-dashboard

魅力尚待显现。juju status我看到:

$: juju status -e maas**
environment: maas
machines:
  "0":
    agent-state: started
    agent-version: 1.20.14
    dns-name: Ubuntu1404CloudMaaSRCMasterCloudMaaSRCNode0.maas
    instance-id: /MAAS/api/1.0/nodes/node-d0d2b128-7c75-11e4-b0f5-52540065461a/
    series: trusty
    hardware: arch=amd64 cpu-cores=1 mem=1024M tags=virtual
    state-server-member-status: has-vote
  "1":
    agent-state: started
    agent-version: 1.20.14
    dns-name: Ubuntu1404CloudMaaSRCMasterCloudMaaSRCNode1.maas
    instance-id: manual:Ubuntu1404CloudMaaSRCMasterCloudMaaSRCNode1.maas
    series: trusty
    containers:
      1/lxc/0:
        agent-state: started
        agent-version: 1.20.14
        dns-name: 10.0.3.203
        instance-id: juju-machine-1-lxc-0
        series: trusty
        hardware: arch=amd64
      1/lxc/1:
        agent-state: started
        agent-version: 1.20.14
        dns-name: 10.0.3.211
        instance-id: juju-machine-1-lxc-1
        series: trusty
        hardware: arch=amd64
      1/lxc/2:
        agent-state: started
        agent-version: 1.20.14
        dns-name: 10.0.3.254
        instance-id: juju-machine-1-lxc-2
        series: trusty
        hardware: arch=amd64
      1/lxc/3:
        agent-state: started
        agent-version: 1.20.14
        dns-name: 10.0.3.225
        instance-id: juju-machine-1-lxc-3
        series: trusty
        hardware: arch=amd64
      1/lxc/4:
        agent-state: started
        agent-version: 1.20.14
        dns-name: 10.0.3.170
        instance-id: juju-machine-1-lxc-4
        series: trusty
        hardware: arch=amd64
      1/lxc/5:
        agent-state-info: 'error executing "lxc-clone": rsync: write failed on "/var/lib/lxc/juju-machine-1-lxc-5/rootfs/usr/lib/python2.7/test/regrtest.py":
          No space left on device (28); rsync error: error in file IO (code 11) at
          receiver.c(389) [receiver=3.1.0]; lxc_container: rsyncing /var/lib/lxc/juju-trusty-lxc-template/rootfs
          to /var/lib/lxc/juju-machine-1-lxc-5/rootfs; lxc_container: Error copying
          storage; clone failed'
        instance-id: pending
        series: trusty
    hardware: arch=amd64 cpu-cores=1 mem=994M
  "2":
    agent-state: started
    agent-version: 1.20.14
    dns-name: Ubuntu1404CloudMaaSRCMasterCloudMaaSRCNode2.maas
    instance-id: manual:Ubuntu1404CloudMaaSRCMasterCloudMaaSRCNode2.maas
    series: trusty
    hardware: arch=amd64 cpu-cores=1 mem=994M
services:
  glance:
    charm: cs:trusty/glance-9
    exposed: false
    relations:
      cluster:
      - glance
    units:
      glance/0:
        agent-state: started
        agent-version: 1.20.14
        machine: 1/lxc/3
        open-ports:
        - 9292/tcp
        public-address: 10.0.3.225
  juju-gui:
    charm: cs:trusty/juju-gui-16
    exposed: false
    units:
      juju-gui/0:
        agent-state: started
        agent-version: 1.20.14
        machine: "0"
        open-ports:
        - 80/tcp
        - 443/tcp
        public-address: Ubuntu1404CloudMaaSRCMasterCloudMaaSRCNode0.maas
  keystone:
    charm: cs:trusty/keystone-9
    exposed: false
    relations:
      cluster:
      - keystone
    units:
      keystone/0:
        agent-state: started
        agent-version: 1.20.14
        machine: 1/lxc/1
        public-address: 10.0.3.211
  mysql:
    charm: cs:trusty/mysql-13
    exposed: false
    relations:
      cluster:
      - mysql
    units:
      mysql/0:
        agent-state: started
        agent-version: 1.20.14
        machine: 1/lxc/0
        public-address: 10.0.3.203
  nova-cloud-controller:
    charm: cs:trusty/nova-cloud-controller-50
    exposed: false
    relations:
      cluster:
      - nova-cloud-controller
    units:
      nova-cloud-controller/0:
        agent-state: started
        agent-version: 1.20.14
        machine: 1/lxc/2
        open-ports:
        - 3333/tcp
        - 8773/tcp
        - 8774/tcp
        public-address: 10.0.3.254
  openstack-dashboard:
    charm: cs:trusty/openstack-dashboard-8
    exposed: false
    relations:
      cluster:
      - openstack-dashboard
    units:
      openstack-dashboard/0:
        agent-state: pending
        machine: 1/lxc/6
  rabbitmq-server:
    charm: cs:trusty/rabbitmq-server-19
    exposed: false
    relations:
      cluster:
      - rabbitmq-server
    units:
      rabbitmq-server/0:
        agent-state: started
        agent-version: 1.20.14
        machine: 1/lxc/4
        public-address: 10.0.3.170

我等了很久,什么都没发生。我决定删除服务并销毁它。我再次重新运行该命令,但错误并没有消失,而且我又遇到了一个错误:

  1/lxc/5:
    agent-state-info: 'error executing "lxc-clone": rsync: write failed on "/var/lib/lxc/juju-machine-1-lxc-5/rootfs/usr/lib/python2.7/test/regrtest.py":
      No space left on device (28); rsync error: error in file IO (code 11) at
      receiver.c(389) [receiver=3.1.0]; lxc_container: rsyncing /var/lib/lxc/juju-trusty-lxc-template/rootfs
      to /var/lib/lxc/juju-machine-1-lxc-5/rootfs; lxc_container: Error copying
      storage; clone failed'
    instance-id: pending
    series: trusty
  1/lxc/6:
    agent-state-info: 'error executing "lxc-clone": rsync: write failed on "/var/lib/lxc/juju-machine-1-lxc-6/rootfs/usr/lib/python2.7/pydoc_data/topics.pyc":
      No space left on device (28); rsync error: error in file IO (code 11) at
      receiver.c(389) [receiver=3.1.0]; lxc_container: rsyncing /var/lib/lxc/juju-trusty-lxc-template/rootfs
      to /var/lib/lxc/juju-machine-1-lxc-6/rootfs; lxc_container: Error copying
      storage; clone failed'
    instance-id: pending
    series: trusty

对于 cinder 我收到同样的错误:

juju deploy --to lxc:0 cinder

  1/lxc/7:
    agent-state-info: 'error executing "lxc-clone": rsync: write failed on "/var/lib/lxc/juju-machine-1-lxc-7/rootfs/usr/lib/python2.7/test/pystone.py":
      No space left on device (28); rsync error: error in file IO (code 11) at
      receiver.c(389) [receiver=3.1.0]; lxc_container: rsyncing /var/lib/lxc/juju-trusty-lxc-template/rootfs
      to /var/lib/lxc/juju-machine-1-lxc-7/rootfs; lxc_container: Error copying
      storage; clone failed'
    instance-id: pending
    series: trusty
hardware: arch=amd64 cpu-cores=1 mem=994M

我该如何解决或清理lxc容器?

答案1

关于这个问题我们已经找到了部分答案,我们可以直接从容器中juju-gui移除容器来清理容器。正如这张截图所报道的:

在此处输入图片描述

对于使用 LXC 部署 openstack-dashboard,我继续收到相同的错误。

相关内容