Skip to content

Commit bd1cda5

Browse files
lewistorringtonlu1a
authored andcommitted
fix: naively updated template ID refs
1 parent 56f6096 commit bd1cda5

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ cluster = {
7070
# OS: template storage UUID, all available os templates can be retrieved by calling manager.get_templates()
7171
# Note: the storage os template uuid:s will change when OS is updated. So check that the UUID is correct
7272
# default tier: maxIOPS, the 100k IOPS storage backend
73-
Storage(os='01000000-0000-4000-8000-000030200200', size=10),
73+
Storage(os='01000000-0000-4000-8000-000030240200', size=10),
7474
# secondary storage, hdd for reduced speed & cost
7575
Storage(size=100, tier='hdd')
7676
],
@@ -81,7 +81,7 @@ cluster = {
8181
hostname='web2.example.com',
8282
zone='uk-lon1',
8383
storage_devices=[
84-
Storage(os='01000000-0000-4000-8000-000030200200', size=10),
84+
Storage(os='01000000-0000-4000-8000-000030240200', size=10),
8585
Storage(size=100, tier='hdd'),
8686
],
8787
login_user=login_user
@@ -93,7 +93,7 @@ cluster = {
9393
hostname='db.example.com',
9494
zone='uk-lon1',
9595
storage_devices=[
96-
Storage(os='01000000-0000-4000-8000-000030200200', size=10),
96+
Storage(os='01000000-0000-4000-8000-000030240200', size=10),
9797
Storage(size=100),
9898
],
9999
login_user=login_user
@@ -103,7 +103,7 @@ cluster = {
103103
hostname='balancer.example.com',
104104
zone='uk-lon1',
105105
storage_devices=[
106-
Storage(os='01000000-0000-4000-8000-000030200200', size=10)
106+
Storage(os='01000000-0000-4000-8000-000030240200', size=10)
107107
],
108108
login_user=login_user
109109
)

docs/Server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ server = Server(
4747
hostname = "web1.example.com",
4848
zone = 'uk-lon1',
4949
storage_devices = [
50-
Storage(os = "01000000-0000-4000-8000-000030200200", size=10),
50+
Storage(os = "01000000-0000-4000-8000-000030240200", size=10),
5151
Storage(size=10, tier="hdd")
5252
])
5353

docs/Storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Tiers:
1818

1919
### Templates
2020

21-
Public templates such as the 01000000-0000-4000-8000-000030200200 can be cloned by anyone to get a pre-installed
21+
Public templates such as the 01000000-0000-4000-8000-000030240200 can be cloned by anyone to get a pre-installed
2222
server image that is immediately ready to go. A user can also create private templates for themselves out of
2323
any storage. Storages can be cloned from templates during server creation.
2424

upcloud_api/cloud_manager/server_mixin.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def create_server(self, server: Server) -> Server:
9494
zone = "uk-lon1",
9595
labels = [Label('role', 'example')],
9696
storage_devices = [
97-
Storage(os = "01000000-0000-4000-8000-000030200200", size=10, tier=maxiops, title='Example OS disk'),
97+
Storage(os = "01000000-0000-4000-8000-000030240200", size=10, tier=maxiops, title='Example OS disk'),
9898
Storage(size=10, labels=[Label('usage', 'data_disk')]),
9999
Storage()
100100
title = "My Example Server"
@@ -107,10 +107,11 @@ def create_server(self, server: Server) -> Server:
107107
(id is a running starting from 1)
108108
- tier defaults to maxiops
109109
- valid operating systems are for example:
110-
* CentOS 8: 01000000-0000-4000-8000-000050010400
111-
* Debian 10: 01000000-0000-4000-8000-000020050100
112-
* Ubuntu 20.04: 01000000-0000-4000-8000-000030200200
113-
* Windows 2019: 01000000-0000-4000-8000-000010070300
110+
* Debian GNU/Linux 12 (Bookworm): 01000000-0000-4000-8000-000020070100
111+
* Ubuntu Server 24.04 LTS (Noble Numbat): 01000000-0000-4000-8000-000030240200
112+
* Rocky Linux 9: 01000000-0000-4000-8000-000150020100
113+
* Windows Server 2022 Standard: 01000000-0000-4000-8000-000010080300
114+
(for a more up-to-date listing, use UpCloud's CLI: `upctl storage list --public --template`.)
114115
115116
"""
116117
if isinstance(server, Server):

0 commit comments

Comments
 (0)