Il ne semble pas possible d'utiliser "nova rebuild" avec un cloud-init.
Api non compatible côté OVH non ?
```
$ nova help rebuild
usage: nova rebuild [--rebuild-password ] [--poll]
[--minimal] [--preserve-ephemeral] [--name ]
[--description ] [--meta ]
[--key-name ] [--key-unset]
[--user-data ] [--user-data-unset]
[--trusted-image-certificate-id ]
[--trusted-image-certificates-unset]
Shutdown, re-image, and re-boot a server.
Positional arguments:
Name or ID of server.
Name or ID of new image.
Optional arguments:
--rebuild-password
Set the provided admin password on the rebuilt
server.
--poll Report the server rebuild progress until it
completes.
--minimal Skips flavor/image lookups when showing
servers.
--preserve-ephemeral Preserve the default ephemeral storage
partition on rebuild.
--name Name for the new server.
--description New description for the server. (Supported by
API versions '2.19' - '2.latest')
--meta Record arbitrary key/value metadata to
/meta_data.json on the metadata server. Can be
specified multiple times.
--key-name Keypair name to set in the server. Cannot be
specified with the '--key-unset' option.
(Supported by API versions '2.54' -
'2.latest')
--key-unset Unset keypair in the server. Cannot be
specified with the '--key-name' option.
(Supported by API versions '2.54' -
'2.latest')
--user-data User data file to pass to be exposed by the
metadata server. (Supported by API versions
'2.57' - '2.latest')
--user-data-unset Unset user_data in the server. Cannot be
specified with the '--user-data' option.
(Supported by API versions '2.57' -
'2.latest')
--trusted-image-certificate-id
Trusted image certificate IDs used to validate
certificates during the image signature
verification process. Defaults to
env[OS_TRUSTED_IMAGE_CERTIFICATE_IDS]. May be
specified multiple times to pass multiple
trusted image certificate IDs. (Supported by
API versions '2.63' - '2.latest')
--trusted-image-certificates-unset
Unset trusted_image_certificates in the
server. Cannot be specified with the
'--trusted-image-certificate-id' option.
(Supported by API versions '2.63' -
'2.latest')
$ nova rebuild --poll --name test --user-data cloud-config.yml YYYYY XXXXX
usage: nova [--version] [--debug] [--os-cache] [--timings]
[--os-region-name ] [--service-type ]
[--service-name ]
[--os-endpoint-type ]
[--os-compute-api-version ]
[--os-endpoint-override ] [--insecure]
[--os-cacert ] [--os-cert ]
[--os-key ] [--timeout ] [--collect-timing]
[--os-auth-type ] [--os-auth-url OS_AUTH_URL]
[--os-system-scope OS_SYSTEM_SCOPE] [--os-domain-id OS_DOMAIN_ID]
[--os-domain-name OS_DOMAIN_NAME] [--os-project-id OS_PROJECT_ID]
[--os-project-name OS_PROJECT_NAME]
[--os-project-domain-id OS_PROJECT_DOMAIN_ID]
[--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
[--os-trust-id OS_TRUST_ID]
[--os-default-domain-id OS_DEFAULT_DOMAIN_ID]
[--os-default-domain-name OS_DEFAULT_DOMAIN_NAME]
[--os-user-id OS_USER_ID] [--os-username OS_USERNAME]
[--os-user-domain-id OS_USER_DOMAIN_ID]
[--os-user-domain-name OS_USER_DOMAIN_NAME]
[--os-password OS_PASSWORD]
...
error: unrecognized arguments: --user-data XXXXX
Try 'nova help ' for more information.
```
Nova rebuild avec cloud-init
Related questions
- Dimensionnement serveur MySQL
44458
07.11.2018 12:32
- [RESOLU] Connexion impossible en SSH
37179
05.06.2019 20:05
- Bonjour, Je n'est reçus aucun mot de passe root lors de mon achat!
32553
05.02.2018 20:47
- Gitlab private docker registry
32348
16.03.2018 13:05
- Ssh connection timed out port 22
31421
11.12.2019 08:21
- Configuration IP failover avec netplan (Ubuntu 17.10)
31115
12.01.2018 23:23
- Problème connexion ssh
30739
04.02.2018 09:46
- IP Failover sur Debian 9
30501
18.11.2016 20:40
- Instance Public Cloud en "error"
27944
15.12.2025 10:04
- Connexion OpenStack Swift Object Storage
24246
11.04.2019 10:09
Hello @YoannP1.
Si une API n'est pas autorisé par OVH, tu as un message d'erreur assez explicite.
Je ne l'ai pas en tête mais en gros ça te dit que tes pas admin
La, c'est juste une histoire de syntaxe.
Après, une action (rebuild) peut être autorisée, mais certains arguments interdit... La aussi le message sera normalement assez clair.
Jalinn.