Bug 1635844 - Initialization does overwrite host sshkeys
Summary: Initialization does overwrite host sshkeys
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.2.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.2.8
: ---
Assignee: Ondra Machacek
QA Contact: samuel macko
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-03 18:47 UTC by Pablo Iranzo Gómez
Modified: 2019-01-22 10:23 UTC (History)
4 users (show)

Fixed In Version: ovirt-engine-4.2.8.1
Clone Of:
Environment:
Last Closed: 2019-01-22 10:23:24 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 94718 0 master MERGED cloudinit: Fix regenerate ssh keys condition 2018-10-09 09:08:01 UTC
oVirt gerrit 95119 0 ovirt-engine-4.2 MERGED cloudinit: Fix regenerate ssh keys condition 2018-10-25 11:13:10 UTC

Description Pablo Iranzo Gómez 2018-10-03 18:47:43 UTC
Description of problem:

import ovirtsdk4.types as types

and remaining code as https://github.com/karmab/kcli/commit/ed78da542467dc5900573d43da736d6a2dc6e1d4

Does overwrite VM's .ssh/authorized_keys with just the key provided instead of appending.



Version-Release number of selected component (if applicable):


/ # pip3 list|grep ovirt
ovirt-engine-sdk-python  4.2.8     



How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:

/root/.ssh/authorized_keys gets nuked with provided contents


Expected results:

/root/.ssh/authorized_keys gets enhanced (append) with provided contents

Comment 3 samuel macko 2018-12-17 11:48:57 UTC
Verified on ovirt-engine-4.2.8-0.1.el7ev.noarch

Verified by following the reproducer.

Comment 4 Sandro Bonazzola 2019-01-22 10:23:24 UTC
This bugzilla is included in oVirt 4.2.8 release, published on January 22nd 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.2.8 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.