Bug 1831107
| Summary: | [RHV] cloud-init with empty fields injects configurations | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Beni Pelled <bpelled> |
| Component: | cloud-init | Assignee: | Emanuele Giuseppe Esposito <eesposit> |
| Status: | CLOSED NOTABUG | QA Contact: | xiachen |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 8.2 | CC: | eesposit, huzhao, jgreguske, ribarry, xiachen, yacao |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | 8.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-06-08 11:27:36 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Beni Pelled
2020-05-04 16:18:56 UTC
I don't believe producing an empty `.ssh/authorized_keys' should be a problem. Do you think that having an empty keys file could impact on something? Regarding the `HWADDR=<MAC>', that's definitely a bug. Even though I feel this is more a testing corner case than real problem. Cloud-init shouldn't be operating with empty configuration files. Please consider attaching some logs for an easier debugging. You can get all the necessary logs with: cloud-init collect-logs Thanks! (In reply to Eduardo Otubo from comment #2) > I don't believe producing an empty `.ssh/authorized_keys' should be a > problem. Do you think that having an empty keys file could impact on > something? It affects our automation-tests (expect an empty .ssh folder) but no, I can't see an urgent issue caused by an empty keys file, We can definitely adjust our automation but it's not the issue here, IMO it should behave like any clean OS-installation with no unexpected files. > > Regarding the `HWADDR=<MAC>', that's definitely a bug. Even though I feel > this is more a testing corner case than real problem. Cloud-init shouldn't > be operating with empty configuration files. > > Please consider attaching some logs for an easier debugging. You can get all > the necessary logs with: > > cloud-init collect-logs Attached. > > Thanks! I see that even though an empty ~/.ssh/authorized_keys is not a bug, the Python code is crashing raising IOError on a logging function and that should be investigated. Also from the logs it looks like all configuration was applied correctly (IP and Mac on eth0 interface), there's no place on cloud-init that it's injecting the specific string "<MAC>" on the configuration file, but it is passing along strings being given to cloud-init. Can you double check if RHV is not responsible for this? |