ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject git commit: AMBARI-3981. Services mysteriously disappear after Stack upgrade. (Artem Baranchuk via mahadev)
Date Wed, 04 Dec 2013 23:41:43 GMT
Updated Branches:
  refs/heads/branch-1.4.2 993a82f20 -> a34da3aae


AMBARI-3981. Services mysteriously disappear after Stack upgrade. (Artem Baranchuk via mahadev)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/a34da3aa
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/a34da3aa
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/a34da3aa

Branch: refs/heads/branch-1.4.2
Commit: a34da3aaea7e1d74edef6e098e5cf61ccdc8979b
Parents: 993a82f
Author: Mahadev Konar <mahadev@apache.org>
Authored: Wed Dec 4 15:41:15 2013 -0800
Committer: Mahadev Konar <mahadev@apache.org>
Committed: Wed Dec 4 15:41:37 2013 -0800

----------------------------------------------------------------------
 ambari-server/src/main/python/UpgradeHelper_HDP2.py | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a34da3aa/ambari-server/src/main/python/UpgradeHelper_HDP2.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/python/UpgradeHelper_HDP2.py b/ambari-server/src/main/python/UpgradeHelper_HDP2.py
index 43da6b8..c9b8a3b 100644
--- a/ambari-server/src/main/python/UpgradeHelper_HDP2.py
+++ b/ambari-server/src/main/python/UpgradeHelper_HDP2.py
@@ -707,6 +707,7 @@ def delete_mr(options):
       for host in value:
         response = curl(options.printonly, '-u',
                         AUTH_FORMAT.format(options.user, options.password),
+                        '-H', 'X-Requested-By: ambari',
                         '-X', 'PUT', '-d',
                         PUT_IN_MAINTENANCE,
                         COMPONENT_URL_FORMAT.format(options.hostname, options.clustername,
host, key))
@@ -720,6 +721,7 @@ def delete_mr(options):
 
   response = curl(options.printonly, '-u',
                   AUTH_FORMAT.format(options.user, options.password),
+                  '-H', 'X-Requested-By: ambari',
                   '-X', 'DELETE',
                   SERVICE_URL_FORMAT.format(options.hostname, options.clustername))
   retcode, errdata = validate_response(response, False)
@@ -746,6 +748,7 @@ def add_services(options):
   for service in service_comp.keys():
     response = curl(options.printonly, '-u',
                     AUTH_FORMAT.format(options.user, options.password),
+                    '-H', 'X-Requested-By: ambari',
                     '-X', 'POST',
                     SERVICE_URL_FORMAT.format(options.hostname, options.clustername, service))
     retcode, errdata = validate_response(response, False)
@@ -754,6 +757,7 @@ def add_services(options):
     for component in service_comp[service]:
       response = curl(options.printonly, '-u',
                       AUTH_FORMAT.format(options.user, options.password),
+                      '-H', 'X-Requested-By: ambari',
                       '-X', 'POST',
                       COMPONENT_URL_FORMAT.format(options.hostname, options.clustername,
service, component))
       retcode, errdata = validate_response(response, False)
@@ -762,6 +766,7 @@ def add_services(options):
       for host in hostmapping[new_old_host_map[component]]:
         response = curl(options.printonly, '-u',
                         AUTH_FORMAT.format(options.user, options.password),
+                        '-H', 'X-Requested-By: ambari',
                         '-X', 'POST',
                         HOST_COMPONENT_URL_FORMAT.format(options.hostname, options.clustername,
host, component))
         retcode, errdata = validate_response(response, False)
@@ -778,6 +783,7 @@ def update_config(options, properties, type):
   properties_payload = {"Clusters": {"desired_config": {"type": type, "tag": tag, "properties":
properties}}}
   response = curl(options.printonly, '-u',
                   AUTH_FORMAT.format(options.user, options.password),
+                  '-H', 'X-Requested-By: ambari',
                   '-X', 'PUT', '-d',
                   json.dumps(properties_payload),
                   URL_FORMAT.format(options.hostname, options.clustername))
@@ -990,6 +996,7 @@ def install_services(options):
   for index in [0, 1]:
     response = curl(options.printonly, '-u',
                     AUTH_FORMAT.format(options.user, options.password),
+                    '-H', 'X-Requested-By: ambari',
                     '-X', 'PUT', '-d',
                     PUT_IN_INSTALLED[index],
                     SERVICE_URL_FORMAT.format(options.hostname, options.clustername, SERVICES[index]))


Mime
View raw message