Skip to content

Commit 8ccb8fe

Browse files
FIoannidesSikaGrr
authored andcommitted
Update WP naming convention (#760)
* Update WP naming convention * Fix goldens
1 parent 2b694ce commit 8ccb8fe

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

goldens/Basic_cluster_create.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ gcloud beta container node-pools describe 0 --cluster golden-cluster --project=g
5151
kubectl get configmap golden-cluster-resources-configmap -o=custom-columns="ConfigData:data" --no-headers=true
5252
[XPK] Existing node pool names ['0']
5353
[XPK] Task: `Retrieve resource policy` is implemented by the following command not running since it is a dry run.
54-
gcloud compute resource-policies describe golden-cluster-placement-policy --project=golden-project --region=us-central1
55-
[XPK] To complete NodepoolCreate-golden-cluster-np-0 we are executing gcloud beta container node-pools create golden-cluster-np-0 --location=us-central1 --cluster=golden-cluster --project=golden-project --node-locations=us-central1-a --machine-type=tpu7x-standard-4t --host-maintenance-interval=AS_NEEDED --spot --placement-policy=golden-cluster-placement-policy --enable-gvnic --node-version=0 --num-nodes=1 --scopes=storage-full,gke-default,"https://www.googleapis.com/auth/cloud-platform" --max-pods-per-node 15
54+
gcloud compute resource-policies describe tpu7x-8-2x2x1-placement-policy --project=golden-project --region=us-central1
55+
[XPK] To complete NodepoolCreate-golden-cluster-np-0 we are executing gcloud beta container node-pools create golden-cluster-np-0 --location=us-central1 --cluster=golden-cluster --project=golden-project --node-locations=us-central1-a --machine-type=tpu7x-standard-4t --host-maintenance-interval=AS_NEEDED --spot --placement-policy=tpu7x-8-2x2x1-placement-policy --enable-gvnic --node-version=0 --num-nodes=1 --scopes=storage-full,gke-default,"https://www.googleapis.com/auth/cloud-platform" --max-pods-per-node 15
5656
[XPK] Breaking up a total of 1 commands into 1 batches
5757
[XPK] Pretending all the jobs succeeded
5858
[XPK] Create or delete node pool request complete.

goldens/Cluster_create_with_gb200-4.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ gcloud beta container node-pools describe 0 --cluster golden-cluster --project=g
5353
kubectl get configmap golden-cluster-resources-configmap -o=custom-columns="ConfigData:data" --no-headers=true
5454
[XPK] Existing node pool names ['0']
5555
[XPK] Task: `Retrieve resource policy` is implemented by the following command not running since it is a dry run.
56-
gcloud compute resource-policies describe golden-cluster-placement-policy --project=golden-project --region=us-central1
57-
[XPK] To complete NodepoolCreate-golden-cluster-np-0 we are executing gcloud beta container node-pools create golden-cluster-np-0 --location=us-central1 --cluster=golden-cluster --project=golden-project --node-locations=us-central1-a --machine-type=a4x-highgpu-4g --host-maintenance-interval=AS_NEEDED --reservation-affinity=specific --reservation=golden-reservation --placement-policy=golden-cluster-placement-policy --enable-gvnic --num-nodes=2 --accelerator type=nvidia-gb200,count=4,gpu-driver-version=latest --no-enable-autoupgrade --scopes="https://www.googleapis.com/auth/cloud-platform"
56+
gcloud compute resource-policies describe gb200-4-1x72-placement-policy --project=golden-project --region=us-central1
57+
[XPK] To complete NodepoolCreate-golden-cluster-np-0 we are executing gcloud beta container node-pools create golden-cluster-np-0 --location=us-central1 --cluster=golden-cluster --project=golden-project --node-locations=us-central1-a --machine-type=a4x-highgpu-4g --host-maintenance-interval=AS_NEEDED --reservation-affinity=specific --reservation=golden-reservation --placement-policy=gb200-4-1x72-placement-policy --enable-gvnic --num-nodes=2 --accelerator type=nvidia-gb200,count=4,gpu-driver-version=latest --no-enable-autoupgrade --scopes="https://www.googleapis.com/auth/cloud-platform"
5858
[XPK] Breaking up a total of 1 commands into 1 batches
5959
[XPK] Pretending all the jobs succeeded
6060
[XPK] Create or delete node pool request complete.

goldens/NAP_cluster-create.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ gcloud beta container node-pools describe 0 --cluster golden-cluster --project=g
5151
kubectl get configmap golden-cluster-resources-configmap -o=custom-columns="ConfigData:data" --no-headers=true
5252
[XPK] Existing node pool names ['0']
5353
[XPK] Task: `Retrieve resource policy` is implemented by the following command not running since it is a dry run.
54-
gcloud compute resource-policies describe golden-cluster-placement-policy --project=golden-project --region=us-central1
55-
[XPK] To complete NodepoolCreate-golden-cluster-np-0 we are executing gcloud beta container node-pools create golden-cluster-np-0 --location=us-central1 --cluster=golden-cluster --project=golden-project --node-locations=us-central1-a --machine-type=tpu7x-standard-4t --host-maintenance-interval=AS_NEEDED --placement-policy=golden-cluster-placement-policy --enable-gvnic --node-version=0 --num-nodes=1 --scopes=storage-full,gke-default,"https://www.googleapis.com/auth/cloud-platform" --max-pods-per-node 15
54+
gcloud compute resource-policies describe tpu7x-8-2x2x1-placement-policy --project=golden-project --region=us-central1
55+
[XPK] To complete NodepoolCreate-golden-cluster-np-0 we are executing gcloud beta container node-pools create golden-cluster-np-0 --location=us-central1 --cluster=golden-cluster --project=golden-project --node-locations=us-central1-a --machine-type=tpu7x-standard-4t --host-maintenance-interval=AS_NEEDED --placement-policy=tpu7x-8-2x2x1-placement-policy --enable-gvnic --node-version=0 --num-nodes=1 --scopes=storage-full,gke-default,"https://www.googleapis.com/auth/cloud-platform" --max-pods-per-node 15
5656
[XPK] Breaking up a total of 1 commands into 1 batches
5757
[XPK] Pretending all the jobs succeeded
5858
[XPK] Create or delete node pool request complete.

goldens/NAP_cluster-create_with_pathways.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ gcloud beta container node-pools describe 0 --cluster golden-cluster --project=g
5151
kubectl get configmap golden-cluster-resources-configmap -o=custom-columns="ConfigData:data" --no-headers=true
5252
[XPK] Existing node pool names ['0']
5353
[XPK] Task: `Retrieve resource policy` is implemented by the following command not running since it is a dry run.
54-
gcloud compute resource-policies describe golden-cluster-placement-policy --project=golden-project --region=us-central1
55-
[XPK] To complete NodepoolCreate-golden-cluster-np-0 we are executing gcloud beta container node-pools create golden-cluster-np-0 --location=us-central1 --cluster=golden-cluster --project=golden-project --node-locations=us-central1-a --machine-type=tpu7x-standard-4t --host-maintenance-interval=AS_NEEDED --placement-policy=golden-cluster-placement-policy --enable-gvnic --node-version=0 --num-nodes=1 --scopes=storage-full,gke-default,"https://www.googleapis.com/auth/cloud-platform" --max-pods-per-node 15
54+
gcloud compute resource-policies describe tpu7x-8-2x2x1-placement-policy --project=golden-project --region=us-central1
55+
[XPK] To complete NodepoolCreate-golden-cluster-np-0 we are executing gcloud beta container node-pools create golden-cluster-np-0 --location=us-central1 --cluster=golden-cluster --project=golden-project --node-locations=us-central1-a --machine-type=tpu7x-standard-4t --host-maintenance-interval=AS_NEEDED --placement-policy=tpu7x-8-2x2x1-placement-policy --enable-gvnic --node-version=0 --num-nodes=1 --scopes=storage-full,gke-default,"https://www.googleapis.com/auth/cloud-platform" --max-pods-per-node 15
5656
[XPK] To complete NodepoolCreate-cpu-np we are executing gcloud beta container node-pools create cpu-np --node-version=0 --cluster=golden-cluster --project=golden-project --node-locations=us-central1-a --location=us-central1 --num-nodes=1 --machine-type=n2-standard-64 --scopes=storage-full,gke-default,"https://www.googleapis.com/auth/cloud-platform" --enable-autoscaling --min-nodes=1 --max-nodes=20
5757
[XPK] Breaking up a total of 2 commands into 1 batches
5858
[XPK] Pretending all the jobs succeeded

src/xpk/core/nodepool.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,9 @@ def run_gke_node_pool_create_command(
267267

268268
placement_args = ''
269269
if system.requires_workload_policy and is_topology_valid(system.topology):
270-
placement_policy = f'{args.cluster}-placement-policy'
270+
placement_policy = (
271+
f'{system.device_type}-{system.topology}-placement-policy'
272+
)
271273
ensure_resource_policy_exists(placement_policy, args, system.topology)
272274
placement_args = f' --placement-policy={placement_policy}'
273275

0 commit comments

Comments
 (0)