Commit Graph

27 Commits

Author SHA1 Message Date
Don Penney 9531b76af1 Move content to subdir to support relocated packaging
Change-Id: Id4f645de23b9f0aec1914edbaef11cdb6e6dc0af
Story: 2006166
Task: 37337
Depends-On: https://review.opendev.org/692861
Signed-off-by: Don Penney <don.penney@windriver.com>
2019-11-04 13:57:02 -05:00
Zuul 7fb781c7b5 Merge "Allow subcloud to use central-cloud's local registry" 2019-10-30 17:22:36 +00:00
Tao Liu 20a06bded7 Allow subcloud to use central-cloud's local registry
To address a requirement change that exposes the 'registry.central'
on the OAM interface, it must add the system controller OAM
subnet to the subcloud override file in the dcmanager.

Depends-On: https://review.opendev.org/#/c/690082/
Change-Id: I9ee6f0f99a940d5d2cc2f245977ffb9f207916c5
Partial-Bug: 1846799
Signed-off-by: Tao Liu <tao.liu@windriver.com>
2019-10-27 15:04:38 -04:00
Tyler Smith 96db1d7ee0 Distributed Cloud enhancements for Horizon
- Adding endpoints for the subcloud's platform services to the central
  keystone.  This was done so horizon can reach all subclouds
- Allowing version requests to bypass the authtoken validator in the
  dcorch proxy.  version requests do not require authentication and
  they are required by horizon to work in the SystemController region

Change-Id: I508e0168e77d1f46b8f5720fd16047177b4920c2
Partial-Bug: 1846239
Signed-off-by: Tyler Smith <tyler.smith@windriver.com>
2019-10-18 16:57:16 -04:00
Andy Ning 28aa599715 dcmanager for containerized openstack services - service
This update enhanced dcmanager to be able to manage containerized
openstack services of subclouds that have openstack application
deployed.

dcmanager audit query subcloud periodically to check whether
stx-openstack application is installed or not. If it's installed from
previous uninstalled, the subcloud's "openstack_installed" field will be
updated from "False" to "True", openstack sync endpoint types will be
added into subcloud sync endpoint type list, and notify dcorch to update
its sync threads. If it's uninstalled from previous installed, the
subcloud's "openstack_installed" field will be updated from "True" back
to "False", openstack sync endpoint types will be removed from subcloud
sync endpoint type list, and notify dcorch to update its sync threads.

The endpoint type sync status of openstack services will be available
to dcmanager commands such as "dcmanager subcloud list".

Change-Id: I651bebbef0f0a4dd39ec2371a7397c066c747622
Story: 2004766
Task: 36261
Signed-off-by: Andy Ning <andy.ning@windriver.com>
2019-10-10 09:29:29 -04:00
Tyler Smith 36702d225c Adding arbitrary deploy playbook execution to subcloud add command
This commit introduces the ability to pass a playbook and playbook
values file to the dcmanager subcloud add command.  The deployment
is now split into two phases: bootstrapping, where the bootstrap
ansible playbook is run with the supplied bootstrap values yaml file,
and deploying, where the specified ansible playbook is executed with
the given yaml values file pointing to the subcloud.

Change-Id: I2ff3034b1db88d9da89e634220a394ab9dfce64b
Story: 2004766
Task: 36712
Signed-off-by: Tyler Smith <tyler.smith@windriver.com>
2019-09-23 11:01:11 -04:00
Tyler Smith 9c5727995f IPv6 Distributed Cloud: update to bootstrap overrides formatting
Some bootstrap overrides were being written to the subcloud yaml file
as unicode strings, including ipv6 dns addresses, which causes ansible to
fail when parsing the yaml during the subcloud bootstrapping

Change-Id: I43f1776a9f2d8a7d45221946e62dc31ac9f6d1d9
Partial-Bug: 1844190
Signed-off-by: Tyler Smith <tyler.smith@windriver.com>
2019-09-17 14:59:08 -04:00
Zuul 1d5326c770 Merge "Use triple double-quoted strings for docstrings" 2019-08-28 14:09:37 +00:00
Tyler Smith 9217e03a62 Subcloud goes offline after managing
Formatting of the passwords was incorrect leading to
authentication issues

