dc9ae1ac5b
This change removes all of mistral from the config_download_deploy function by calling the required functions directly. - All of the inputs within this function have been cleaned up and documented. - New log entires will be created when using this method giving the deployer a better overall user experience. - To ensure we're able to support the ability to reproduce commands, the ssh args extravar has been moved to an environment variable. - The methods get_config and get_key have been moved to the utils module. This was done to help avoid circular imports. Update methods have been changed to execute without running within a mistral workflow. This was changed because there's no need to support the multiple code paths anymore given config_download is now running directly. Test classes have been updated to reduce duplication. With the new streamlined execution process we should see improved deployment times and better visability into the deployment process. Task: 38422 Story: 2007212 Depends-On: I006291a2465aa4c950abce76f9e5f9459b76e330 Change-Id: Ide1a4503dd2bdd2d5e494cd1eac483b842a21acf Co-authored-by: Luke Short <ekultails@gmail.com> Co-authored-by: Dougal Matthews <dougal@dougalmatthews.com> Signed-off-by: Kevin Carter <kecarter@redhat.com>
23 lines
790 B
Python
23 lines
790 B
Python
# Copyright 2018 Red Hat, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
#
|
|
|
|
from tripleoclient.tests import fakes
|
|
|
|
|
|
class TestOvercloudExternalUpdateRun(fakes.FakePlaybookExecution):
|
|
|
|
def setUp(self):
|
|
super(TestOvercloudExternalUpdateRun, self).setUp()
|