[jira] [Commented] (AMBARI-17792) EU fails because package conditions not evaluated correctly during install_packages

2016-07-19 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/AMBARI-17792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15385109#comment-15385109
 ] 

Hudson commented on AMBARI-17792:
-

FAILURE: Integrated in Ambari-trunk-Commit #5343 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/5343/])
AMBARI-17792: EU fails because package conditions not evaluated (jluniya: 
[http://git-wip-us.apache.org/repos/asf?p=ambari.git=commit=6ae30ad63893ed133819ee4907998fd27a62b71b])
* 
ambari-common/src/main/python/resource_management/libraries/functions/package_conditions.py


> EU fails because package conditions not evaluated correctly during 
> install_packages 
> 
>
> Key: AMBARI-17792
> URL: https://issues.apache.org/jira/browse/AMBARI-17792
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-agent
>Affects Versions: 2.4.0
>Reporter: Jayush Luniya
>Assignee: Jayush Luniya
>Priority: Blocker
> Fix For: 2.4.0
>
> Attachments: AMBARI-17792.patch
>
>
> *Steps*
> # Deploy HDP-2.4.2 cluster with Ambari 2.4.0.0 (secure,Ranger enabled, 
> customized service users enabled)
> # Start EU to 2.5.0.0-1000
> Observed error at Restart Ranger Admin
> {code}
> Traceback (most recent call last):
>   File 
> "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py",
>  line 199, in 
> RangerAdmin().execute()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 280, in execute
> method(env)
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 709, in restart
> self.start(env, upgrade_type=upgrade_type)
>   File 
> "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py",
>  line 90, in start
> solr_cloud_util.setup_solr_client(params.config, user = params.solr_user, 
> custom_log4j = params.custom_log4j)
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/solr_cloud_util.py",
>  line 208, in setup_solr_client
> content=StaticFile(solrCliFilename)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", 
> line 155, in __init__
> self.env.run()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
> line 160, in run
> self.run_action(resource, action)
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
> line 124, in run_action
> provider_action()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
>  line 123, in action_create
> content = self._get_content()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
>  line 160, in _get_content
> return content()
>   File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", 
> line 51, in __call__
> return self.get_content()
>   File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", 
> line 75, in get_content
> raise Fail("{0} Source file {1} is not found".format(repr(self), path))
> resource_management.core.exceptions.Fail: 
> StaticFile('/usr/lib/ambari-logsearch-solr-client/solrCloudCli.sh') Source 
> file /usr/lib/ambari-logsearch-solr-client/solrCloudCli.sh is not found
> {code}
> *Root Cause:*
> {code}
> def should_install_logsearch_solr_client():
>   config = Script.get_config()
>   return 'role' in config and (config['role'] == "LOGSEARCH_SOLR_CLIENT" or 
> config['role'] == 'ATLAS_SERVER' or config['role'] == 'RANGER_ADMIN')
> {code}
> This condition wouldn't work for install_packages for an upgrade as the 
> "role" would be "install_packages"
> {code}
> "public_hostname": "nat-u14-srus-ambarieu-newamb-242-2-5.openstacklocal",
> "commandId": "20-1",
> "hostname": "nat-u14-srus-ambarieu-newamb-242-2-5.openstacklocal",
> "kerberosCommandParams": [],
> "serviceName": "null",
> "role": "install_packages",
> "forceRefreshConfigTagsBeforeExecution": [],
> "requestId": 20,
> "agentConfigParams": {
> "agent": {
> "parallel_execution": 0
> }
> },
> "clusterName": "cl1",
> "commandType": "EXECUTION_COMMAND",
> {code}



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


[jira] [Commented] (AMBARI-17792) EU fails because package conditions not evaluated correctly during install_packages

2016-07-19 Thread Jayush Luniya (JIRA)

[ 
https://issues.apache.org/jira/browse/AMBARI-17792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15384857#comment-15384857
 ] 

Jayush Luniya commented on AMBARI-17792:


Branch-2.4
commit b855963dab84813f2cc2c79b4693e3449b7a5254
Author: Jayush Luniya 
Date:   Tue Jul 19 14:03:06 2016 -0700

AMBARI-17792: EU fails because package conditions not evaluated correctly 
during install_packages (jluniya)

> EU fails because package conditions not evaluated correctly during 
> install_packages 
> 
>
> Key: AMBARI-17792
> URL: https://issues.apache.org/jira/browse/AMBARI-17792
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-agent
>Affects Versions: 2.4.0
>Reporter: Jayush Luniya
>Assignee: Jayush Luniya
>Priority: Blocker
> Fix For: 2.4.0
>
> Attachments: AMBARI-17792.patch
>
>
> *Steps*
> # Deploy HDP-2.4.2 cluster with Ambari 2.4.0.0 (secure,Ranger enabled, 
> customized service users enabled)
> # Start EU to 2.5.0.0-1000
> Observed error at Restart Ranger Admin
> {code}
> Traceback (most recent call last):
>   File 
> "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py",
>  line 199, in 
> RangerAdmin().execute()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 280, in execute
> method(env)
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 709, in restart
> self.start(env, upgrade_type=upgrade_type)
>   File 
> "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py",
>  line 90, in start
> solr_cloud_util.setup_solr_client(params.config, user = params.solr_user, 
> custom_log4j = params.custom_log4j)
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/solr_cloud_util.py",
>  line 208, in setup_solr_client
> content=StaticFile(solrCliFilename)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", 
> line 155, in __init__
> self.env.run()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
> line 160, in run
> self.run_action(resource, action)
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
> line 124, in run_action
> provider_action()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
>  line 123, in action_create
> content = self._get_content()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
>  line 160, in _get_content
> return content()
>   File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", 
> line 51, in __call__
> return self.get_content()
>   File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", 
> line 75, in get_content
> raise Fail("{0} Source file {1} is not found".format(repr(self), path))
> resource_management.core.exceptions.Fail: 
> StaticFile('/usr/lib/ambari-logsearch-solr-client/solrCloudCli.sh') Source 
> file /usr/lib/ambari-logsearch-solr-client/solrCloudCli.sh is not found
> {code}
> *Root Cause:*
> {code}
> def should_install_logsearch_solr_client():
>   config = Script.get_config()
>   return 'role' in config and (config['role'] == "LOGSEARCH_SOLR_CLIENT" or 
> config['role'] == 'ATLAS_SERVER' or config['role'] == 'RANGER_ADMIN')
> {code}
> This condition wouldn't work for install_packages for an upgrade as the 
> "role" would be "install_packages"
> {code}
> "public_hostname": "nat-u14-srus-ambarieu-newamb-242-2-5.openstacklocal",
> "commandId": "20-1",
> "hostname": "nat-u14-srus-ambarieu-newamb-242-2-5.openstacklocal",
> "kerberosCommandParams": [],
> "serviceName": "null",
> "role": "install_packages",
> "forceRefreshConfigTagsBeforeExecution": [],
> "requestId": 20,
> "agentConfigParams": {
> "agent": {
> "parallel_execution": 0
> }
> },
> "clusterName": "cl1",
> "commandType": "EXECUTION_COMMAND",
> {code}



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


