Project

General

Profile

Actions

Bug #38095

closed

Registering bootc host fails to set up ssh keys

Added by Ian Ballou 12 days ago. Updated 7 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Registering bootc host fails to set up ssh keys
Cloned from 16460682

Description of problem:

Registering a bootc image mode host reports failure: {code:java} #
  1. Running registration #
    Unregistering from: a-computer.example.com:443/rhsm
    System has been unregistered.
    All local data removed
    subscription-manager is already installed!
    The system has been registered with ID: df250fbd-8bd4-481e-80fc-c3b8f5a78a48
    The registered system name is: localhost.localdomain
  2. Running [localhost.localdomain] host initial configuration
    chown: changing ownership of '/root': Read-only file system
    Host [localhost.localdomain] initial configuration failed
    Successfully updated the system facts. {code}
    The chown part comes from the remote execution ssh key template.

If you disable setting up REX during registration, the registration succeeds.

How reproducible:

100%

Is this issue a regression from an earlier version:

No

Steps to Reproduce:

Register a bootc host to Foreman with REX being set up.

Actual behavior:

Error happens

chown: changing ownership of '/root': Read-only file system Host [localhost.localdomain] initial configuration failed

Expected behavior:

No error happens

Business Impact / *Additional info:*

The code that causes this is here: [https://github.com/theforeman/foreman/blob/3.13-stable/app/views/unattended/provisioning_templates/snippet/remote_execution_ssh_keys.erb#L60]

  {code:java}
[root@localhost ~]# chown -R root: ~root
chown: changing ownership of '/root': Read-only file system {code}
 

 

 

Actions

Also available in: Atom PDF