computerline1z / ovz-web-panel

Automatically exported from code.google.com/p/ovz-web-panel
Other
0 stars 0 forks source link

template creation issue #453

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
1. start web panel and hw-daemon on the different hosts
2. create container from any template (for instance centos)
3. create template from running container

Actual result:
in  hw-daemon.log log:

[2012-06-29 00:03:19] ERROR RuntimeError: Wrong type!
    /usr/lib/ruby/1.8/xmlrpc/create.rb:274:in `conv2value'
    /usr/lib/ruby/1.8/xmlrpc/create.rb:148:in `methodResponse'
    /usr/lib/ruby/1.8/xmlrpc/create.rb:147:in `collect'
    /usr/lib/ruby/1.8/xmlrpc/create.rb:147:in `methodResponse'
    /usr/lib/ruby/1.8/xmlrpc/server.rb:380:in `handle'
    hw-daemon.rb:107:in `handle'
    /usr/lib/ruby/1.8/xmlrpc/server.rb:312:in `process'
    /usr/lib/ruby/1.8/xmlrpc/server.rb:762:in `service'
    hw-daemon.rb:102:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
    hw-daemon.rb:199:in `do_start'
    /usr/lib/ruby/1.8/webrick/server.rb:37:in `start'
    hw-daemon.rb:197:in `do_start'
    hw-daemon.rb:141:in `initialize'
    hw-daemon.rb:294:in `new'
    hw-daemon.rb:294

in web panel log:

Processing Admin::VirtualServersController#create_template (for 10.1.1.1 at 
2012-06-29 00:03:19) [POST]
  Parameters: {"id"=>"30", "template_name"=>"cc", "action"=>"create_template", "controller"=>"admin/virtual_servers"}
XML-RPC runtime error: HTTP-Error: 500 Internal Server Error 
Executing command: vzctl chkpnt 2 --suspend
Executing command: tar --numeric-owner -czf 
/vz/template/cache/centos-6-x86_64-cc.tar.gz -X /tmp/owp-template-exclude.list 
-C /vz/private/2 . 
Executing command: vzctl chkpnt 2 --resume
Executing command: rm /tmp/owp-template-exclude.list 
Executing command: ls --block-size=M -s /vz/template/cache
Completed in 40520ms (View: 0, DB: 5) | 200 OK 
[http://example.com/admin/virtual-servers/create_template?id=30]

web panel throws message "internal error occurred"
but this action makes working template 

Expected result:

Version of the product:
 OpenVZ Web Panel 2.1

Server OS:
hw node CentOS 6,  2.6.32-042stab055.16

Browser:
Google chrome 20.0.1132.43

Original issue reported on code.google.com by alek...@myinvisible.net on 29 Jun 2012 at 12:13

GoogleCodeExporter commented 9 years ago
hw node ruby version :

ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

Original comment by alek...@myinvisible.net on 29 Jun 2012 at 12:18

GoogleCodeExporter commented 9 years ago

Original comment by sibprogrammer on 6 Jul 2012 at 2:12

GoogleCodeExporter commented 9 years ago
Fixed.

Original comment by sibprogrammer on 6 Jul 2012 at 4:01

GoogleCodeExporter commented 9 years ago

Original comment by sibprogrammer on 29 Jan 2013 at 3:06