yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #94734
[Bug 2084137] [NEW] Instances with a static (fixed-ip) addresses report "Additional properties are not allowed ('ipv4' was unexpected)" error with `cloud-init schema --system` command
Public bug reported:
Description
===========
Hello, this is probably a minor, non-critical bug, but it's IMO worth reporting.
If you create a new instance in a network without DHCP, using
configuration drive (cloud-config ISO-9660 drive) the network on
instance is configured properly, but `cloud-init schema --system`
command shows error "Additional properties are not allowed ('ipv4' was
unexpected)".
Steps to reproduce
==================
Create a new instance with fixed-ip in a network that has DHCP disabled.
Check this command to see if there's the error:
$ sudo cloud-init schema --system
Expected result
===============
network-config JSON shouldn't contain `ipv4: true` and `cloud-init
schema` should not show the error
Environment
===========
Openstack and Nova version: 2024.1
VM distribution: Ubuntu 24.04 (x86)
Logs & Configs
==============
$ cloud-init schema --system
Found cloud-config data types: user-data, network-config
1. user-data at /var/lib/cloud/instances/9316d897-e8ed-4be7-85e6-1a2e3064adb6/cloud-config.txt:
Valid schema user-data
2. network-config at /var/lib/cloud/instances/9316d897-e8ed-4be7-85e6-1a2e3064adb6/network-config.json:
Invalid network-config /var/lib/cloud/instances/9316d897-e8ed-4be7-85e6-1a2e3064adb6/network-config.json
Error: Cloud config schema errors: config.0.subnets.0: Additional properties are not allowed ('ipv4' was unexpected)
Error: Invalid schema: network-config
Note that (1) is not relevant, it's related to user-data we provided to
change a root password
$ cat /var/lib/cloud/instances/9316d897-e8ed-4be7-85e6-1a2e3064adb6/network-config.json
{
"config": [
{
"mac_address": "fa:16:3e:4a:28:eb",
"mtu": 1500,
"name": "ens3",
"subnets": [
{
"address": "10.15.0.110",
"ipv4": true,
"netmask": "255.255.255.0",
"routes": [
{
"gateway": "10.15.0.254",
"netmask": "0.0.0.0",
"network": "0.0.0.0"
}
],
"type": "static"
}
],
"type": "physical"
}
],
"version": 1
}
** Affects: nova
Importance: Undecided
Status: New
** Tags: cloud-init fixed-ip network-config
** Tags added: cloud-init
** Tags added: network-config
** Tags added: fixed-ip
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/2084137
Title:
Instances with a static (fixed-ip) addresses report "Additional
properties are not allowed ('ipv4' was unexpected)" error with `cloud-
init schema --system` command
Status in OpenStack Compute (nova):
New
Bug description:
Description
===========
Hello, this is probably a minor, non-critical bug, but it's IMO worth reporting.
If you create a new instance in a network without DHCP, using
configuration drive (cloud-config ISO-9660 drive) the network on
instance is configured properly, but `cloud-init schema --system`
command shows error "Additional properties are not allowed ('ipv4' was
unexpected)".
Steps to reproduce
==================
Create a new instance with fixed-ip in a network that has DHCP disabled.
Check this command to see if there's the error:
$ sudo cloud-init schema --system
Expected result
===============
network-config JSON shouldn't contain `ipv4: true` and `cloud-init
schema` should not show the error
Environment
===========
Openstack and Nova version: 2024.1
VM distribution: Ubuntu 24.04 (x86)
Logs & Configs
==============
$ cloud-init schema --system
Found cloud-config data types: user-data, network-config
1. user-data at /var/lib/cloud/instances/9316d897-e8ed-4be7-85e6-1a2e3064adb6/cloud-config.txt:
Valid schema user-data
2. network-config at /var/lib/cloud/instances/9316d897-e8ed-4be7-85e6-1a2e3064adb6/network-config.json:
Invalid network-config /var/lib/cloud/instances/9316d897-e8ed-4be7-85e6-1a2e3064adb6/network-config.json
Error: Cloud config schema errors: config.0.subnets.0: Additional properties are not allowed ('ipv4' was unexpected)
Error: Invalid schema: network-config
Note that (1) is not relevant, it's related to user-data we provided
to change a root password
$ cat /var/lib/cloud/instances/9316d897-e8ed-4be7-85e6-1a2e3064adb6/network-config.json
{
"config": [
{
"mac_address": "fa:16:3e:4a:28:eb",
"mtu": 1500,
"name": "ens3",
"subnets": [
{
"address": "10.15.0.110",
"ipv4": true,
"netmask": "255.255.255.0",
"routes": [
{
"gateway": "10.15.0.254",
"netmask": "0.0.0.0",
"network": "0.0.0.0"
}
],
"type": "static"
}
],
"type": "physical"
}
],
"version": 1
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2084137/+subscriptions