[jira] [Commented] (AMBARI-17792) EU fails because package conditions not evaluated correctly during install_packages

2016-07-19 Thread Jayush Luniya (JIRA)

[ 
https://issues.apache.org/jira/browse/AMBARI-17792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15384855#comment-15384855
 ] 

Jayush Luniya commented on AMBARI-17792:


Trunk
commit 6ae30ad63893ed133819ee4907998fd27a62b71b
Author: Jayush Luniya 
Date:   Tue Jul 19 14:03:06 2016 -0700

AMBARI-17792: EU fails because package conditions not evaluated correctly 
during install_packages (jluniya)

> EU fails because package conditions not evaluated correctly during 
> install_packages 
> 
>
> Key: AMBARI-17792
> URL: https://issues.apache.org/jira/browse/AMBARI-17792
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-agent
>Affects Versions: 2.4.0
>Reporter: Jayush Luniya
>Assignee: Jayush Luniya
>Priority: Blocker
> Fix For: 2.4.0
>
> Attachments: AMBARI-17792.patch
>
>
> *Steps*
> # Deploy HDP-2.4.2 cluster with Ambari 2.4.0.0 (secure,Ranger enabled, 
> customized service users enabled)
> # Start EU to 2.5.0.0-1000
> Observed error at Restart Ranger Admin
> {code}
> Traceback (most recent call last):
>   File 
> "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py",
>  line 199, in 
> RangerAdmin().execute()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 280, in execute
> method(env)
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 709, in restart
> self.start(env, upgrade_type=upgrade_type)
>   File 
> "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py",
>  line 90, in start
> solr_cloud_util.setup_solr_client(params.config, user = params.solr_user, 
> custom_log4j = params.custom_log4j)
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/solr_cloud_util.py",
>  line 208, in setup_solr_client
> content=StaticFile(solrCliFilename)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", 
> line 155, in __init__
> self.env.run()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
> line 160, in run
> self.run_action(resource, action)
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
> line 124, in run_action
> provider_action()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
>  line 123, in action_create
> content = self._get_content()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
>  line 160, in _get_content
> return content()
>   File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", 
> line 51, in __call__
> return self.get_content()
>   File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", 
> line 75, in get_content
> raise Fail("{0} Source file {1} is not found".format(repr(self), path))
> resource_management.core.exceptions.Fail: 
> StaticFile('/usr/lib/ambari-logsearch-solr-client/solrCloudCli.sh') Source 
> file /usr/lib/ambari-logsearch-solr-client/solrCloudCli.sh is not found
> {code}
> *Root Cause:*
> {code}
> def should_install_logsearch_solr_client():
>   config = Script.get_config()
>   return 'role' in config and (config['role'] == "LOGSEARCH_SOLR_CLIENT" or 
> config['role'] == 'ATLAS_SERVER' or config['role'] == 'RANGER_ADMIN')
> {code}
> This condition wouldn't work for install_packages for an upgrade as the 
> "role" would be "install_packages"
> {code}
> "public_hostname": "nat-u14-srus-ambarieu-newamb-242-2-5.openstacklocal",
> "commandId": "20-1",
> "hostname": "nat-u14-srus-ambarieu-newamb-242-2-5.openstacklocal",
> "kerberosCommandParams": [],
> "serviceName": "null",
> "role": "install_packages",
> "forceRefreshConfigTagsBeforeExecution": [],
> "requestId": 20,
> "agentConfigParams": {
> "agent": {
> "parallel_execution": 0
> }
> },
> "clusterName": "cl1",
> "commandType": "EXECUTION_COMMAND",
> {code}



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


