Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-29454 Registering bootc host fails to set up ssh keys
  3. SAT-29918

[DEV] Registering bootc host fails to set up ssh keys

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • None
    • Registration
    • False
    • Hide

      None

      Show
      None
    • False
    • SAT-23668 - Connect and analyze image-mode RHEL systems (m1)
    • 0
    • Phoenix - Content
    • Sprint 143

      Description of problem:

      Registering a bootc image mode host reports failure:

      #
      # 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
      # 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. 

      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

       

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

       

       

       

      DEV Tracker for https://issues.redhat.com/browse/SAT-29454

              Unassigned Unassigned
              satellite-jira-automation@redhat.com Satellite Jira-Automation
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: