cloud-init
cloud-init copied to clipboard
feat(scaleway): add AZ and region fields to DataSourceScaleway
Proposed Commit Message
feat(scaleway): add AZ and region fields to DataSourceScaleway
Merge type
- [x] Squash merge using "Proposed Commit Message"
- [ ] Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)
:+1:
Thank you @NoSuchCommand. If you can attach the output of the following (watch for any sensitive passwords if set in user-data), then we are good to merge this PR.
Also, can we please add the output of
sudo cloud-init query dswith an example of this content as seem on a running system? That command should show datasource-specific values for meta-data which would give us more certainty about the format of such keys.
Here are the outputs you requested:
# dpkg-query -W cloud-init
cloud-init 25.3-63-g1c2cd182-1~bddeb
# cloud-init query v1.availability_zone
fr-par-1
# cloud-init query v1.region
fr-par
# cloud-init query ds
{
"_doc": "EXPERIMENTAL: The structure and format of content scoped under the 'ds' key may change in subsequent releases of cloud-init.",
"meta_data": {
"allowed_actions": [
"poweroff",
"terminate",
"reboot",
"stop_in_place",
"backup"
],
"arch": "x86_64",
"boot_type": "local",
"bootscript": null,
"commercial_type": "PLAY2-PICO",
"creation_date": "2025-12-17T10:05:42.923577+00:00",
"dynamic_ip_required": true,
"enable_ipv6": false,
"end_of_service": false,
"extra_networks": [],
"filesystems": [],
"hostname": "cli-srv-eloquent-kepler",
"id": "0f33ea06-9188-4a45-9fec-088233412dfa",
"image": {
"arch": "x86_64",
"creation_date": "2025-09-12T09:03:37.920310+00:00",
"default_bootscript": null,
"extra_volumes": {},
"from_server": "",
"id": "90e47fab-efa3-46d8-9607-f327a0ea65bb",
"modification_date": "2025-09-12T09:03:37.920310+00:00",
"name": "Ubuntu 24.04 Noble Numbat",
"organization": "51b656e3-4865-41e8-adbc-0c45bdd780db",
"project": "51b656e3-4865-41e8-adbc-0c45bdd780db",
"public": true,
"root_volume": {
"id": "a7614e65-45a6-4223-80fe-15ef119f5311",
"name": "",
"size": 0,
"volume_type": "sbs_snapshot"
},
"state": "available",
"tags": [],
"zone": "fr-par-1"
},
"ipv6": null,
"location": {
"cluster_id": "7",
"hypervisor_id": "901",
"node_id": "62",
"platform_id": "14",
"zone_id": "fr-par-1"
},
"mac_address": "de:00:00:dd:9b:85",
"maintenances": [],
"modification_date": "2025-12-17T10:05:46.480238+00:00",
"name": "cli-srv-eloquent-kepler",
"net_in_use": "ipv4",
"organization": "<REDACTED>",
"placement_group": null,
"private_ip": null,
"private_nics": [],
"project": "<REDACTED>",
"protected": false,
"public_ip": {
"address": "163.172.158.188",
"dynamic": false,
"family": "inet",
"gateway": "62.210.0.1",
"id": "<REDACTED>",
"ipam_id": "<REDACTED>",
"netmask": "32",
"provisioning_mode": "dhcp",
"state": "attached",
"tags": []
},
"public_ips": [
{
"address": "163.172.158.188",
"dynamic": false,
"family": "inet",
"gateway": "62.210.0.1",
"id": "<REDACTED>",
"ipam_id": "<REDACTED>",
"netmask": "32",
"provisioning_mode": "dhcp",
"state": "attached",
"tags": []
}
],
"public_ips_v4": [
{
"address": "163.172.158.188",
"dynamic": false,
"family": "inet",
"gateway": "62.210.0.1",
"id": "<REDACTED>",
"ipam_id": "<REDACTED>",
"netmask": "32",
"provisioning_mode": "dhcp",
"state": "attached",
"tags": []
}
],
"public_ips_v6": [],
"routed_ip_enabled": true,
"security_group": {
"id": "<REDACTED>",
"name": "Default security group"
},
"ssh_public_keys": [
{
"creation_date": "<REDACTED>",
"description": null,
"fingerprint": "<REDACTED>",
"id": "<REDACTED>",
"ip": null,
"key": "<REDACTED>",
"modification_date": "<REDACTED>"
}
],
"state": "running",
"state_detail": "booted",
"tags": [],
"volumes": {
"0": {
"boot": false,
"id": "49eeb8c3-c74a-4c4c-a6e2-58e69c103645",
"state": "available",
"volume_type": "sbs_volume",
"zone": "fr-par-1"
}
},
"zone": "fr-par-1"
}
}