Hi sutefun, As Dan mentioned, cloud-init applies network configuration on first boot. In Bionic and later (not Xenial/Trusty) cloud-init uses an ephemeral dhclient run to get initial network information on a detected fallback network interface and then it tries to obtain and apply the network config provided by your Openstack's network_data.json.
>From your logs, it looks like the ephemeral dhclient run is falling over and >either: (a) getting invalid dhcp configuration for ens3 or (b) your metadata service is not yet up for the instance to talk to. I'm guessing because the first init-local (pre-network setup) stage failed to discover OpenStackLocal datasource type: 2019-09-30 11:14:39,422 - dhcp.py[DEBUG]: Performing a dhcp discovery on ens3 ... 2019-09-30 11:14:49,518 - DataSourceOpenStack.py[DEBUG]: Giving up on OpenStack md from ['http://169.254.169.254/openstack'] after 10 seconds cloudinit.sources.InvalidMetaDataException: No active metadata service found 2019-09-30 11:14:49,535 - __init__.py[DEBUG]: Datasource DataSourceOpenStackLocal [net,ver=None] not updated for events: New instance first boot 2019-09-30 11:14:49,536 - handlers.py[DEBUG]: finish: init-local/search-OpenStackLocal: SUCCESS: no local data found from DataSourceOpenStackLocal In the event that OpenStackLocal datasource were detected Bionic and later (not Xenial/Trusty) would set up network from your provided network_data.json which is at http://169.254.169.254/openstack/2018-08-27/network_data.json. So we need to be sure that the network config presented there is what the VM should have configured. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1841582 Title: Interface detach and attach does not work with CentOS 7 and Ubuntu 18.04 cloud images To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-images/+bug/1841582/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
