cloud-init
cloud-init copied to clipboard
refactor(scaleway): remove private_ip handling
Proposed Commit Message
refactor(scaleway): remove private_ip handling
Additional context
Private (NAT) IPs no longer exist in Scaleway Instances.
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:
Here are the outputs you requested:
# dpkg-query -W cloud-init
cloud-init 25.3-63-ge0fde014-1~bddeb
# cloud-init status --format=yaml
---
boot_status_code: enabled-by-generator
datasource: scaleway
detail: DataSourceScaleway
errors: []
extended_status: done
init:
errors: []
finished: 10.31
recoverable_errors: {}
start: 7.79
init-local:
errors: []
finished: 7.75
recoverable_errors: {}
start: 5.91
last_update: Thu, 01 Jan 1970 00:00:13 +0000
modules-config:
errors: []
finished: 12.2
recoverable_errors: {}
start: 10.43
modules-final:
errors: []
finished: 13.06
recoverable_errors: {}
start: 12.86
recoverable_errors: {}
stage: null
status: done
...
# grep "Applying network config" /var/log/cloud-init.log
2025-12-17 10:31:23,252 - stages.py[INFO]: Applying network configuration from ds bringup=False: {'version': 2, 'ethernets': {'ens2': {'dhcp4': True, 'routes': [{'on-link': True, 'to': '169.254.42.42/32', 'via': '62.210.0.1'}]}}}
2025-12-17 10:31:25,101 - stages.py[INFO]: Applying network configuration from ds bringup=True: {'version': 2, 'ethernets': {'ens2': {'dhcp4': True, 'routes': [{'on-link': True, 'to': '169.254.42.42/32', 'via': '62.210.0.1'}]}}}
# 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:27:15.880678+00:00",
"dynamic_ip_required": true,
"enable_ipv6": false,
"end_of_service": false,
"extra_networks": [],
"filesystems": [],
"hostname": "cli-srv-gallant-feistel",
"id": "a5850306-8d4b-47af-824d-c2d501d8507b",
"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": "60",
"hypervisor_id": "1001",
"node_id": "7",
"platform_id": "14",
"zone_id": "fr-par-1"
},
"mac_address": "de:00:00:dd:9d:55",
"maintenances": [],
"modification_date": "2025-12-17T10:27:19.426473+00:00",
"name": "cli-srv-gallant-feistel",
"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": "910a5cf4-1c35-4e7a-87d3-422bb692126c",
"state": "available",
"volume_type": "sbs_volume",
"zone": "fr-par-1"
}
},
"zone": "fr-par-1"
}
}