Project

General

Profile

Actions

Support #9374

closed

Foreman-xen and XenServer Pool

Added by Aleksei Yamschikov over 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Low
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hi.
All seems work well. But only if XenServer is StandAlone server. If i have server pool then i cant see what VM on what XenServer run.
All VM seeem like running on PoolMaster host.

Also if i try add to Compute Resouce servers other than Poll Master i give error "Fog::XenServer::InvalidLogin"

/var/log/foreman/production.log
---
Started PUT "/compute_resources/test_connection" for 192.168.0.108 at 2015-02-13 15:18:28 +0000
Processing by ComputeResourcesController#test_connection as */*
Parameters: {"utf8"=>"✓", "authenticity_token"=>"XkEILrD5L+m7uzRhiLGfKYmHptOnHbo09m9QnxTCDuc=", "compute_resource"=>{"name"=>"vhost001.vps", "provider"=>"Xenserver", "description"=>"", "url"=>"192.168.0.7", "user"=>"root", "password"=>"[FILTERED]"}, "fakepassword"=>"[FILTERED]", "cr_id"=>"null"}
CR_ID IS null
String does not start with the prefix 'encrypted-', so ForemanXen::Xenserver vhost001.vps was not decrypted
String does not start with the prefix 'encrypted-', so ForemanXen::Xenserver vhost001.vps was not decrypted
String does not start with the prefix 'encrypted-', so ForemanXen::Xenserver vhost001.vps was not decrypted
String does not start with the prefix 'encrypted-', so ForemanXen::Xenserver vhost001.vps was not decrypted
String does not start with the prefix 'encrypted-', so ForemanXen::Xenserver vhost001.vps was not decrypted
Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_xen-0.0.5.1/app/views/compute_resources/form/_xenserver.html.erb (3.0ms)
Rendered compute_resources/_form.html.erb (7.0ms)
Completed 200 OK in 14ms (Views: 7.4ms | ActiveRecord: 0.5ms)
---


Files

Capture.PNG View Capture.PNG 16.4 KB Operations ooVoo, 05/26/2015 05:32 PM

Related issues 1 (0 open1 closed)

Blocked by Foreman - Refactor #10997: Update fog to 1.33.0ClosedDominic Cleal07/03/2015Actions
Actions #1

Updated by Operations ooVoo almost 9 years ago

Aleksei Yamschikov where you wanna see that information? Is that ok if I will add this info under VM properties?

Actions #2

Updated by Operations ooVoo almost 9 years ago

For only support to connect to Master server which is single in POOL, so it is correct behavior

Actions #3

Updated by Operations ooVoo almost 9 years ago

  • Status changed from New to Feedback
  • Priority changed from Normal to Low
Actions #4

Updated by Operations ooVoo almost 9 years ago

  • Assignee set to Aleksei Yamschikov
Actions #5

Updated by Sergio Mira almost 9 years ago

Same problem here!
I don't think this is a low priority issue, it's a serious one!
Any concerns about this?

Aleksei Yamschikov wrote:

Hi.
All seems work well. But only if XenServer is StandAlone server. If i have server pool then i cant see what VM on what XenServer run.
All VM seeem like running on PoolMaster host.

Also if i try add to Compute Resouce servers other than Poll Master i give error "Fog::XenServer::InvalidLogin"

/var/log/foreman/production.log
---
Started PUT "/compute_resources/test_connection" for 192.168.0.108 at 2015-02-13 15:18:28 +0000
Processing by ComputeResourcesController#test_connection as */*
Parameters: {"utf8"=>"✓", "authenticity_token"=>"XkEILrD5L+m7uzRhiLGfKYmHptOnHbo09m9QnxTCDuc=", "compute_resource"=>{"name"=>"vhost001.vps", "provider"=>"Xenserver", "description"=>"", "url"=>"192.168.0.7", "user"=>"root", "password"=>"[FILTERED]"}, "fakepassword"=>"[FILTERED]", "cr_id"=>"null"}
CR_ID IS null
String does not start with the prefix 'encrypted-', so ForemanXen::Xenserver vhost001.vps was not decrypted
String does not start with the prefix 'encrypted-', so ForemanXen::Xenserver vhost001.vps was not decrypted
String does not start with the prefix 'encrypted-', so ForemanXen::Xenserver vhost001.vps was not decrypted
String does not start with the prefix 'encrypted-', so ForemanXen::Xenserver vhost001.vps was not decrypted
String does not start with the prefix 'encrypted-', so ForemanXen::Xenserver vhost001.vps was not decrypted
Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_xen-0.0.5.1/app/views/compute_resources/form/_xenserver.html.erb (3.0ms)
Rendered compute_resources/_form.html.erb (7.0ms)
Completed 200 OK in 14ms (Views: 7.4ms | ActiveRecord: 0.5ms)
---

Actions #6

Updated by Alejandro Falcon almost 9 years ago

I just found a solution to this issue by applying https://github.com/fog/fog/commit/5dfaded56cbcb2676d91abbb2cb6b193a23aa36b to the fog gem code. Then change foreman_xen gem file app/models/foreman_xen/xenserver.rb line 296 to this @client ||= ::Fog::Compute.new({ :provider => 'XenServer', :xenserver_url => url, :xenserver_username => user, :xenserver_password => password, :xenserver_redirect_to_master => true } )

Hope it helps.

Actions #7

Updated by Anonymous almost 9 years ago

Actions #8

Updated by Anonymous almost 9 years ago

It does help, thanks!

Actions #9

Updated by Alejandro Falcon almost 9 years ago

No problem.

Note: The VM consoles are still broken with my fix when the master changes. It's still trying to use the IP set in the compute resource instead.

Actions #10

Updated by Anonymous over 8 years ago

  • Status changed from Feedback to Assigned
  • Assignee changed from Aleksei Yamschikov to Anonymous

let's see where we can get this...

Actions #11

Updated by Operations ooVoo over 8 years ago

Guys, using fog 1.30 works good with XenServer 6.2 and 6.5 as well.

Actions #12

Updated by Anonymous over 8 years ago

  • Assignee changed from Anonymous to Operations ooVoo
Actions #13

Updated by Anonymous over 8 years ago

  • Status changed from Assigned to Resolved

PR got merged, foreman-xen 0.2.x will require Foreman 1.10 because of the underlying fog change.
Created #12050 for the VNC connection.

Actions

Also available in: Atom PDF