Change-Id: If181e38f07dc66b6e4b12bf0b5a7fb123d75fbb2
Closes-Bug: 1839377
Signed-off-by: Tyler Smith <tyler.smith@windriver.com>
2019-08-23 10:54:23 -04:00
Tyler Smith 8c2bd5fa14 Zero Touch Provisioning changes for subcloud configuration
- Adding logic to automatically deploy subclouds via ansible when
  they are added, as well as a 'deploy' field to subcloud entity to
  report status
- Converting subcloud fields to take underscored
  parameters instead of dashed to match ansible variable style
- Adding checks to OAM network parameters
- Removing generate subcloud config logic

Depends-On: https://review.opendev.org/#/c/670321/
Depends-On: https://review.opendev.org/#/c/670325/
Change-Id: Ib7fe2f4a42fffb7bd5082e6e851cb9136edf5a00
Story: 2004766
Task: 35756
Signed-off-by: Tyler Smith <tyler.smith@windriver.com>
2019-07-17 13:30:04 -04:00
Tao Liu def5da6342 Fix dcmanager add subcloud exception
The sysinv API for retrieving the network interfaces has been
changed. This update makes changes in dcmanager to adapt the
sysinv changes.

Story: 2004766
Task: 35672
Change-Id: Ifaa510726c5029738e6b02f468a3a38f0682a351
Signed-off-by: Tao Liu <tao.liu@windriver.com>
2019-07-03 16:44:44 -04:00
fpxie 1f4769dafd Use triple double-quoted strings for docstrings
Change-Id: I1bc612866b9fc98be7e702565ba249bda4a54785
Story: 2006136
Task: 35632
2019-07-01 15:10:59 +08:00
Andy Ning 67215f30fe Keystone DB sync - update dcorch to use dcdbsync
This commit updates dcorch to use the newly introduced dbsync service
APIs to synchronize identity resources from central cloud to subclouds.
The following identity resources are synced:

- users (local users only)
- user passwords
- projects
- roles
- project role assignments
- token revocation events

Story: 2002842
Task: 22787

Signed-off-by: Andy Ning <andy.ning@windriver.com>
(cherry picked from commit e9096c7a23)

Depends-On: https://review.opendev.org/#/c/655921
Depends-On: https://review.opendev.org/#/c/655773
Depends-On: https://review.opendev.org/#/c/655776
Depends-On: https://review.opendev.org/#/c/655927
Change-Id: I77c2cc712a1c3dc8a228883c3fea1423e5207dea
2019-04-30 14:50:55 -04:00
Tao Liu 4139b42efe Remove oslo transport aliases
Aliases were first deprecated in oslo.messaging 5.20.0
during Pike, and they have been removed in Stein.

This update removes oslo transport aliases in both
dcorch and dcmanager messaging to support the
containerized keystone-api-proxy that uses Stein.

Story: 2004766
Task: 30450

Change-Id: I015e23575d56ab031a7a94efa4ec5464fcd3f543
Signed-off-by: Tao Liu <tao.liu@windriver.com>
2019-04-10 11:36:33 -04:00
Kristine Bujold 9b3af14ec5 Remove wrs-configutilities SDK Module
Some of the APIs were moved to controllerconfig.

With the StarlingX move to supporting pure upstream OpenStack, the
majority of the SDK Modules are related to functionality no longer
supported. The remaining SDK Modules will be moved to StarlingX
documentation.

Story: 2005275
Task: 30265
Depends-On: https://review.openstack.org/#/c/649175

Change-Id: I2044761b3e653b6862ece2cf82dd8135b059b60d
Signed-off-by: Kristine Bujold <kristine.bujold@windriver.com>
2019-04-01 16:08:51 -04:00
Tao Liu ae73fe3469 Distributed cloud: Fix Patch Orchestration
The dcmanager failed to create patch strategy for sub-clouds.
This problem is caused by keyword argument name mismatch in the
vim interfaces that used by the dcmanager.
The argument names that have compute reference have been
changed to worker on the vim side while the dcmanager
still uses the old names.

This update changes all compute references to worker in
dcmanager including the data model.

Closes-Bug:1821081

Change-Id: I8cb2dea286e7f91d9b34cc13c57d40de018f3a9f
Signed-off-by: Tao Liu <tao.liu@windriver.com>
2019-03-21 10:02:16 -04:00
Tao Liu 3ac45e3281 Integrate Distributed Cloud with containerized services
Disable nova, cinder and neutron api proxy services
Disable nova, cinder and neutron sync threads
Add cluster IP support to generated subcloud
configuration file
Remove openstack users from subcloud user list

