skypilot-nightly 1.0.0.dev20241008__py3-none-any.whl → 1.0.0.dev20241010__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.
sky/__init__.py CHANGED
@@ -5,7 +5,7 @@ from typing import Optional
5
5
  import urllib.request
6
6
 
7
7
  # Replaced with the current commit when building the wheels.
8
- _SKYPILOT_COMMIT_SHA = '3f898abe10c1aa2a05da0e00f0c6a9a947b53bbc'
8
+ _SKYPILOT_COMMIT_SHA = '5491cf3e3e3945e5a9938df583e4155cff90d765'
9
9
 
10
10
 
11
11
  def _get_git_commit():
@@ -35,7 +35,7 @@ def _get_git_commit():
35
35
 
36
36
 
37
37
  __commit__ = _get_git_commit()
38
- __version__ = '1.0.0.dev20241008'
38
+ __version__ = '1.0.0.dev20241010'
39
39
  __root_dir__ = os.path.dirname(os.path.abspath(__file__))
40
40
 
41
41
 
sky/cli.py CHANGED
@@ -5097,7 +5097,8 @@ def _deploy_local_cluster(gpus: bool):
5097
5097
 
5098
5098
  # Get directory of script and run it from there
5099
5099
  cwd = os.path.dirname(os.path.abspath(up_script_path))
5100
- run_command = up_script_path + ' --gpus' if gpus else up_script_path
5100
+ run_command = up_script_path + f' {common_utils.get_user_hash()}'
5101
+ run_command = run_command + ' --gpus' if gpus else run_command
5101
5102
  run_command = shlex.split(run_command)
5102
5103
 
5103
5104
  # Setup logging paths
sky/clouds/aws.py CHANGED
@@ -299,7 +299,10 @@ class AWS(clouds.Cloud):
299
299
  # The command for getting the current zone is from:
300
300
  # https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-identity-documents.html # pylint: disable=line-too-long
301
301
  command_str = (
302
- 'curl -s http://169.254.169.254/latest/dynamic/instance-identity/document' # pylint: disable=line-too-long
302
+ 'TOKEN=`curl -X PUT "http://169.254.169.254/latest/api/token" '
303
+ '-H "X-aws-ec2-metadata-token-ttl-seconds: 21600"` && '
304
+ 'curl -H "X-aws-ec2-metadata-token: $TOKEN" -s '
305
+ 'http://169.254.169.254/latest/dynamic/instance-identity/document'
303
306
  f' | {constants.SKY_PYTHON_CMD} -u -c "import sys, json; '
304
307
  'print(json.load(sys.stdin)[\'availabilityZone\'])"')
305
308
  return command_str
@@ -131,6 +131,9 @@ available_node_types:
131
131
  - Key: {{ label_key }}
132
132
  Value: {{ label_value|tojson }}
133
133
  {%- endfor %}
134
+ # Use IDMSv2
135
+ MetadataOptions:
136
+ HttpTokens: required
134
137
 
135
138
  head_node_type: ray.head.default
136
139
 
@@ -12,9 +12,11 @@ IMAGE_GPU="us-central1-docker.pkg.dev/skypilot-375900/skypilotk8s/skypilot-gpu:l
12
12
  PORT_RANGE_START=30000
13
13
  PORT_RANGE_END=30100
14
14
 
15
+ USER_HASH=$1
16
+
15
17
  # Check for GPU flag
16
18
  ENABLE_GPUS=false
17
- if [[ "$1" == "--gpus" ]]; then
19
+ if [[ "$2" == "--gpus" ]]; then
18
20
  ENABLE_GPUS=true
19
21
  fi
20
22
 
@@ -88,16 +90,17 @@ if kind get clusters | grep -q skypilot; then
88
90
  fi
89
91
 
90
92
  # Generate cluster YAML
91
- echo "Generating /tmp/skypilot-kind.yaml"
93
+ YAML_PATH="/tmp/skypilot-kind-$USER_HASH.yaml"
94
+ echo "Generating $YAML_PATH"
92
95
 
93
96
  # Add GPUs flag to the generate_kind_config.py command if GPUs are enabled
94
97
  if $ENABLE_GPUS; then
95
- python -m sky.utils.kubernetes.generate_kind_config --path /tmp/skypilot-kind.yaml --port-start ${PORT_RANGE_START} --port-end ${PORT_RANGE_END} --gpus
98
+ python -m sky.utils.kubernetes.generate_kind_config --path $YAML_PATH --port-start ${PORT_RANGE_START} --port-end ${PORT_RANGE_END} --gpus
96
99
  else
97
- python -m sky.utils.kubernetes.generate_kind_config --path /tmp/skypilot-kind.yaml --port-start ${PORT_RANGE_START} --port-end ${PORT_RANGE_END}
100
+ python -m sky.utils.kubernetes.generate_kind_config --path $YAML_PATH --port-start ${PORT_RANGE_START} --port-end ${PORT_RANGE_END}
98
101
  fi
