distcloud/distributedcloud/dccommon
Zhang Rong(Jon) fe1045afce Add dcmanager client driver support
Add dcmanager client driver to access the peer site dcmanager API

Test Plan:
1. PASS - Verify get subcloud and subcloud list,
          get subcloud peer group and list
2. PASS - Verify add subcloud and add subcloud peer group
3. PASS - Verify delete subcloud and delete subcloud peer group

Call example:
p_ks_client = PeerSiteDriver(
        auth_url=peer.manager_endpoint,
        username=peer.manager_username,
        password=base64.b64decode(
            peer.manager_password.encode("utf-8")).decode("utf-8"),
        site_uuid=peer.peer_uuid)
dc_endpoint = p_ks_client.session.get_endpoint(
        service_type='dcmanager',
        region_name=dccommon_consts.SYSTEM_CONTROLLER_NAME,
        interface=dccommon_consts.KS_ENDPOINT_PUBLIC)
dc_client = DcmanagerClient(dccommon_consts.SYSTEM_CONTROLLER_NAME,
                            p_ks_client.session,
                            endpoint=dc_endpoint)
dc_client.get_subcloud('subcloud1')

Story: 2010852
Task: 48679
Change-Id: I7cdd773ee1238c1e61b5e5d8753ffea9416fcd91
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
2023-09-27 10:59:34 +08:00
..
drivers Add dcmanager client driver support 2023-09-27 10:59:34 +08:00
tests Add dcmanager client driver support 2023-09-27 10:59:34 +08:00
LICENSE Keystone token and resource caching 2020-03-23 21:31:04 -04:00
__init__.py Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
consts.py Add dcmanager client driver support 2023-09-27 10:59:34 +08:00
endpoint_cache.py Update endpoint caches post network reconfig 2023-03-14 11:44:15 -03:00
exceptions.py Add dcmanager client driver support 2023-09-27 10:59:34 +08:00
kubeoperator.py Fix race condition issue of copying default-registry-key 2023-08-24 21:55:08 -04:00
subcloud_install.py Merge "Change playbook execution function to new class" 2023-09-11 15:30:48 +00:00
subprocess_cleanup.py Registration-based subprocess cleanup on service shutdown 2022-05-18 20:53:47 -04:00
utils.py Change playbook execution function to new class 2023-09-11 11:06:17 -03:00