Story: 2004766
Task: 28884

Change-Id: I683ba05ee74b159716924f08814a7473e7053d4d
Signed-off-by: Tao Liu <tao.liu@windriver.com>
2019-03-14 15:13:21 -04:00
Sun Austin 6022c0420d FIX other issues for Python 2/3 compatible code
change func.func_name to func.__name__
change itertools.izip_longest to six.moves.zip_longest
change self.assertRaisesRegexp(xxx) to six.assertRaisesRegex(self,xx)
use absolute import path

Story: 2004585
Task: 28447

Change-Id: I2b4814fb6f96feb90ad0a081ffcab5c72160b0f7
Signed-off-by: Sun Austin <austin.sun@intel.com>
2019-01-15 00:33:54 +00:00
Sun Austin 5e9dc48384 FIX: "dict" issue for Python 2/3 compatible code
Replace dict.iteritems() with dict.items()
Change dict.keys() to list(dict.keys())

Story: 2004585
Task: 28449

Change-Id: I674c499fd575800fa307a835d8f7f272f2b2cd03
Signed-off-by: Sun Austin <austin.sun@intel.com>
2019-01-15 00:33:38 +00:00
Alex Kozyrev d1e5526d84 Add Barbican user to the list of subcloud users.
Distributed Cloud manager need to know about Barbican user in order
to retrieve its username and password for subclouds configuration in
the config_subcloud script.

Change-Id: I59d5a2fd79a88ba1690b1586fbd0c426d6bc114a
Story: 2003108
Task: 27700
Signed-off-by: Alex Kozyrev <alex.kozyrev@windriver.com>
2018-12-12 20:46:58 +00:00
Lachlan Plant e815932fdb Enable tox tests for stx-distcloud
py27 tests fixed and passing
py27 added to gate and check
pep8 added to gate and check

Story: 2003862
Task: 26691

Change-Id: I0469978534f9b50d33c65484f0b4c07b3314cb67
Signed-off-by: Lachlan Plant <lachlan.plant@windriver.com>
2018-11-02 10:27:02 -05:00
junboli 0c34a4901d Fix pep8 error when running tox
openstack-tox-pep8 now is failure, this patch is to fix
this.

Closes-bug: #1799930
Change-Id: Ia1b7f3395e92014e0f5373d81788dc55f7815002
2018-10-29 06:23:49 +08:00
Andy Ning b15f0b20bd Fix Distributed Cloud patch orchestration apply failure
A typo error in dcmanager causes patch orchestration apply in progress
forever. This update fixed the typo error and made patch orchestration
in Distributed Cloud works again.

Closes-Bug: 1792175

Change-Id: Ie955676b97baf7568baf1fe2e8e74302a79020a2
Signed-off-by: Andy Ning <andy.ning@windriver.com>
2018-09-12 11:52:47 -04:00
Dean Troyer a4cebb85c4
Merge pull request #2 from kbujold/dc_orchestration_stop_on_failure
Distributed Cloud: Patch Orchestration Loop
2018-08-27 09:33:50 -05:00
Kevin Smith a1463b1334 Distributed Cloud: Patch Orchestration Loop
In Distributed Cloud patch orchestration stop-on-failure causes an
exception loop.  Set the current_stage when stopping on failure to
allow patch orchestration to continue on other clouds.

Closes-Bug: 1788882

Signed-off-by: Kristine Bujold <kristine.bujold@windriver.com>
2018-08-24 13:58:30 -04:00
Tao Liu 38f08a0d98 Decouple Fault Management from stx-config
The fault management (FM) APIs has been removed from the syinv API
service and a new FM API service has been introduced. This update adds
a new fm openstack driver for retrieving each region's alarm summary,
and it also modifies the alarm aggregate manager to use the fm driver.
In addition, it removes get alarm summary routine from sysinv and
adds the  fm user to the subcloud user list

Story: 2002828
Task: 22747

Signed-off-by: Tao Liu <tao.liu@windriver.com>
2018-08-23 14:59:38 -04:00
Scott Little e82c7b4336 StarlingX open source release updates
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-07 11:51:21 -04:00