[one-users] Now problem with econe-upload.
sergio garcia escriche
sergei.garcia at gmail.com
Wed Feb 17 02:43:54 PST 2010
Hi Tino,
I found the error. I have two versions of amazon-ec2. I install the last
version and run correctly but after appears another error. I see te vm.log
and show this:
Wed Feb 17 11:34:31 2010 [VMM][I]: Generating deployment file:
/srv/cloud/one/var/43/deployment.0
Wed Feb 17 11:35:01 2010 [VMM][I]: Command execution fail: 'mkdir -p
/srv/cloud/one/var/43/images && cat >
/srv/cloud/one/var/43/images/deployment.0 && virs
Wed Feb 17 11:35:01 2010 [VMM][I]: STDERR follows.
Wed Feb 17 11:35:01 2010 [VMM][I]: Connecting to uri: qemu:///system
Wed Feb 17 11:35:01 2010 [VMM][I]: error: Failed to create domain from
/srv/cloud/one/var/43/images/deployment.0
Wed Feb 17 11:35:01 2010 [VMM][I]: error: internal error unable to start
guest: qemu: could not open disk image /srv/cloud/one/var/43/images/disk.0
Wed Feb 17 11:35:01 2010 [VMM][I]:
Wed Feb 17 11:35:01 2010 [VMM][I]: ExitCode: 1
Wed Feb 17 11:35:01 2010 [VMM][E]: Error deploying virtual machine
I don't understand why don't run because i use onevm create run correctly.
This is my template of econe-tools:
NAME = eco-vm
CPU = 1
MEMORY = 2000
OS = [ boot="hd"]
DISK = [ source = <%= erb_vm_info[:img_path] %>,
clone = yes,
target = hda,
readonly = no]
NIC=[NETWORK="Public2"]
IMAGE_ID = <%= erb_vm_info[:img_id] %>
INSTANCE_TYPE = <%= erb_vm_info[:instance_type ]%>
Thank you very much,
Regards,
Sergio
2010/2/16 sergio garcia escriche <sergei.garcia at gmail.com>
> Hi Tino,
>
> I see the econe-log but i don't explain where is the error exactly.
> Econe-server log show this:
>
> 147.83.105.238 - - [16/Feb/2010 10:38:19] "POST / HTTP/1.1" 200 1078 0.0555
> 147.83.105.238 - - [16/Feb/2010 10:38:29] "POST / HTTP/1.1" 200 930 0.1844
> NoMethodError - undefined method `[]' for nil:NilClass:
> /srv/cloud/one/lib/ruby/cloud/econe/EC2QueryServer.rb:235:in
> `render_state'
> (erb):18:in `describe_instances'
> /srv/cloud/one/lib/ruby/OpenNebula/XMLUtils.rb:144:in `call'
> /srv/cloud/one/lib/ruby/OpenNebula/XMLUtils.rb:144:in `each_element'
> /usr/lib/ruby/1.8/rexml/element.rb:892:in `each'
> /usr/lib/ruby/1.8/rexml/xpath.rb:53:in `each'
> /usr/lib/ruby/1.8/rexml/element.rb:892:in `each'
> /srv/cloud/one/lib/ruby/OpenNebula/XMLUtils.rb:142:in `each_element'
> /srv/cloud/one/lib/ruby/OpenNebula/Pool.rb:58:in `each'
> (erb):12:in `describe_instances'
> /srv/cloud/one/lib/ruby/cloud/econe/EC2QueryServer.rb:201:in
> `describe_instances'
> /srv/cloud/one/lib/ruby/cloud/econe/econe-server.rb:79:in `POST /'
> /srv/cloud/one/lib/ruby/cloud/econe/econe-server.rb:68NoMethodError:
> undefined method `[]' for nil:NilClass
> /srv/cloud/one/lib/ruby/cloud/econe/EC2QueryServer.rb:235:in
> `render_state'
> (erb):18:in `describe_instances'
>
> Thank you very much,
>
> Sergio
>
> 2010/2/16 Tino Vazquez <tinova at fdi.ucm.es>
>
> Hi Sergio,
>>
>> Can you send the $ONE_LOCATION/var/econe-server.log?
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez, Grid & Virtualization Technology
>> Engineer/Researcher: http://www.dsa-research.org/tinova
>> DSA Research Group: http://dsa-research.org
>> Globus GridWay Metascheduler: http://www.GridWay.org
>> OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
>>
>>
>>
>> On Thu, Feb 11, 2010 at 9:47 AM, sergio garcia escriche
>> <sergei.garcia at gmail.com> wrote:
>> > Hi,
>> >
>> > Now i have a problem with econe-run instances . when i put :
>> >
>> > $ econe-describe-images -H
>> > Owner ImageId Location
>> >
>> ------------------------------------------------------------------------------
>> > oneadmin 1 /srv/cloud/images/1
>> >
>> > $ econe-run-instances 1
>> >
>> > Opennebula show me this error:
>> > econe-run-instances: undefined method `elements' for nil:NilClass
>> >
>> > Thank you very much and sorry for the inconvenience.
>> >
>> > Sergio
>> >
>> > 2010/2/10 Javier Fontan <jfontan at gmail.com>
>> >>
>> >> You need multipart-post gem installed:
>> >>
>> >> $ sudo gem install multipart-post
>> >>
>> >>
>> >> On Wed, Feb 10, 2010 at 3:50 PM, sergio garcia escriche
>> >> <sergei.garcia at gmail.com> wrote:
>> >> > HI,
>> >> >
>> >> > Now i have a problem with econe-upload because says this error:
>> >> >
>> >> > econe-upload -M win.img
>> >> > /srv/cloud/one/lib/ruby/cloud/econe/EC2QueryClient.rb:173:in
>> >> > `upload_image':
>> >> > uninitialized constant EC2QueryClient::Client::UploadIO (NameError)
>> >> > from /srv/cloud/one/bin/econe-upload:115
>> >> >
>> >> > And this is my configuration of econe.conf
>> >> >
>> >> > # OpenNebula administrator user
>> >> > USER=oneadmin
>> >> > PASSWORD=mypass
>> >> >
>> >> > # OpenNebula sever contact information
>> >> > ONE_XMLRPC=http://localhost:2633/RPC2
>> >> >
>> >> > # Host and port where econe server will run
>> >> > SERVER=nebula.prueba.edu
>> >> > PORT=4567
>> >> >
>> >> > # SSL proxy that serves the API (set if is being used)
>> >> > #SSL_SERVER=fqdm.of.the.server
>> >> >
>> >> > # Configuration for the image repository
>> >> > DATABASE=/srv/cloud/one/var/econe.db
>> >> > IMAGE_DIR=/srv/cloud/images
>> >> >
>> >> > # VM types allowed and its template file (inside templates directory)
>> >> > VM_TYPE=[NAME=m1.small, TEMPLATE=m1.small.erb]
>> >> >
>> >> > I install all the packages but i don't know what happened.
>> >> >
>> >> > Thank you very much,
>> >> >
>> >> > Sergio
>> >> >
>> >> > _______________________________________________
>> >> > Users mailing list
>> >> > Users at lists.opennebula.org
>> >> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
>> >> DSA Research Group: http://dsa-research.org
>> >> Globus GridWay Metascheduler: http://www.GridWay.org
>> >> OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
>> >
>> >
>> > _______________________________________________
>> > Users mailing list
>> > Users at lists.opennebula.org
>> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >
>> >
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100217/5fce16d2/attachment.htm>
More information about the Users
mailing list