Sahara fails to deploy a cluster with upper-case letters

Bug #1300407 reported by Robert Nettleton
14
This bug affects 2 people
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.plugins.hdp.versions.version_1_3_2.versionhandler [-] Create host command failed. {
  "status" : 400,
  "message" : "Attempted to add unknown hosts to a cluster. These hosts have not been registered with the server: my-uppercasecluster-mastertemplateone-001.novalocal"
}
2014-03-31 12:36:50.756 15438 ERROR sahara.service.api [-] Can't configure cluster 'MY-UpperCaseCLUSTER' (reason: Failed to Provision Hadoop Cluster: Failed to add host: {
  "status" : 400,
  "message" : "Attempted to add unknown hosts to a cluster. These hosts have not been registered with the server: my-uppercasecluster-mastertemplateone-001.novalocal"
})
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/bob_test/savanna/sahara/service/api.py", line 208, in _provision_cluster
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api plugin.configure_cluster(cluster)
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api File "/root/bob_test/savanna/sahara/plugins/hdp/ambariplugin.py", line 240, in configure_cluster
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api self.create_cluster(cluster)
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api File "/root/bob_test/savanna/sahara/plugins/hdp/ambariplugin.py", line 62, in create_cluster
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api cluster.hadoop_version)
2014-03-31 12:36:50.756 15438 TRACE sahara.service.api File "/root/bob_test/savanna/sahara/plugins/hdp/ambariplugin.py", line 178, in _provision_cluster
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/bob_test/savanna/sahara/plugins/hdp/versions/version_1_3_2/versionhandler.py", line 566, in provision_cluster
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/bob_test/savanna/sahara/plugins/hdp/versions/version_1_3_2/versionhandler.py", line 254, in _add_hosts_and_components
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 HadoopProvisionError: Failed to Provision Hadoop Cluster: Failed to add host: {
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-uppercasecluster-mastertemplateone-001.novalocal"
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-fd38-4309-8e7a-6aef3546a22a, New status=Error"

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.

Revision history for this message
Andrew Lazarev (alazarev) wrote :

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.

Changed in sahara:
assignee: nobody → Andrew Lazarev (alazarev)
milestone: none → next
importance: Undecided → Medium
status: New → Confirmed
Changed in sahara:
milestone: next → juno-1
Changed in sahara:
status: Confirmed → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to sahara (master)

Reviewed: https://review.openstack.org/68740
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=252b2aebd619549828986de9406b37e0949f2f90
Submitter: Jenkins
Branch: master

commit 252b2aebd619549828986de9406b37e0949f2f90
Author: Andrew Lazarev <email address hidden>
Date: Fri Jan 24 16:51:53 2014 -0800

    Forced lowercase for instance names

    Closes-Bug: #1232075
    Closes-Bug: #1300407

    Change-Id: I95ea66b82cd91fba82c85b2106713d25769d7f59

Changed in sahara:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in sahara:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in sahara:
milestone: juno-1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.