[GH-ISSUE #51] Add some methods into the API #29

Closed
opened 2026-02-27 22:07:18 +03:00 by kerem · 7 comments
Owner

Originally created by @Segfaultd on GitHub (Jan 4, 2015).
Original GitHub issue: https://github.com/sibprogrammer/owp/issues/51

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

Originally created by @Segfaultd on GitHub (Jan 4, 2015). Original GitHub issue: https://github.com/sibprogrammer/owp/issues/51 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
kerem closed this issue 2026-02-27 22:07:19 +03:00
Author
Owner

@ikonovalenko commented on GitHub (Mar 6, 2015):

It would be really nice to have both resources utilization and reinstall methods

<!-- gh-comment-id:77540483 --> @ikonovalenko commented on GitHub (Mar 6, 2015): It would be really nice to have both resources utilization and reinstall methods
Author
Owner

@Segfaultd commented on GitHub (Mar 11, 2015):

Code is already done, w're just waiting for the pull request to be merged

<!-- gh-comment-id:78233601 --> @Segfaultd commented on GitHub (Mar 11, 2015): Code is already done, w're just waiting for the pull request to be merged
Author
Owner

@ikonovalenko commented on GitHub (Mar 12, 2015):

@EnguerrandP, how to update OWP after your code is merged? As far I know OWP is frozen so no new versions.

<!-- gh-comment-id:78455440 --> @ikonovalenko commented on GitHub (Mar 12, 2015): @EnguerrandP, how to update OWP after your code is merged? As far I know OWP is frozen so no new versions.
Author
Owner

@Segfaultd commented on GitHub (Mar 16, 2015):

Just replace files of your locale copy with the repo version :) (don't replace config files)

<!-- gh-comment-id:81555921 --> @Segfaultd commented on GitHub (Mar 16, 2015): Just replace files of your locale copy with the repo version :) (don't replace config files)
Author
Owner

@punkeel commented on GitHub (May 20, 2015):

Fixed, right ?

<!-- gh-comment-id:103920537 --> @punkeel commented on GitHub (May 20, 2015): Fixed, right ?
Author
Owner

@alitvak69 commented on GitHub (Jun 2, 2015):

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>

<!-- gh-comment-id:107921805 --> @alitvak69 commented on GitHub (Jun 2, 2015): 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> ```
Author
Owner

@sibprogrammer commented on GitHub (Jun 24, 2015):

Problem with backup was solved in 8bbdbde606
P.S. Please follow the rule: "one request - one issue"

<!-- gh-comment-id:114949447 --> @sibprogrammer commented on GitHub (Jun 24, 2015): Problem with backup was solved in 8bbdbde6067434b5ba446e1a9a37e31d88d7a6c2 P.S. Please follow the rule: "one request - one issue"
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/owp#29
No description provided.