99
102
 
100
- kind create cluster --config /tmp/skypilot-kind.yaml --name skypilot
103
+ kind create cluster --config $YAML_PATH --name skypilot
101
104
 
102
105
  echo "Kind cluster created."
103
106
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: skypilot-nightly
3
- Version: 1.0.0.dev20241008
3
+ Version: 1.0.0.dev20241010
4
4
  Summary: SkyPilot: An intercloud broker for the clouds
5
5
  Author: SkyPilot Team
6
6
  License: Apache 2.0
@@ -1,8 +1,8 @@
1
- sky/__init__.py,sha256=puRfdOGo9xpPZ1bJ_SID_s6We5Bb5xZwoWw_JHvZc8I,5854
1
+ sky/__init__.py,sha256=5JcJlsb7QRKYXl_ZEGPt5pw3u038M73axcZzjVHm1Us,5854
2
2
  sky/admin_policy.py,sha256=hPo02f_A32gCqhUueF0QYy1fMSSKqRwYEg_9FxScN_s,3248
3
3
  sky/authentication.py,sha256=TfKkVnmRIetATSEVQFp-rOOIRGqVig2i8faSQQt_ixA,20974
4
4
  sky/check.py,sha256=jLMIIJrseaZj1_o5WkbaD9XdyXIlCaT6pyAaIFdhdmA,9079
5
- sky/cli.py,sha256=9h4yO8p962960qUjvQ-xSusrtdh8TXNNQ1sfV0OqgZc,206262
5
+ sky/cli.py,sha256=19YLRhF3p8wOfKoN0vICUJ9itFKDKTyhG3mV8UsnR-U,206326
6
6
  sky/cloud_stores.py,sha256=RjFgmRhUh1Kk__f6g3KxzLp9s7dA0pFK4W1AukEuUaw,21153
7
7
  sky/core.py,sha256=YF_6kwj8Ja171Oycb8L25SZ7V_ylZYovFS_jpnjwGo0,34408
8
8
  sky/dag.py,sha256=WLFWr5hfrwjd31uYlNvI-zWUk7tLaT_gzJn4LzbVtkE,2780
@@ -40,7 +40,7 @@ sky/benchmark/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
40
  sky/benchmark/benchmark_state.py,sha256=X8CXmuU9KgsDRhKedhFgjeRMUFWtQsjFs1qECvPG2yg,8723
41
41
  sky/benchmark/benchmark_utils.py,sha256=oJOzJ4fs2sruxYh4Tl1NZ5fi2-3oWfXtoeCIAq2hgjw,26136
42
42
  sky/clouds/__init__.py,sha256=WuNIJEnZmBO72tU5awgaaL3rdvFRSkgaYNNeuY68dXo,1356
43
- sky/clouds/aws.py,sha256=0cpFokzfzEUNnRKMaY198GjrUTXIO0adu6uVArRrlBA,48814
43
+ sky/clouds/aws.py,sha256=uwz4aesgA2o6WNDhZlrXafQFbILv4EiUPNP67Cc8WGE,48978
44
44
  sky/clouds/azure.py,sha256=Yp_a1Lzvq4s47eRMeyVheDv9pC0hSPogCiTMYf-a5ZE,28687
45
45
  sky/clouds/cloud.py,sha256=PPk-Cbf1YbJT8bswcQLtPBtko02OWrRGJKkLzDpytTI,34858
46
46
  sky/clouds/cloud_registry.py,sha256=4yQMv-iBSgyN5aNL4Qxbn0JVE-dkVoEUIgj7S1z9S_Q,955
@@ -217,7 +217,7 @@ sky/skylet/ray_patches/log_monitor.py.patch,sha256=CPoh3U_ogOHrkMOK7jaIRnwdzxjBT
217
217
  sky/skylet/ray_patches/resource_demand_scheduler.py.patch,sha256=AVV-Hw-Rxw16aFm4VsyzayX1QOvwmQuM79iVdSjkSl4,658
218
218
  sky/skylet/ray_patches/updater.py.patch,sha256=ZNMGVYICPBB44jLbEx2KvCgIY7BWYdDv3-2b2HJWmAQ,289
219
219
  sky/skylet/ray_patches/worker.py.patch,sha256=_OBhibdr3xOy5Qje6Tt8D1eQVm_msi50TJbCJmOTxVU,565
220
- sky/templates/aws-ray.yml.j2,sha256=wijRSqqAoX8YalAvZCQf1DmfmyJgPy2DrfC33OEqFxM,7933
220
+ sky/templates/aws-ray.yml.j2,sha256=K0rAuyf1XC_GPFp1BR9df42-Be12A6T2UF0BllVSpYg,8005
221
221
  sky/templates/azure-ray.yml.j2,sha256=RtYAcAmFQd6TB3j-pbxi7ekjWhznqFhJtzdkqH_nXqM,6135
