Merge "Revert "Added for support for generating overcloud clouds.yaml""

This commit is contained in:
Zuul 2019-12-24 21:30:31 +00:00 committed by Gerrit Code Review
commit 4f5ad27499
3 changed files with 0 additions and 33 deletions

View File

@ -1,8 +0,0 @@
---
features:
- |
OpenStack overcloud services cli and api is currently accessed through
overcloudrc and clouds.yaml.
This adds support for overcloud clouds.yaml file generation after
deployment. The file can be found at ~/.config/openstack/clouds.yaml
and /etc/openstack/clouds.yaml.

View File

@ -1,3 +0,0 @@
def create_clouds_yaml(cloud=None, cloud_yaml_dir=None,
user_id=None, group_id=None):
pass

View File

@ -131,28 +131,6 @@ def create_overcloudrc(clients, **workflow_input):
payload.get('message')))
def create_cloudsyaml(clients, **workflow_input):
workflow_client = clients.workflow_engine
tripleoclients = clients.tripleoclient
with tripleoclients.messaging_websocket() as ws:
execution = base.start_workflow(
workflow_client,
'tripleo.deployment.v1.createcloudsyaml',
workflow_input=workflow_input
)
for payload in base.wait_for_messages(workflow_client, ws, execution):
# the workflow will return the overcloud cloud yaml data, an error
# message or blank.
if payload.get('status') == 'SUCCESS':
return payload.get('message')
else:
raise exceptions.WorkflowServiceError(
'Exception creating overcloud clouds.yaml file: {}'.format(
payload.get('message')))
def get_overcloud_hosts(stack, ssh_network):
ips = []
role_net_ip_map = utils.get_role_net_ip_map(stack)