Project

General

Profile

Actions

Bug #23441

closed

connect to Xenserver fails with foreman 1.17

Added by Ringo Gierth over 6 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

hi there,

I`ve tried connecting to Xenserver 7.4 / 7.2 and also the "new" XCP-NG release. Foreman only gives me this error: "xenserver has no compute service"

I`m using a fresh foreman 1.17.0 with the plugin: tfm-rubygem-foreman_xen.noarch 0.5.2-2.fm1_17.el7 on Centos7

/var/log/foreman/production.log:

2018-04-29 09:20:01 ea90f682 [app] [I] Started PUT "/compute_resources/test_connection" for 172.23.10.1 at 2018-04-29 09:20:01 -0400
2018-04-29 09:20:01 ea90f682 [app] [I] Processing by ComputeResourcesController#test_connection as */*
2018-04-29 09:20:01 ea90f682 [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"/oOzN5Z2KWdaw0tY9UcqgWm7etuFqkBvFtfU6l765omv3/pLdDoSptU7m7Mc6Wb5E3eXLiaaka8qZEJtQIbjEQ==", "compute_resource"=>{"name"=>"bla-xen", "description"=>"", "url"=>"172.23.10.21", "user"=>"root", "password"=>"[FILTERED]"}, "fakepassword"=>"[FILTERED]", "cr_id"=>"1"}
2018-04-29 09:20:01 ea90f682 [app] [I] Current user: admin (administrator)
2018-04-29 09:20:01 ea90f682 [app] [I] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_xen-0.5.2/app/views/compute_resources/form/_xenserver.html.erb (3.7ms)


With foreman 1.12.4 and the plugin tfm-rubygem-foreman_xen.noarch 0.3.2-1.fm1_12.el7 on Centos7 it works for XS 7.2 and 7.4.

Any Idea why?

many thanks and kind reagards!
Ringo

Actions #1

Updated by B Crowell over 6 years ago

  • Priority changed from Normal to High

I'm seeing the same issue with a fresh install of foreman 1.17 on Centos 7.4.1708 with tfm-rubygem-foreman_xen-0.6.1-1.fm1_17.el7. We are trying to connect to Xenserver 7.1.

We are trying to create a new dev instance that's fully up to date. Our current production foreman is v1.14.3 with foreman_xen version 0.5.2-1.fm1_14.el7 and connecting to the same Xenserver 7.1 pools. It seems to not have the same issue.

Actions #2

Updated by B Crowell over 6 years ago

version 0:0.5.2-2.fm1_17.el7 also does not work for us.

