Comments (6)
The CloudStack provider also reads networkd lease files via a call to dns_lease_key_lookup()
.
from afterburn.
We should be now in a better position to tackle this, as at least we have a single network management stack in initramfs in both RHCOS and FCOS (NM with the internal DHCP client).
from afterburn.
For reference, NM lease files do not seem to contain the DHCP option:
cat /var/lib/NetworkManager/internal-054597c7-5830-47a8-a54c-77e054ee00aa-eth0.lease
# This is private data. Do not parse.
ADDRESS=10.1.42.5
from afterburn.
To make this ticket easier to find out, this bug currently means that on Azure we have to wait for a timeout:
[ 131.232431] afterburn[1103]: WARN Failed to get fabric address from DHCP: maximum number of retries (60) reached
[ 131.244800] afterburn[1103]: INFO using fallback address
It it gets too annoying to have this timeout, we could try to add some smarter heuristic in Afterburn in order to directly reach the Azure hardcoded IP.
from afterburn.
This is causing a 30 second boot delay in Azure on Fedora CoreOS (#652).
from afterburn.
The boot delay is caused by (at least) afterburn-hostname.service
. These days we have a NetworkManager daemon and D-Bus in the initrd, so a D-Bus query should be sufficient. Here's a sample query on a RHEL 8 instance (not tested in the initrd), based on this:
#!/usr/bin/python3
import dbus
bus = dbus.SystemBus()
nm = bus.get_object("org.freedesktop.NetworkManager", "/org/freedesktop/NetworkManager")
conn = bus.get_object("org.freedesktop.NetworkManager", nm.Get("org.freedesktop.NetworkManager", "PrimaryConnection", dbus_interface="org.freedesktop.DBus.Properties"))
dhcp = bus.get_object("org.freedesktop.NetworkManager", conn.Get("org.freedesktop.NetworkManager.Connection.Active", "Dhcp4Config", dbus_interface="org.freedesktop.DBus.Properties"))
options = dhcp.Get("org.freedesktop.NetworkManager.DHCP4Config", "Options", dbus_interface="org.freedesktop.DBus.Properties")
print(str(options["private_245"]))
Output:
a8:3f:81:10
from afterburn.
Related Issues (20)
- Release 5.0.0 HOT 1
- Release 5.1.0 HOT 1
- afterburn writes authorized keys even when it gets a 404 from openstack metadata service
- 30s delay on Azure boot: "Failed to get fabric address from DHCP" HOT 1
- Release 5.2.0 HOT 2
- systemd: excessive Requires/After can result in dependency failure HOT 2
- Test `providers::aws::mock_tests::test_aws_basic` is flaky HOT 2
- Test `providers::aws::mock_tests::test_aws_imds_versions` is flaky HOT 3
- Support IPv6 on AWS HOT 1
- Release 5.3.0 HOT 3
- afterburn-sshkeys fails if no ssh key in metadata on ibmcloud HOT 1
- Consider switching argument parsing to `clap_derive`
- Consolidate CloudStack metadata providers
- Consider enabling hostname service on subsequent boots
- Release Afterburn 5.4.0 HOT 2
- Release Afterburn 5.4.1 HOT 1
- configure user account based on azure provider specific information HOT 1
- Release Afterburn 5.4.2 HOT 7
- Afterburn reports incorrect OpenStack instance id HOT 2
- Release Afterburn 5.4.3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from afterburn.