[sahara] Failed to copy cluster template

Bug #1349807 reported by Yaroslav Lobankov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Nikita Konovalov

Bug Description

Failed to copy cluster template.

Reproduction steps:

1. Create one or a few node group templates.
2. Create cluster template via API request. Cluster template must use IDs of created node group templates and node groups described in cluster template directly. For example, request body for cluster template may be

{
    "name": "some-cluster-template",
    "description": "Some Cluster template",
    "plugin_name": "vanilla",
    "hadoop_version": "1.2.1",
    "cluster_configs": {},
    "node_groups": [
        {
            "name": "master",
            "node_group_template_id": "35c17bf0-d74b-43b4-99b7-a395a6e4b407",
            "count": 1
        },
        {
            "name": "worker",
            "flavor_id": "2",
            "node_processes": ["tasktracker", "datanode"],
            "node_configs": {},
            "count": 2
        }
    ]
}

3. Go to Sahara dashboard. Try to copy cluster template.

Expected result:
Template has been successfully copied.

Observed result:
Template has not been copied.

Error from Horizon is the following:
Error: {u'count': 2, u'name': u'worker', u'node_group_template_id': u'None'} is not valid under any of the given schemas

Tags: sahara
Changed in sahara:
assignee: nobody → Nikita Konovalov (nkonovalov)
Changed in sahara:
status: New → In Progress
Changed in sahara:
milestone: none → juno-3
Changed in sahara:
importance: Undecided → Medium
affects: sahara → horizon
Changed in horizon:
milestone: juno-3 → none
summary: - [UI] Failed to copy cluster template
+ [sahara] Failed to copy cluster template
Akihiro Motoki (amotoki)
tags: added: sahara
Changed in horizon:
milestone: none → juno-rc1
David Lyle (david-lyle)
Changed in horizon:
milestone: juno-rc1 → kilo-1
David Lyle (david-lyle)
Changed in horizon:
milestone: kilo-1 → juno-rc1
importance: Medium → High
Revision history for this message
Sergey Lukjanov (slukjanov) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/113213
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=90f8be4eb46041223f4818dcc765c94b33eabcef
Submitter: Jenkins
Branch: master

commit 90f8be4eb46041223f4818dcc765c94b33eabcef
Author: Nikita Konovalov <email address hidden>
Date: Mon Aug 11 14:04:54 2014 +0400

    Fix for Data Processing Templates copy

    The Cluster Template can now be copied even if it does not contain
    the node_group_template_id field.

    Utils refactored to use Sahara client correctly.

    Change-Id: If876cb5692feb772e5c7ca8fb529033bed9cc5a3
    Closes-Bug: #1349807

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: juno-rc1 → 2014.2
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.