using foreman_xen-0.6.1-1.fm1_17.el7, we see similar output when trying to create a new compute resource and hitting "Test Connection":
2018-05-15 21:09:08 e732ba89 [app] [I] Started PUT "/compute_resources/test_connection" for 10.16.160.1 at 2018-05-15 21:09:08 0000
2018-05-15 21:09:08 e732ba89 [app] [I] Processing by ComputeResourcesController#test_connection as */*
2018-05-15 21:09:08 e732ba89 [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"6XcX1y0Y4BrwBe2Iw+9sABHZPuG9opXRkU/aDZ/rqq6vh6GUH30N5PBXf4ao26
/p036acVKAjcl+SFS+C/Nww==", "compute_resource"=>{"name"=>"Tier DevQA 1", "provider"=>"Xenserver", "description"=>"", "url"=>"10.16.25.36", "user"=>"root", "password"=>"[FILTERED]"}, "fakepassword"=>"[FILTERED]", "cr_id"=>""}
2018-05-15 21:09:08 e732ba89 [app] [I] Current user: admin (administrator)
2018-05-15 21:09:08 e732ba89 [app] [I] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_xen-0.6.1/app/views/compute_resources/form/_xenserver.html.erb (19.1ms)
2018-05-15 21:09:08 e732ba89 [app] [I] Rendered taxonomies/_loc_org_tabs.html.erb (0.3ms)
2018-05-15 21:09:08 e732ba89 [app] [I] Rendered compute_resources/_form.html.erb (26.5ms)
2018-05-15 21:09:08 e732ba89 [app] [I] Completed 200 OK in 920ms (Views: 27.4ms | ActiveRecord: 2.5ms)

in the production log when saving that resource we see the following:
2018-05-15 21:10:57 c27c7d85 [app] [I] Started POST "/compute_resources" for xxx.xxx.xxx.1 at 2018-05-15 21:10:57 0000
2018-05-15 21:10:57 c27c7d85 [app] [I] Processing by ComputeResourcesController#create as HTML
2018-05-15 21:10:57 c27c7d85 [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"6XcX1y0Y4BrwBe2Iw+9sABHZPuG9opXRkU/aDZ/rqq6vh6GUH30N5PBXf4ao26
/p036acVKAjcl+SFS+C/Nww==", "compute_resource"=>{"name"=>"Tier DevQA 1", "provider"=>"Xenserver", "description"=>"", "url"=>"10.16.25.36", "user"=>"root", "password"=>"[FILTERED]"}, "commit"=>"Submit"}
2018-05-15 21:10:57 c27c7d85 [app] [I] Current user: admin (administrator)
2018-05-15 21:10:57 c27c7d85 [app] [I] Redirected to https://dev-foreman/compute_resources/1-DevQA%201
2018-05-15 21:10:57 c27c7d85 [app] [I] Completed 302 Found in 78ms (ActiveRecord: 13.9ms)
2018-05-15 21:10:57 e45d076f [app] [I] Started GET "/compute_resources/1-DevQA%201" for xxx.xxx.xxx.1 at 2018-05-15 21:10:57 +0000
2018-05-15 21:10:57 e45d076f [app] [I] Processing by ComputeResourcesController#show as HTML
2018-05-15 21:10:57 e45d076f [app] [I] Parameters: {"id"=>"1-DevQA 1"}
2018-05-15 21:10:57 e45d076f [app] [I] Current user: admin (administrator)
2018-05-15 21:10:57 e45d076f [app] [I] Deface: [WARNING] No :original defined for 'remove_compute_profiles_tab', you should change its definition to include: | :original => 'aecbf94e43770bf29957263a987790f7873c4fd6'
2018-05-15 21:10:57 e45d076f [app] [I] Deface: [WARNING] No :original defined for 'rename_virtual_machines_containers', you should change its definition to include: | :original => 'adff190a5a6ab59b88f6cf9956f23cd53db53248'
2018-05-15 21:10:57 e45d076f [app] [I] Rendering compute_resources/show.html.erb within layouts/application
2018-05-15 21:10:57 e45d076f [app] [I] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_xen-0.6.1/app/views/compute_resources/show/_xenserver.html.erb (1.0ms)
2018-05-15 21:10:57 e45d076f [app] [I] Rendered compute_resources/show.html.erb within layouts/application (47.8ms)
2018-05-15 21:10:57 e45d076f [app] [I] Rendered layouts/_application_content.html.erb (1.6ms)
2018-05-15 21:10:57 e45d076f [app] [I] Rendering layouts/base.html.erb
2018-05-15 21:10:57 e45d076f [app] [I] Rendered home/_org_switcher.html.erb (0.7ms)
2018-05-15 21:10:57 e45d076f [app] [I] Rendered home/_user_dropdown.html.erb (2.6ms)
2018-05-15 21:10:57 e45d076f [app] [I] Rendered home/_topbar.html.erb (6.1ms)
2018-05-15 21:10:57 e45d076f [app] [I] Rendered home/_vertical_menu.html.erb (6.2ms)
2018-05-15 21:10:57 e45d076f [app] [I] Rendered home/_vertical_menu.html.erb (1.4ms)
2018-05-15 21:10:57 e45d076f [app] [I] Rendered home/_vertical_menu.html.erb (4.3ms)
2018-05-15 21:10:57 e45d076f [app] [I] Rendered home/_vertical_menu.html.erb (3.8ms)
2018-05-15 21:10:57 e45d076f [app] [I] Rendered home/_vertical_menu.html.erb (3.2ms)
2018-05-15 21:10:57 e45d076f [app] [I] Rendered home/_vertical_menu.html.erb (3.2ms)
2018-05-15 21:10:57 e45d076f [app] [I] Rendered home/_vertical_menu.html.erb (1.1ms)
2018-05-15 21:10:57 e45d076f [app] [I] Rendered home/_navbar.html.erb (28.6ms)
2018-05-15 21:10:57 e45d076f [app] [I] Rendered layouts/base.html.erb (41.7ms)
2018-05-15 21:10:57 e45d076f [app] [I] Completed 200 OK in 122ms (Views: 78.7ms | ActiveRecord: 17.6ms)
2018-05-15 21:10:58 773c5584 [app] [I] Started GET "/notification_recipients" for xxx.xxx.xxx.1 at 2018-05-15 21:10:58 +0000
2018-05-15 21:10:58 773c5584 [app] [I] Processing by NotificationRecipientsController#index as JSON
2018-05-15 21:10:58 773c5584 [app] [I] Current user: admin (administrator)
2018-05-15 21:10:58 773c5584 [app] [I] Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.7ms)
2018-05-15 21:10:59 539d1e2e [app] [I] Started GET "/" for xxx.xxx.xxx.2 at 2018-05-15 21:10:59 +0000
2018-05-15 21:10:59 539d1e2e [app] [I] Processing by DashboardController#index as HTML
2018-05-15 21:10:59 539d1e2e [app] [I] Redirected to https://devformanvm.localdomain/users/login
2018-05-15 21:10:59 539d1e2e [app] [I] Filter chain halted as :require_login rendered or redirected
2018-05-15 21:10:59 539d1e2e [app] [I] Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
2018-05-15 21:10:59 4b0792ef [app] [I] Started GET "/compute_resources/1-DevQA%201/vms" for xxx.xxx.xxx.1 at 2018-05-15 21:10:59 +0000
2018-05-15 21:10:59 4b0792ef [app] [I] Processing by ComputeResourcesVmsController#index as HTML
2018-05-15 21:10:59 4b0792ef [app] [I] Parameters: {"compute_resource_id"=>"1-DevQA 1"}
2018-05-15 21:10:59 4b0792ef [app] [I] Current user: admin (administrator)
2018-05-15 21:10:59 4b0792ef [app] [W] Error has occurred while listing VMs on DevQA 1 (Xenserver) | Fog::Service::NotFound: xenserver has no compute service | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-core-1.45.0/lib/fog/core/services_mixin.rb:18:in `rescue in new' | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-core-1.45.0/lib/fog/core/services_mixin.rb:7:in `new' | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-core-1.45.0/lib/fog/compute.rb:54:in `new' | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_xen-0.6.1/app/models/foreman_xen/xenserver.rb:371:in `client' | /usr/share/foreman/app/models/compute_resource.rb:173:in `vms' | /usr/share/foreman/app/controllers/compute_resources_vms_controller.rb:137:in `load_vms' | /usr/share/foreman/app/controllers/compute_resources_vms_controller.rb:18:in `index' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:186:in `process_action' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/rendering.rb:30:in `process_action' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:108:in `block in run_callbacks' | /usr/share/foreman/app/controllers/concerns/application_shared.rb:15:in `set_timezone' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks' | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks' | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks' | /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.4.1/lib/audited/sweeper.rb:14:in `around' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks' | /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.4.1/lib/audited/sweeper.rb:14:in `around' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:135:in `run_callbacks' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:19:in `process_action' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/rescue.rb:20:in `process_action' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `block in instrument' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb:21:in `instrument' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `instrument' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/params_wrapper.rb:252:in `process_action' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/railties/controller_runtime.rb:22:in `process_action' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:124:in `process' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/rendering.rb:30:in `process' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal.rb:189:in `dispatch' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal.rb:253:in `dispatch' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:49:in `dispatch' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:31:in `serve' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:50:in `block in serve' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:33:in `each' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:33:in `serve' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:834:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.6/lib/apipie/static_dispatcher.rb:65:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.6/lib/apipie/extractor/recorder.rb:136:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/static.rb:125:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/static.rb:125:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/static.rb:125:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/static.rb:125:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/static.rb:125:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/static.rb:125:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/static.rb:125:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.6/lib/apipie/middleware/checksum_in_headers.rb:27:in `call' | /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:8:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/etag.rb:25:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/conditional_get.rb:25:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/head.rb:12:in `call' | /usr/share/foreman/lib/middleware/session_safe_logging.rb:17:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/session/abstract/id.rb:232:in `context' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/session/abstract/id.rb:226:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/cookies.rb:613:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:97:in `run_callbacks' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/callbacks.rb:24:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/railties-5.1.4/lib/rails/rack/logger.rb:36:in `call_app' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/railties-5.1.4/lib/rails/rack/logger.rb:26:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in `call' | /usr/share/foreman/lib/middleware/tagged_logging.rb:18:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/remote_ip.rb:79:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/request_id.rb:25:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/method_override.rb:22:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/runtime.rb:22:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/executor.rb:12:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/static.rb:125:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/sendfile.rb:111:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/secure_headers-3.4.1/lib/secure_headers/middleware.rb:12:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/railties-5.1.4/lib/rails/engine.rb:522:in `call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `public_send' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `method_missing' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/urlmap.rb:68:in `block in call' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/urlmap.rb:53:in `each' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/urlmap.rb:53:in `call' | /usr/share/passenger/phusion_passenger/rack/thread_handler_extension.rb:74:in `process_request' | /usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:141:in `accept_and_process_next_request' | /usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:109:in `main_loop' | /usr/share/passenger/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads' | /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
2018-05-15 21:10:59 4b0792ef [app] [I] Rendered compute_resources_vms/_error.html.erb (1.9ms)
2018-05-15 21:10:59 4b0792ef [app] [I] Completed 200 OK in 33ms (Views: 7.8ms | ActiveRecord: 1.9ms)

Actions #3

Updated by T T over 6 years ago

Debug logging:
2018-06-07T10:13:37 35c94f1a [app] [I] Started PUT "/compute_resources/test_connection" for 172.16.x.x at 2018-06-07 10:13:37 +0200
2018-06-07T10:13:37 35c94f1a [app] [I] Processing by ComputeResourcesController#test_connection as */*
2018-06-07T10:13:37 35c94f1a [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"xxxxxxxxxxxxxxxxxxxxxxxxxx", "compute_resource"=>{"name"=>"Xenserver-Hetzner-Dev", "provider"=>"Xenserver", "description"=>"", "url"=>"https://xxxxxx.xxxxx.xxxxx.lan", "user"=>"root", "password"=>"[FILTERED]", "location_ids"=>["1", ""]}, "fakepassword"=>"[FILTERED]", "cr_id"=>"5"}
2018-06-07T10:13:37 35c94f1a [app] [I] Current user: admin (administrator)
2018-06-07T10:13:37 35c94f1a [app] [D] Setting current user thread-local variable to admin
2018-06-07T10:13:37 35c94f1a [app] [D] Setting current location thread-local variable to none
2018-06-07T10:13:37 35c94f1a [app] [D] Unpermitted parameters: :utf8, :_method, :authenticity_token, :fakepassword, :cr_id, :locale
2018-06-07T10:13:37 35c94f1a [app] [I] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_xen-0.6.1/app/views/compute_resources/form/_xenserver.html.erb (5.5ms)


The following line looks interesting:
2018-06-07T10:13:37 35c94f1a [app] [D] Unpermitted parameters: :utf8, :_method, :authenticity_token, :fakepassword, :cr_id, :locale

Actions #4

Updated by Thomas Berger over 6 years ago

  • Subject changed from connect to Xenserver 7.3 and 7.4 fails to connect to Xenserver fails with foreman 1.17

Same here, we are just restoring 1.14 from our backups :(

Actions #5

Updated by Christian Heckelmann over 6 years ago

  • Triaged set to No

Thomas Berger wrote:

Same here, we are just restoring 1.14 from our backups :(

We had the same problems with 1.17 and restored our 1.16.2 installation.

Are there any news on this Issue?

Actions #7

Updated by Jason Powell about 6 years ago

Same issue here. This is still happening in Foreman 1.20.0 running on CentOS 7.5.1804 with tfm-rubygem-fog-xenserver-0.2.3-3.el7.noarch and tfm-rubygem-foreman_xen-0.6.1-3.fm1_20.el7.noarch. I'm trying to provision systems on XenServer 7.6. Please let me know if I can provide any logs or anything.

Actions #8

Updated by Ádám Liszkai almost 6 years ago

Any updates on this?

I'm running XCP-ng 7.6.0 and Foreman 1.20.1 on centos 7-6.1810.2.
Currently, I don't have a way to install libvirt on the XCP to bypass this plugin.

Actions #9

Updated by Christian Heckelmann over 5 years ago

Ádám Liszkai wrote:

Any updates on this?

I'm running XCP-ng 7.6.0 and Foreman 1.20.1 on centos 7-6.1810.2.
Currently, I don't have a way to install libvirt on the XCP to bypass this plugin.

Looks like it was fixed in plugin version 0.7.1
https://github.com/theforeman/foreman-xen/commit/05c3994be01b630ed6efde2215a60a76c939502b

But I've to admit the information here (even for an OS-Project) is improvable.

Actions #10

Updated by Martin Juhl over 5 years ago

Christian Heckelmann wrote:

Ádám Liszkai wrote:

Any updates on this?

I'm running XCP-ng 7.6.0 and Foreman 1.20.1 on centos 7-6.1810.2.
Currently, I don't have a way to install libvirt on the XCP to bypass this plugin.

Looks like it was fixed in plugin version 0.7.1
https://github.com/theforeman/foreman-xen/commit/05c3994be01b630ed6efde2215a60a76c939502b

But I've to admit the information here (even for an OS-Project) is improvable.

I have added a patch here: https://github.com/theforeman/foreman-xen/pull/62

Could someone test?

Actions #11

Updated by Anonymous over 5 years ago

Ringo, is this better with foreman_xen 1.0.0?

Actions #12

Updated by Anonymous over 4 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF