You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Ronelle Landy (JIRA)" <ji...@apache.org> on 2012/06/13 18:14:42 UTC
[jira] [Created] (DTACLOUD-235) GET -X /api/metrics?format=xml (or
json) gives 'undefined local variable or method' error
Ronelle Landy created DTACLOUD-235:
--------------------------------------
Summary: GET -X /api/metrics?format=xml (or json) gives 'undefined local variable or method' error
Key: DTACLOUD-235
URL: https://issues.apache.org/jira/browse/DTACLOUD-235
Project: DeltaCloud
Issue Type: Bug
Components: Server
Environment: deltacloud commit version: 138adab3396ea95a41c8320058dd78bbac446b08
Reporter: Ronelle Landy
>> curl -X GET --user "un:pw" "http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=xml"
(long trace goes off console) end of trace below:
...........
/usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `send'
/usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
/usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
/usr/share/deltacloud-core/bin/deltacloudd:239
/usr/bin/deltacloudd:5:in `load'
/usr/bin/deltacloudd:5]]></backtrace>
<request>
<param name='format'>xml</param>
<param name='splat'></param>
<param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7afc7198></param>
</request>
</error>
Using format=json:
XML Parsing Error: not well-formed
Location: http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=json
Line Number 547, Column 84: <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7af7c2d8></param>
-----------------------------------------------------------------------------------^
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (DTACLOUD-235) GET -X /api/metrics?format=xml (or
json) gives 'undefined local variable or method' error
Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marios Andreou reassigned DTACLOUD-235:
---------------------------------------
Assignee: Marios Andreou (was: Michal Fojtik)
> GET -X /api/metrics?format=xml (or json) gives 'undefined local variable or method' error
> -----------------------------------------------------------------------------------------
>
> Key: DTACLOUD-235
> URL: https://issues.apache.org/jira/browse/DTACLOUD-235
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: deltacloud commit version: 138adab3396ea95a41c8320058dd78bbac446b08
> Reporter: Ronelle Landy
> Assignee: Marios Andreou
>
> >> curl -X GET --user "un:pw" "http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=xml"
> (long trace goes off console) end of trace below:
> ...........
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `send'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
> /usr/share/deltacloud-core/bin/deltacloudd:239
> /usr/bin/deltacloudd:5:in `load'
> /usr/bin/deltacloudd:5]]></backtrace>
> <request>
> <param name='format'>xml</param>
> <param name='splat'></param>
> <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7afc7198></param>
> </request>
> </error>
> Using format=json:
> XML Parsing Error: not well-formed
> Location: http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=json
> Line Number 547, Column 84: <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7af7c2d8></param>
> -----------------------------------------------------------------------------------^
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (DTACLOUD-235) GET -X /api/metrics?format=xml (or
json) gives 'undefined local variable or method' error
Posted by "Ronelle Landy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ronelle Landy closed DTACLOUD-235.
----------------------------------
Assignee: Marios Andreou (was: Ronelle Landy)
Closing this issue as fixed with the attached patch - please push to master. Test output is copied below:
[rlandy@localhost automatjon]$ curl -X GET --user "un:pw" "http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics/i-8258dafb?format=xml"
<?xml version='1.0' encoding='utf-8' ?>
<metric href='http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics/i-8258dafb' id='i-8258dafb'>
<entity>i-8258dafb</entity>
<properties>
<DiskReadBytes></DiskReadBytes>
</properties>
</metric>
> GET -X /api/metrics?format=xml (or json) gives 'undefined local variable or method' error
> -----------------------------------------------------------------------------------------
>
> Key: DTACLOUD-235
> URL: https://issues.apache.org/jira/browse/DTACLOUD-235
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: deltacloud commit version: 138adab3396ea95a41c8320058dd78bbac446b08
> Reporter: Ronelle Landy
> Assignee: Marios Andreou
> Attachments: 0001-Adds-XML-for-metrics-resolves-JIRA-DTACLOUD_235.patch
>
>
> >> curl -X GET --user "un:pw" "http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=xml"
> (long trace goes off console) end of trace below:
> ...........
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `send'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
> /usr/share/deltacloud-core/bin/deltacloudd:239
> /usr/bin/deltacloudd:5:in `load'
> /usr/bin/deltacloudd:5]]></backtrace>
> <request>
> <param name='format'>xml</param>
> <param name='splat'></param>
> <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7afc7198></param>
> </request>
> </error>
> Using format=json:
> XML Parsing Error: not well-formed
> Location: http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=json
> Line Number 547, Column 84: <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7af7c2d8></param>
> -----------------------------------------------------------------------------------^
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (DTACLOUD-235) GET -X /api/metrics?format=xml (or
json) gives 'undefined local variable or method' error
Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marios Andreou resolved DTACLOUD-235.
-------------------------------------
Resolution: Fixed
> GET -X /api/metrics?format=xml (or json) gives 'undefined local variable or method' error
> -----------------------------------------------------------------------------------------
>
> Key: DTACLOUD-235
> URL: https://issues.apache.org/jira/browse/DTACLOUD-235
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: deltacloud commit version: 138adab3396ea95a41c8320058dd78bbac446b08
> Reporter: Ronelle Landy
> Assignee: Ronelle Landy
> Attachments: 0001-Adds-XML-for-metrics-resolves-JIRA-DTACLOUD_235.patch
>
>
> >> curl -X GET --user "un:pw" "http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=xml"
> (long trace goes off console) end of trace below:
> ...........
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `send'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
> /usr/share/deltacloud-core/bin/deltacloudd:239
> /usr/bin/deltacloudd:5:in `load'
> /usr/bin/deltacloudd:5]]></backtrace>
> <request>
> <param name='format'>xml</param>
> <param name='splat'></param>
> <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7afc7198></param>
> </request>
> </error>
> Using format=json:
> XML Parsing Error: not well-formed
> Location: http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=json
> Line Number 547, Column 84: <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7af7c2d8></param>
> -----------------------------------------------------------------------------------^
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DTACLOUD-235) GET -X /api/metrics?format=xml
(or json) gives 'undefined local variable or method' error
Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294948#comment-13294948 ]
Marios Andreou commented on DTACLOUD-235:
-----------------------------------------
thanks - pushed to master, commit hash: 64148f35c6d53f6a8f69ccaa59c331bd8aa046e0
> GET -X /api/metrics?format=xml (or json) gives 'undefined local variable or method' error
> -----------------------------------------------------------------------------------------
>
> Key: DTACLOUD-235
> URL: https://issues.apache.org/jira/browse/DTACLOUD-235
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: deltacloud commit version: 138adab3396ea95a41c8320058dd78bbac446b08
> Reporter: Ronelle Landy
> Assignee: Marios Andreou
> Attachments: 0001-Adds-XML-for-metrics-resolves-JIRA-DTACLOUD_235.patch
>
>
> >> curl -X GET --user "un:pw" "http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=xml"
> (long trace goes off console) end of trace below:
> ...........
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `send'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
> /usr/share/deltacloud-core/bin/deltacloudd:239
> /usr/bin/deltacloudd:5:in `load'
> /usr/bin/deltacloudd:5]]></backtrace>
> <request>
> <param name='format'>xml</param>
> <param name='splat'></param>
> <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7afc7198></param>
> </request>
> </error>
> Using format=json:
> XML Parsing Error: not well-formed
> Location: http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=json
> Line Number 547, Column 84: <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7af7c2d8></param>
> -----------------------------------------------------------------------------------^
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DTACLOUD-235) GET -X /api/metrics?format=xml (or
json) gives 'undefined local variable or method' error
Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marios Andreou updated DTACLOUD-235:
------------------------------------
Attachment: 0001-Adds-XML-for-metrics-resolves-JIRA-DTACLOUD_235.patch
attached patch should resolve this - please test
> GET -X /api/metrics?format=xml (or json) gives 'undefined local variable or method' error
> -----------------------------------------------------------------------------------------
>
> Key: DTACLOUD-235
> URL: https://issues.apache.org/jira/browse/DTACLOUD-235
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: deltacloud commit version: 138adab3396ea95a41c8320058dd78bbac446b08
> Reporter: Ronelle Landy
> Assignee: Marios Andreou
> Attachments: 0001-Adds-XML-for-metrics-resolves-JIRA-DTACLOUD_235.patch
>
>
> >> curl -X GET --user "un:pw" "http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=xml"
> (long trace goes off console) end of trace below:
> ...........
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `send'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
> /usr/share/deltacloud-core/bin/deltacloudd:239
> /usr/bin/deltacloudd:5:in `load'
> /usr/bin/deltacloudd:5]]></backtrace>
> <request>
> <param name='format'>xml</param>
> <param name='splat'></param>
> <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7afc7198></param>
> </request>
> </error>
> Using format=json:
> XML Parsing Error: not well-formed
> Location: http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=json
> Line Number 547, Column 84: <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7af7c2d8></param>
> -----------------------------------------------------------------------------------^
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (DTACLOUD-235) GET -X /api/metrics?format=xml (or
json) gives 'undefined local variable or method' error
Posted by "Ronelle Landy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ronelle Landy reassigned DTACLOUD-235:
--------------------------------------
Assignee: Michal Fojtik
> GET -X /api/metrics?format=xml (or json) gives 'undefined local variable or method' error
> -----------------------------------------------------------------------------------------
>
> Key: DTACLOUD-235
> URL: https://issues.apache.org/jira/browse/DTACLOUD-235
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: deltacloud commit version: 138adab3396ea95a41c8320058dd78bbac446b08
> Reporter: Ronelle Landy
> Assignee: Michal Fojtik
>
> >> curl -X GET --user "un:pw" "http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=xml"
> (long trace goes off console) end of trace below:
> ...........
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `send'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
> /usr/share/deltacloud-core/bin/deltacloudd:239
> /usr/bin/deltacloudd:5:in `load'
> /usr/bin/deltacloudd:5]]></backtrace>
> <request>
> <param name='format'>xml</param>
> <param name='splat'></param>
> <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7afc7198></param>
> </request>
> </error>
> Using format=json:
> XML Parsing Error: not well-formed
> Location: http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=json
> Line Number 547, Column 84: <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7af7c2d8></param>
> -----------------------------------------------------------------------------------^
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (DTACLOUD-235) GET -X /api/metrics?format=xml (or
json) gives 'undefined local variable or method' error
Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marios Andreou reassigned DTACLOUD-235:
---------------------------------------
Assignee: Ronelle Landy (was: Marios Andreou)
> GET -X /api/metrics?format=xml (or json) gives 'undefined local variable or method' error
> -----------------------------------------------------------------------------------------
>
> Key: DTACLOUD-235
> URL: https://issues.apache.org/jira/browse/DTACLOUD-235
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: deltacloud commit version: 138adab3396ea95a41c8320058dd78bbac446b08
> Reporter: Ronelle Landy
> Assignee: Ronelle Landy
> Attachments: 0001-Adds-XML-for-metrics-resolves-JIRA-DTACLOUD_235.patch
>
>
> >> curl -X GET --user "un:pw" "http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=xml"
> (long trace goes off console) end of trace below:
> ...........
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `send'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
> /usr/share/deltacloud-core/bin/deltacloudd:239
> /usr/bin/deltacloudd:5:in `load'
> /usr/bin/deltacloudd:5]]></backtrace>
> <request>
> <param name='format'>xml</param>
> <param name='splat'></param>
> <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7afc7198></param>
> </request>
> </error>
> Using format=json:
> XML Parsing Error: not well-formed
> Location: http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=json
> Line Number 547, Column 84: <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7af7c2d8></param>
> -----------------------------------------------------------------------------------^
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira