You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by "Aled Sage (JIRA)" <ji...@apache.org> on 2017/04/27 17:15:04 UTC
[jira] [Commented] (BROOKLYN-335) brooklyn-client runtime panic on
an app with no location
[ https://issues.apache.org/jira/browse/BROOKLYN-335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15987060#comment-15987060 ]
Aled Sage commented on BROOKLYN-335:
------------------------------------
This now works for me (including with the {{br}} tool from 0.10.0).
I tested with the following app:
{noformat}
services:
- type: org.apache.brooklyn.entity.stock.BasicApplication
{noformat}
And then ran the following {{br}} commands:
{noformat}
Aleds-MBP-2:brooklyn-335 aledsage $ br deploy app.yaml
Id: | pix1w8855u
Name: | Application (pix1w8855u)
Status: | In progress
Aleds-MBP-2:brooklyn-335 aledsage $ br app
Id | Name | Status | Location
pix1w8855u | Application (pix1w8855u) | RUNNING |
j1oer63oc8 | Application (j1oer63oc8) | STARTING | x72k258kls
Aleds-MBP-2:brooklyn-335 aledsage $ br app pix1w8855u
Id: | pix1w8855u
Name: | Application (pix1w8855u)
Status: | RUNNING
ServiceUp: | true
Type: | org.apache.brooklyn.entity.stock.BasicApplication
CatalogItemId: |
{noformat}
> brooklyn-client runtime panic on an app with no location
> --------------------------------------------------------
>
> Key: BROOKLYN-335
> URL: https://issues.apache.org/jira/browse/BROOKLYN-335
> Project: Brooklyn
> Issue Type: Bug
> Reporter: Geoff Macartney
> Priority: Minor
> Fix For: 0.10.0
>
>
> It is possible (though rare) to have an application in Brooklyn with no location, e.g. if its entities specify their own locations. With such an application, the {{br}} client will correctly report the details with a {{br app}} command,
> {code}
> br app
> Id Name Status Location
> mcp7qvfh6o Test RUNNING
> {code}
> but on requesting details for the individual application there is a panic:
> {code}
> $ br app mcp7qvfh6o
> panic: runtime error: index out of range
> goroutine 1 [running]:
> panic(0x3dad60, 0xc820010080)
> /usr/local/Cellar/go/1.6/libexec/src/runtime/panic.go:464 +0x3e6
> github.com/apache/brooklyn-client/commands.(*Application).show(0xc820030068, 0x7fff5fbff8c7, 0xa)
> /Users/geoff/go/src/github.com/apache/brooklyn-client/commands/application.go:82 +0xe70
> github.com/apache/brooklyn-client/commands.(*Application).Run(0xc820030068, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
> /Users/geoff/go/src/github.com/apache/brooklyn-client/commands/application.go:61 +0x21d
> github.com/apache/brooklyn-client/command_runner.ConcreteRunner.RunCmdByName(0x78ac28, 0xc8200110d0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
> /Users/geoff/go/src/github.com/apache/brooklyn-client/command_runner/runner.go:49 +0xe7
> github.com/apache/brooklyn-client/command_runner.(*ConcreteRunner).RunCmdByName(0xc820018300, 0x464970, 0xb, 0xc820016780, 0x0, 0x0)
> <autogenerated>:1 +0xe0
> github.com/apache/brooklyn-client/app.getCommand.func1(0xc820016780)
> /Users/geoff/go/src/github.com/apache/brooklyn-client/app/app.go:72 +0x57
> github.com/apache/brooklyn-client/vendor/github.com/codegangsta/cli.Command.Run(0x464970, 0xb, 0x0, 0x0, 0xc82000b320, 0x3, 0x3, 0xc8200c2ac0, 0x14, 0x0, ...)
> /Users/geoff/go/src/github.com/apache/brooklyn-client/vendor/github.com/codegangsta/cli/command.go:174 +0x1399
> github.com/apache/brooklyn-client/vendor/github.com/codegangsta/cli.(*App).Run(0xc820016500, 0xc82000b2c0, 0x3, 0x3, 0x0, 0x0)
> /Users/geoff/go/src/github.com/apache/brooklyn-client/vendor/github.com/codegangsta/cli/app.go:187 +0x112b
> main.main()
> /Users/geoff/go/src/github.com/apache/brooklyn-client/br/brooklyn.go:60 +0x850
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)