mandatory fields are not enforced in launch stack
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Invalid
|
Medium
|
Miguel Grinberg | ||
OpenStack Heat |
Fix Released
|
Medium
|
Sirushti Murugesan |
Bug Description
- go to the Create Stack screen, enter the following valid Heat template:
heat_template_
description: >
A single stack with a keypair.
parameters:
key_name:
type: string
default: heat_key3
key_save:
type: string
default: false
resources:
KeyPair:
type: OS::Nova::KeyPair
properties:
name: { get_param: key_name }
save_
outputs:
PublicKey:
value: { get_attr: [KeyPair, public_key] }
PrivateKey:
value: { get_attr: [KeyPair, private_key] }
- delete one of the fields value (key_name or/and key_save)
=> you will get a message saying "Error: Stack creation failed."
In horizon.log you will get:
2014-04-07 14:49:23,055 7116 DEBUG heatclient.
HTTP/1.1 400 Bad Request
date: Mon, 07 Apr 2014 14:49:23 GMT
content-length: 301
content-type: application/json; charset=UTF-8
{"explanation": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400, "error": {"message": "Property error : KeyPair: save_private_key \"\" is not a valid boolean", "traceback": null, "type": "StackValidatio
if any/all of the 2 fields is mandatory, this should be enforced, both with a message, and with an asterisk, right next to the field.
Changed in horizon: | |
assignee: | nobody → Cristian A Sanchez (cristian-a-sanchez) |
Changed in horizon: | |
assignee: | Cristian A Sanchez (cristian-a-sanchez) → nobody |
Changed in heat: | |
assignee: | nobody → Sirushti Murugesan (sirushtim) |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | juno-3 → 2014.2 |
What version are you using? On master, when following the prescribed steps I get a form validation error "An unknown problem occurred validating the template." This section of code was updated in i-3.