Closed jbpratt closed 2 years ago
Jira ticket CCITCARBON-454 has been created for this issue. Url : https://issues.redhat.com/browse/CCITCARBON-454
Hi @jbpratt , are you seeing that the line https://github.com/RedHatQE/teflo/blob/1d0f54f2f6f0d3810ccbca72420c3258f25a9418/teflo/provisioners/ext/bkr_client_plugin/beaker_client_plugin.py#L486
is causing the public_key at public_key = os.path.join(self.workspace, ssh_key + ".pub")
to be copied to folder "/root/.ssh/authorized_keys"
directory and overwriting if this dir already had something in it?
Hi @rujutashinde , yes that is correct, beaker machines are brought up with anaconda that writes the authorized_keys already; once teflo finishes provisioning the machine, this file is overwritten rather than appended to.
Hi @jbpratt , could you please provide me with a SDF i can test with or would be willing to test out the fix?
Hi @rujutashinde , sorry for the delay, I can try to test it out next week. Looks like the fix is accurate :+1: thanks!
https://github.com/RedHatQE/teflo/blob/1d0f54f2f6f0d3810ccbca72420c3258f25a9418/teflo/provisioners/ext/bkr_client_plugin/beaker_client_plugin.py#L486
This overrides any thing that beaker may have set up during the provision. Ideally the file would be appended to.