Lakshmi VS created AMBARI-12109:
-----------------------------------

             Summary: Add new host wizard failing on Slider install - 
/usr/bin/install: invalid user `storm'
                 Key: AMBARI-12109
                 URL: https://issues.apache.org/jira/browse/AMBARI-12109
             Project: Ambari
          Issue Type: Bug
          Components: ambari-web
    Affects Versions: 2.1.0
         Environment: 3-master cluster with 3 data nodes and 1 edge node.
            Reporter: Lakshmi VS


Steps to reproduce:
1. In Ambari, go to Hosts -> Actions -> 'Add new hosts'
2. Enter hostname of the new node.
3. Check "Perform manual registration on hosts and do not use SSH
4. Click "Register and Confirm -->"
5. Assign Slaves and Clients - Select DataNode, NodeManager, RegionServer, 
Flume, Client.
6. Configurations - select default configurations.
7. Review
8. Click 'Deploy-->'

After step 8, Ambari wizard fails on the below error -
{code}
stderr: 
Traceback (most recent call last):
  File 
"/var/lib/ambari-agent/cache/common-services/SLIDER/0.60.0.2.2/package/scripts/slider_client.py",
 line 72, in <module>
    SliderClient().execute()
  File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
 line 216, in execute
    method(env)
  File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", 
line 89, in thunk
    return fn(*args, **kwargs)
  File 
"/var/lib/ambari-agent/cache/common-services/SLIDER/0.60.0.2.2/package/scripts/slider_client.py",
 line 51, in install
    self.install_packages(env)
  File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
 line 364, in install_packages
    Package(name)
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", 
line 157, in __init__
    self.env.run()
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
line 152, in run
    self.run_action(resource, action)
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
line 118, in run_action
    provider_action()
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py",
 line 45, in action_install
    self.install_package(package_name, self.resource.use_repos)
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/zypper.py",
 line 69, in install_package
    shell.checked_call(cmd, sudo=True, logoutput=self.get_logoutput())
  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 '/usr/bin/zypper --quiet 
install --auto-agree-with-licenses --no-confirm 'storm_2_3_*'' returned 4. The 
following NEW packages are going to be installed:
  ranger_2_3_0_0_2450-storm-plugin storm_2_3_0_0_2450 
storm_2_3_0_0_2450-slider-client 

The following packages are not supported by their vendor:
  ranger_2_3_0_0_2450-storm-plugin storm_2_3_0_0_2450 
storm_2_3_0_0_2450-slider-client 

3 new packages to install.
Overall download size: 142.2 MiB. After the operation, additional 160.4 MiB 
will be used.
Continue? [y/n/? shows all options] (y): y
Installation of storm_2_3_0_0_2450-0.10.0.2.3.0.0-2450 failed:
(with --nodeps --force) Error: Subprocess failed. Error: RPM failed: 
/usr/bin/install: invalid user `storm'
/usr/bin/install: invalid user `storm'
error: %pre(storm_2_3_0_0_2450-0.10.0.2.3.0.0-2450.x86_64) scriptlet failed, 
exit status 1
error:   install: %pre scriptlet failed (2), skipping 
storm_2_3_0_0_2450-0.10.0.2.3.0.0-2450


Abort, retry, ignore? [a/r/i] (a): a
Problem occured during or after installation or removal of packages:
Installation aborted by user
 stdout:
2015-06-23 13:12:54,640 - Group['hadoop'] {'ignore_failures': False}
2015-06-23 13:12:54,641 - Group['users'] {'ignore_failures': False}
2015-06-23 13:12:54,641 - User['hive'] {'gid': 'hadoop', 'ignore_failures': 
False, 'groups': ['hadoop']}
2015-06-23 13:12:54,642 - User['zookeeper'] {'gid': 'hadoop', 
'ignore_failures': False, 'groups': ['hadoop']}
2015-06-23 13:12:54,642 - User['oozie'] {'gid': 'hadoop', 'ignore_failures': 
False, 'groups': ['users']}
2015-06-23 13:12:54,642 - User['ams'] {'gid': 'hadoop', 'ignore_failures': 
False, 'groups': ['hadoop']}
2015-06-23 13:12:54,643 - User['falcon'] {'gid': 'hadoop', 'ignore_failures': 
False, 'groups': ['users']}
2015-06-23 13:12:54,644 - User['tez'] {'gid': 'hadoop', 'ignore_failures': 
False, 'groups': ['users']}
2015-06-23 13:12:54,644 - User['mahout'] {'gid': 'hadoop', 'ignore_failures': 
False, 'groups': ['hadoop']}
2015-06-23 13:12:54,644 - User['ambari-qa'] {'gid': 'hadoop', 
'ignore_failures': False, 'groups': ['users']}
2015-06-23 13:12:54,645 - User['flume'] {'gid': 'hadoop', 'ignore_failures': 
False, 'groups': ['hadoop']}
2015-06-23 13:12:54,645 - User['hdfs'] {'gid': 'hadoop', 'ignore_failures': 
False, 'groups': ['hadoop']}
2015-06-23 13:12:54,646 - Modifying user hdfs
2015-06-23 13:12:55,231 - User['sqoop'] {'gid': 'hadoop', 'ignore_failures': 
False, 'groups': ['hadoop']}
2015-06-23 13:12:55,231 - User['yarn'] {'gid': 'hadoop', 'ignore_failures': 
False, 'groups': ['hadoop']}
2015-06-23 13:12:55,232 - User['mapred'] {'gid': 'hadoop', 'ignore_failures': 
False, 'groups': ['hadoop']}
2015-06-23 13:12:55,232 - User['hbase'] {'gid': 'hadoop', 'ignore_failures': 
False, 'groups': ['hadoop']}
2015-06-23 13:12:55,233 - User['hcat'] {'gid': 'hadoop', 'ignore_failures': 
False, 'groups': ['hadoop']}
2015-06-23 13:12:55,233 - File['/var/lib/ambari-agent/data/tmp/changeUid.sh'] 
{'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2015-06-23 13:12:55,235 - Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh 
ambari-qa 
/tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa']
 {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2015-06-23 13:12:55,239 - Skipping 
Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh ambari-qa 
/tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa']
 due to not_if
2015-06-23 13:12:55,240 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 
'recursive': True, 'mode': 0775, 'cd_access': 'a'}
2015-06-23 13:12:55,241 - File['/var/lib/ambari-agent/data/tmp/changeUid.sh'] 
{'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2015-06-23 13:12:55,241 - Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh 
hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] 
{'not_if': '(test $(id -u hbase) -gt 1000) || (false)'}
2015-06-23 13:12:55,246 - Skipping 
Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh hbase 
/home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] due to 
not_if
2015-06-23 13:12:55,246 - Group['hdfs'] {'ignore_failures': False}
2015-06-23 13:12:55,247 - User['hdfs'] {'ignore_failures': False, 'groups': 
['hadoop', 'hdfs', 'hdfs']}
2015-06-23 13:12:55,247 - Modifying user hdfs
2015-06-23 13:12:55,334 - Directory['/etc/hadoop'] {'mode': 0755}
2015-06-23 13:12:55,349 - 
File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': 
InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
2015-06-23 13:12:55,360 - Repository['HDP-2.3'] {'base_url': 
'http://gear1.labs.teradata.com/HDP/suse11sp3/2.x/updates/2.3.0.0', 'action': 
['create'], 'components': ['HDP', 'main'], 'repo_template': 
'repo_suse_rhel.j2', 'repo_file_name': 'HDP', 'mirror_list': None}
2015-06-23 13:12:55,368 - File['/etc/zypp/repos.d/HDP.repo'] {'content': 
Template('/usr/lib/ambari-agent/lib/resource_management/libraries/providers/../data/repo_suse_rhel.j2')}
2015-06-23 13:12:55,369 - Repository['HDP-UTILS-1.1.0.20'] {'base_url': 
'http://gear1.labs.teradata.com/HDP-UTILS-1.1.0.20/repos/suse11sp3', 'action': 
['create'], 'components': ['HDP-UTILS', 'main'], 'repo_template': 
'repo_suse_rhel.j2', 'repo_file_name': 'HDP-UTILS', 'mirror_list': None}
2015-06-23 13:12:55,372 - File['/etc/zypp/repos.d/HDP-UTILS.repo'] {'content': 
Template('/usr/lib/ambari-agent/lib/resource_management/libraries/providers/../data/repo_suse_rhel.j2')}
2015-06-23 13:12:55,373 - Package['unzip'] {}
2015-06-23 13:12:55,640 - Skipping installation of existing package unzip
2015-06-23 13:12:55,640 - Package['curl'] {}
2015-06-23 13:12:55,963 - Skipping installation of existing package curl
2015-06-23 13:12:55,963 - Package['hdp-select'] {}
2015-06-23 13:12:56,206 - Skipping installation of existing package hdp-select
2015-06-23 13:12:56,293 - Package['slider_2_3_*'] {}
2015-06-23 13:12:56,674 - Installing package slider_2_3_* ('/usr/bin/zypper 
--quiet install --auto-agree-with-licenses --no-confirm 'slider_2_3_*'')
2015-06-23 13:13:01,688 - Package['storm_2_3_*'] {}
2015-06-23 13:13:02,054 - Installing package storm_2_3_* ('/usr/bin/zypper 
--quiet install --auto-agree-with-licenses --no-confirm 'storm_2_3_*'')
{code}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to