Sahara fails to deploy a cluster with upper-case letters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sahara |
Fix Released
|
Medium
|
Andrew Lazarev |
Bug Description
Sahara fails to deploy a cluster that contains upper-case letters in the associated cluster name.
When an attempt is made to start a cluster with upper-case letters, the following error occurs after a few minutes:
"
2014-03-31 12:36:50.756 15438 ERROR sahara.
"status" : 400,
"message" : "Attempted to add unknown hosts to a cluster. These hosts have not been registered with the server: my-uppercaseclu
}
2014-03-31 12:36:50.756 15438 ERROR sahara.service.api [-] Can't configure cluster 'MY-UpperCaseCL
"status" : 400,
"message" : "Attempted to add unknown hosts to a cluster. These hosts have not been registered with the server: my-uppercaseclu
})
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api Traceback (most recent call last):
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api File "/root/
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api plugin.
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api File "/root/
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api self.create_
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api File "/root/
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api cluster.
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api File "/root/
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api cluster_spec, servers, ambari_info, name)
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api File "/root/
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api cluster_spec, servers, ambari_info, name)
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api File "/root/
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api 'Failed to add host: %s' % result.text)
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api HadoopProvision
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api "status" : 400,
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api "message" : "Attempted to add unknown hosts to a cluster. These hosts have not been registered with the server: my-uppercaseclu
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api }
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api
2014-03-31 12:36:50.895 15438 INFO sahara.service.api [-] Cluster status has been changed: id=3f1423f9-
This error appears to occur when the HDP plugin is used, but may be a more general problem in Sahara.
Sahara should be modified to either:
1. Handle the validation of the cluster name prior to the attempt to provision a cluster, and present a useful error message to the user, so that the cluster startup can be re-attempted with a valid name
or
2. Sahara should automatically convert the cluster name into a lower-case name, and indicate this to the user.
Changed in sahara: | |
milestone: | next → juno-1 |
Changed in sahara: | |
status: | Confirmed → In Progress |
Changed in sahara: | |
status: | Fix Committed → Fix Released |
Changed in sahara: | |
milestone: | juno-1 → 2014.2 |
Actually this is a dupe of bug #1232075. But this one contains much better description on what is going wrong. So, closing bug #1232075 as dupe of this.