Skip to content

Instantly share code, notes, and snippets.

@psachin
Last active December 5, 2017 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psachin/080a59b5168c88bf4bab15eeeeeb1b9b to your computer and use it in GitHub Desktop.
Save psachin/080a59b5168c88bf4bab15eeeeeb1b9b to your computer and use it in GitHub Desktop.
tripleo-quickstart: Dedicated swift nodes
# Path: tripleo-quickstart/config/nodes/
# Deploy a big HA OpenStack environment(NON-CONTAINERIZED)
# Total memory: (8192 * 9) + 12288 = 86016
control_memory: 8192
compute_memory: 8192
objectstorage_memory: 8192
undercloud_memory: 12288
# Giving the undercloud additional CPUs can greatly improve heat's
# performance (and result in a shorter deploy time).
# Using a total of 10 vcpus (1 is the default for overcloud nodes)
undercloud_vcpu: 4
# Since HA has more machines, doesn't we can set the cpu for controllers and
# compute nodes to 1
default_vcpu: 1
# Create three controller nodes and three compute nodes.
overcloud_nodes:
- name: control_0
flavor: control
virtualbmc_port: 6230
- name: control_1
flavor: control
virtualbmc_port: 6231
- name: control_2
flavor: control
virtualbmc_port: 6232
- name: compute_0
flavor: compute
virtualbmc_port: 6233
- name: compute_1
flavor: compute
virtualbmc_port: 6234
- name: compute_2
flavor: compute
virtualbmc_port: 6235
- name: swift_0
flavor: objectstorage
virtualbmc_port: 6236
- name: swift_1
flavor: objectstorage
virtualbmc_port: 6237
- name: swift_2
flavor: objectstorage
virtualbmc_port: 6238
node_count: 9
network_isolation: true
network_isolation_type: 'single-nic-vlans'
topology: >-
--compute-scale 3
--control-scale 3
--swift-storage-scale 3
@psachin
Copy link
Author

psachin commented Dec 5, 2017

Deployment failed with below errors

