-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cephadm: _extract_host_info_from_*() refactor
The current implementation doesn't take into account the format is Yaml This can lead to issue when oob details are passed to host service spec. For instance, with the following host spec: ``` --- service_type: host addr: 1.2.3.4 hostname: node1 oob: username: root password: passw0rd addr: 127.0.0.1 ``` it is converted to a list like the following: ``` ['service_type: host', 'addr: 1.2.3.4', 'hostname: node1', 'oob:', 'username: root', 'password: passw0rd', 'addr: 127.0.0.1'] ``` It was (probably) assumed that the pattern `addr:` would be present only once. With the introduction of node-proxy, this isn't true anymore. Now that the cephadm binary can embed some external libraries we can leverage pyyaml. The idea is to use proper yaml format instead so it is easier to process the data. Fixes: https://tracker.ceph.com/issues/66165 Signed-off-by: Guillaume Abrioux <[email protected]>
- Loading branch information
Showing
2 changed files
with
83 additions
and
84 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