Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AGENT-227: Add host configuration support to ephemeral installer clie…
…nt (#4051) * AGENT-227: Add host configuration support to ephemeral installer client (#4014) * Ephemeral installer: refactor client command In future we'll want to do different things with this, not just register the Cluster and InfraEnv. * Ephemeral installer: Split environment options for subcommands * Add subcommands to ephemeral installer client Change the command to register the Cluster and InfraEnv from: /agent-based-installer-register-cluster-and-infraenv to: /usr/local/bin/agent-installer-client register This allows us to add further subcommands to the same binary in future. A symlink is provided for backward compatibility with the existing agent-based installer ISOs. When invoked using the old name, the command will retain the existing behaviour. This backward compatibility can be removed once the agent-based installer is using the subcommand syntax. * Implement host configuration framework for ephemeral installer * Create library func to evaluate root device hints * Set root device in ephemeral installer client Read root device hints from (by default) /etc/assisted/hostconfig/*/root-device-hints.yaml and use them to select an install disk for each host and configure it through the assisted API. * Add role configuration to ephemeral installer client Read role files from (by default) /etc/assisted/hostconfig/*/role and use them to set the role for each host through the assisted API. * Record failures and log more useful information on the cause (cherry picked from commit eba9079) * AGENT-227: Don't exit when inventory not available (#4030) Before an agent's inventory has been discovered, we cannot match it to any host configuration (which would require knowing the MAC addresses). Therefore, treat it as equivalent to the host not having shown up yet. Previously we exited with an error caused by trying to Unmarshal from zero-length data, which results in the install failing when the configuration command runs before inventory is available. (cherry picked from commit eb6c54e)
- Loading branch information
Showing
7 changed files
with
572 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.