[jira] [Commented] (AMBARI-17792) EU fails because package conditions not evaluated correctly during install_packages

2016-07-19 Thread Jayush Luniya (JIRA)

[ 
https://issues.apache.org/jira/browse/AMBARI-17792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15384469#comment-15384469
 ] 

Jayush Luniya commented on AMBARI-17792:


*Fix:*
The logic should be updated to to check if the role exists in 
config.localComponents if role == "install_packages".



> EU fails because package conditions not evaluated correctly during 
> install_packages 
> 
>
> Key: AMBARI-17792
> URL: https://issues.apache.org/jira/browse/AMBARI-17792
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-agent
>Affects Versions: 2.4.0
>Reporter: Jayush Luniya
>Assignee: Jayush Luniya
>Priority: Blocker
> Fix For: 2.4.0
>
>
> *Steps*
> # Deploy HDP-2.4.2 cluster with Ambari 2.4.0.0 (secure,Ranger enabled, 
> customized service users enabled)
> # Start EU to 2.5.0.0-1000
> Observed error at Restart Ranger Admin
> {code}
> Traceback (most recent call last):
>   File 
> "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py",
>  line 199, in 
> RangerAdmin().execute()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 280, in execute
> method(env)
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 709, in restart
> self.start(env, upgrade_type=upgrade_type)
>   File 
> "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py",
>  line 90, in start
> solr_cloud_util.setup_solr_client(params.config, user = params.solr_user, 
> custom_log4j = params.custom_log4j)
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/solr_cloud_util.py",
>  line 208, in setup_solr_client
> content=StaticFile(solrCliFilename)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", 
> line 155, in __init__
> self.env.run()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
> line 160, in run
> self.run_action(resource, action)
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
> line 124, in run_action
> provider_action()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
>  line 123, in action_create
> content = self._get_content()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
>  line 160, in _get_content
> return content()
>   File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", 
> line 51, in __call__
> return self.get_content()
>   File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", 
> line 75, in get_content
> raise Fail("{0} Source file {1} is not found".format(repr(self), path))
> resource_management.core.exceptions.Fail: 
> StaticFile('/usr/lib/ambari-logsearch-solr-client/solrCloudCli.sh') Source 
> file /usr/lib/ambari-logsearch-solr-client/solrCloudCli.sh is not found
> {code}
> *Root Cause:*
> {code}
> def should_install_logsearch_solr_client():
>   config = Script.get_config()
>   return 'role' in config and (config['role'] == "LOGSEARCH_SOLR_CLIENT" or 
> config['role'] == 'ATLAS_SERVER' or config['role'] == 'RANGER_ADMIN')
> {code}
> This condition wouldn't work for install_packages for an upgrade as the 
> "role" would be "install_packages"
> {code}
> "public_hostname": "nat-u14-srus-ambarieu-newamb-242-2-5.openstacklocal",
> "commandId": "20-1",
> "hostname": "nat-u14-srus-ambarieu-newamb-242-2-5.openstacklocal",
> "kerberosCommandParams": [],
> "serviceName": "null",
> "role": "install_packages",
> "forceRefreshConfigTagsBeforeExecution": [],
> "requestId": 20,
> "agentConfigParams": {
> "agent": {
> "parallel_execution": 0
> }
> },
> "clusterName": "cl1",
> "commandType": "EXECUTION_COMMAND",
> {code}



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