error occures when stack-create with template that includes 2-byte charset
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Invalid
|
Medium
|
Qiming Teng |
Bug Description
[issue]
When 2-byte charset is included in template,
error occurs with stack-create, stack-list, stack-show, etc.
[template]
devstack@
{
"AWSTemplateF
"Parameters": {
"net_name" : {
"Type" : "String"
}
},
"Resources" : {
"Net1": {
"Type": "OS::Neutron::Net",
"Properties": {
"name": {"Ref": "net_name"}
}
}
}
}
[represent]
# "テスト" just means "test".
devstack@
ERROR: Remote error: UnicodeEncodeError 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
devstack@
ERROR: Remote error: UnicodeEncodeError 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
devstack@
ERROR: Remote error: UnicodeEncodeError 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
devstack@
+------
| resource_name | resource_type | resource_status | updated_time |
+------
| Net1 | OS::Neutron::Net | CREATE_COMPLETE | 2014-01-
+------
devstack@
ERROR: Remote error: UnicodeEncodeError 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
devstack@
+------
| id | name | subnets |
+------
| 3eadab0f-
+------
(Delete the stack to rescue this situation.)
devstack@
ERROR: Remote error: UnicodeEncodeError 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
devstack@
devstack@
[similar bug report]
It cares 2-byte charset of stack and resource name.
https:/
Heat must also consider 2-byte charset of templates.
Changed in heat: | |
importance: | Undecided → Medium |
assignee: | Xurong Yang (idopra) → nobody |
Changed in heat: | |
assignee: | nobody → Qiming Teng (tengqim) |
Changed in heat: | |
status: | Incomplete → Invalid |
I can reproduce this bug