| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
Signed-off-by: Bernhard Rosenkränzer <bero@lindev.ch>
|
|
|
|
|
|
|
|
|
|
|
|
| |
- remove redundant file reads and subcommands[1]
- add make target that renders templates[2]
- add helper script for measuring script runtime
- add make target that benchmarks generator[3]
- add make target that benchmarks ds-identify[4]
[1] cuts time in lxd from 17-20ms down to 8-13ms in lxc on my local machine
[2] example: make render-template FILE=./systemd/cloud-init-generator.tmpl
[3] usage: NUM_ITER=42 make benchmark-generator
[4] usage: NUM_ITER=42 make benchmark-ds-identify
|
|
|
|
|
|
|
|
|
|
| |
* Fix cloud-init status --wait when no datasource found
In 0de7acb1, we modified status checks to wait until we get an "enabled"
or "disabled" file from ds-identiy. ds-identify never outputs a
"disabled" file, so "status --wait" will wait indefinitely if no
datasource is found.
LP: #1966085
|
|
|
|
|
|
|
| |
Summary:
- currently we log redundant data, which at a glance looks like ds-identify runs twice
- use return code for control flow rather than strings
- group templated code and add demarcation comments around it
- explicitly define generator log file
|
| |
|
|
|
| |
openEuler Homepage: https://www.openeuler.org/en/
|
|
|
| |
https://www.cloudlinux.com/
|
| |
|
|
|
| |
Virtuozzo Linux is a distro based off of CentOS 8, similar to Alma Linux and Rocky Linux.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adds a udev script which will invoke a hotplug hook script on all net
add events. The script will write some udev arguments to a systemd FIFO
socket (to ensure we have only instance of cloud-init running at a
time), which is then read by a new service that calls a new 'cloud-init
devel hotplug-hook' command to handle the new event.
This hotplug-hook command will:
- Fetch the pickled datsource
- Verify that the hotplug event is supported/enabled
- Update the metadata for the datasource
- Ensure the hotplugged device exists within the datasource
- Apply the config change on the datasource metadata
- Bring up the new interface (or apply global network configuration)
- Save the updated metadata back to the pickle cache
Also scattered in some unrelated typing where helpful
|
|
|
|
| |
Rocky Linux is a RHEL-compatible distribution so all changes that have
been made should be trivial.
|
|
|
| |
AlmaLinux OS is RHEL-compatible so all the changes needed are trivial.
|
|
|
|
|
| |
The name `redhat' is not used but rather `rhel' to identify the distro.
Signed-off-by: Eduardo Otubo <otubo@redhat.com>
|
|
|
|
|
|
|
| |
Update the template to use libexec prefix path to ds-identify on redhat
systems.
LP: #1833264
|
|
The systemd generator used had a hard coded path for the location target
file to create. This path does not apply to all distributions.
Make the generator and template to have the path set during build time.
|