Add sshd-keygen disable drop-in conf#1028
Conversation
|
Thank you for the PR! I am not an expert on these things, but when trying to do the downstream fix I got this error when I forgot to add the file to Also, another thing worth mentioning is that when I tried to pack the drop-in downstream (as you initially suggested) I just had to modify the rhel-specific |
|
@esposem Thanks for testing that out. I suspect downstreams will need to manually patch this in since they're using cloud-init releases which don't include the file yet. I haven't yet adjusted the upstream rpm build spec (we use cloud-init/package/ let me do that now. |
25e9904 to
f820ed9
Compare
|
Uhm still the same problem and same error, the RHEL rpm does not build.
So from what I understand I can pack the fix downstream only, but then there should be no upstream PR. Since we are going with the latter option, we need to make this fix work :) |
|
@raharper or @TheRealFalcon can you please test this patch on top of the current PR commit? I can't push on this PR. This works on RHEL (also tested that the file is effectively added and works), and allows me (on fedora) to generate a cloudinit RPM by doing |
|
What I see looks good to me, but @raharper has more knowledge of this area. I'd like his input on this. |
|
Sorry for not replying sooner.
Not quite. There will be an upstream patch that works for all of the distros we build from. Our upstream spec is in the repo and we build that. Downstreams typically have their own spec file and this PR may not apply directly as downstream has different build requirements than upstream does.
If you compare your cloud-init.spec file with https://github.com/canonical/cloud-init/blob/main/packages/redhat/cloud-init.spec.in are they same or do they differ? I suspect they differ. The PR as it is now does build with upstream. We build with: Upstream needs to package this fix into the cloud-init tarball that the python setup.py generates as that's the release input for building from source. |
Yes, it differs. |
|
[root@localhost ~]# systemctl status cloud-init Feb 04 15:20:21 localhost cloud-init[1909]: ci-info: ... ... cloud-init is in inactive, /etc/ssh/ssh_host_rsa_key generation is also affected. I can reproduce it. That should be a problem. |
|
@xiaoge1001 please file a bug report on launchpad if you believe there to be an issue related to this pull request. |
|
@holmanb I've reported the problem. |
Proposed Commit Message
Additional Context
Test Steps
Checklist: