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

Conf-select calls should tolerate failure on existing directory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.1
    • Component/s: ambari-server
    • Labels:
      None

      Description

      A "safety check" should be made around calling conf-select prevent successful install. Conf-select fails because even though the conf directory exists, the pig install does not (no /usr/hdp/2.3.0.0-2557/pig)

      Traceback (most recent call last):
        File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 38, in <module>
          AfterInstallHook().execute()
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 218, in execute
          method(env)
        File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 35, in hook
          link_configs(self.stroutfile)
        File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py", line 91, in link_configs
          _link_configs(k, json_version, v)
        File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py", line 156, in _link_configs
          conf_select.select("HDP", package, version)
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/conf_select.py", line 241, in select
          shell.checked_call(get_cmd("set-conf-dir", package, version), logoutput=False, quiet=False, sudo=True)
        File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner
          result = function(command, **kwargs)
        File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call
          tries=tries, try_sleep=try_sleep)
        File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper
          result = _call(command, **kwargs_copy)
        File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call
          raise Fail(err_msg)
      resource_management.core.exceptions.Fail: Execution of 'conf-select set-conf-dir --package pig --stack-version 2.3.0.0-2557 --conf-version 0' returned 1. pig not installed or incorrect package name
      

        Attachments

        1. AMBARI-12515.patch
          13 kB
          Nate Cole

          Issue Links

            Activity

              People

              • Assignee:
                ncole@hortonworks.com Nate Cole
                Reporter:
                ncole@hortonworks.com Nate Cole
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: