Uploaded image for project: 'Coopr'
  1. Coopr
  2. COOPR-753

services subsequently added to a cluster do not get returned in the node's list of services

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 0.9.10 Code Name: Mensa
    • Component/s: server
    • Labels:
      None
    • Rank:
      1|hzyq7r:

      Description

      When services are subsequently added to an existing cluster, those services do not get added to the list of services per node in the "nodes" section of the json.

      1. provision a cluster (found using singlenode clusters)
      2. add service "foo"
      3. make an api request for /cluster/[id]. you will see service foo listed in the cluster's list of services, but not in any node's listed services.

      Similarly, the getNodeProperties call behaves correctly, but the json return also doesn't reflect the new services. In the example below, service "audi-driver" was added to an existing cluster. Querying for the node with this service returns the correct node, but "audi-driver" is not shown in the node's list of services:

      $ curl -s -H 'Coopr-UserID:admin' -H 'Coopr-TenantID:superadmin' -X POST -d '{ "clusterId":"00000019", "services":["audi-driver"] }' http://localhost:55054/v2/getNodeProperties | python -mjson.tool
      {
          "31b40438-a1e2-4d1b-91e0-7c5e0dda057e": {
              "automators": [
                  "chef-solo"
              ],
              "flavor": "n1-standard-4",
              "hardwaretype": "standard-xlarge",
              "hostname": "xxx",
              "image": "centos-6-v20150226",
              "imagetype": "centos6",
              "ipaddresses": {
                  "access_v4": "x.x.x.x",
                  "bind_v4": "x.x.x.x"
              },
              "nodenum": 1000,
              "services": [
                  "hadoop-mapreduce-historyserver",
                  "hive-metastore-database",
                  "mysql-server",
                  "cdap-auto",
                  "hive-metastore",
                  "zookeeper-server",
                  "continuuity-sensu-monitoring",
                  "hadoop-yarn-resourcemanager",
                  "base",
                  "hbase-regionserver",
                  "hadoop-yarn-nodemanager",
                  "hadoop-hdfs-datanode",
                  "hadoop-hdfs-namenode",
                  "hbase-master"
              ],
              "sshuser": "root"
          }
      }
      
      

        Attachments

          Activity

            People

            • Assignee:
              nitin Nitin Motgi
              Reporter:
              derek Derek Wood
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: