[UI] "create cluster template" GUI complain: Internal Server Error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sahara |
Incomplete
|
Medium
|
DennyZhang |
Bug Description
Reproduce steps:
1. Click "create cluster template" in GUI, fill in the template name
2. In "Node Groups" panel, select one "Node Group" template from the drop down menu.
3. Click "Create" to submit
4. The GUI will complain: Error: Internal Server Error
Below is the related savanna log:
,-----------
| 2013-11-09 00:51:11.921 30264 DEBUG keystoneclient.
| 2013-11-09 00:51:11.921 30264 DEBUG keystoneclient.
| 2013-11-09 00:51:11.922 30264 DEBUG savanna.utils.api [-] Rest.route.
| 2013-11-09 00:51:11.935 30264 ERROR savanna.utils.api [-] Request aborted with status code 500 and message 'Internal Server Error'
| 2013-11-09 00:51:11.936 30264 ERROR savanna.utils.api [-] Traceback (most recent call last):
| File "/opt/stack/
| return func(**kwargs)
| File "/opt/stack/
| return func(*args, **kwargs)
| File "/opt/stack/
| return u.render(
| File "/opt/stack/
| return conductor.
| File "/opt/stack/
| ret = func(*args, **kwargs)
| File "/opt/stack/
| return self._manager.
| File "/opt/stack/
| return self.db.
| File "/opt/stack/
| res = func(*args, **kwargs)
| File "/opt/stack/
| return IMPL.cluster_
| File "/opt/stack/
| for ng in node_groups:
| TypeError: 'NoneType' object is not iterable
|
| 2013-11-09 00:51:12.165 30264 DEBUG keystoneclient.
`-----------
Changed in savanna: | |
assignee: | nobody → DennyZhang (denny-6) |
status: | New → In Progress |
Changed in savanna: | |
importance: | Undecided → Medium |
milestone: | none → icehouse-1 |
summary: |
- "create cluster template" GUI complain: Internal Server Error + [Validation]"create cluster template" GUI complain: Internal Server + Error |
summary: |
- [Validation]"create cluster template" GUI complain: Internal Server - Error + [Core]"create cluster template" GUI complain: Internal Server Error |
summary: |
- [Core]"create cluster template" GUI complain: Internal Server Error + [Core] "create cluster template" GUI complain: Internal Server Error |
summary: |
- [Core] "create cluster template" GUI complain: Internal Server Error + "create cluster template" GUI complain: Internal Server Error |
no longer affects: | savanna-dashboard |
summary: |
- "create cluster template" GUI complain: Internal Server Error + [UI] "create cluster template" GUI complain: Internal Server Error |
tags: | added: dashboard |
Changed in savanna: | |
milestone: | icehouse-1 → icehouse-2 |
Changed in savanna: | |
milestone: | icehouse-2 → icehouse-3 |
This is acutally about: when users creating cluster template, they must not only select "node group template", and decide how many nodes what to launch.
Two suggestions for this bug:
1. GUI enforce this check, instad of a blind go.
2. api.py be more code fensive, instead of throw a misleading exception of "'NoneType' object is not iterable"