Closed Segfaultd closed 9 years ago
It would be really nice to have both resources utilization and reinstall methods
Code is already done, w're just waiting for the pull request to be merged
@EnguerrandP, how to update OWP after your code is merged? As far I know OWP is frozen so no new versions.
Just replace files of your locale copy with the repo version :) (don't replace config files)
Fixed, right ?
Git master code doesn't run backup
Processing Admin::HardwareServersController#list (for 208.71.34.11 at 2015-06-01 10:39:48) [GET]
...skipping...
Executing command: vzctl chkpnt 401 --suspend
NoMethodError (undefined method `backup_job' for #<VirtualServer:0x7f9e1af1d528>):
/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:260:in `method_missing'
/app/models/backup.rb:26:in `create_backup'
/app/controllers/admin/backups_controller.rb:31:in `create'
/vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `send'
/vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `perform_action_without_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/vendor/rails/actionpack/lib/action_controller/rescue.rb:136:in `perform_action_without_caching'
/vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
/vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
/vendor/rails/actionpack/lib/action_controller/base.rb:524:in `send'
/vendor/rails/actionpack/lib/action_controller/base.rb:524:in `process_without_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process_without_session_management_support'
/vendor/rails/actionpack/lib/action_controller/session_management.rb:134:in `process'
/vendor/rails/actionpack/lib/action_controller/base.rb:392:in `process'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:183:in `handle_request'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:110:in `dispatch_unlocked'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:123:in `dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:122:in `synchronize'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:122:in `dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:132:in `dispatch_cgi'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:39:in `dispatch'
/vendor/rails/railties/lib/webrick_server.rb:103:in `handle_dispatch'
/vendor/rails/railties/lib/webrick_server.rb:74: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:37:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/vendor/rails/railties/lib/webrick_server.rb:60:in `dispatch'
/vendor/rails/railties/lib/commands/servers/webrick.rb:66
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
/vendor/rails/railties/lib/commands/server.rb:49
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
//script/server:3
Internal error: undefined method `backup_job' for #<VirtualServer:0x7f9e1af1d528>
Problem with backup was solved in 8bbdbde6067434b5ba446e1a9a37e31d88d7a6c2 P.S. Please follow the rule: "one request - one issue"
Hey,
Will be great if we can see those methods into the API (in order of importance):
-Manage backups -Get live utilisation of resources -Reinstall
Thanks