Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-18577

Installing ambari agent on Suse fails, when zypper has questions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • trunk
    • ambari-server
    • None
    • Suse 11p3

    • Patch

    Description

      During installing the ambari-agent on hosts, the process stuck at :

      17829 pts/0    Ss+    0:00  |   \_ /bin/bash /var/lib/ambari-agent/tmp/ambari-sudo.sh python /var/lib/ambari-agent/tmp/setupAgent1476267067.py os-sles11-3-cluster-3.openstacklocal DEV os-sles11
      17855 pts/0    S+     0:00  |       \_ python /var/lib/ambari-agent/tmp/setupAgent1476267067.py os-sles11-3-cluster-3.openstacklocal DEV os-sles11-3-cluster.openstacklocal root 2.4
      18357 pts/0    S+     0:00  |           \_ bash -c zypper --no-gpg-checks -q search -s --match-exact ambari-agent | grep ambari-agent | sed -re 's/\s+/ /g' | cut -d '|' -f 4 | tr '\n' ', ' | sed -s 's/[-|
      18358 pts/0    S+     0:00  |               \_ zypper --no-gpg-checks -q search -s --match-exact ambari-agent
      18359 pts/0    S+     0:00  |               \_ grep ambari-agent
      18360 pts/0    S+     0:00  |               \_ sed -re s/\s+/ /g
      18361 pts/0    S+     0:00  |               \_ cut -d | -f 4
      18362 pts/0    S+     0:00  |               \_ tr \n , 
      18363 pts/0    S+     0:00  |               \_ sed -s s/[-|~][A-Za-z0-9]*//g
      
      
      

      Unfortunately the process hangs there forever, other zypper processes refuses to do anything. After killing the processes, it is possible to use the system again, and check what happened. It seems, that zypper has a problem with one of the repository from Suse :

      File '/repodata/repomd.xml' not found on medium 'http://download.opensuse.org/repositories/Cloud:/Tools/SLE_11_SP3/'
      
      Abort, retry, ignore? [a/r/i/?] (a):
      

      This problem can be solved, with adding the --non-interactive flag

      Attachments

        Activity

          People

            Unassigned Unassigned
            gzsombor Zsombor Gegesy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: