Skip to content

Static IPv4 addresses not being migrated to OpenStack #160

@banchoff

Description

@banchoff

Hi,
I've done some tests using static IPv4 addresses and I found that the corresponding ports in OpenStack are created correctly (same network and MAC address), but the IP address is not the same.

So, for example, if I have a VM (with VMware tools installed and working) and this network configuration:

Nic1:

  • IPv4 address: 172.16.5.55/24
  • MAC address: 00:50:56:b7:55:55
    Nic2:
  • IPv4 address: 172.16.6.66/24
  • MAC address: 00:50:56:b7:55:66

The migration process creates these files:

nics.json

[{"vlan": "whitecloud-net-5", "mac": "00:50:56:b7:55:55"}, {"vlan": "whitecloud-net-6", "mac": "00:50:56:b7:55:66"}]

network_info.json

[
    {
        "addresstype": "manual",
        "ipaddresses": [
            "172.16.5.55",
            "fe80::250:56ff:feb7:5555"
        ],
        "label": "Network adapter 1",
        "macaddress": "00:50:56:b7:55:55",
        "macaddress_dash": "00-50-56-b7-55-55",
        "portgroup_key": null,
        "portgroup_portkey": null,
        "summary": "net5"
    },
    {
        "addresstype": "manual",
        "ipaddresses": [
            "172.16.6.66",
            "fe80::250:56ff:feb7:5566"
        ],
        "label": "Network adapter 2",
        "macaddress": "00:50:56:b7:55:66",
        "macaddress_dash": "00-50-56-b7-55-66",
        "portgroup_key": null,
        "portgroup_portkey": null,
        "summary": "net6"
    }
]

The network mapping flag is in true:

used_mapped_networks: true

Is there any way to pass the IP addresses as arguments when ports are created in OpenStack?


The ports are created in the correct network with the correct MAC, but IPv4 addresses were not migrated:

Image Image Image

This is the netplan for this VM:

Image

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions