установка OpenStack: единица postgresql рычаг привела db-admin-relation-changed к сбою

Фон: я следую http://www.ubuntu.com/download/cloud/install-ubuntu-openstack. У меня есть один PM (16 ядер, 48 ГБ RAM), работая 7 (первоначально пустой) VMs, которые были созданы с помощью virt-установки. Я использовал virt-установку для создания двух сетей NAT'ed: 'частный', к которому все 7 VMs присоединяются и 'общественность', к которой только 2 присоединяются. Премьер-министр выполняет МААС и обеспечивает DHCP & DNS только в 'частной' сети. (Я выбрал имена 'частный' и 'общедоступный', поскольку я предположил, что одна из необходимых сетей будет для того, чтобы сделать материал MAAS/openstack-y, и другой был бы для доступа независимо от того, что сервис в конечном счете развертывается на (вложенном) VMs, который будет в конечном счете создан). Системы включаются в список и уполномочили так, чтобы к концу шага 3 в процедуре Ubuntu у меня было 7 узлов, все отметили 'Готовый'.

Проблема: Согласно шагу 4 в процедуре Ubuntu, я работаю openstack-install, обеспечьте ключ МААСА, укажите сервер МААСА как IP премьер-министра в 'частной' сети, и приблизительно после 15 минут, которые это приводит к сбою.

Другая информация: строка состояния TUI установки OpenStack говорит 'Загрузку последнего Альбомного пакета Автопилота...'; нижняя часть ~root/.cloud-install/commands.log говорит:

