我正在尝试使用 Ubuntu 14.04 机器上的 openstack-installer 的多选项将 OpenStack(Liberty)部署到我的机器上,但是并没有取得很大的成功。
据我所知,MAAS 1.9.3 设置正确 - 我可以调试、分配和部署节点,然后通过 SSH 进入它们,没有问题。
当我运行 openstack-install 时,它会在一个节点上引导 Juju,然后启动另外三个节点,并在这些节点上开始部署各种 OpenStack charm。每个 charm 都会连续部署。
(摘自 Keystone,但每个护身符都有类似的部分)
[INFO: 06-24 11:15:23, consoleui.py:51] Pending charms to deploy: Keystone, RabbitMQ Server, Controller, Neutron, Glance - Simplestreams Image Sync, Openstack Dashboard, Glance, Neutron OpenVSwitch, Neutron API, Compute
[INFO: 06-24 11:15:23, consoleui.py:37] Checking if Keystone is deployed
[INFO: 06-24 11:15:23, consoleui.py:37] Deploying Keystone to machine lxc:3
[DEBUG: 06-24 11:15:23, __init__.py:221] charm_config = {'juju-gui': {'password': 'password'}, 'neutron-openvswitch': None, 'neutron-gateway': {'instance-mtu': 1400, 'openstack-origin': 'cloud:trusty-liberty', 'ext-port': 'eth1'}, 'glance-simplestreams-sync': {'use_swift': False}, 'nova-cloud-controller': {'network-manager': 'Neutron', 'quantum-security-groups': 'yes', 'openstack-origin': 'cloud:trusty-liberty', 'console-access-protocol': 'novnc'}, 'heat': {'openstack-origin': 'cloud:trusty-liberty'}, 'ceilometer': {'openstack-origin': 'cloud:trusty-liberty'}, 'ceilometer-agent': {'openstack-origin': 'cloud:trusty-liberty'}, 'neutron-api': {'neutron-security-groups': True, 'openstack-origin': 'cloud:trusty-liberty', 'l2-population': False}, 'openstack-dashboard': {'openstack-origin': 'cloud:trusty-liberty'}, 'ceph-radosgw': {'source': 'cloud:trusty-liberty', 'use-embedded-webserver': True}, 'ceph-osd': {'osd-reformat': 'yes', 'source': 'cloud:trusty-liberty', 'osd-devices': '/dev/sdb'}, 'swift-storage': {'block-device': '/etc/swift/storage.img|2G', 'openstack-origin': 'cloud:trusty-liberty', 'zone': 1}, 'keystone': {'admin-user': 'admin', 'openstack-origin': 'cloud:trusty-liberty', 'admin-password': 'password'}, 'glance': {'openstack-origin': 'cloud:trusty-liberty'}, 'ceph': {'source': 'cloud:trusty-liberty', 'fsid': '4df47d30-cbf3-45d9-a485-27996ab6998e', 'monitor-secret': 'AQBilclUKG9RIRAAlFP9bohec06c+e7lfCRGrw=='}, 'cinder': {'glance-api-version': 2, 'block-device': '/var/lib/cinder-sdb.img|5G', 'openstack-origin': 'cloud:trusty-liberty'}, 'nova-compute': {'openstack-origin': 'cloud:trusty-liberty'}, 'swift-proxy': {'replicas': 3, 'openstack-origin': 'cloud:trusty-liberty', 'zone-assignment': 'auto'}, 'mysql': {'max-connections': 25000, 'dataset-size': '512M'}}
[DEBUG: 06-24 11:15:23, __init__.py:276] calling deploy(keystone, keystone, 1, {}, lxc:3)
[INFO: 06-24 11:15:30, consoleui.py:37] Deployed Keystone.
[DEBUG: 06-24 11:15:30, core.py:466] Issued deploy for Keystone
所有服务部署完成后,我们等待它们准备就绪。它们一次从待处理列表中删除一两个。
Keystone 已从待处理列表中移除 - 似乎已准备就绪 - 但最终返回错误,因为只剩下 gazebo-simplestreams-sync。安装程序无限期地挂起。
[INFO: 06-24 11:16:35, consoleui.py:37] Waiting for deployed services to be in a ready state.
[INFO: 06-24 11:16:35, core.py:580] Checking availability of neutron-api:pending, rabbitmq-server:pending, glance-simplestreams-sync:pending, keystone:pending, neutron-gateway:pending, glance:pending, nova-cloud-controller:pending, mysql:pending, nova-compute:pending, openstack-dashboard:pending
[INFO: 06-24 11:19:45, core.py:580] Checking availability of neutron-api:pending, rabbitmq-server:pending, glance-simplestreams-sync:pending, keystone:pending, glance:pending, nova-cloud-controller:pending, mysql:pending, nova-compute:pending, openstack-dashboard:pending
[INFO: 06-24 11:21:31, core.py:580] Checking availability of neutron-api:pending, rabbitmq-server:pending, glance-simplestreams-sync:pending, keystone:pending, glance:pending, nova-cloud-controller:pending, mysql:pending, openstack-dashboard:pending
[INFO: 06-24 11:44:03, core.py:580] Checking availability of neutron-api:pending, glance-simplestreams-sync:pending, keystone:pending, glance:pending, nova-cloud-controller:pending, mysql:pending, openstack-dashboard:pending
[INFO: 06-24 12:03:46, core.py:580] Checking availability of neutron-api:pending, glance-simplestreams-sync:pending, keystone:pending, glance:pending, mysql:pending, openstack-dashboard:pending
[INFO: 06-24 12:04:50, core.py:580] Checking availability of neutron-api:pending, glance-simplestreams-sync:pending, keystone:pending, mysql:pending, openstack-dashboard:pending
[INFO: 06-24 12:14:41, core.py:580] Checking availability of neutron-api:pending, glance-simplestreams-sync:pending, keystone:pending, mysql:pending
[INFO: 06-24 12:16:27, core.py:580] Checking availability of neutron-api:pending, glance-simplestreams-sync:pending, keystone:pending
[INFO: 06-24 12:17:30, core.py:580] Checking availability of glance-simplestreams-sync:pending, keystone:pending
[INFO: 06-24 12:18:13, core.py:580] Checking availability of glance-simplestreams-sync:pending
[INFO: 06-24 12:32:39, core.py:580] Checking availability of glance-simplestreams-sync:pending, keystone:error
[INFO: 06-24 12:40:24, core.py:580] Checking availability of keystone:error
知道为什么会发生此错误吗?或者我需要做什么才能解决此错误?
(如果我可以提供更多信息,请告诉我。我是新手,正在边学边做,所以我不确定在哪里可以找到更具体或更有用的日志。)
答案1
通过在第二个终端中重新运行钩子,我能够成功完成安装。
juju resolved --retry keystone/0