2017-11-30 14:15:43 | + openstack overcloud deploy --templates /usr/share/openstack-tripleo-heat-templates --libvirt-type qemu --control-flavor oooq_control --compute-flavor oooq_compute --ceph-storage-flavor oooq_ceph --block-storage-flavor oooq_blockstorage --swift-storage-flavor oooq_objectstorage --timeout 90 -e /home/stack/cloud-names.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/puppet-pacemaker.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/net-single-nic-with-vlans.yaml -e /home/stack/network-environment.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/low-memory-usage.yaml -e /home/stack/inject-trust-anchor.yaml --validation-warnings-fatal --compute-scale 3 --control-scale 3 --swift-storage-scale 3 --ntp-server pool.ntp.org
2017-11-30 14:15:48 | Waiting for messages on queue '8bad6a93-e157-4e68-8b74-d3e8a1f39e09' with no timeout.
2017-11-30 14:17:54 | {u'execution': {u'created_at': u'2017-11-30 14:17:24',
2017-11-30 14:17:54 |                 u'id': u'f70ea28d-d241-4fc1-8118-218c0989d500',
2017-11-30 14:17:54 |                 u'input': {u'container': u'overcloud',
2017-11-30 14:17:54 |                            u'queue_name': u'ce00056e-72c6-4658-9775-7c80b25b72ad',
2017-11-30 14:17:54 |                            u'run_validations': False,
2017-11-30 14:17:54 |                            u'skip_deploy_identifier': False,
2017-11-30 14:17:54 |                            u'timeout': 90},
2017-11-30 14:17:54 |                 u'name': u'tripleo.deployment.v1.deploy_plan',
2017-11-30 14:17:54 |                 u'params': {u'namespace': u''},
2017-11-30 14:17:54 |                 u'spec': {u'description': u'Deploy the overcloud for a plan.\n',
2017-11-30 14:17:54 |                           u'input': [u'container',
2017-11-30 14:17:54 |                                      {u'run_validations': False},
2017-11-30 14:17:54 |                                      {u'timeout': 240},
2017-11-30 14:17:54 |                                      {u'skip_deploy_identifier': False},
2017-11-30 14:17:54 |                                      {u'queue_name': u'tripleo'}],
2017-11-30 14:17:54 |                           u'name': u'deploy_plan',
2017-11-30 14:17:54 |                           u'tags': [u'tripleo-common-managed'],
2017-11-30 14:17:54 |                           u'tasks': {u'add_validation_ssh_key': {u'input': {u'container': u'<% $.container %>',
2017-11-30 14:17:54 |                                                                             u'queue_name': u'<% $.queue_name %>'},
2017-11-30 14:17:54 |                                                                  u'name': u'add_validation_ssh_key',
2017-11-30 14:17:54 |                                                                  u'on-complete': [{u'run_validations': u'<% $.run_validations %>'},
2017-11-30 14:17:54 |                                                                                   {u'create_swift_rings_backup_plan': u'<% not $.run_validations %>'}],
2017-11-30 14:17:54 |                                                                  u'type': u'direct',
2017-11-30 14:17:54 |                                                                  u'version': u'2.0',
2017-11-30 14:17:54 |                                                                  u'workflow': u'tripleo.validations.v1.add_validation_ssh_key_parameter'},
2017-11-30 14:17:54 |                                      u'create_swift_rings_backup_plan': {u'input': {u'container': u'<% $.container %>',
2017-11-30 14:17:54 |                                                                                     u'queue_name': u'<% $.queue_name %>',
2017-11-30 14:17:54 |                                                                                     u'use_default_templates': True},
2017-11-30 14:17:54 |                                                                          u'name': u'create_swift_rings_backup_plan',
2017-11-30 14:17:54 |                                                                          u'on-error': u'create_swift_rings_backup_plan_set_status_failed',
2017-11-30 14:17:54 |                                                                          u'on-success': u'get_heat_stack',
2017-11-30 14:17:54 |                                                                          u'type': u'direct',
2017-11-30 14:17:54 |                                                                          u'version': u'2.0',
2017-11-30 14:17:54 |                                                                          u'workflow': u'tripleo.swift_rings_backup.v1.create_swift_rings_backup_container_plan'},
2017-11-30 14:17:54 |                                      u'create_swift_rings_backup_plan_set_status_failed': {u'name': u'create_swift_rings_backup_plan_set_status_failed',
2017-11-30 14:17:54 |                                                                                            u'on-success': u'send_message',
2017-11-30 14:17:54 |                                                                                            u'publish': {u'message': u'<% task(create_swift_rings_backup_plan).result %>',
2017-11-30 14:17:54 |                                                                                                         u'status': u'FAILED'},
2017-11-30 14:17:54 |                                                                                            u'type': u'direct',
2017-11-30 14:17:54 |                                                                                            u'version': u'2.0'},
2017-11-30 14:17:54 |                                      u'deploy': {u'action': u'tripleo.deployment.deploy',
2017-11-30 14:17:54 |                                                  u'input': {u'container': u'<% $.container %>',
2017-11-30 14:17:54 |                                                             u'skip_deploy_identifier': u'<% $.skip_deploy_identifier %>',
2017-11-30 14:17:54 |                                                             u'timeout': u'<% $.timeout %>'},
2017-11-30 14:17:54 |                                                  u'name': u'deploy',
2017-11-30 14:17:54 |                                                  u'on-error': u'set_deployment_failed',
2017-11-30 14:17:54 |                                                  u'on-success': u'send_message',
2017-11-30 14:17:54 |                                                  u'type': u'direct',
2017-11-30 14:17:54 |                                                  u'version': u'2.0'},
2017-11-30 14:17:54 |                                      u'get_heat_stack': {u'action': u'heat.stacks_get stack_id=<% $.container %>',
2017-11-30 14:17:54 |                                                          u'name': u'get_heat_stack',
2017-11-30 14:17:54 |                                                          u'on-error': u'deploy',
2017-11-30 14:17:54 |                                                          u'on-success': [{u'set_stack_in_progress': u'<% "_IN_PROGRESS" in task(get_heat_stack).result.stack_status %>'},
2017-11-30 14:17:54 |                                                                          {u'deploy': u'<% not "_IN_PROGRESS" in task(get_heat_stack).result.stack_status %>'}],
2017-11-30 14:17:54 |                                                          u'type': u'direct',
2017-11-30 14:17:54 |                                                          u'version': u'2.0'},
2017-11-30 14:17:54 |                                      u'run_validations': {u'input': {u'group_names': [u'pre-deployment'],
2017-11-30 14:17:54 |                                                                      u'plan': u'<% $.container %>',
2017-11-30 14:17:54 |                                                                      u'queue_name': u'<% $.queue_name %>'},
2017-11-30 14:17:54 |                                                           u'name': u'run_validations',
2017-11-30 14:17:54 |                                                           u'on-error': u'set_validations_failed',
2017-11-30 14:17:54 |                                                           u'on-success': u'create_swift_rings_backup_plan',
2017-11-30 14:17:54 |                                                           u'type': u'direct',
2017-11-30 14:17:54 |                                                           u'version': u'2.0',
2017-11-30 14:17:54 |                                                           u'workflow': u'tripleo.validations.v1.run_groups'},
2017-11-30 14:17:54 |                                      u'send_message': {u'action': u'zaqar.queue_post',
2017-11-30 14:17:54 |                                                        u'input': {u'messages': {u'body': {u'payload': {u'execution': u'<% execution() %>',
2017-11-30 14:17:54 |                                                                                                        u'message': u"<% $.get('message', '') %>",
2017-11-30 14:17:54 |                                                                                                        u'status': u"<% $.get('status', 'SUCCESS') %>"},
2017-11-30 14:17:54 |                                                                                           u'type': u'tripleo.deployment.v1.deploy_plan'}},
2017-11-30 14:17:54 |                                                                   u'queue_name': u'<% $.queue_name %>'},
2017-11-30 14:17:54 |                                                        u'name': u'send_message',
2017-11-30 14:17:54 |                                                        u'on-success': [{u'fail': u'<% $.get(\'status\') = "FAILED" %>'}],
2017-11-30 14:17:54 |                                                        u'retry': u'count=5 delay=1',
2017-11-30 14:17:54 |                                                        u'type': u'direct',
2017-11-30 14:17:54 |                                                        u'version': u'2.0'},
2017-11-30 14:17:54 |                                      u'set_deployment_failed': {u'name': u'set_deployment_failed',
2017-11-30 14:17:54 |                                                                 u'on-success': u'send_message',
2017-11-30 14:17:54 |                                                                 u'publish': {u'message': u'<% task(deploy).result %>',
2017-11-30 14:17:54 |                                                                              u'status': u'FAILED'},
2017-11-30 14:17:54 |                                                                 u'type': u'direct',
2017-11-30 14:17:54 |                                                                 u'version': u'2.0'},
2017-11-30 14:17:54 |                                      u'set_stack_in_progress': {u'name': u'set_stack_in_progress',
2017-11-30 14:17:54 |                                                                 u'on-success': u'send_message',
2017-11-30 14:17:54 |                                                                 u'publish': {u'message': u'The Heat stack is busy.',
2017-11-30 14:17:54 |                                                                              u'status': u'FAILED'},
2017-11-30 14:17:54 |                                                                 u'type': u'direct',
2017-11-30 14:17:54 |                                                                 u'version': u'2.0'},
2017-11-30 14:17:54 |                                      u'set_validations_failed': {u'name': u'set_validations_failed',
2017-11-30 14:17:54 |                                                                  u'on-success': u'send_message',
2017-11-30 14:17:54 |                                                                  u'publish': {u'message': u'<% task(run_validations).result %>',
2017-11-30 14:17:54 |                                                                               u'status': u'FAILED'},
2017-11-30 14:17:54 |                                                                  u'type': u'direct',
2017-11-30 14:17:54 |                                                                  u'version': u'2.0'}},
2017-11-30 14:17:54 |                           u'version': u'2.0'}},
2017-11-30 14:17:54 |  u'message': u"Failed to run action [action_ex_id=c918de9a-e230-41ed-88ec-7f18ed42262a, action_cls='<class 'mistral.actions.action_factory.DeployStackAction'>', attributes='{}', params='{u'skip_deploy_identifier': False, u'container': u'overcloud', u'timeout': 90}']\n ERROR: resources.ObjectStorage<nested_stack>.resources.0<https://192.168.24.2:13808/v1/AUTH_a268218319694cbabfb6d6d88894fdfb/overcloud/puppet/objectstorage-role.yaml>: : The Resource Type (OS::TripleO::ObjectStorage::Ports::TenantPort) could not be found.",
2017-11-30 14:17:54 |  u'status': u'FAILED'}
2017-11-30 14:17:54 | Started Mistral Workflow tripleo.validations.v1.check_pre_deployment_validations. Execution ID: 21256ca8-c06f-424f-8ef8-e29d9d709501
2017-11-30 14:17:54 | Removing the current plan files
2017-11-30 14:17:54 | Uploading new plan files
2017-11-30 14:17:54 | Started Mistral Workflow tripleo.plan_management.v1.update_deployment_plan. Execution ID: adf37850-6102-4998-88c8-ff7e285e659a
2017-11-30 14:17:54 | Plan updated.
2017-11-30 14:17:54 | Processing templates in the directory /tmp/tripleoclient-Oshsga/tripleo-heat-templates
2017-11-30 14:17:54 | Started Mistral Workflow tripleo.plan_management.v1.get_deprecated_parameters. Execution ID: f2d79635-5d5d-451d-9e74-aff4742368f0
2017-11-30 14:17:54 | Deploying templates in the directory /tmp/tripleoclient-Oshsga/tripleo-heat-templates
2017-11-30 14:17:54 | Started Mistral Workflow tripleo.deployment.v1.deploy_plan. Execution ID: f70ea28d-d241-4fc1-8118-218c0989d500
2017-11-30 14:17:54 | + status_code=1
2017-11-30 14:17:54 | + openstack stack list
2017-11-30 14:17:54 | + grep -q overcloud
2017-11-30 14:17:57 | + echo 'overcloud deployment not started. Check the deploy configurations'
2017-11-30 14:17:57 | overcloud deployment not started. Check the deploy configurations
2017-11-30 14:17:57 | + exit 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment