update of config script using new release of OpenStack SDK 85/58885/2
authorGerard Damm <gerard.damm@wipro.com>
Thu, 21 Jun 2018 19:26:54 +0000 (14:26 -0500)
committerGerard Damm <gerard.damm@wipro.com>
Thu, 28 Jun 2018 01:22:03 +0000 (20:22 -0500)
commitc8f22d584e6bb23634d12e40d66400a718d5cbc7
tree36a0409a4434518e2d011e5acd49a954f6a047b2
parent27fa5fa463e835b424636a567165b7740c9ebfb6
update of config script using new release of OpenStack SDK

JIRA: AUTO-38

- Issues in OpenStack SDK 0.13 were fixed in new release 0.14
- revisited the script, made some changes (delete interfaces before
  deleting router)
- Script now fully works: creates all objects, and can be used also
  for deleting (in a clean-up job for example)
- resilient to re-runs: can attempt to re-create, won't crash if
  objects already exist (existence tests work, thanks to SDK 0.14
  fix). Likewise, can attempt to re-delete (no crash).

- next steps will be:
  * update created objects based on ONAP-B requirements
    (current: still from Amsterdam; should be quite similar)
  * script to ensure Python3 and SDK are installed, and to
    ensure files are there (clouds.yaml, .img)
  * chain in CI pipeline: Fuel/MCP install, and this script

Patch 2:
made changes to address the comments
- fixed the summary (works in any execution case), tested on hpe12
- researched the URL support (use image proxy), but did not try yet
(need to merge this for 6.2)

Change-Id: Ibf647e33428c98a6fec17eda0a41e9ee11cc8085
Signed-off-by: Gerard Damm <gerard.damm@wipro.com>
setup/VIMs/OpenStack/auto_script_config_openstack_for_onap.py
setup/VIMs/OpenStack/clouds.yaml [new file with mode: 0644]