[ERROR • 06-30 13:23:40] • cloudinstall.multi_install • (multi_install.py, run_deployer, 770)]
   Problem deploying Landscape: {'status': 1, 'output': '2015-06-30 13:09:11 [DEBUG] deployer.cli: Using runtime GoEnvironment on maas\n2015-06-30 13:09:11 [INFO] deployer.cli: Starting deployment of landscape-dense-maas\n2015-06-30 13:09:11 [DEBUG] deployer.import: Getting charms...\n2015-06-30 13:09:11 [DEBUG] deployer.charm: Cache dir /root/.cloud-install/juju/.deployer-store-cache/cs_trusty_haproxy-4\n2015-06-30 13:09:11 [DEBUG] deployer.charm: Retrieving store charm cs:trusty/haproxy-4\n2015-06-30 13:09:11 [DEBUG] deployer.charm: Cache dir /root/.cloud-install/juju/.deployer-store-cache/cs_trusty_rabbitmq-server-26\n2015-06-30 13:09:11 [DEBUG] deployer.charm: Retrieving store charm cs:trusty/rabbitmq-server-26\n2015-06-30 13:09:11 [DEBUG] deployer.charm: Cache dir /root/.cloud-install/juju/.deployer-store-cache/cs_trusty_postgresql-15\n2015-06-30 13:09:11 [DEBUG] deployer.charm: Retrieving store charm cs:trusty/postgresql-15\n2015-06-30 13:09:12 [DEBUG] deployer.charm: Cache dir /root/.cloud-install/juju/.deployer-store-cache/cs_trusty_landscape-server\n2015-06-30 13:09:12 [DEBUG] deployer.charm: Retrieving store charm cs:trusty/landscape-server-10\n2015-06-30 13:09:12 [DEBUG] deployer.charm: Cache dir /root/.cloud-install/juju/.deployer-store-cache/cs_trusty_landscape-server\n2015-06-30 13:09:12 [DEBUG] deployer.charm: Cache dir /root/.cloud-install/juju/.deployer-store-cache/cs_trusty_apache2-10\n2015-06-30 13:09:12 [DEBUG] deployer.charm: Retrieving store charm cs:trusty/apache2-10\n2015-06-30 13:09:12 [DEBUG] deployer.deploy: Resolving configuration\n2015-06-30 13:09:12 [DEBUG] deployer.env: Connecting to environment...\n2015-06-30 13:09:13 [DEBUG] deployer.env: Connected to environment\n2015-06-30 13:09:13 [INFO] deployer.import: Deploying services...\n2015-06-30 13:09:13 [DEBUG] deployer.import: <deployer.env.go.GoEnvironment object at 0x7f20266b4c50>\n2015-06-30 13:09:13 [INFO] deployer.import:  Deploying service apache2 using cs:trusty/apache2-10\n2015-06-30 13:09:13 [DEBUG] deployer.import:  Refetching status for placement deploys\n2015-06-30 13:09:24 [DEBUG] deployer.import:  Setting annotations\n2015-06-30 13:09:25 [INFO] deployer.import:  Deploying service haproxy using cs:trusty/haproxy-4\n2015-06-30 13:09:32 [DEBUG] deployer.import:  Setting annotations\n2015-06-30 13:09:32 [INFO] deployer.import:  Deploying service landscape using cs:trusty/landscape-server\n2015-06-30 13:09:40 [DEBUG] deployer.import:  Setting annotations\n2015-06-30 13:09:41 [INFO] deployer.import:  Deploying service landscape-msg using cs:trusty/landscape-server\n2015-06-30 13:09:45 [DEBUG] deployer.import:  Setting annotations\n2015-06-30 13:09:46 [INFO] deployer.import:  Deploying service postgresql using cs:trusty/postgresql-15\n2015-06-30 13:09:53 [DEBUG] deployer.import:  Setting annotations\n2015-06-30 13:09:53 [INFO] deployer.import:  Deploying service rabbitmq-server using cs:trusty/rabbitmq-server-26\n2015-06-30 13:09:59 [DEBUG] deployer.import:  Setting annotations\n2015-06-30 13:10:05 [DEBUG] deployer.import: Adding units...\n2015-06-30 13:10:05 [DEBUG] deployer.import:  Service \'apache2\' does not need any more units added.\n2015-06-30 13:10:05 [DEBUG] deployer.import:  Service \'haproxy\' does not need any more units added.\n2015-06-30 13:10:05 [DEBUG] deployer.import:  Service \'landscape\' does not need any more units added.\n2015-06-30 13:10:05 [DEBUG] deployer.import:  Service \'landscape-msg\' does not need any more units added.\n2015-06-30 13:10:05 [DEBUG] deployer.import:  Service \'postgresql\' does not need any more units added.\n2015-06-30 13:10:05 [DEBUG] deployer.import:  Service \'rabbitmq-server\' does not need any more units added.\n2015-06-30 13:10:05 [DEBUG] deployer.import: Waiting for units before adding relations\n2015-06-30 13:11:51 [DEBUG] deployer.env:  Delta machine: 0/lxc/0 change:pending\n2015-06-30 13:12:01 [DEBUG] deployer.env:  Delta machine: 0/lxc/1 change:pending\n2015-06-30 13:12:16 [DEBUG] deployer.env:  Delta machine: 0/lxc/2 change:pending\n2015-06-30 13:12:16 [DEBUG] deployer.env:  Delta machine: 0/lxc/0 change:started\n2015-06-30 13:12:16 [DEBUG] deployer.env:  Delta unit: apache2/0 change:pending\n2015-06-30 13:12:21 [DEBUG] deployer.env:  Delta service: apache2 change:{u\'Err\': None, u\'Since\': u\'2015-06-30T11:12:16Z\', u\'Current\': u\'maintenance\', u\'Version\': u\'\', u\'Message\': u\'installing charm software\', u\'Data\': {}}\n2015-06-30 13:12:21 [DEBUG] deployer.env:  Delta unit: apache2/0 change:pending\n2015-06-30 13:12:26 [DEBUG] deployer.env:  Delta machine: 0/lxc/3 change:pending\n2015-06-30 13:12:26 [DEBUG] deployer.env:  Delta unit: apache2/0 change:pending\n2015-06-30 13:12:46 [DEBUG] deployer.env:  Delta machine: 0/lxc/4 change:pending\n2015-06-30 13:12:51 [DEBUG] deployer.env:  Delta machine: 0/lxc/2 change:pending\n2015-06-30 13:12:51 [DEBUG] deployer.env:  Delta machine: 0/lxc/1 change:started\n2015-06-30 13:12:51 [DEBUG] deployer.env:  Delta machine: 0/lxc/2 change:started\n2015-06-30 13:12:51 [DEBUG] deployer.env:  Delta unit: landscape/0 change:pending\n2015-06-30 13:12:51 [DEBUG] deployer.env:  Delta unit: haproxy/0 change:pending\n2015-06-30 13:12:51 [DEBUG] deployer.env:  Delta service: landscape change:{u\'Err\': None, u\'Since\': u\'2015-06-30T11:12:49Z\', u\'Current\': u\'maintenance\', u\'Version\': u\'\', u\'Message\': u\'installing charm software\', u\'Data\': {}}\n2015-06-30 13:12:51 [DEBUG] deployer.env:  Delta unit: landscape/0 change:pending\n2015-06-30 13:12:51 [DEBUG] deployer.env:  Delta service: haproxy change:{u\'Err\': None, u\'Since\': u\'2015-06-30T11:12:49Z\', u\'Current\': u\'maintenance\', u\'Version\': u\'\', u\'Message\': u\'installing charm software\', u\'Data\': {}}\n2015-06-30 13:12:51 [DEBUG] deployer.env:  Delta unit: haproxy/0 change:pending\n2015-06-30 13:12:51 [DEBUG] deployer.env:  Delta unit: landscape/0 change:pending\n2015-06-30 13:12:51 [DEBUG] deployer.env:  Delta unit: haproxy/0 change:pending\n2015-06-30 13:13:01 [DEBUG] deployer.env:  Delta machine: 0/lxc/5 change:pending\n2015-06-30 13:13:21 [DEBUG] deployer.env:  Delta machine: 0/lxc/3 change:pending\n2015-06-30 13:13:21 [DEBUG] deployer.env:  Delta machine: 0/lxc/4 change:pending\n2015-06-30 13:13:21 [DEBUG] deployer.env:  Delta machine: 0/lxc/3 change:started\n2015-06-30 13:13:21 [DEBUG] deployer.env:  Delta unit: landscape-msg/0 change:pending\n2015-06-30 13:13:26 [DEBUG] deployer.env:  Delta machine: 0/lxc/4 change:started\n2015-06-30 13:13:26 [DEBUG] deployer.env:  Delta unit: landscape-msg/0 change:pending\n2015-06-30 13:13:26 [DEBUG] deployer.env:  Delta unit: postgresql/0 change:pending\n2015-06-30 13:13:26 [DEBUG] deployer.env:  Delta service: landscape-msg change:{u\'Err\': None, u\'Since\': u\'2015-06-30T11:13:24Z\', u\'Current\': u\'maintenance\', u\'Version\': u\'\', u\'Message\': u\'installing charm software\', u\'Data\': {}}\n2015-06-30 13:13:26 [DEBUG] deployer.env:  Delta unit: landscape-msg/0 change:pending\n2015-06-30 13:13:26 [DEBUG] deployer.env:  Delta service: postgresql change:{u\'Err\': None, u\'Since\': u\'2015-06-30T11:13:24Z\', u\'Current\': u\'maintenance\', u\'Version\': u\'\', u\'Message\': u\'installing charm software\', u\'Data\': {}}\n2015-06-30 13:13:26 [DEBUG] deployer.env:  Delta unit: postgresql/0 change:pending\n2015-06-30 13:13:26 [DEBUG] deployer.env:  Delta unit: landscape-msg/0 change:pending\n2015-06-30 13:13:26 [DEBUG] deployer.env:  Delta unit: postgresql/0 change:pending\n2015-06-30 13:13:36 [DEBUG] deployer.env:  Delta machine: 0/lxc/5 change:pending\n2015-06-30 13:13:36 [DEBUG] deployer.env:  Delta unit: haproxy/0 change:pending\n2015-06-30 13:13:36 [DEBUG] deployer.env:  Delta machine: 0/lxc/5 change:started\n2015-06-30 13:13:36 [DEBUG] deployer.env:  Delta unit: rabbitmq-server/0 change:pending\n2015-06-30 13:13:41 [DEBUG] deployer.env:  Delta unit: rabbitmq-server/0 change:pending\n2015-06-30 13:13:46 [DEBUG] deployer.env:  Delta service: rabbitmq-server change:{u\'Err\': None, u\'Since\': u\'2015-06-30T11:13:41Z\', u\'Current\': u\'maintenance\', u\'Version\': u\'\', u\'Message\': u\'installing charm software\', u\'Data\': {}}\n2015-06-30 13:13:46 [DEBUG] deployer.env:  Delta unit: rabbitmq-server/0 change:pending\n2015-06-30 13:13:46 [DEBUG] deployer.env:  Delta unit: rabbitmq-server/0 change:pending\n2015-06-30 13:13:51 [DEBUG] deployer.env:  Delta service: haproxy change:{u\'Err\': None, u\'Since\': u\'2015-06-30T11:13:49Z\', u\'Current\': u\'unknown\', u\'Version\': u\'\', u\'Message\': u\'\', u\'Data\': {}}\n2015-06-30 13:13:51 [DEBUG] deployer.env:  Delta unit: haproxy/0 change:pending\n2015-06-30 13:13:51 [DEBUG] deployer.env:  Delta unit: haproxy/0 change:started\n2015-06-30 13:13:56 [DEBUG] deployer.env:  Delta unit: haproxy/0 change:started\n2015-06-30 13:14:06 [DEBUG] deployer.env:  Delta unit: apache2/0 change:pending\n2015-06-30 13:14:11 [DEBUG] deployer.env:  Delta unit: apache2/0 change:pending\n2015-06-30 13:14:21 [DEBUG] deployer.env:  Delta service: apache2 change:{u\'Err\': None, u\'Since\': u\'2015-06-30T11:14:20Z\', u\'Current\': u\'unknown\', u\'Version\': u\'\', u\'Message\': u\'\', u\'Data\': {}}\n2015-06-30 13:14:21 [DEBUG] deployer.env:  Delta unit: apache2/0 change:pending\n2015-06-30 13:14:21 [DEBUG] deployer.env:  Delta unit: apache2/0 change:started\n2015-06-30 13:14:26 [DEBUG] deployer.env:  Delta unit: apache2/0 change:started\n2015-06-30 13:14:46 [DEBUG] deployer.env:  Delta unit: postgresql/0 change:pending\n2015-06-30 13:14:46 [DEBUG] deployer.env:  Delta unit: postgresql/0 change:pending\n2015-06-30 13:14:51 [DEBUG] deployer.env:  Delta unit: postgresql/0 change:pending\n2015-06-30 13:14:56 [DEBUG] deployer.env:  Delta service: postgresql change:{u\'Err\': None, u\'Since\': u\'2015-06-30T11:14:51Z\', u\'Current\': u\'unknown\', u\'Version\': u\'\', u\'Message\': u\'\', u\'Data\': {}}\n2015-06-30 13:14:56 [DEBUG] deployer.env:  Delta unit: postgresql/0 change:started\n2015-06-30 13:14:56 [DEBUG] deployer.env:  Delta unit: postgresql/0 change:started\n2015-06-30 13:15:21 [DEBUG] deployer.env:  Delta unit: rabbitmq-server/0 change:pending\n2015-06-30 13:16:46 [DEBUG] deployer.env:  Delta unit: rabbitmq-server/0 change:pending\n2015-06-30 13:16:46 [DEBUG] deployer.env:  Delta service: rabbitmq-server change:{u\'Err\': None, u\'Since\': u\'2015-06-30T11:16:45Z\', u\'Current\': u\'unknown\', u\'Version\': u\'\', u\'Message\': u\'\', u\'Data\': {}}\n2015-06-30 13:16:46 [DEBUG] deployer.env:  Delta unit: rabbitmq-server/0 change:pending\n2015-06-30 13:16:46 [DEBUG] deployer.env:  Delta unit: rabbitmq-server/0 change:started\n2015-06-30 13:16:51 [DEBUG] deployer.env:  Delta unit: rabbitmq-server/0 change:started\n2015-06-30 13:20:26 [DEBUG] deployer.env:  Delta unit: landscape-msg/0 change:pending\n2015-06-30 13:20:31 [DEBUG] deployer.env:  Delta service: landscape-msg change:{u\'Err\': None, u\'Since\': u\'2015-06-30T11:20:29Z\', u\'Current\': u\'unknown\', u\'Version\': u\'\', u\'Message\': u\'\', u\'Data\': {}}\n2015-06-30 13:20:31 [DEBUG] deployer.env:  Delta unit: landscape-msg/0 change:pending\n2015-06-30 13:20:31 [DEBUG] deployer.env:  Delta unit: landscape-msg/0 change:started\n2015-06-30 13:20:31 [DEBUG] deployer.env:  Delta unit: landscape/0 change:pending\n2015-06-30 13:20:36 [DEBUG] deployer.env:  Delta unit: landscape-msg/0 change:started\n2015-06-30 13:20:36 [DEBUG] deployer.env:  Delta service: landscape change:{u\'Err\': None, u\'Since\': u\'2015-06-30T11:20:34Z\', u\'Current\': u\'unknown\', u\'Version\': u\'\', u\'Message\': u\'\', u\'Data\': {}}\n2015-06-30 13:20:36 [DEBUG] deployer.env:  Delta unit: landscape/0 change:started\n2015-06-30 13:20:36 [DEBUG] deployer.env: Connecting to environment...\n2015-06-30 13:20:37 [DEBUG] deployer.env: Connected to environment\n2015-06-30 13:20:37 [INFO] deployer.import: Adding relations...\n2015-06-30 13:20:37 [INFO] deployer.import:  Adding relation landscape <-> rabbitmq-server\n2015-06-30 13:20:37 [INFO] deployer.import:  Adding relation landscape <-> haproxy\n2015-06-30 13:20:38 [INFO] deployer.import:  Adding relation landscape:vhost-config <-> apache2:vhost-config\n2015-06-30 13:20:38 [INFO] deployer.import:  Adding relation landscape:db-admin <-> postgresql:db-admin\n2015-06-30 13:20:38 [INFO] deployer.import:  Adding relation haproxy:website <-> apache2:reverseproxy\n2015-06-30 13:20:39 [INFO] deployer.import:  Adding relation landscape-msg <-> rabbitmq-server\n2015-06-30 13:20:39 [INFO] deployer.import:  Adding relation landscape-msg <-> haproxy\n2015-06-30 13:20:40 [INFO] deployer.import:  Adding relation landscape-msg:db-admin <-> postgresql:db-admin\n2015-06-30 13:20:40 [DEBUG] deployer.import: Waiting for relation convergence 180s\n2015-06-30 13:23:40 [ERROR] deployer.env: The following units had errors:\n   unit: postgresql/0: machine: 0/lxc/4 agent-state: error details: hook failed: "db-admin-relation-changed"\n2015-06-30 13:23:40 [INFO] deployer.cli: Deployment stopped. run time: 869.59\n'}
