[one-users] Ruby problem Centos 7 pcsd and Opennebula

2015-03-06 Thread opennebula

Good morning,

I am building a block LVM KVM cluster with 4 machines, but i am having a 
strange problem which keeps me busy for days now, i am using a standard 
Centos 7 server as frontend and Centos 7 nodes with opennebula and 
opennebula-server installed.


software installed
opennebula-ruby-4.8.0-1.x86_64
opennebula-common-4.8.0-1.x86_64
opennebula-sunstone-4.8.0-1.x86_64
opennebula-4.8.0-1.x86_64
opennebula-server-4.8.0-1.x86_64

I also installed pcs-0.9.115-32.el7_0.1.x86_64 to use clvmd en dlm locks 
on the opennebula nodes and frontend.


Now the problem i am facing i have installed pcsd (ruby) and opennebula 
(ruby) on the same machine, when i install rack and sinatra via gems as 
ordered by the install in the documentation the psc daemon binds only to 
the localhost interface. If i uninstall sinatra and rack then the psc 
daemon listens as ordered via the config file on all interfaces but 
opennebula won't start!


After installing sinatra via gems their are 2 versions of sinatra on the 
system

/usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra
/usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra

So i assume something is overruling BindAddress directive in the 
config of pscd on centos 7 when i install the software needed to run 
opennebula. I have tried setting the BindAddress directive in ssl.rb to 
*, nil and :: but nothing fixes the problem also my knowledge of ruby is 
to low to investigate further.


see below howto reproduce this problem
[root@cloudmanager rack-1.6.0]# !lsof
lsof -i | grep ruby
ruby   1368 root9u  IPv6 1474379  0t0  TCP
localhost:efi-mg (LISTEN)
ruby   1368 root   10u  IPv4 1474380  0t0  TCP 
localhost:efi-mg (LISTEN)

ruby  13803 oneadmin   10u  IPv4  913310  0t0  TCP *:9869 (LISTEN)

[root@cloudmanager rack-1.6.0]# gem uninstall sinatra rack
Successfully uninstalled sinatra-1.4.5
Successfully uninstalled rack-1.6.0

[root@cloudmanager rack-1.6.0]# systemctl restart pcsd.service
[root@cloudmanager rack-1.6.0]# !lsof
lsof -i | grep ruby
ruby   4377 root9u  IPv4 1739444  0t0  TCP *:efi-mg (LISTEN)

ruby  13803 oneadmin   10u  IPv4  913310  0t0  TCP *:9869 (LISTEN)

[root@cloudmanager tmp]# gem install sinatra
Successfully installed rack-1.6.0
Successfully installed sinatra-1.4.5

[root@cloudmanager tmp]# systemctl restart pcsd.service

[root@cloudmanager tmp]# !lsof
lsof -i | grep ruby
ruby   4551 root9u  IPv6 1740682  0t0  TCP 
localhost:efi-mg (LISTEN)
ruby   4551 root   10u  IPv4 1740683  0t0  TCP 
localhost:efi-mg (LISTEN)

ruby  13803 oneadmin   10u  IPv4  913310  0t0  TCP *:9869 (LISTEN)

Any tips how i can solve this problem?

Regards
Constan
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] CentOS 7 image from marketplace.

2015-03-06 Thread Javier Fontan
I've updated the image in the marketplace. Now NetworkManager is disabled.
I hope it solves the problem.

On Thu, Feb 26, 2015 at 2:08 PM Madko madk...@gmail.com wrote:

 Similar problem here. It works better if you disable NetworkManager. The
 vmcontext rpm used in this image is still using basic network service. You
 are free to adapt it.

 Le Thu Feb 26 2015 at 13:19:09, Leszek Master keks...@gmail.com a
 écrit :

 I've downloaded CentOS 7 image from market place and i noticed that there
 is problem with contextualizing it. After i start a VM with this image it
 doesn't get contextualized by the first boot time. After I manually run
 init scripts everything works, it gave my network interfaces ip address and
 set up my hostname, even restart my VM with cloud-init config. But it's
 annoying that after i create my VM i need to log in to it using vnc and
 then contextualize it manually. Anyone had similiar problems?
 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org