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

Component fails to install with error, "The stack packages are not defined on the command. Unable to load packages for the stack-select tool"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • None
    • None

    Description

      STR:

      • Install Ambari 3.0 build 1020
      • Install HDP 3.0
      Traceback (most recent call last):
        File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/hooks/before-INSTALL/scripts/hook.py", line 37, in <module>
          BeforeInstallHook().execute()
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 336, in execute
          self.save_component_version_to_structured_out()
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 218, in save_component_version_to_structured_out
          stack_select_package_name = stack_select.get_package_name()
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/stack_select.py", line 98, in get_package_name
          package = get_packages(PACKAGE_SCOPE_STACK_SELECT, service_name, component_name)
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/stack_select.py", line 143, in get_packages
          raise Fail("The stack packages are not defined on the command. Unable to load packages for the stack-select tool")
      resource_management.core.exceptions.Fail: The stack packages are not defined on the command. Unable to load packages for the stack-select tool
      Traceback (most recent call last):
        File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/hooks/before-INSTALL/scripts/hook.py", line 37, in <module>
          BeforeInstallHook().execute()
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 336, in execute
          self.save_component_version_to_structured_out()
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 218, in save_component_version_to_structured_out
          stack_select_package_name = stack_select.get_package_name()
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/stack_select.py", line 98, in get_package_name
          package = get_packages(PACKAGE_SCOPE_STACK_SELECT, service_name, component_name)
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/stack_select.py", line 143, in get_packages
          raise Fail("The stack packages are not defined on the command. Unable to load packages for the stack-select tool")
      resource_management.core.exceptions.Fail: The stack packages are not defined on the command. Unable to load packages for the stack-select tool
      

      Attachments

        1. AMBARI-21685.patch
          1 kB
          Alejandro Fernandez

        Activity

          People

            afernandez Alejandro Fernandez
            kramakrishnan Kishor Ramakrishnan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: