Traceback instead of error message when stack_name's format is wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Undecided
|
Peter Razumovsky | ||
Juno |
Fix Released
|
Undecided
|
Sergey Kraynev |
Bug Description
1. $ heat stack-create 1test -f templates/stub.yaml
ERROR: Invalid stack name 1stub must contain only alphanumeric or "_-." characters, must start with alpha
Traceback (most recent call last):
File "/usr/local/
incoming.
File "/usr/local/
return self._do_
File "/usr/local/
result = getattr(endpoint, method)(ctxt, **new_args)
File "/usr/local/
return f(*args, **kwargs)
File "/opt/stack/
return func(self, ctx, *args, **kwargs)
File "/opt/stack/
nested_depth)
File "/opt/stack/
**common_
File "/opt/stack/
) % stack_name)
ValueError: Invalid stack name 1stub must contain only alphanumeric or "_-." characters, must start with alpha
This is wrong, I think response should looks like:
ERROR: Invalid stack name 1test must contain only alphanumeric or "_-." characters, must start with alpha
The same situation with resources. If resource names like "Res/ource", we get traceback instead of error message.
Changed in heat: | |
assignee: | nobody → Razumovsky Peter (prazumovsky) |
description: | updated |
Changed in heat: | |
milestone: | none → kilo-1 |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | kilo-1 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/137784
Review: https:/