Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-27182

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

XMLWordPrintable

    • Critical
    • Yes

      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:

       

              rhn-engineering-lstejska Leos Stejskal
              rhn-support-shwsingh Shweta Singh
              Gaurav Talreja Gaurav Talreja
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: