TypeError on None value for CommaDelimitedListParam
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Peter Razumovsky |
Bug Description
When doing a heat stack-show, heat-api crashes because the __str__ method isn't prepared for self.parsed to be None:
2015-09-28 14:49:08.975 14782 ERROR root [req-6968958a-
Traceback (most recent call last):
File "/usr/lib/
incoming.
File "/usr/lib/
return self._do_
File "/usr/lib/
result = getattr(endpoint, method)(ctxt, **new_args)
File "/usr/lib/
return func(self, ctx, *args, **kwargs)
File "/usr/lib/
return [api.format_
File "/usr/lib/
api.
File "/usr/lib/
for n, p in six.iteritems(
File "/usr/lib/
for n, p in six.iteritems(
File "/usr/lib/
return ",".join(
TypeError
I noticed this seems to happen after a stack-update call was made without a parameter that was used in a stack-create call.
Changed in heat: | |
assignee: | nobody → Rabi Mishra (rabi) |
Changed in heat: | |
assignee: | nobody → James Pic (jamespic) |
Changed in heat: | |
milestone: | none → mitaka-1 |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in heat: | |
milestone: | mitaka-2 → mitaka-3 |
Changed in heat: | |
milestone: | mitaka-3 → mitaka-rc1 |
Changed in heat: | |
assignee: | nobody → Peter Razumovsky (prazumovsky) |
I'm still trying to isolate the bug in a minimal template, the use case
described in the bug above is incorrect - my bad. If it helps I'd like to
contribute a patch with a test case and a fix, let me know.
Le lun. 28 sept. 2015 16:30, Rabi Mishra <email address hidden> a
écrit :
> ** Changed in: heat /bugs.launchpad .net/bugs/ 1500452 istParam ef92-4d27- 8e14-1b161074f2 20 ] Exception handling resource: python2. 7/site- packages/ oslo/messaging/ rpc/dispatcher. py", line python2. 7/site- packages/ oslo/messaging/ rpc/dispatcher. py", line dispatch( endpoint, method, ctxt, args) python2. 7/site- packages/ oslo/messaging/ rpc/dispatcher. py", line python2. 7/site- packages/ heat/engine/ service. py", line python2. 7/site- packages/ heat/engine/ service. py", line stack(stack) for stack in stacks] python2. 7/site- packages/ heat/engine/ api.py" , line 97, PARAMETERS: stack.parameter s.map(str) , python2. 7/site- packages/ heat/engine/ parameters. py", self.params) if filter_func(p)) python2. 7/site- packages/ heat/engine/ parameters. py", self.params) if filter_func(p)) python2. 7/site- packages/ heat/engine/ parameters. py", self.value( )) /bugs.launchpad .net/heat/ +bug/1500452/ +subscriptions
> Assignee: (unassigned) => Rabi Mishra (rabi)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> TypeError on None value for CommaDelimitedL
>
> Status in heat:
> New
>
> Bug description:
> When doing a heat stack-show, heat-api crashes because the __str__
> method isn't prepared for self.parsed to be None:
>
> 2015-09-28 14:49:08.975 14782 ERROR root
> [req-6968958a-
> Traceback (most recent call last):
>
> File
> "/usr/lib/
> 134, in _dispatch_and_reply
> incoming.message))
>
> File
> "/usr/lib/
> 177, in _dispatch
> return self._do_
>
> File
> "/usr/lib/
> 123, in _do_dispatch
> result = getattr(endpoint, method)(ctxt, **new_args)
>
> File "/usr/lib/
> 69, in wrapped
> return func(self, ctx, *args, **kwargs)
>
> File "/usr/lib/
> 469, in show_stack
> return [api.format_
>
> File "/usr/lib/
> in format_stack
> api.STACK_
>
> File "/usr/lib/
> line 482, in map
> for n, p in six.iteritems(
>
> File "/usr/lib/
> line 482, in <genexpr>
> for n, p in six.iteritems(
>
> File "/usr/lib/
> line 363, in __str__
> return ",".join(
>
> TypeError
>
> I noticed this seems to happen after a stack-update call was made
> without a parameter that was used in a stack-create call.
>
> To manage notifications about this bug go to:
> https:/
>