[DEBUG • 06-30 13:23:40] • cloudinstall.utils • (utils.py, global_exchandler, 63)]
   Traceback (most recent call last):
  File "/usr/share/openstack/cloudinstall/utils.py", line 78, in run
    super().run()
  File "/usr/lib/python3.4/threading.py", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/share/openstack/cloudinstall/machinewait.py", line 127, in do_continue
    self.installer.do_install()
  File "/usr/share/openstack/cloudinstall/multi_install.py", line 177, in do_install
    self.loop).run()
  File "/usr/share/openstack/cloudinstall/multi_install.py", line 708, in run
    self.deploy_landscape()
  File "/usr/share/openstack/cloudinstall/multi_install.py", line 731, in deploy_landscape
    self.run_deployer()
  File "/usr/share/openstack/cloudinstall/multi_install.py", line 771, in run_deployer
    raise Exception("Error deploying Landscape.")
Exception: Error deploying Landscape.

[INFO  • 06-30 13:24:50] • cloudinstall.utils • (utils.py, cleanup, 91)]
   Cleanup, saving latest config object.
[DEBUG • 06-30 13:24:50] • cloudinstall.utils • (utils.py, cleanup, 97)]
   Attempting to reset the terminal

(Полный журнал по http://pastebin.com/raw.php?i=Nr1qy50j.)

Я отмечаю, что МААС отмечает один узел как 'Развернутое' немало времени, прежде чем эта ошибка произойдет и что тот узел включается; другие остаются 'Готовыми' и выключаются.

На помощь!: я сделал много поиска с помощью Google, нашли много ссылок на амулет и материал, с которым я надеялся не должным быть познакомиться так скоро, но не столкнуться с хорошим соответствием для этой конкретной ошибки. Какие-либо идеи? Спасибо!

0
задан 6 July 2015 в 14:23

1 ответ

Удостоверьтесь, что Вы установили управление питанием в UI МААСА, таким образом, МААС знает как к включению/выключению VM's. Посмотрите здесь для получения дополнительной информации: то, Как настроить МААС, чтобы быть в состоянии загрузить виртуальные машины

другая проблема, которую я вижу, - то, что Вы, кажется, запускаете установщик как корень. Согласно нашей документации Вы захотите запустить установщик как нормальный некорневой пользователь. Больше информации о запуске установщика может быть найдено здесь: http://ubuntu-cloud-installer.readthedocs.org/en/latest/multi-installer.guide.html

, Если Вы уже сделали оба из них pastebin полный commands.log.

0
ответ дан 4 October 2019 в 01:44

Другие вопросы по тегам:

Похожие вопросы: