deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronelle Landy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DTACLOUD-420) Mock: Exception is thrown when creating a new instance
Date Wed, 23 Jan 2013 20:33:13 GMT

    [ https://issues.apache.org/jira/browse/DTACLOUD-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13561066#comment-13561066
] 

Ronelle Landy commented on DTACLOUD-420:
----------------------------------------

I can't repro this in ruby 1.9.3 either:

>>  curl -X POST -F "name=newNewInstance" -F "hwp_id=m1-small" -F "image_id=img1" --user
"un:pw" "localhost:3001/api/instances?format=json"

{"instance":{"id":"inst3","name":"newNewInstance","state":"RUNNING","owner":"mockuser","image":{"href":"http://localhost:3001/api/images/img1","id":"img1","rel":"image"},"realm":{"href":"http://localhost:3001/api/realms/us","id":"us","rel":"realm"},"actions":[{"href":"http://localhost:3001/api/instances/inst3/reboot","rel":"reboot","method":"post"},{"href":"http://localhost:3001/api/instances/inst3/stop","rel":"stop","method":"post"}],"instance_profile":{"id":"m1-small","href":"http://localhost:3001/api/hardware_profiles/m1-small","rel":"hardware_profile","properties":{}},"public_addresses":[{"address":"img1.inst3.public.com","type":"hostname"}],"private_addresses":[{"address":"img1.inst3.private.com","type":"hostname"}],"launch_time":null,"create_image":true,"storage_volumes":[]}}[root@cloud-qe-15
deltacloud]# 

 >>  curl -X GET --user "un:pw" "localhost:3001/api/instances/inst3?format=json"

{"instance":{"id":"inst3","name":"newNewInstance","state":"RUNNING","owner":"mockuser","image":{"href":"http://localhost:3001/api/images/img1","id":"img1","rel":"image"},"realm":{"href":"http://localhost:3001/api/realms/us","id":"us","rel":"realm"},"actions":[{"href":"http://localhost:3001/api/instances/inst3/reboot","rel":"reboot","method":"post"},{"href":"http://localhost:3001/api/instances/inst3/stop","rel":"stop","method":"post"}],"instance_profile":{"id":"m1-small","href":"http://localhost:3001/api/hardware_profiles/m1-small","rel":"hardware_profile","properties":{}},"public_addresses":[{"address":"img1.inst3.public.com","type":"hostname"}],"private_addresses":[{"address":"img1.inst3.private.com","type":"hostname"}],"launch_time":null,"create_image":true,"storage_volumes":[]}}[root@cloud-qe-15
deltacloud]# 

>>  ruby --version
ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-linux]

Let me know if I missed something in the instance create command that would trigger the error
logged in this JIRA. 
Thanks!

                
> Mock: Exception is thrown when creating a new instance
> ------------------------------------------------------
>
>                 Key: DTACLOUD-420
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-420
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: Debian 6.0.6, ruby 1.9.2p0, deltacloud development
>            Reporter: Christian Karnath
>
> The following exception is thrown when creating a new  instance against the mock driver:
> E, [2013-01-15T20:46:23.497506 #23978] ERROR -- 500: [NoMethodError] undefined method
`write' for #<Syck::Emitter:0x00000003970ee8>
> /usr/lib/ruby/1.9.1/psych/visitors/emitter.rb:17:in `end_document'
> /usr/lib/ruby/1.9.1/psych/visitors/emitter.rb:17:in `visit_Psych_Nodes_Document'
> /usr/lib/ruby/1.9.1/psych/visitors/visitor.rb:10:in `accept'
> /usr/lib/ruby/1.9.1/psych/visitors/emitter.rb:10:in `block in visit_Psych_Nodes_Stream'
> /usr/lib/ruby/1.9.1/psych/visitors/emitter.rb:10:in `each'
> /usr/lib/ruby/1.9.1/psych/visitors/emitter.rb:10:in `visit_Psych_Nodes_Stream'
> /usr/lib/ruby/1.9.1/psych/visitors/visitor.rb:11:in `accept'
> /usr/lib/ruby/1.9.1/psych/nodes/node.rb:36:in `to_yaml'
> /usr/lib/ruby/1.9.1/psych.rb:166:in `dump'
> /usr/lib/ruby/1.9.1/psych/core_ext.rb:13:in `psych_to_yaml'
> /usr/lib/ruby/1.9.1/syck/rubytypes.rb:114:in `node_export'
> /usr/lib/ruby/1.9.1/syck/rubytypes.rb:114:in `add'
> /usr/lib/ruby/1.9.1/syck/rubytypes.rb:114:in `block (3 levels) in to_yaml'
> /usr/lib/ruby/1.9.1/syck/rubytypes.rb:113:in `each'
> /usr/lib/ruby/1.9.1/syck/rubytypes.rb:113:in `block (2 levels) in to_yaml'
> /usr/lib/ruby/1.9.1/syck/rubytypes.rb:112:in `seq'
> /usr/lib/ruby/1.9.1/syck/rubytypes.rb:112:in `block in to_yaml'
> /usr/lib/ruby/1.9.1/syck.rb:401:in `call'
> /usr/lib/ruby/1.9.1/syck.rb:401:in `emit'
> /usr/lib/ruby/1.9.1/syck.rb:401:in `quick_emit'
> /usr/lib/ruby/1.9.1/syck/rubytypes.rb:111:in `to_yaml'

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message