hcs-cli 0.1.332__py3-none-any.whl → 0.1.333__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 +1 -1
- hcs_cli/cmds/dev/fs/clear.py +10 -10
- hcs_cli/cmds/dev/fs/helper/credential_helper.py +4 -1
- hcs_cli/cmds/dev/fs/init.py +52 -17
- hcs_cli/cmds/dev/fs/provided_files/azure.plan.yml +71 -70
- hcs_cli/cmds/vm/log.py +1 -0
- hcs_cli/service/vmm/dct.py +2 -2
- {hcs_cli-0.1.332.dist-info → hcs_cli-0.1.333.dist-info}/METADATA +2 -2
- {hcs_cli-0.1.332.dist-info → hcs_cli-0.1.333.dist-info}/RECORD +11 -11
- {hcs_cli-0.1.332.dist-info → hcs_cli-0.1.333.dist-info}/WHEEL +0 -0
- {hcs_cli-0.1.332.dist-info → hcs_cli-0.1.333.dist-info}/entry_points.txt +0 -0
hcs_cli/__init__.py
CHANGED
hcs_cli/cmds/dev/fs/clear.py
CHANGED
|
@@ -49,33 +49,33 @@ def clear(only_default: bool, **kwargs):
|
|
|
49
49
|
|
|
50
50
|
def _delete_all():
|
|
51
51
|
# all lcm templates
|
|
52
|
-
lcm_template_ids = run_cli("hcs lcm template list --ids", output_json=True)
|
|
52
|
+
lcm_template_ids = run_cli("hcs lcm template list --ids", output_json=True, raise_on_error=False)
|
|
53
53
|
for tid in lcm_template_ids:
|
|
54
54
|
run_cli("hcs lcm template delete -y --force " + tid)
|
|
55
55
|
# all pools
|
|
56
|
-
pool_ids = run_cli("hcs pool list --ids", output_json=True)
|
|
56
|
+
pool_ids = run_cli("hcs pool list --ids", output_json=True, raise_on_error=False)
|
|
57
57
|
for pid in pool_ids:
|
|
58
|
-
run_cli("hcs pool delete -y --delete-templates " + pid)
|
|
58
|
+
run_cli("hcs pool delete -y --delete-templates " + pid, raise_on_error=False)
|
|
59
59
|
# wait for template deletion, from admin perspective
|
|
60
60
|
for tid in lcm_template_ids:
|
|
61
|
-
run_cli("hcs template delete -y --force --wait 5m " + tid)
|
|
61
|
+
run_cli("hcs template delete -y --force --wait 5m " + tid, raise_on_error=False)
|
|
62
62
|
# all images
|
|
63
|
-
image_ids = run_cli("hcs ims list --ids", output_json=True)
|
|
63
|
+
image_ids = run_cli("hcs ims list --ids", output_json=True, raise_on_error=False)
|
|
64
64
|
for iid in image_ids:
|
|
65
65
|
run_cli("hcs ims delete " + iid)
|
|
66
66
|
# all image gold patterns
|
|
67
|
-
gold_pattern_ids = run_cli("hcs ims gold-pattern list --ids", output_json=True)
|
|
67
|
+
gold_pattern_ids = run_cli("hcs ims gold-pattern list --ids", output_json=True, raise_on_error=False)
|
|
68
68
|
for gid in gold_pattern_ids:
|
|
69
69
|
run_cli("hcs ims gold-pattern delete -y " + gid)
|
|
70
70
|
# all edges
|
|
71
|
-
edge_ids = run_cli("hcs edge list --ids", output_json=True)
|
|
71
|
+
edge_ids = run_cli("hcs edge list --ids", output_json=True, raise_on_error=False)
|
|
72
72
|
for eid in edge_ids:
|
|
73
|
-
run_cli("hcs edge delete -y --force --delete-all --field id,status " + eid)
|
|
73
|
+
run_cli("hcs edge delete -y --force --delete-all --field id,status " + eid, raise_on_error=False)
|
|
74
74
|
# wait for edge deletion
|
|
75
75
|
for eid in edge_ids:
|
|
76
|
-
run_cli("hcs edge delete -y --force --delete-all -w 5m " + eid)
|
|
76
|
+
run_cli("hcs edge delete -y --force --delete-all -w 5m " + eid, raise_on_error=False)
|
|
77
77
|
# all sites
|
|
78
|
-
site_ids = run_cli("hcs site list --ids", output_json=True)
|
|
78
|
+
site_ids = run_cli("hcs site list --ids", output_json=True, raise_on_error=False)
|
|
79
79
|
for sid in site_ids:
|
|
80
80
|
run_cli("hcs site delete -y " + sid)
|
|
81
81
|
# all providers
|
|
@@ -65,7 +65,10 @@ def get_client_credential_from_k8s_and_update_profile():
|
|
|
65
65
|
|
|
66
66
|
# get auth service info
|
|
67
67
|
app_properties = _get_application_properties_from_configmap("common-config")
|
|
68
|
-
auth_service_token_url = app_properties
|
|
68
|
+
auth_service_token_url = app_properties.get(
|
|
69
|
+
"spring.security.oauth2.client.provider.auth-service.token-uri",
|
|
70
|
+
"https://dev1b-westus2-cp103.azcp.horizon.omnissa.com/auth/v1/oauth/token",
|
|
71
|
+
)
|
|
69
72
|
profile_data.setdefault("auth", {})["tokenUrl"] = auth_service_token_url
|
|
70
73
|
|
|
71
74
|
# get secrets
|
hcs_cli/cmds/dev/fs/init.py
CHANGED
|
@@ -33,8 +33,7 @@ from hcs_cli.cmds.dev.fs.helper.step_util import step as step
|
|
|
33
33
|
from hcs_cli.cmds.dev.util import log
|
|
34
34
|
from hcs_cli.cmds.dev.util.log import fail as fail
|
|
35
35
|
from hcs_cli.cmds.dev.util.log import warn as warn
|
|
36
|
-
|
|
37
|
-
from hcs_cli.service.admin.uag import list as list_uags
|
|
36
|
+
import hcs_cli.service as hcs
|
|
38
37
|
from hcs_cli.support.exec_util import exec, run_cli
|
|
39
38
|
from hcs_cli.support.template_util import with_template_file
|
|
40
39
|
|
|
@@ -92,6 +91,7 @@ def _common_init():
|
|
|
92
91
|
_reg_datacenter()
|
|
93
92
|
_create_org_details()
|
|
94
93
|
_create_org_location_mapping()
|
|
94
|
+
_init_for_dct_collection()
|
|
95
95
|
_patch_mqtt_alias()
|
|
96
96
|
_update_mqtt()
|
|
97
97
|
_show_mqtt_info()
|
|
@@ -103,6 +103,40 @@ def _common_init():
|
|
|
103
103
|
_touch_fs_to_avoid_recycle()
|
|
104
104
|
|
|
105
105
|
|
|
106
|
+
@step
|
|
107
|
+
def _init_for_dct_collection():
|
|
108
|
+
hv2_org_id = "e7923078-6663-4178-9555-bcd5a036693e"
|
|
109
|
+
# create org details
|
|
110
|
+
payload = {
|
|
111
|
+
"customerName": "Horizon v2",
|
|
112
|
+
"customerType": "INTERNAL",
|
|
113
|
+
"orgId": hv2_org_id,
|
|
114
|
+
"wsOneOrgId": "pseudo-ws1-org-id2",
|
|
115
|
+
}
|
|
116
|
+
try:
|
|
117
|
+
ret = hcs.org_service.details.create(payload)
|
|
118
|
+
print(ret)
|
|
119
|
+
log.trivial("Org details created for service org: Horizon v2 " + hv2_org_id)
|
|
120
|
+
except Exception as e:
|
|
121
|
+
if "already exist" in error_details(e):
|
|
122
|
+
log.trivial("Org details already exist. Skipping creation.")
|
|
123
|
+
else:
|
|
124
|
+
raise
|
|
125
|
+
# create org location mapping
|
|
126
|
+
try:
|
|
127
|
+
payload = {"location": "US", "orgId": hv2_org_id}
|
|
128
|
+
ret = hcs.org_service.orglocationmapping.create(payload)
|
|
129
|
+
log.trivial("Org location mapping created for service org: Horizon v2 " + hv2_org_id)
|
|
130
|
+
except Exception as e:
|
|
131
|
+
if "already exist" in error_details(e):
|
|
132
|
+
log.trivial("Org location mapping already exist. Skipping creation.")
|
|
133
|
+
else:
|
|
134
|
+
raise
|
|
135
|
+
log.trivial("Granting user org the ops access conscent")
|
|
136
|
+
user_org = os.getenv("ORG_ID")
|
|
137
|
+
hcs.api.post(f"/org-service/v1/diagnostic/ops-access?access_perf=true&org_id={user_org}")
|
|
138
|
+
|
|
139
|
+
|
|
106
140
|
@step
|
|
107
141
|
def _prepare_profile(fs_name: str):
|
|
108
142
|
api_token = os.getenv("HCS_API_TOKEN")
|
|
@@ -524,12 +558,12 @@ def _write_env_file(data, props, env_file):
|
|
|
524
558
|
INFRA_VNET=horizonv2-sg-dev-vnet
|
|
525
559
|
PRIMARY_BIND_USER_NAME={ad_username}
|
|
526
560
|
PRIMARY_BIND_PASSWORD={ad_password}
|
|
527
|
-
AUXILIARY_BIND_USER_NAME={ad_username}
|
|
528
|
-
AUXILIARY_BIND_PASSWORD={ad_password}
|
|
529
|
-
PRIMARY_JOIN_USER_NAME={ad_username}
|
|
530
|
-
PRIMARY_JOIN_PASSWORD={ad_password}
|
|
531
|
-
AUXILIARY_JOIN_USER_NAME={ad_username}
|
|
532
|
-
AUXILIARY_JOIN_PASSWORD={ad_password}
|
|
561
|
+
AUXILIARY_BIND_USER_NAME={ad_username}
|
|
562
|
+
AUXILIARY_BIND_PASSWORD={ad_password}
|
|
563
|
+
PRIMARY_JOIN_USER_NAME={ad_username}
|
|
564
|
+
PRIMARY_JOIN_PASSWORD={ad_password}
|
|
565
|
+
AUXILIARY_JOIN_USER_NAME={ad_username}
|
|
566
|
+
AUXILIARY_JOIN_PASSWORD={ad_password}
|
|
533
567
|
ENTITLEMENT_USER_1={ad_username}
|
|
534
568
|
ENTITLEMENT_USER_2={ad_username}-2
|
|
535
569
|
IMAGE_USER_NAME={ad_username}
|
|
@@ -791,7 +825,7 @@ def _retrieve_mqtt_server_ip_address(service_name, timeout=300, interval=5):
|
|
|
791
825
|
@step
|
|
792
826
|
def _validate_fs_auth():
|
|
793
827
|
try:
|
|
794
|
-
org_service.datacenter.list()
|
|
828
|
+
hcs.org_service.datacenter.list()
|
|
795
829
|
log.good("Auth to feature stack")
|
|
796
830
|
except Exception as e:
|
|
797
831
|
fail(
|
|
@@ -989,8 +1023,9 @@ def _reg_datacenter():
|
|
|
989
1023
|
|
|
990
1024
|
profile_data = profile.current()
|
|
991
1025
|
url = profile_data.hcs.url
|
|
992
|
-
|
|
993
|
-
|
|
1026
|
+
super_auth = {"url": profile_data.csp.url, "clientId": os.environ["HCS_CLIENT_ID"], "clientSecret": os.environ["HCS_CLIENT_SECRET"]}
|
|
1027
|
+
|
|
1028
|
+
custom_client = hcs_client(url=url, custom_auth=super_auth)
|
|
994
1029
|
ret = custom_client.post("/org-service/v1/datacenters", payload1)
|
|
995
1030
|
print(ret)
|
|
996
1031
|
log.good("Datacenter registered.")
|
|
@@ -1011,7 +1046,7 @@ def _create_org_details():
|
|
|
1011
1046
|
"wsOneOrgId": "pseudo-ws1-org-id",
|
|
1012
1047
|
}
|
|
1013
1048
|
try:
|
|
1014
|
-
ret = org_service.details.create(payload2)
|
|
1049
|
+
ret = hcs.org_service.details.create(payload2)
|
|
1015
1050
|
print(ret)
|
|
1016
1051
|
log.good("Org details created.")
|
|
1017
1052
|
except Exception as e:
|
|
@@ -1024,7 +1059,7 @@ def _create_org_details():
|
|
|
1024
1059
|
@step
|
|
1025
1060
|
def _create_org_location_mapping():
|
|
1026
1061
|
payload3 = {"location": "US", "orgId": os.getenv("ORG_ID")}
|
|
1027
|
-
ret = org_service.orglocationmapping.create(payload3)
|
|
1062
|
+
ret = hcs.org_service.orglocationmapping.create(payload3)
|
|
1028
1063
|
print(ret)
|
|
1029
1064
|
log.good("Org location mapping created.")
|
|
1030
1065
|
|
|
@@ -1033,7 +1068,7 @@ def _create_org_location_mapping():
|
|
|
1033
1068
|
def _create_idp():
|
|
1034
1069
|
org_id = os.getenv("ORG_ID")
|
|
1035
1070
|
try:
|
|
1036
|
-
existing_map = auth.admin.get_org_idp_map(org_id=org_id)
|
|
1071
|
+
existing_map = hcs.auth.admin.get_org_idp_map(org_id=org_id)
|
|
1037
1072
|
except Exception as e:
|
|
1038
1073
|
fail(f"Failed to fetch existing IDP map: {error_details(e)}")
|
|
1039
1074
|
# Check if IDP mapping already exists
|
|
@@ -1051,12 +1086,12 @@ def _create_idp():
|
|
|
1051
1086
|
"orgId": org_id,
|
|
1052
1087
|
"idpTenantDomain": os.getenv("IDP_TENANT_DOMAIN"),
|
|
1053
1088
|
}
|
|
1054
|
-
ret = auth.admin.create_org_idp_map_internal(payload)
|
|
1089
|
+
ret = hcs.auth.admin.create_org_idp_map_internal(payload)
|
|
1055
1090
|
print(ret)
|
|
1056
1091
|
log.good("IDP set up.")
|
|
1057
1092
|
except Exception as e:
|
|
1058
1093
|
print(e)
|
|
1059
|
-
|
|
1094
|
+
warn(
|
|
1060
1095
|
"IDP credentials require 2FA, which is currently not supported via API calls. Please manually set up "
|
|
1061
1096
|
"your IDP in Astro. Once you have completed set up, re-run the 'hcs dev fs init' command skipping the"
|
|
1062
1097
|
"Common Init step."
|
|
@@ -1087,7 +1122,7 @@ def _wait_for_services_restart():
|
|
|
1087
1122
|
def _map_fqdn_to_lb(fs_name):
|
|
1088
1123
|
orgId = os.getenv("ORG_ID")
|
|
1089
1124
|
deployment_id = os.getenv("DEPLOYMENT_ID")
|
|
1090
|
-
for uag in
|
|
1125
|
+
for uag in hcs.admin.uag.list(orgId):
|
|
1091
1126
|
if uag.get("name") == deployment_id and uag.get("orgId") == orgId:
|
|
1092
1127
|
print("The next step requires adding FQDN mapping. Run the following command in another window:")
|
|
1093
1128
|
print(f'echo "{uag["loadBalancer"]["ipAddress"]} {os.getenv("UAG_FQDN")}" | sudo tee -a /etc/hosts')
|
|
@@ -180,50 +180,51 @@ resource:
|
|
|
180
180
|
data:
|
|
181
181
|
certificate: |
|
|
182
182
|
-----BEGIN CERTIFICATE-----
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
/
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
183
|
+
MIIDFjCCAf6gAwIBAgIUP8VbTRccnywpa8e05p/twnTl2C4wDQYJKoZIhvcNAQEL
|
|
184
|
+
BQAwGjELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNBMB4XDTI2MDQxNDIxNDMxNFoX
|
|
185
|
+
DTM2MDQxMTIxNDMxNFowGjELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNBMIIBIjAN
|
|
186
|
+
BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA08Ekw54tG1YV9s2vjQryiR3Wkc+W
|
|
187
|
+
xnn9p5icaNVzgbpGPnUSL14b07TbC4nh04sZcaYjPb2oP0YNnDsuJ0Dx5eW2YmGg
|
|
188
|
+
vRyetNT6UQuoFQZTv+XuBT6ILqxduIRNuyGKHjXO9M+F6w2ubtmh9E+3H5BSkKVk
|
|
189
|
+
WbbHvGdXPJnKm+DXLyG3X2fsXhSNMhnzHtFuFNWs5MXfBQwRpcScvcAWVv0nx9xk
|
|
190
|
+
Jw2eULY1efDBIfWfKLeQLCxvHbCz6DYa/fnZgquc1VX/HC8/oexuroMWHhHcHVXo
|
|
191
|
+
VzYAaK4CgJ9+nh3TjiLNZEURA7rikAb1a2R8+v7WPv8VRwb7Ohs4xuG+pQIDAQAB
|
|
192
|
+
o1QwUjAMBgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIFoDATBgNVHSUEDDAKBggr
|
|
193
|
+
BgEFBQcDATAdBgNVHQ4EFgQUHYFD2uCCDq/A5/rlaEoo0bxx4fEwDQYJKoZIhvcN
|
|
194
|
+
AQELBQADggEBAEWZi+sn7/Rdogc7UDVHCRV6lhKWDtEV6PWKTGDi7co6u7p6FBLj
|
|
195
|
+
cZCBiqAhwGTcUUz07WaK227gNNSnAJxCEDsq7b8k3GEDzo81EBRtquCC4F+F2cD/
|
|
196
|
+
cy/laiTgcdcsNins7oYe/MqjXE1y3Lr7X7/uLThLOpcLu51M5LDxoX4g1VSWdg0r
|
|
197
|
+
Z+6aElI6y4wW9Z0Nd/hDCUgXyuDiuxY64WMfVLGNkJjMX/HQHVg85MpnWJpxT/o+
|
|
198
|
+
N0jddWbVZyxLSXs9dC5hvepHcMRO3zmeQVgN9ZFvO1BaFlbSDrJIzqbXHGYvY410
|
|
199
|
+
sz9vYKXmiAxlhRf2AhfxbLpc3MgEBFRpuhM=
|
|
199
200
|
-----END CERTIFICATE-----
|
|
200
201
|
-----BEGIN PRIVATE KEY-----
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
202
|
+
MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDTwSTDni0bVhX2
|
|
203
|
+
za+NCvKJHdaRz5bGef2nmJxo1XOBukY+dRIvXhvTtNsLieHTixlxpiM9vag/Rg2c
|
|
204
|
+
Oy4nQPHl5bZiYaC9HJ601PpRC6gVBlO/5e4FPogurF24hE27IYoeNc70z4XrDa5u
|
|
205
|
+
2aH0T7cfkFKQpWRZtse8Z1c8mcqb4NcvIbdfZ+xeFI0yGfMe0W4U1azkxd8FDBGl
|
|
206
|
+
xJy9wBZW/SfH3GQnDZ5QtjV58MEh9Z8ot5AsLG8dsLPoNhr9+dmCq5zVVf8cLz+h
|
|
207
|
+
7G6ugxYeEdwdVehXNgBorgKAn36eHdOOIs1kRREDuuKQBvVrZHz6/tY+/xVHBvs6
|
|
208
|
+
GzjG4b6lAgMBAAECggEAIpx3PeIkzUsM3AJSp2MasX7HC546rsZRx4sSRbBd6N5h
|
|
209
|
+
jOPlzQg81CXDh+dJmiIqToExUW4mifERWG/z40aiQ0mAviPm+gIrjrMhFw4oswcN
|
|
210
|
+
uVgDx6eo6rgRuY8mhWe+A6IX6bvhz8G0uTmpVx2QeQBF/o6KEH/ntcvOXoFktIWH
|
|
211
|
+
h28mgn8CZv8lvYiZ+eRF1DufT8Yslnc7Qb/c71uOaBlj3XffKEAygaieU3SfI7q9
|
|
212
|
+
azfAZVT5+OZRycfg7rWaaEr10SJjylu/kxxiv/xaHn4RuVuvHrMVaMx4TIHlegM8
|
|
213
|
+
7vCRyWZDqnbUPD9gRcaRsgwLfpkP8AlRi4oWlQ+wAQKBgQDscBN+qJvXGT6R1NGa
|
|
214
|
+
gAuArh0e10UcJptDFeBSmV5APeeDcQFL96w8fxBf3NzJ7V9CJQPQoHbZuRe+Jwbu
|
|
215
|
+
heZEMaUJjMB2XD5mlrACLC3UpC70AffBgYEZAI0mQT+U9TrEToKCB56vJmHh2sGJ
|
|
216
|
+
L2tEuroWMTdOp7xHIb1XPx9IJQKBgQDlRkGzOdHkkFFgMxHelUFw7RdMleE05Z1P
|
|
217
|
+
+PhlTzJIuR0A5rsOPYsvrvfaraQPGHAZMRTI+87WQZps3KzpA3y1rW6gYKs2PAhR
|
|
218
|
+
U/vah1NLKKCPN+qpvcFsklX79hjvTUqEZPemUfE06w20u69sflfewrZf0skmMJBy
|
|
219
|
+
+bCdS/WUgQKBgQCGUXlRuBmoTegU0rEss1dViBR1A9h4EJqdttzUL9qyZjiSnG0f
|
|
220
|
+
KhnH2GuF+iPX9yjpm7uaFr7OG2+Yj/VJJfpVfVqDnVltJCQzBaIB6fUzWv5tknyc
|
|
221
|
+
iqS7fmuxctnbFqGHCg7sLcYBPK3Yr/zIoY6v4eB7YQRJg9LbGhjFas+rnQKBgQCD
|
|
222
|
+
DpQDtStrsasyiD7QsxTDTmOhHZOsPwybaD/k+U5PD7GqkDmgvEFRsnxvfg5nqpp5
|
|
223
|
+
a/rroDTteHajf8k/MQUafNbdyiRUTiCbDJzMn8pXDhQpidcTzCpCu6t26Yf7Un0k
|
|
224
|
+
DOsbIX/1td8Rzq9KHzZvWXISeFUPBXesoVn5sC/jAQKBgQC1K+zlpYhTI1qcI/zJ
|
|
225
|
+
ZHMhbh9yNVogN9Iz6xApz2pg4gaakRMdPZAsRPqmj/h0NPyD3SG1DnoyXGFFa0kZ
|
|
226
|
+
VQzwaQfw6s4soi5rCXLGeZeMxq2yOJLlF1hYCFdk3OdgB5LGXa2F+D1kwoF1TfvI
|
|
227
|
+
j4spDbrt03r4bXP+DFX0eF1ZPg==
|
|
227
228
|
-----END PRIVATE KEY-----
|
|
228
229
|
type: PEM
|
|
229
230
|
resourceTags: ${var.resourceTag}
|
|
@@ -312,17 +313,17 @@ resource:
|
|
|
312
313
|
versionType: MAJOR
|
|
313
314
|
gpuType: NONE
|
|
314
315
|
sourceStreamType: AZURE_MARKET_PLACE
|
|
315
|
-
os: Windows
|
|
316
|
+
os: Windows 11 Enterprise, 22H2
|
|
316
317
|
osType: WINDOWS
|
|
317
318
|
markers:
|
|
318
319
|
- name: default
|
|
319
320
|
assetDetails:
|
|
320
321
|
data:
|
|
321
|
-
generationType:
|
|
322
|
+
generationType: V2
|
|
322
323
|
licenseType: Windows_Client
|
|
323
|
-
offer: windows-
|
|
324
|
+
offer: windows-11
|
|
324
325
|
publisher: microsoftwindowsdesktop
|
|
325
|
-
sku:
|
|
326
|
+
sku: win11-22h2-ent
|
|
326
327
|
vmSize: Standard_DS2_v2
|
|
327
328
|
subNet: /subscriptions/${var.provider.subscriptionId}/resourceGroups/${var.desktop.resourceGroup}/providers/Microsoft.Network/virtualNetworks/${var.desktop.vnet}/subnets/${var.desktop.subnet}
|
|
328
329
|
vNet: /subscriptions/${var.provider.subscriptionId}/resourceGroups/${var.desktop.resourceGroup}/providers/Microsoft.Network/virtualNetworks/${var.desktop.vnet}
|
|
@@ -769,27 +770,27 @@ resource:
|
|
|
769
770
|
templates:
|
|
770
771
|
- id: ${myTemplateMulti.id}
|
|
771
772
|
resourceTags: ${var.resourceTag}
|
|
772
|
-
myEntitlementDedicated:
|
|
773
|
-
kind: hcs/entitlement
|
|
774
|
-
data:
|
|
775
|
-
orgId: ${var.orgId}
|
|
776
|
-
poolIds: ["${myPoolDedicated.id}"]
|
|
777
|
-
resourceDetails:
|
|
778
|
-
- poolId: ${myPoolDedicated.id}
|
|
779
|
-
userIds: ["${env.ENTITLEMENT_USER_1}"
|
|
780
|
-
myEntitlementFloating:
|
|
781
|
-
kind: hcs/entitlement
|
|
782
|
-
data:
|
|
783
|
-
orgId: ${var.orgId}
|
|
784
|
-
poolIds: ["${myPoolFloating.id}"]
|
|
785
|
-
resourceDetails:
|
|
786
|
-
- poolId: ${myPoolFloating.id}
|
|
787
|
-
userIds: ["${env.ENTITLEMENT_USER_1}", "${env.ENTITLEMENT_USER_2}"]
|
|
788
|
-
myEntitlementMulti:
|
|
789
|
-
kind: hcs/entitlement
|
|
790
|
-
data:
|
|
791
|
-
orgId: ${var.orgId}
|
|
792
|
-
poolIds: ["${myPoolMulti.id}"]
|
|
793
|
-
resourceDetails:
|
|
794
|
-
- poolId: ${myPoolMulti.id}
|
|
795
|
-
userIds: ["${env.ENTITLEMENT_USER_1}", "${env.ENTITLEMENT_USER_2}"]
|
|
773
|
+
# myEntitlementDedicated:
|
|
774
|
+
# kind: hcs/entitlement
|
|
775
|
+
# data:
|
|
776
|
+
# orgId: ${var.orgId}
|
|
777
|
+
# poolIds: ["${myPoolDedicated.id}"]
|
|
778
|
+
# resourceDetails:
|
|
779
|
+
# - poolId: ${myPoolDedicated.id}
|
|
780
|
+
# userIds: ["${env.ENTITLEMENT_USER_1}"]
|
|
781
|
+
# myEntitlementFloating:
|
|
782
|
+
# kind: hcs/entitlement
|
|
783
|
+
# data:
|
|
784
|
+
# orgId: ${var.orgId}
|
|
785
|
+
# poolIds: ["${myPoolFloating.id}"]
|
|
786
|
+
# resourceDetails:
|
|
787
|
+
# - poolId: ${myPoolFloating.id}
|
|
788
|
+
# userIds: ["${env.ENTITLEMENT_USER_1}", "${env.ENTITLEMENT_USER_2}"]
|
|
789
|
+
# myEntitlementMulti:
|
|
790
|
+
# kind: hcs/entitlement
|
|
791
|
+
# data:
|
|
792
|
+
# orgId: ${var.orgId}
|
|
793
|
+
# poolIds: ["${myPoolMulti.id}"]
|
|
794
|
+
# resourceDetails:
|
|
795
|
+
# - poolId: ${myPoolMulti.id}
|
|
796
|
+
# userIds: ["${env.ENTITLEMENT_USER_1}", "${env.ENTITLEMENT_USER_2}"]
|
hcs_cli/cmds/vm/log.py
CHANGED
|
@@ -47,6 +47,7 @@ def log(recreate: bool, verbose: bool, save_path, vm_path: str, org: str, **kwar
|
|
|
47
47
|
is_ops = has_any_permission(["sgadm:supportw", "sgadm:supportlog", "sgadm:service", "sgadm:support"])
|
|
48
48
|
|
|
49
49
|
dct_info = dct_service.latest(org_id, template_id, vm_id, is_ops)
|
|
50
|
+
|
|
50
51
|
if not dct_info:
|
|
51
52
|
if verbose:
|
|
52
53
|
click.echo("No DCT log found for VM.")
|
hcs_cli/service/vmm/dct.py
CHANGED
|
@@ -30,7 +30,7 @@ def request(org_id: str, template_id: str, vm_id: str, is_ops: bool):
|
|
|
30
30
|
if is_ops:
|
|
31
31
|
url = f"/vm-manager/v1/ops/agentdct?customer_org_id={org_id}&action=create"
|
|
32
32
|
else:
|
|
33
|
-
url = f"/vm-manager/v1/agentdct?
|
|
33
|
+
url = f"/vm-manager/v1/agentdct?org_id={org_id}&action=create"
|
|
34
34
|
body = {"requestList": [{"templateId": template_id, "vmId": vm_id}]}
|
|
35
35
|
|
|
36
36
|
try:
|
|
@@ -119,7 +119,7 @@ def search(
|
|
|
119
119
|
if is_ops:
|
|
120
120
|
url = f"/vm-manager/v2/ops/dct/status/search?search={search}&customer_org_id={org_id}"
|
|
121
121
|
else:
|
|
122
|
-
url = f"/vm-manager/v2/dct/status/search?search={search}&
|
|
122
|
+
url = f"/vm-manager/v2/dct/status/search?search={search}&org_id={org_id}"
|
|
123
123
|
items = hcs_api.get(url, all_pages=True)
|
|
124
124
|
|
|
125
125
|
# client filter to work around service bugs
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hcs-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.333
|
|
4
4
|
Summary: Horizon Cloud Service CLI.
|
|
5
5
|
Project-URL: Homepage, https://github.com/euc-eng/hcs-cli
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/euc-eng/hcs-cli/issues
|
|
@@ -14,7 +14,7 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
14
14
|
Classifier: Operating System :: OS Independent
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Requires-Python: >=3.9
|
|
17
|
-
Requires-Dist: hcs-core>=0.1.
|
|
17
|
+
Requires-Dist: hcs-core>=0.1.333
|
|
18
18
|
Requires-Dist: inquirerpy>=0.3.4
|
|
19
19
|
Requires-Dist: matplotlib>=3.8.0
|
|
20
20
|
Requires-Dist: paho-mqtt>=2.1.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
hcs_cli/__init__.py,sha256=
|
|
1
|
+
hcs_cli/__init__.py,sha256=nxqtGLdqOQgLlpe_kSPcY5DO9qtfOEsa-RYPznZVlL0,72
|
|
2
2
|
hcs_cli/__main__.py,sha256=mReIxxxuvlcxzSdPfIgptZ_Qkrg0MPOgT37utukr65g,125
|
|
3
3
|
hcs_cli/main.py,sha256=CzGoya6yabf5akJ3l0gEzxBmMKznIhxGRXbsngtuPWc,3014
|
|
4
4
|
hcs_cli/cmds/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -73,12 +73,12 @@ hcs_cli/cmds/dev/onboard.py,sha256=7guWRWbJIDOBiDMdWghAilyERmxQY3HCdt6atnauYXA,1
|
|
|
73
73
|
hcs_cli/cmds/dev/test.py,sha256=dh3fnrF12Un5mG0C2T_pQthYIajq4VxxamaYcAWwBt4,422
|
|
74
74
|
hcs_cli/cmds/dev/fs/__init__.py,sha256=TDtKnDCcd28-XUpIpPeqCIOJAcZPJ9sI43TARpXy6lQ,79
|
|
75
75
|
hcs_cli/cmds/dev/fs/auth.py,sha256=GsjT-ATwD_G_BUma0PK114KME3RnF_lDKHB0HrjGQKs,909
|
|
76
|
-
hcs_cli/cmds/dev/fs/clear.py,sha256=
|
|
77
|
-
hcs_cli/cmds/dev/fs/init.py,sha256=
|
|
76
|
+
hcs_cli/cmds/dev/fs/clear.py,sha256=e7dfmfnNhfvxh4HYgLsDfJ1DohbesOMSu30TDJa3zlw,3631
|
|
77
|
+
hcs_cli/cmds/dev/fs/init.py,sha256=RbDXYQIwf_q8ssiouIU8TcmqY6EzSoUBhoI3WhWUpnI,41005
|
|
78
78
|
hcs_cli/cmds/dev/fs/profiler.py,sha256=3IPhiCsYebVKaqvmXUocNJXQAX4yQBjxQWPxrRriaRE,3564
|
|
79
79
|
hcs_cli/cmds/dev/fs/tailor.py,sha256=84oTXmasoJanlnOhNVEG4pqFrBsZ31yGtMRZKxGnpwc,6415
|
|
80
80
|
hcs_cli/cmds/dev/fs/helper/__init__.py,sha256=AC-hl0F-5R4V2uejk5FzFDlvT7uKGfjQyWq0quSznQs,14
|
|
81
|
-
hcs_cli/cmds/dev/fs/helper/credential_helper.py,sha256=
|
|
81
|
+
hcs_cli/cmds/dev/fs/helper/credential_helper.py,sha256=HEjZjXSIP8kNe_XCQLOkla-rKV0y3W0SgkKp4CLZ_8Y,3406
|
|
82
82
|
hcs_cli/cmds/dev/fs/helper/jenkins_util.py,sha256=YFms6tEQBVZc8Svh0OFOIXXxrzNPo8Gu44FqBKby1Ow,3208
|
|
83
83
|
hcs_cli/cmds/dev/fs/helper/k8s_util.py,sha256=Y5KScOEDDjkSlpv9yk1C7QvTDkGBu4cmLHpwufMMOWQ,2875
|
|
84
84
|
hcs_cli/cmds/dev/fs/helper/license_info.py,sha256=BJR6hCZFf_1A1DsAill4ZpOgRRopo899RQ9QIZPt4Yk,4953
|
|
@@ -89,7 +89,7 @@ hcs_cli/cmds/dev/fs/helper/util.py,sha256=4qc6MT45Os3dZopNhngidIKj7sa5nBYt9lKl2E
|
|
|
89
89
|
hcs_cli/cmds/dev/fs/provided_files/__init__.py,sha256=AC-hl0F-5R4V2uejk5FzFDlvT7uKGfjQyWq0quSznQs,14
|
|
90
90
|
hcs_cli/cmds/dev/fs/provided_files/akka.plan.yml,sha256=IBBuxU-oxiFfEMhpOB7uK9IMoHsRVwlcnKwPPfbPnyw,12486
|
|
91
91
|
hcs_cli/cmds/dev/fs/provided_files/azsim.plan.yml,sha256=rnjNWSnhaYr19tlKoxGjvKTlhs2pYA2NRC-dC3kIzYE,17220
|
|
92
|
-
hcs_cli/cmds/dev/fs/provided_files/azure.plan.yml,sha256=
|
|
92
|
+
hcs_cli/cmds/dev/fs/provided_files/azure.plan.yml,sha256=U2FWSW7S37yBDU8H7jui7C0IEbFCM-Irrna0-aK4TfU,31663
|
|
93
93
|
hcs_cli/cmds/dev/fs/provided_files/mqtt-secret.yaml,sha256=lJI6N4e3ogiZ9BpyjWUHqj3KfbGs7WUdYuaPt1D8TLw,14939
|
|
94
94
|
hcs_cli/cmds/dev/fs/provided_files/mqtt-server-external.yaml,sha256=gtYLY9pgMCeJthYmTXrLjd3xITf4b2keesyQ8VBAar8,612
|
|
95
95
|
hcs_cli/cmds/dev/fs/provided_files/patch-mqtt-hostname.yml,sha256=YuwUPj5QtZo1dKOqNsh72EVXdVBxr2ZQBcW4gyX0agY,212
|
|
@@ -280,7 +280,7 @@ hcs_cli/cmds/vm/actions.py,sha256=PdwqGc8rjX7QabhnTZR6do4NaGjvDZotx22LeiE1HJw,33
|
|
|
280
280
|
hcs_cli/cmds/vm/delete.py,sha256=n6e4pPc26nujJN93bwFBE4rV00hNJZEQhlRMdakJwLU,934
|
|
281
281
|
hcs_cli/cmds/vm/get.py,sha256=IJqxnuIXEBTDxBS2-SbqNFU-sKKn0tzOX5blaVFpxrU,483
|
|
282
282
|
hcs_cli/cmds/vm/list.py,sha256=tMFs7VcVE-7MphtiqTlwGP41JWjIsbFnQFc0wHKF-J0,6044
|
|
283
|
-
hcs_cli/cmds/vm/log.py,sha256=
|
|
283
|
+
hcs_cli/cmds/vm/log.py,sha256=qBBXAsBjewSdOlCzF0qdBD_PiXV8Nx610dX3JyEa1Lk,5317
|
|
284
284
|
hcs_cli/cmds/vm/pairing_info.py,sha256=Oq4bXWXj_GP_ejnK5fouc7928PDFk11-vGUjRXQnT6w,623
|
|
285
285
|
hcs_cli/cmds/vm/put.py,sha256=bOqwdEVqI3_6F6C_3WH7P4PZP0iAhkJmm6Y9RHBVgl8,645
|
|
286
286
|
hcs_cli/cmds/vm/use.py,sha256=EONJqWcF176tUyQ9OnkSpR92HBzTgFNwB__Dt10WAVU,1276
|
|
@@ -477,7 +477,7 @@ hcs_cli/service/vmhub/__init__.py,sha256=U2qmptlN0gggefF1zvj-JBTdqUYsPazH0jG02sR
|
|
|
477
477
|
hcs_cli/service/vmhub/credentials.py,sha256=54oS7QdGR4wWQuiVrEQTz_Bv9vuxHguM_oeQrhyPkOE,1021
|
|
478
478
|
hcs_cli/service/vmhub/mqtt.py,sha256=BNYP-nBjO6GW_WBB63ShLKVYVsXEVCKGaTefc4ehi_k,2626
|
|
479
479
|
hcs_cli/service/vmm/__init__.py,sha256=iMujDYcu4l2_itHGn9IVq04m974qhDWSZOi8GpiHA5c,24
|
|
480
|
-
hcs_cli/service/vmm/dct.py,sha256=
|
|
480
|
+
hcs_cli/service/vmm/dct.py,sha256=r6X5yYnnRHjichhcZfyecChkhtOhL7FNMLItUYZfKIc,8170
|
|
481
481
|
hcs_cli/service/vmm/hoc_event.py,sha256=NSU8Wj2cc8vWod-YDTEMuUXD4ToEKhgIrj3u1lTv_kE,7604
|
|
482
482
|
hcs_cli/support/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
483
483
|
hcs_cli/support/constant.py,sha256=dVOiIaiH4rhC-cZJhTruXyv5ieS1j32YUhF8wEFjbEw,171
|
|
@@ -497,7 +497,7 @@ hcs_cli/support/vm_table.py,sha256=hqNUKLVUuBiuDwlqcAQ7uAT1-4z6ZYOIGRcFWn8lnAo,2
|
|
|
497
497
|
hcs_cli/support/scm/html_util.py,sha256=clgMpM90HxRRs3D9ORYYNB57AYh7y_-UzJrB4KX3dsY,458
|
|
498
498
|
hcs_cli/support/scm/plan-editor.html.template,sha256=HtXMmvIvTixVEYN1gblCeqFTt_F8JF6ltDC11Eb_GMw,46975
|
|
499
499
|
hcs_cli/support/scm/plan_editor.py,sha256=TxfHyyozoQ_DCyaPrYXFG9n8AnBuUD8753009FUD0GU,8722
|
|
500
|
-
hcs_cli-0.1.
|
|
501
|
-
hcs_cli-0.1.
|
|
502
|
-
hcs_cli-0.1.
|
|
503
|
-
hcs_cli-0.1.
|
|
500
|
+
hcs_cli-0.1.333.dist-info/METADATA,sha256=kCS18To7zRJogpuir9MIE8Nlr0VbMfp4LsEQabLPosE,3222
|
|
501
|
+
hcs_cli-0.1.333.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
502
|
+
hcs_cli-0.1.333.dist-info/entry_points.txt,sha256=5uH-af1WUETSBSer2bu4YMGQNY5RriJHsjepb8ACiX8,42
|
|
503
|
+
hcs_cli-0.1.333.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|