diff options
author | Peter Barabas <peter.barabas@ericsson.com> | 2016-06-02 10:29:29 +0200 |
---|---|---|
committer | Stefan Berg <stefan.k.berg@ericsson.com> | 2016-06-02 11:07:38 +0000 |
commit | 6c498c04a9843bcc99dc94650e5d0b31490dfa1b (patch) | |
tree | 7ef902658f83c417207b2c714f8208f66aea50fa /deploy | |
parent | 2498bbb0354fd7abbbb408810f419c2999c23a31 (diff) |
Download deployment config after modification
Modified network or interface configurations were not reflected in
the deployment config, resulting in faulty node configurations.
Change-Id: I4ca20702c0171e7995f2b4f46317557ec9d5beac
Signed-off-by: Peter Barabas <peter.barabas@ericsson.com>
Diffstat (limited to 'deploy')
-rw-r--r-- | deploy/cloud/configure_nodes.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deploy/cloud/configure_nodes.py b/deploy/cloud/configure_nodes.py index 46121df62..b4875cc6a 100644 --- a/deploy/cloud/configure_nodes.py +++ b/deploy/cloud/configure_nodes.py @@ -43,12 +43,18 @@ class ConfigureNodes(object): exec_cmd('fuel node set --node-id %s --role %s --env %s' % (node_id, roles_blade[0], self.env_id)) + # Download the unmodified default deployment configuration, because we + # need it for the network config. self.download_deployment_config() for node_id, roles_blade in self.node_id_roles_dict.iteritems(): self.download_interface_config(node_id) self.modify_node_interface(node_id, roles_blade) self.modify_node_network_schemes(node_id, roles_blade) self.upload_interface_config(node_id) + + # Download our modified deployment configuration, which includes our + # changes to network topology etc. + self.download_deployment_config() self.upload_deployment_config() def modify_node_network_schemes(self, node_id, roles_blade): |