create cluster with empty node groups

Bug #1202194 reported by Vadim Rovachev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Invalid
Low
Nikita Konovalov

Bug Description

step 1.
   Create cluster_template without node processes.
   by example:
      POST http://<host>:<port>/v1.0/<tenant>/cluster-templates
   body:
{
    "name": "example-template",
    "plugin_name": "vanilla",
    "hadoop_version": "1.1.2",
    "cluster_configs": {},
    "node_groups": [ ]
}

In UI
   Savanna -> Cluster Templates -> Create Template -> Create -> Template Name: example-template-name -> Create

step 2.
   Create cluster with cluster_template from step 1.
   by example:
      POST http://<host>:<port>/v1.0/<tenant>/clusters
   body:
{
    "name": "example-cluster",
    "plugin_name": "vanilla",
    "hadoop_version": "1.1.2",
    "cluster_template_id" : "<template_id_from_step_1>",
   "user_keypair_id": "vrovachev",
   "default_image_id": "<image_id>"
}

In UI
   Savanna -> Launch Cluster -> Create -> Cluster Name: example-cluster-name -> Cluster Template: example-template-name -> Create

expected result(for Example):
  HTTP 400
 cluster not launch

actual result(for Example):
 HTTP 500
 cluster launch

Tags: 0.2.1
tags: added: 0.2.1
Changed in savanna:
status: New → Triaged
importance: Undecided → Low
milestone: none → 0.2.1
summary: - create cluster with empty node processes
+ create cluster with empty node groups
Changed in savanna:
assignee: nobody → Nikita Konovalov (nkonovalov)
Revision history for this message
Nikita Konovalov (nkonovalov) wrote :

Creating a Cluster Template w/o Node Groups is a valid scenario since Node Groups may be specified in a Cluster Object.
API return a validation error (implemented in blueprint expose-cluster-errors-details)

Changed in savanna:
status: Triaged → In Progress
status: In Progress → Fix Committed
Changed in savanna:
milestone: 0.2.1 → 0.2.1-rc1
Changed in savanna:
status: Fix Committed → Fix Released
status: Fix Released → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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