hcs-cli 0.1.318__py3-none-any.whl → 0.1.320__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hcs_cli/__init__.py +2 -2
- hcs_cli/cmds/advisor/html_utils.py +30 -26
- hcs_cli/cmds/advisor/recommendation_engine.py +7 -10
- hcs_cli/cmds/daas/tenant/plan.py +1 -1
- hcs_cli/cmds/debug/start.py +0 -1
- hcs_cli/cmds/dev/fs/clear.py +8 -0
- hcs_cli/cmds/dev/fs/helper/credential_helper.py +2 -0
- hcs_cli/cmds/dev/fs/helper/k8s_util.py +0 -1
- hcs_cli/cmds/dev/fs/init.py +38 -5
- hcs_cli/cmds/dev/fs/profiler.py +0 -1
- hcs_cli/cmds/dev/fs/provided_files/akka.plan.yml +94 -250
- hcs_cli/cmds/dev/fs/provided_files/azsim.plan.yml +27 -34
- hcs_cli/cmds/dev/fs/provided_files/azure.plan.yml +294 -322
- hcs_cli/cmds/dev/fs/provided_files/mqtt-secret.yaml +188 -93
- hcs_cli/cmds/dev/fs/provided_files/mqtt-server-external.yaml +4 -5
- hcs_cli/cmds/dev/fs/provided_files/patch-mqtt-hostname.yml +3 -3
- hcs_cli/cmds/dev/fs/provided_files/patch-vernemq-ssl-depth.json +1 -1
- hcs_cli/cmds/dev/fs/tailor.py +7 -12
- hcs_cli/cmds/dev/mqtt.py +1 -2
- hcs_cli/cmds/dev/util/mqtt_helper.py +0 -1
- hcs_cli/cmds/hoc/search.py +39 -9
- hcs_cli/cmds/hoc/stats.py +46 -0
- hcs_cli/cmds/hst/clean.py +2 -1
- hcs_cli/cmds/inventory/assign.py +1 -3
- hcs_cli/cmds/inventory/deassign.py +1 -1
- hcs_cli/cmds/inventory/delete.py +48 -0
- hcs_cli/cmds/lcm/provider/create.py +11 -2
- hcs_cli/cmds/lcm/template/expand.py +46 -0
- hcs_cli/cmds/lcm/vm/delete.py +3 -2
- hcs_cli/cmds/scm/plan.py +131 -3
- hcs_cli/cmds/task.py +2 -4
- hcs_cli/cmds/template/expand.py +64 -19
- hcs_cli/cmds/template/list_usage.py +2 -2
- hcs_cli/cmds/template/update.py +2 -2
- hcs_cli/cmds/template/usage.py +20 -7
- hcs_cli/cmds/vm/delete.py +3 -2
- hcs_cli/cmds/vm/list.py +51 -40
- hcs_cli/cmds/vmm/rootca_migrate.py +1 -1
- hcs_cli/config/hcs-deployments.yaml +52 -52
- hcs_cli/main.py +0 -2
- hcs_cli/payload/akka.blueprint.yml +95 -243
- hcs_cli/payload/app/manual.json +19 -19
- hcs_cli/payload/edge/akka.json +6 -6
- hcs_cli/payload/edge/vsphere.json +6 -6
- hcs_cli/payload/hoc/lcm-capcalc.json.template +43 -0
- hcs_cli/payload/hoc/no-spare.json.template +1 -1
- hcs_cli/payload/inventory/assign.json +14 -16
- hcs_cli/payload/inventory/deassign.json +11 -11
- hcs_cli/payload/lcm/akka.json +31 -33
- hcs_cli/payload/lcm/azure-dummy.json +64 -66
- hcs_cli/payload/lcm/azure-real.json +13 -11
- hcs_cli/payload/lcm/edge-proxy.json +34 -36
- hcs_cli/payload/lcm/zero-dedicated.json +34 -36
- hcs_cli/payload/lcm/zero-delay-1m-per-vm.json +53 -69
- hcs_cli/payload/lcm/zero-fail-delete-template.json +43 -0
- hcs_cli/payload/lcm/zero-fail-destroy-onthread.json +38 -40
- hcs_cli/payload/lcm/zero-fail-destroy.json +38 -40
- hcs_cli/payload/lcm/zero-fail-prepare-onthread.json +38 -40
- hcs_cli/payload/lcm/zero-fail-prepare.json +38 -40
- hcs_cli/payload/lcm/zero-fail-vm-onthread.json +58 -74
- hcs_cli/payload/lcm/zero-fail-vm.json +58 -74
- hcs_cli/payload/lcm/zero-floating.json +34 -36
- hcs_cli/payload/lcm/zero-manual.json +33 -35
- hcs_cli/payload/lcm/zero-multisession.json +34 -36
- hcs_cli/payload/lcm/zero-nanw.json +31 -33
- hcs_cli/payload/lcm/zero-new-5k-delay.json +69 -78
- hcs_cli/payload/lcm/zero-new-5k.json +36 -38
- hcs_cli/payload/lcm/zero-new-snapshot.json +37 -39
- hcs_cli/payload/lcm/zero-new.json +37 -39
- hcs_cli/payload/lcm/zero-reuse-vm-id.json +33 -35
- hcs_cli/payload/lcm/zero-with-max-id-offset.json +32 -34
- hcs_cli/payload/lcm/zero.json +59 -73
- hcs_cli/payload/provider/ad-stes-vsphere.json +26 -26
- hcs_cli/payload/provider/akka.json +12 -12
- hcs_cli/payload/provider/azure.json +14 -14
- hcs_cli/payload/provider/edgeproxy.json +12 -12
- hcs_cli/payload/provider/vsphere.json +14 -14
- hcs_cli/payload/scm/starter.json +22 -23
- hcs_cli/payload/synt/core/p01-dummy-success.json +11 -15
- hcs_cli/payload/synt/core/p02-dummy-fail.json +12 -15
- hcs_cli/payload/synt/core/p03-dummy-exception.json +12 -15
- hcs_cli/payload/synt/core/p04-dummy-success-repeat.json +12 -15
- hcs_cli/payload/synt/core/p05-dummy-fail-repeat.json +13 -16
- hcs_cli/payload/synt/core/p06-dummy-exception-repeat.json +13 -16
- hcs_cli/payload/synt/core/p07-dummy-delay.json +12 -15
- hcs_cli/payload/synt/core/p08-dummy-property.json +12 -15
- hcs_cli/payload/synt/ext/p20-connect-success.json +12 -15
- hcs_cli/payload/synt/ext/p21-connect-fail.json +12 -15
- hcs_cli/payload/synt/ext/p30-ssl-success.json +12 -15
- hcs_cli/payload/synt/ext/p31-ssl-fail.json +13 -16
- hcs_cli/payload/synt/ext/p40-http-success.json +12 -15
- hcs_cli/payload/synt/ext/p41-http-fail.json +12 -15
- hcs_cli/payload/synt/ext/p42-http-status-code.json +14 -20
- hcs_cli/payload/synt/ext1/p10-ping-success.json +13 -16
- hcs_cli/payload/synt/ext1/p11-ping-fail.json +12 -15
- hcs_cli/payload/synt/ext1/p12-ping-success-repeat.json +14 -17
- hcs_cli/provider/hcs/cert.py +0 -1
- hcs_cli/provider/hcs/edge.py +1 -1
- hcs_cli/provider/hcs/uag.py +1 -1
- hcs_cli/service/admin/template.py +10 -1
- hcs_cli/service/hoc/diagnostic.py +11 -3
- hcs_cli/service/inventory/__init__.py +15 -2
- hcs_cli/service/inventory/vm.py +12 -0
- hcs_cli/service/lcm/template.py +9 -6
- hcs_cli/service/lcm/vm.py +0 -1
- hcs_cli/service/task.py +0 -1
- hcs_cli/service/template.py +1 -1
- hcs_cli/support/debug_util.py +0 -1
- hcs_cli/support/plan_util.py +0 -1
- hcs_cli/support/predefined_payload.py +4 -1
- hcs_cli/support/template_util.py +0 -1
- hcs_cli/support/test_utils.py +2 -2
- hcs_cli/support/test_utils2.py +536 -0
- hcs_cli/support/vm_table.py +2 -2
- {hcs_cli-0.1.318.dist-info → hcs_cli-0.1.320.dist-info}/METADATA +24 -17
- {hcs_cli-0.1.318.dist-info → hcs_cli-0.1.320.dist-info}/RECORD +118 -113
- hcs_cli/payload/lcm/azure-dummy-nt.json +0 -69
- {hcs_cli-0.1.318.dist-info → hcs_cli-0.1.320.dist-info}/WHEEL +0 -0
- {hcs_cli-0.1.318.dist-info → hcs_cli-0.1.320.dist-info}/entry_points.txt +0 -0
hcs_cli/cmds/vm/list.py
CHANGED
|
@@ -47,47 +47,25 @@ from hcs_cli.support.vm_table import format_vm_table
|
|
|
47
47
|
@click.option(
|
|
48
48
|
"--agent",
|
|
49
49
|
"-a",
|
|
50
|
-
type=click.Choice(
|
|
51
|
-
["UNAVAILABLE", "ERROR", "AVAILABLE", "INIT", "UNKNOWN", "DOMAIN_ERR", "CUSTOMIZATION_FAILURE"],
|
|
52
|
-
case_sensitive=False,
|
|
53
|
-
),
|
|
54
50
|
required=False,
|
|
55
|
-
|
|
56
|
-
help="Filter VMs by agent status.",
|
|
51
|
+
help="Filter VMs by agent status, in comma separated values: UNAVAILABLE,ERROR,AVAILABLE,INIT,UNKNOWN,DOMAIN_ERR,CUSTOMIZATION_FAILURE",
|
|
57
52
|
)
|
|
58
53
|
@click.option(
|
|
59
54
|
"--power",
|
|
60
55
|
"-p",
|
|
61
|
-
type=click.Choice(["PoweredOn", "PoweredOff", "PoweringOn", "PoweringOff", "Unknown"], case_sensitive=False),
|
|
62
56
|
required=False,
|
|
63
|
-
|
|
64
|
-
help="Filter VMs by power state.",
|
|
57
|
+
help="Filter VMs by power state, in comman separated values: PoweredOn,PoweredOff,PoweringOn,PoweringOff,Unknown",
|
|
65
58
|
)
|
|
66
59
|
@click.option(
|
|
67
60
|
"--lifecycle",
|
|
68
|
-
type=
|
|
69
|
-
[
|
|
70
|
-
"PROVISIONING",
|
|
71
|
-
"PROVISIONED",
|
|
72
|
-
"MAINTENANCE",
|
|
73
|
-
"DELETING",
|
|
74
|
-
"ERROR",
|
|
75
|
-
"CUSTOMIZING",
|
|
76
|
-
"AGENT_UPDATING",
|
|
77
|
-
"AGENT_REINSTALLING",
|
|
78
|
-
],
|
|
79
|
-
case_sensitive=False,
|
|
80
|
-
),
|
|
61
|
+
type=str,
|
|
81
62
|
required=False,
|
|
82
|
-
|
|
83
|
-
help="Filter VMs by lifecycle status.",
|
|
63
|
+
help="Filter VMs by lifecycle status, in comma separated values: PROVISIONING,PROVISIONED,MAINTENANCE,DELETING,ERROR,CUSTOMIZING,AGENT_UPDATING,AGENT_REINSTALLING",
|
|
84
64
|
)
|
|
85
65
|
@click.option(
|
|
86
66
|
"--session",
|
|
87
|
-
type=click.Choice(["AVAILABLE", "UNAVAILABLE", "DRAINING", "QUIESCING", "REPRISTINING"], case_sensitive=False),
|
|
88
67
|
required=False,
|
|
89
|
-
|
|
90
|
-
help="Filter VMs by power state.",
|
|
68
|
+
help="Filter VMs by session placement status, in comma separated values: AVAILABLE,UNAVAILABLE,DRAINING,QUIESCING,REPRISTINING",
|
|
91
69
|
)
|
|
92
70
|
@cli.formatter(format_vm_table)
|
|
93
71
|
def list_vms(
|
|
@@ -97,39 +75,39 @@ def list_vms(
|
|
|
97
75
|
type: list,
|
|
98
76
|
agent: list,
|
|
99
77
|
power: list,
|
|
100
|
-
lifecycle:
|
|
78
|
+
lifecycle: str,
|
|
101
79
|
session: str,
|
|
102
80
|
**kwargs,
|
|
103
81
|
):
|
|
104
82
|
"""List template VMs"""
|
|
105
83
|
org_id = cli.get_org_id(org)
|
|
106
84
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
85
|
+
filttered_agent_states = _parse_multi_state(agent, "agent")
|
|
86
|
+
filtered_power_states = _parse_multi_state(power, "power")
|
|
87
|
+
filtered_lifecycle_states = _parse_multi_state(lifecycle, "lifecycle")
|
|
88
|
+
filtered_session_states = _parse_multi_state(session, "session")
|
|
110
89
|
|
|
111
90
|
def filter_vm(vm):
|
|
112
|
-
if
|
|
91
|
+
if filttered_agent_states:
|
|
113
92
|
s = vm.get("agentStatus")
|
|
114
|
-
if not s or s.
|
|
93
|
+
if not s or s.upper() not in filttered_agent_states:
|
|
115
94
|
return False
|
|
116
|
-
if
|
|
95
|
+
if filtered_power_states:
|
|
117
96
|
s = vm.get("powerState")
|
|
118
|
-
if not s or s.
|
|
97
|
+
if not s or s.upper() not in filtered_power_states:
|
|
119
98
|
return False
|
|
120
|
-
if
|
|
99
|
+
if filtered_lifecycle_states:
|
|
121
100
|
s = vm.get("lifecycleStatus")
|
|
122
|
-
if not s or s.
|
|
101
|
+
if not s or s.upper() not in filtered_lifecycle_states:
|
|
123
102
|
return False
|
|
124
|
-
if
|
|
103
|
+
if filtered_session_states:
|
|
125
104
|
s = vm.get("sessionPlacementStatus")
|
|
126
|
-
if not s or s.
|
|
105
|
+
if not s or s.upper() not in filtered_session_states:
|
|
127
106
|
return False
|
|
128
107
|
return True
|
|
129
108
|
|
|
130
109
|
vms = []
|
|
131
110
|
if template_id and template_id.lower() == "all":
|
|
132
|
-
|
|
133
111
|
cloud = _to_lower(cloud)
|
|
134
112
|
|
|
135
113
|
def to_search_condition(values):
|
|
@@ -179,6 +157,39 @@ def list_vms(
|
|
|
179
157
|
return vms
|
|
180
158
|
|
|
181
159
|
|
|
160
|
+
def _parse_multi_state(param_list: str, name: str):
|
|
161
|
+
if not param_list:
|
|
162
|
+
return None
|
|
163
|
+
param_list = param_list.upper()
|
|
164
|
+
values = []
|
|
165
|
+
|
|
166
|
+
valid_map = {
|
|
167
|
+
"lifecycle": [
|
|
168
|
+
"PROVISIONING",
|
|
169
|
+
"PROVISIONED",
|
|
170
|
+
"MAINTENANCE",
|
|
171
|
+
"DELETING",
|
|
172
|
+
"ERROR",
|
|
173
|
+
"CUSTOMIZING",
|
|
174
|
+
"AGENT_UPDATING",
|
|
175
|
+
"AGENT_REINSTALLING",
|
|
176
|
+
],
|
|
177
|
+
"agent": ["UNAVAILABLE", "ERROR", "AVAILABLE", "INIT", "UNKNOWN", "DOMAIN_ERR", "CUSTOMIZATION_FAILURE"],
|
|
178
|
+
"power": ["POWEREDON", "POWEREDOFF", "POWERINGON", "POWERINGOFF", "UNKNOWN"],
|
|
179
|
+
"session": ["AVAILABLE", "UNAVAILABLE", "DRAINING", "QUIESCING", "REPRISTINING"],
|
|
180
|
+
}
|
|
181
|
+
if name not in valid_map:
|
|
182
|
+
raise Exception(f"Unknown multi-state filter name: {name}")
|
|
183
|
+
|
|
184
|
+
valid = valid_map[name]
|
|
185
|
+
for s in param_list.split(","):
|
|
186
|
+
s = s.strip()
|
|
187
|
+
if s not in valid:
|
|
188
|
+
raise Exception(f"Invalid {name} value: {s}. Valid values are: {', '.join(valid)}")
|
|
189
|
+
values.append(s)
|
|
190
|
+
return values
|
|
191
|
+
|
|
192
|
+
|
|
182
193
|
def _to_lower(values):
|
|
183
194
|
if values:
|
|
184
195
|
return [v.lower() for v in values]
|
|
@@ -556,7 +556,7 @@ def power_policy_on_template(template: dict, enable: bool, verbose: bool):
|
|
|
556
556
|
patch = calculate_patch(template, allowed_fields, [field])
|
|
557
557
|
for i in range(3):
|
|
558
558
|
try:
|
|
559
|
-
admin.template.
|
|
559
|
+
admin.template.patch(template_id, target_org_id, patch)
|
|
560
560
|
admin.template.wait_for_ready(template_id, target_org_id, 60)
|
|
561
561
|
break
|
|
562
562
|
except Exception as ex:
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
prod:
|
|
2
2
|
- env: prod-global
|
|
3
3
|
alias: prod
|
|
4
|
-
description:
|
|
4
|
+
description:
|
|
5
5
|
azure-reion: WestUS2
|
|
6
|
-
primary:
|
|
6
|
+
primary:
|
|
7
7
|
portal-url:
|
|
8
8
|
- https://cloud-sg.horizon.omnissa.com
|
|
9
9
|
- https://cloud.vmwarehorizon.com/
|
|
10
10
|
hdc:
|
|
11
11
|
url: https://cloud-sg.horizon.omnissa.com
|
|
12
12
|
mqtt: cloud-sg-us-hdc-mqtt.horizon.omnissa.com
|
|
13
|
-
regions:
|
|
13
|
+
regions:
|
|
14
14
|
- name: EastUS2
|
|
15
15
|
url: https://cloud-sg-us-r-eastus2.horizon.omnissa.com
|
|
16
16
|
#mqtt: http://prod-sg-mqtt-eastus2.trafficmanager.net
|
|
@@ -25,16 +25,16 @@ prod:
|
|
|
25
25
|
url: https://hv2-cloud-us-2.horizon.omnissa.com
|
|
26
26
|
- env: prod-na-cp102
|
|
27
27
|
alias: prod-us
|
|
28
|
-
description:
|
|
28
|
+
description:
|
|
29
29
|
azure-reion: WestUS2
|
|
30
|
-
primary:
|
|
30
|
+
primary:
|
|
31
31
|
portal-url:
|
|
32
32
|
- https://cloud-sg.horizon.omnissa.com
|
|
33
33
|
- https://cloud.vmwarehorizon.com/
|
|
34
34
|
hdc:
|
|
35
35
|
url: https://cloud-sg-us.horizon.omnissa.com
|
|
36
36
|
mqtt: cloud-sg-us-hdc-mqtt.horizon.omnissa.com
|
|
37
|
-
regions:
|
|
37
|
+
regions:
|
|
38
38
|
- name: EastUS2
|
|
39
39
|
url: https://cloud-sg-us-r-eastus2.horizon.omnissa.com
|
|
40
40
|
mqtt: cloud-sg-us-r-eastus2-mqtt-a.horizon.omnissa.com
|
|
@@ -45,7 +45,7 @@ prod:
|
|
|
45
45
|
url: https://hv2-cloud-us-2.horizon.omnissa.com
|
|
46
46
|
- env: prod-centralus-cp102
|
|
47
47
|
alias: prod-us-standby
|
|
48
|
-
description:
|
|
48
|
+
description:
|
|
49
49
|
azure-reion: CentralUS
|
|
50
50
|
primary: false
|
|
51
51
|
portal-url:
|
|
@@ -53,8 +53,8 @@ prod:
|
|
|
53
53
|
- https://cloud.vmwarehorizon.com/
|
|
54
54
|
hdc:
|
|
55
55
|
url: https://cloud-sg-centralus.horizon.omnissa.com
|
|
56
|
-
mqtt:
|
|
57
|
-
regions:
|
|
56
|
+
mqtt:
|
|
57
|
+
regions:
|
|
58
58
|
- name: EastUS2
|
|
59
59
|
url: https://cloud-sg-us-r-eastus2.horizon.omnissa.com
|
|
60
60
|
mqtt: cloud-sg-us-r-eastus2-mqtt-a.horizon.omnissa.com
|
|
@@ -65,16 +65,16 @@ prod:
|
|
|
65
65
|
url: https://hv2-cloud-us-2.horizon.omnissa.com
|
|
66
66
|
- env: prod-eu-cp102
|
|
67
67
|
alias: prod-eu
|
|
68
|
-
description:
|
|
68
|
+
description:
|
|
69
69
|
azure-reion: NorthEurope
|
|
70
|
-
primary:
|
|
70
|
+
primary:
|
|
71
71
|
portal-url:
|
|
72
72
|
- https://cloud-sg.horizon.omnissa.com
|
|
73
73
|
- https://cloud.vmwarehorizon.com/
|
|
74
74
|
hdc:
|
|
75
75
|
url: https://cloud-sg-eu.horizon.omnissa.com
|
|
76
76
|
mqtt: cloud-sg-eu-hdc-mqtt.horizon.omnissa.com
|
|
77
|
-
regions:
|
|
77
|
+
regions:
|
|
78
78
|
- name: NothEurope
|
|
79
79
|
url: https://cloud-sg-eu-r-northeurope.horizon.omnissa.com
|
|
80
80
|
mqtt: cloud-sg-eu-r-northeurope-mqtt-a.horizon.omnissa.com
|
|
@@ -88,8 +88,8 @@ prod:
|
|
|
88
88
|
url: https://hv2-cloud-eu-2.horizon.omnissa.com
|
|
89
89
|
- env: prod-westeu-cp102
|
|
90
90
|
alias: prod-eu-standby
|
|
91
|
-
description:
|
|
92
|
-
azure-reion:
|
|
91
|
+
description:
|
|
92
|
+
azure-reion:
|
|
93
93
|
primary: false
|
|
94
94
|
portal-url:
|
|
95
95
|
- https://cloud-sg.horizon.omnissa.com
|
|
@@ -97,7 +97,7 @@ prod:
|
|
|
97
97
|
hdc:
|
|
98
98
|
url: https://cloud-sg-westeu.horizon.omnissa.com
|
|
99
99
|
mqtt: null
|
|
100
|
-
regions:
|
|
100
|
+
regions:
|
|
101
101
|
- name: NothEurope
|
|
102
102
|
url: https://cloud-sg-eu-r-northeurope.horizon.omnissa.com
|
|
103
103
|
mqtt: cloud-sg-eu-r-northeurope-mqtt-a.horizon.omnissa.com
|
|
@@ -111,16 +111,16 @@ prod:
|
|
|
111
111
|
url: https://hv2-cloud-eu-2.horizon.omnissa.com
|
|
112
112
|
- env: prod-jp-cp102
|
|
113
113
|
alias: prod-jp
|
|
114
|
-
description:
|
|
114
|
+
description:
|
|
115
115
|
azure-reion: JapanEast
|
|
116
|
-
primary:
|
|
116
|
+
primary:
|
|
117
117
|
portal-url:
|
|
118
118
|
- https://cloud-sg.horizon.omnissa.com
|
|
119
119
|
- https://cloud.vmwarehorizon.com/
|
|
120
120
|
hdc:
|
|
121
121
|
url: https://cloud-sg-jp.horizon.omnissa.com
|
|
122
122
|
mqtt: cloud-sg-jp-hdc-mqtt.horizon.omnissa.com
|
|
123
|
-
regions:
|
|
123
|
+
regions:
|
|
124
124
|
- name: JapanEast
|
|
125
125
|
url: https://cloud-sg-jp-r-japaneast.horizon.omnissa.com
|
|
126
126
|
mqtt: cloud-sg-jp-r-japaneast-mqtt-a.horizon.omnissa.com
|
|
@@ -134,8 +134,8 @@ prod:
|
|
|
134
134
|
url: https://hv2-cloud-jp-2.horizon.omnissa.com
|
|
135
135
|
- env: prod-westjp-cp102
|
|
136
136
|
alias: prod-jp-standby
|
|
137
|
-
description:
|
|
138
|
-
azure-reion:
|
|
137
|
+
description:
|
|
138
|
+
azure-reion:
|
|
139
139
|
primary: false
|
|
140
140
|
portal-url:
|
|
141
141
|
- https://cloud-sg.horizon.omnissa.com
|
|
@@ -143,7 +143,7 @@ prod:
|
|
|
143
143
|
hdc:
|
|
144
144
|
url: https://cloud-sg-westjp.horizon.omnissa.com
|
|
145
145
|
mqtt: null
|
|
146
|
-
regions:
|
|
146
|
+
regions:
|
|
147
147
|
- name: JapanEast
|
|
148
148
|
url: https://cloud-sg-jp-r-japaneast.horizon.omnissa.com
|
|
149
149
|
mqtt: cloud-sg-jp-r-japaneast-mqtt-a.horizon.omnissa.com
|
|
@@ -158,55 +158,55 @@ prod:
|
|
|
158
158
|
staging:
|
|
159
159
|
- env: staging1-northcentralus-cp102
|
|
160
160
|
alias: stg-us
|
|
161
|
-
description:
|
|
161
|
+
description:
|
|
162
162
|
azure-reion: North Central US
|
|
163
|
-
primary:
|
|
164
|
-
portal-url:
|
|
163
|
+
primary:
|
|
164
|
+
portal-url:
|
|
165
165
|
- https://cloud.stg.vmwarehorizon.com/
|
|
166
166
|
- https://staging1-cp102.horizon.omnissa.com/
|
|
167
167
|
hdc:
|
|
168
168
|
url: https://staging1-northcentralus-cp102.horizon.omnissa.com/
|
|
169
169
|
mqtt: staging1-northcentralus-cp102-mqtt.horizon.omnissa.com
|
|
170
|
-
regions:
|
|
170
|
+
regions:
|
|
171
171
|
- name: staging1-northcentralus-cp102a
|
|
172
172
|
url: https://staging1-northcentralus-cp102a.horizon.omnissa.com/
|
|
173
|
-
mqtt:
|
|
173
|
+
mqtt:
|
|
174
174
|
- name: staging1-northcentralus-cp102b
|
|
175
|
-
url: https://staging1-northcentralus-cp102b.horizon.omnissa.com/
|
|
175
|
+
url: https://staging1-northcentralus-cp102b.horizon.omnissa.com/
|
|
176
176
|
mqtt:
|
|
177
177
|
edgehub:
|
|
178
178
|
url: https://test-hv2-cloud-us-2.horizon.omnissa.com
|
|
179
179
|
- env: staging1-northeurope-cp102
|
|
180
180
|
alias: stg-eu
|
|
181
|
-
description:
|
|
181
|
+
description:
|
|
182
182
|
azure-reion: North Europe
|
|
183
|
-
primary:
|
|
183
|
+
primary:
|
|
184
184
|
portal-url:
|
|
185
185
|
- https://cloud.stg.vmwarehorizon.com/
|
|
186
186
|
- https://staging1-cp102.horizon.omnissa.com/
|
|
187
187
|
hdc:
|
|
188
188
|
url: https://staging1-northeurope-cp102.horizon.omnissa.com/
|
|
189
189
|
mqtt: staging1-northeurope-cp102-mqtt.horizon.omnissa.com
|
|
190
|
-
regions:
|
|
190
|
+
regions:
|
|
191
191
|
- name: staging1-northeurope-cp102a
|
|
192
192
|
url: https://staging1-northeurope-cp102a.horizon.omnissa.com/
|
|
193
|
-
mqtt:
|
|
193
|
+
mqtt:
|
|
194
194
|
- name: staging1-northeurope-cp102b
|
|
195
195
|
url: https://staging1-northeurope-cp102b.horizon.omnissa.com/
|
|
196
196
|
mqtt:
|
|
197
197
|
edgehub:
|
|
198
198
|
url: https://test-hv2-cloud-eu-2.horizon.omnissa.com
|
|
199
199
|
dev:
|
|
200
|
-
- env:
|
|
200
|
+
- env: "dev1b-westus2-cp102"
|
|
201
201
|
alias: bat
|
|
202
202
|
description: BAT
|
|
203
|
-
azure-reion:
|
|
204
|
-
primary:
|
|
203
|
+
azure-reion: "West US 2"
|
|
204
|
+
primary:
|
|
205
205
|
portal-url: []
|
|
206
206
|
hdc:
|
|
207
207
|
url: https://dev1b-westus2-cp102.azcp.horizon.omnissa.com/
|
|
208
208
|
mqtt: dev1b-westus2-cp102-mqtt.azcp.horizon.omnissa.com
|
|
209
|
-
regions:
|
|
209
|
+
regions:
|
|
210
210
|
- name: westus2
|
|
211
211
|
url: https://dev1b-westus2-cp102a.azcp.horizon.omnissa.com/
|
|
212
212
|
mqtt:
|
|
@@ -215,13 +215,13 @@ dev:
|
|
|
215
215
|
- env: dev1b-westus2-cp103
|
|
216
216
|
alias: integration
|
|
217
217
|
description: Integration/Nightly
|
|
218
|
-
azure-reion:
|
|
219
|
-
primary:
|
|
218
|
+
azure-reion: "West US 2"
|
|
219
|
+
primary:
|
|
220
220
|
portal-url: []
|
|
221
221
|
hdc:
|
|
222
222
|
url: https://dev1b-westus2-cp103.azcp.horizon.omnissa.com/
|
|
223
223
|
mqtt: dev1b-westus2-cp103-mqtt.azcp.horizon.omnissa.com
|
|
224
|
-
regions:
|
|
224
|
+
regions:
|
|
225
225
|
- name: westus2
|
|
226
226
|
url: https://dev1b-westus2-cp103a.azcp.horizon.omnissa.com/
|
|
227
227
|
mqtt: dev1b-westus2-cp103a-mqtt.azcp.horizon.omnissa.com
|
|
@@ -230,16 +230,16 @@ dev:
|
|
|
230
230
|
- env: dev1b-westus2-cp104
|
|
231
231
|
alias: chaos
|
|
232
232
|
description: Chaos
|
|
233
|
-
azure-reion:
|
|
234
|
-
primary:
|
|
233
|
+
azure-reion: "West US 2"
|
|
234
|
+
primary:
|
|
235
235
|
portal-url: []
|
|
236
236
|
hdc:
|
|
237
237
|
url: https://dev1b-westus2-cp104.azcp.horizon.omnissa.com/
|
|
238
238
|
mqtt: null
|
|
239
239
|
regions:
|
|
240
240
|
- name: westus2
|
|
241
|
-
url:
|
|
242
|
-
mqtt:
|
|
241
|
+
url:
|
|
242
|
+
mqtt:
|
|
243
243
|
edgehub:
|
|
244
244
|
url: https://dev-westus2-cp101.azcp.horizon.omnissa.com
|
|
245
245
|
- env: stress1b-westus2-cp102
|
|
@@ -247,14 +247,14 @@ dev:
|
|
|
247
247
|
description: Stress
|
|
248
248
|
azure-reion: West US 2
|
|
249
249
|
primary:
|
|
250
|
-
portal-url: []
|
|
250
|
+
portal-url: []
|
|
251
251
|
hdc:
|
|
252
252
|
url: https://stress1b-westus2-cp102.azcp.horizon.omnissa.com/
|
|
253
253
|
mqtt: null
|
|
254
|
-
regions:
|
|
254
|
+
regions:
|
|
255
255
|
- name: westus2-cp102a
|
|
256
256
|
url: https://stress1b-westus2-cp102a.azcp.horizon.omnissa.com/
|
|
257
|
-
mqtt:
|
|
257
|
+
mqtt:
|
|
258
258
|
- name: westus2-cp102b
|
|
259
259
|
url: https://stress1b-westus2-cp102b.azcp.horizon.omnissa.com/
|
|
260
260
|
mqtt:
|
|
@@ -265,14 +265,14 @@ dev:
|
|
|
265
265
|
description: Service Gateway master
|
|
266
266
|
azure-reion: West US 2
|
|
267
267
|
primary:
|
|
268
|
-
portal-url: []
|
|
268
|
+
portal-url: []
|
|
269
269
|
hdc:
|
|
270
270
|
url: https://horizonv2-sg.devframe.cp.horizon.omnissa.com/
|
|
271
|
-
mqtt:
|
|
272
|
-
regions:
|
|
271
|
+
mqtt:
|
|
272
|
+
regions:
|
|
273
273
|
- name: westus2
|
|
274
274
|
url: https://horizonv2-sg.devframe.cp.horizon.omnissa.com/
|
|
275
|
-
mqtt:
|
|
275
|
+
mqtt:
|
|
276
276
|
edgehub:
|
|
277
277
|
url: https://horizonv2-em.devframe.cp.horizon.omnissa.com/
|
|
278
278
|
- env: hm-master
|
|
@@ -280,13 +280,13 @@ dev:
|
|
|
280
280
|
description: horizonv2-monitoring master stack
|
|
281
281
|
azure-reion: West US 2
|
|
282
282
|
primary:
|
|
283
|
-
portal-url: []
|
|
283
|
+
portal-url: []
|
|
284
284
|
hdc:
|
|
285
285
|
url: https://horizonv2-monitoring.devframe.cp.horizon.omnissa.com/
|
|
286
|
-
regions:
|
|
286
|
+
regions:
|
|
287
287
|
- name: westus2
|
|
288
288
|
url: https://horizonv2-monitoring.devframe.cp.horizon.omnissa.com/
|
|
289
|
-
mqtt:
|
|
289
|
+
mqtt:
|
|
290
290
|
edgehub:
|
|
291
291
|
url: https://horizonv2-em.devframe.cp.horizon.omnissa.com/
|
|
292
292
|
|
hcs_cli/main.py
CHANGED
|
@@ -15,7 +15,6 @@ See the License for the specific language governing permissions and
|
|
|
15
15
|
limitations under the License.
|
|
16
16
|
"""
|
|
17
17
|
|
|
18
|
-
|
|
19
18
|
import logging
|
|
20
19
|
import os
|
|
21
20
|
import os.path as path
|
|
@@ -65,7 +64,6 @@ CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
|
|
|
65
64
|
@click.option("--no-upgrade-check", is_flag=True, default=False, help="Check new version of HCS CLI.")
|
|
66
65
|
@click.option("--no-telemetry", is_flag=True, default=False, help="Disable telemetry collection")
|
|
67
66
|
def cli(profile: str, no_upgrade_check: bool, no_telemetry: bool, **kwargs):
|
|
68
|
-
|
|
69
67
|
if not no_upgrade_check:
|
|
70
68
|
_check_upgrade()
|
|
71
69
|
|