You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
### Changed
11
+
12
+
- In `server create` command, use `Ubuntu Server 24.04 LTS (Noble Numbat)` as default value for `--os`. The new default template only supports SSH key based authentication. Use `--ssh-keys` option to provide the keys when creating a server with the default template.
13
+
- In `server create` command, enable metadata service by default when the selected (or default) template uses cloud-init (`template_type` is `cloud-init`) and thus requires it.
Copy file name to clipboardExpand all lines: examples/possible_exit_codes.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ upctl server create
15
15
# Error: required flag(s) "hostname", "zone" not set
16
16
```
17
17
18
-
Let's create two server and stop one of those to later see other failing exit codes. These command should succceed, and thus return zero exit code.
18
+
Let's create two servers and stop one of those to later see other failing exit codes. This example uses `--type hard` when stopping the servers as the OS might not be completely up and running when the server reaches running state. These command should succeed, and thus return zero exit code.
upctl server create --hostname ${prefix}vm-1 --zone pl-waw1 --ssh-keys ./id_ed25519.pub --wait
25
25
upctl server create --hostname ${prefix}vm-2 --zone pl-waw1 --ssh-keys ./id_ed25519.pub --wait
26
26
27
-
upctl server stop ${prefix}vm-1 --wait
27
+
upctl server stop --type hard ${prefix}vm-1 --wait
28
28
```
29
29
30
30
Now let's try to stop both both of the created servers. Exit code will be one, as `${prefix}vm-1` is already stopped and thus cannot be stopped again. `${prefix}vm-2`, though, will be stopped as it was online. Thus one of the two operations failed.
31
31
32
32
```sh exit_code=1
33
-
upctl server stop ${prefix}vm-1 ${prefix}vm-2 --wait
33
+
upctl server stop --type hard ${prefix}vm-1 ${prefix}vm-2 --wait
34
34
```
35
35
36
36
If we now try to run above command again, exit code will be two as both of the servers are already stopped. Thus both stop operations failed.
37
37
38
38
```sh exit_code=2
39
-
upctl server stop ${prefix}vm-1 ${prefix}vm-2 --wait
39
+
upctl server stop --type hard ${prefix}vm-1 ${prefix}vm-2 --wait
s.Cobra().Long=commands.WrapLongDescription(`Create a new server
261
+
262
+
Note that the default template, Ubuntu Server 24.04 LTS (Noble Numbat), only supports SSH key based authentication. Use `+"`"+`--ssh-keys`+"`"+` option to provide the keys when creating a server with the default template. The examples below use public key from the `+"`"+`~/.ssh`+"`"+` directory. If you want to use different authentication method, use `+"`"+`--os`+"`"+` parameter to specify a different template.`)
config.AddEnableOrDisableFlag(fs, &s.metadata, def.metadata, "metadata", "metadata service. The metadata service will be enabled by default, if the selected OS template uses cloud-init and thus requires metadata service")
0 commit comments