Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-27182 Host fails to create '~root/.ssh' file while provisioning
  3. SAT-27652

[QE] Host fails to create '~root/.ssh' file while provisioning

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Provisioning Templates
    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • Rocket

      Description of problem:

      Host is failing to create '~root/.ssh' from `kickstart default` template while provisioning the host.

      How reproducible:

      Always

      Is this issue a regression from an earlier version:

      Yes, It worked earlier in Satellite stream snap 68 and 6.15.3

      Steps to Reproduce:

      1. Configure a Satellite for provisioning setup, where remote_execution_ssh_user is default set as root

      2. Create a host with "remote_execution_ssh_keys" host param to add a public key to the host

      3. After host is provisioned, try running a REX job on it

      Actual behavior:
       REX job fails because after host is provisioned '~root/.ssh' is missing, no public keys are added in ~/.ssh/authorized_keys, warnings can be seen in `install.post.log` file on host,

      chmod: cannot access '/root/.ssh': No such file or directory

      {{chmod: cannot access '/root/.ssh/authorized_keys': No such file or directory }}

      {{chown: cannot access '/root/.ssh': No such file or directory }}

      /sbin/restorecon restorecon: lstat(/root/.ssh) failed: No such file or directory

      Expected behavior:
      After is provisioned successfully, REX jobs can be run, and ~root/.ssh directory exists with ~root/.ssh/authorized_keys file present

      Business Impact / Additional info:

       

      QE Tracker for https://issues.redhat.com/browse/SAT-27182

            gtalreja@redhat.com Gaurav Talreja
            satellite-jira-automation@redhat.com Satellite Jira-Automation
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: