Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-5082

[test-operator] tobiko cannot create a file under $HOME/.ssh

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • test-operator
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • ?
    • ?
    • None

      When the test-operator creates the ~/.ssh/id_ecdsa file for tobiko, the permissions are wrong:

      sh-5.1$ whoami
      tobiko
      sh-5.1$ ls -ld ~/.ssh/
      drwxr-xr-x. 2 root root 42 Feb 21 08:06 /var/lib/tobiko/.ssh/
      sh-5.1$ ls -l ~/.ssh/
      total 8
      -rw-r-----. 1 root tobiko 715 Feb 21 08:06 id_ecdsa
      -rw-r-xr-x. 1 root tobiko 252 Feb 21 08:06 id_ecdsa.pub

       

       

      Tobiko needs to create other files under that directory (more specifically, ssh keys to access to the EDPM nodes) and cannot due it due to permissions (the tests are executed by the tobiko user).

       

      It can be fixed with this workaround:

      cifmw_test_operator_tobiko_override_conf:
                      rhosp:
                        ssh_key_filename: '~/tobiko_keys/osp_ssh_key'

              lpiwowar Lukáš Piwowarski
              eolivare Eduardo Olivares Toledo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: