Bug 1952310 - VM cannot start up if the ssh key is added by another template
Summary: VM cannot start up if the ssh key is added by another template
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.8
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.8.0
Assignee: Matan Schatzman
QA Contact: Guohua Ouyang
Depends On:
TreeView+ depends on / blocked
Reported: 2021-04-22 03:27 UTC by Guohua Ouyang
Modified: 2021-07-27 23:02 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-07-27 23:02:36 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift console pull 8738 0 None open Bug 1952310: Added a create override options on useSecret hook 2021-04-22 08:13:39 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 23:02:54 UTC

Description Guohua Ouyang 2021-04-22 03:27:07 UTC
Description of problem:
Add ssh key in one template and create a VM, then go to another template and create a VM by using the remembered key, the VM cannot be started up. It seems a new secrets is needing to be created but not.

  Type     Reason       Age                 From                                 Message
  ----     ------       ----                ----                                 -------
  Normal   Scheduled    <unknown>                                                Successfully assigned default/virt-launcher-rhel6-colourful-quail-bpwnr to uit02-lkcsd-worker-0-zf6mz
  Warning  FailedMount  65s                 kubelet, uit02-lkcsd-worker-0-zf6mz  Unable to attach or mount volumes: unmounted volumes=[authorizedsshkeys-rhel6-colourful-quail-access-cred], unattached volumes=[hotplug-disks libvirt-runtime sockets rhel6-colourful-quail authorizedsshkeys-rhel6-colourful-quail-access-cred ephemeral-disks container-disks]: timed out waiting for the condition
  Warning  FailedMount  60s (x9 over 3m7s)  kubelet, uit02-lkcsd-worker-0-zf6mz  MountVolume.SetUp failed for volume "authorizedsshkeys-rhel6-colourful-quail-access-cred" : secret "authorizedsshkeys-rhel6-colourful-quail" not found

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

How reproducible:

Steps to Reproduce:
1. In one template, create a VM with ssh key and remember the key.
2. Go to another template, create a VM.
3. It use the previous key by default.
4. Check VM status.

Actual results:
VM cannot be started up.

Expected results:
VM can be started up.

Additional info:

Comment 4 errata-xmlrpc 2021-07-27 23:02:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), and where to find the updated
files, follow the link below.

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


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