222
222
  sky/templates/cudo-ray.yml.j2,sha256=SEHVY57iBauCOE2HYJtYVFEKlriAkdwQu_p86a1n_bA,3548
223
223
  sky/templates/fluidstack-ray.yml.j2,sha256=t8TCULgiErCZdtFmBZVsA8ZdcqR7ccwsmQhuDFTBEAU,3541
@@ -263,7 +263,7 @@ sky/utils/validator.py,sha256=cAFERCoC7jH0DFKepcU4x9SYmdrYL1iVmW9tXA18hvo,701
263
263
  sky/utils/cli_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
264
264
  sky/utils/cli_utils/status_utils.py,sha256=9odkfXiXLMD14XJsqve6sGvHpe7ThHXpC6ic9RYtOqY,11032
265
265
  sky/utils/kubernetes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
266
- sky/utils/kubernetes/create_cluster.sh,sha256=rv5Lz6AR00yBJMRyScfMSQiGKptMhtHWRsvyG20-u9c,7764
266
+ sky/utils/kubernetes/create_cluster.sh,sha256=VLXfazav9XCMQmeKVqhuOQzt2vM6G1jgnvvb0SHUFno,7773
267
267
  sky/utils/kubernetes/delete_cluster.sh,sha256=BSccHF43GyepDNf-FZcenzHzpXXATkVD92vgn1lWPgk,927
268
268
  sky/utils/kubernetes/deploy_remote_cluster.sh,sha256=vGj0mD0tejHDRy8ulwKOvOF2mfLyT5J8fp7GVqEe_EY,8478
269
269
  sky/utils/kubernetes/generate_kind_config.py,sha256=_TNLnifA_r7-CRq083IP1xjelYqiLjzQX9ohuqYpDH8,3187
@@ -273,9 +273,9 @@ sky/utils/kubernetes/k8s_gpu_labeler_job.yaml,sha256=KPqp23B-zQ2SZK03jdHeF9fLTog
273
273
  sky/utils/kubernetes/k8s_gpu_labeler_setup.yaml,sha256=VLKT2KKimZu1GDg_4AIlIt488oMQvhRZWwsj9vBbPUg,3812
274
274
  sky/utils/kubernetes/rsync_helper.sh,sha256=Ma-N9a271fTfdgP5-8XIQL7KPf8IPUo-uY004PCdUFo,747
275
275
  sky/utils/kubernetes/ssh_jump_lifecycle_manager.py,sha256=RFLJ3k7MR5UN4SKHykQ0lV9SgXumoULpKYIAt1vh-HU,6560
276
- skypilot_nightly-1.0.0.dev20241008.dist-info/LICENSE,sha256=emRJAvE7ngL6x0RhQvlns5wJzGI3NEQ_WMjNmd9TZc4,12170
277
- skypilot_nightly-1.0.0.dev20241008.dist-info/METADATA,sha256=LUbjkD4tR608IWaOWZxDcDgGLHtQOjOdLp5yQ4FCts8,18945
278
- skypilot_nightly-1.0.0.dev20241008.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
279
- skypilot_nightly-1.0.0.dev20241008.dist-info/entry_points.txt,sha256=StA6HYpuHj-Y61L2Ze-hK2IcLWgLZcML5gJu8cs6nU4,36
280
- skypilot_nightly-1.0.0.dev20241008.dist-info/top_level.txt,sha256=qA8QuiNNb6Y1OF-pCUtPEr6sLEwy2xJX06Bd_CrtrHY,4
281
- skypilot_nightly-1.0.0.dev20241008.dist-info/RECORD,,
276
+ skypilot_nightly-1.0.0.dev20241010.dist-info/LICENSE,sha256=emRJAvE7ngL6x0RhQvlns5wJzGI3NEQ_WMjNmd9TZc4,12170
277
+ skypilot_nightly-1.0.0.dev20241010.dist-info/METADATA,sha256=bww8H64lCYNNRW73i8nOJ2EDNoek-v-AEeS8_O7gBYY,18945
278
+ skypilot_nightly-1.0.0.dev20241010.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
279
+ skypilot_nightly-1.0.0.dev20241010.dist-info/entry_points.txt,sha256=StA6HYpuHj-Y61L2Ze-hK2IcLWgLZcML5gJu8cs6nU4,36
280
+ skypilot_nightly-1.0.0.dev20241010.dist-info/top_level.txt,sha256=qA8QuiNNb6Y1OF-pCUtPEr6sLEwy2xJX06Bd_CrtrHY,4
281
+ skypilot_nightly-1.0.0.dev20241010.dist-info/RECORD,,