[ovirt-users] ovirt-websocket-proxy uses the wrong IP

mots mots at nepu.moe
Mon Nov 17 19:46:45 UTC 2014


Thank you for your reply.

The engine resolves the node's IP correctly. A few details about the setup: It's a two node cluster with shared, internal storage using DRBD. The storage is managed by pacemaker, so that the node which currently serves as iscsi target gets assigned the additional IP. 
The Engine/websocket-proxy then always connects to the storage IP when it attempts to connect to the node which currently functions as iscsi target. This only happens in oVirt 3.5, and I was able to "fix" it by going back to 3.4.

Regards,

mots
 
-----Ursprüngliche Nachricht-----
> Von:Simone Tiraboschi <stirabos at redhat.com <mailto:stirabos at redhat.com> >
> Gesendet: Mon 17 November 2014 18:11
> An: Patrick Lottenbach <pl at a-bot.ch <mailto:pl at a-bot.ch> >
> CC: users at ovirt.org <mailto:users at ovirt.org> 
> Betreff: Re: [ovirt-users] ovirt-websocket-proxy uses the wrong IP
> 
> 
> 
> 
> 
> ----- Original Message -----
> > From: "mots" <mots at nepu.moe <mailto:mots at nepu.moe> >
> > To: users at ovirt.org <mailto:users at ovirt.org> 
> > Sent: Saturday, November 15, 2014 10:24:29 PM
> > Subject: [ovirt-users] ovirt-websocket-proxy uses the wrong IP
> > 
> > ovirt-websocket-proxy uses the wrong IP Hello,
> > 
> > One of my nodes has two IP addresses, 10.42.0.101 and 10.42.0.103. Ovirt is
> > configured to use 10.42.0.101, yet the ovirt-websocket-proxy service tries
> > to connect to 10.42.0.103, where no VNC server is listening.
> > 
> > Is there any way I can configure it to use the correct address?
> > 
> > [root at engine ˜]#
> > /usr/share/ovirt-engine/services/ovirt-websocket-proxy/ovirt-websocket-proxy.py
> > --debug start
> > ovirt-websocket-proxy[1838] DEBUG _daemon:403 daemon entry pid=1838
> > ovirt-websocket-proxy[1838] DEBUG _daemon:404 background=False
> > ovirt-websocket-proxy[1838] DEBUG loadFile:70 loading config
> > '/usr/share/ovirt-engine/services/ovirt-websocket-proxy/ovirt-websocket-proxy.conf'
> > ovirt-websocket-proxy[1838] DEBUG loadFile:70 loading config
> > '/etc/ovirt-engine/ovirt-websocket-proxy.conf.d/10-setup.conf'
> > ovirt-websocket-proxy[1838] DEBUG _daemon:440 I am a daemon 1838
> > ovirt-websocket-proxy[1838] DEBUG _setLimits:377 Setting rlimits
> > WebSocket server settings:
> > - Listen on *:6100
> 
> The WebSocketProxy is listening on all the available IPs, so no problems on that side.
> 
> > - Flash security policy server
> > - SSL/TLS support
> > - Deny non-SSL/TLS connections
> > - proxying from *:6100 to targets in /dummy
> > 
> > 1: 10.42.0.1: new handler Process
> > 1: 10.42.0.1: SSL/TLS (wss://) WebSocket connection
> > 1: 10.42.0.1: Version hybi-13, base64: 'True'
> > 1: 10.42.0.1: Path:
> > '/eyJ2YWxpZFRvIjoiMjAxNDExMTUyMTI1MDgiLCJkYXRhIjoiJTdCJTIyaG9zdCUyMjolMjIxMC40Mi4wLjEwMyUyMiwlMjJwb3J0JTIyOiUyMjU5MDElMjIsJTIyc3NsX3RhcmdldCUyMjpmYWxzZSU3RCIsInZhbGlkRnJvbSI6IjIwMTQxMTE1MjEyMzA4Iiwic2lnbmVkRmllbGRzIjoidmFsaWRUbyxkYXRhLHZhbGlkRnJvbSxzYWx0Iiwic2lnbmF0dXJlIjoiajRQUmxwYjBvT0dOZUNPaHZKK01wUTVrVGRMYVA0Sm8zRDIzTGlXRlZYRm4xNU9KN0NZVmw5OTBpNTBUNzlVZkpqUzRlRmZ1SHJhT1c4TlFNbXIwanZXSUpTWCtnL3RYSnc4MWRFS2wrcFVPVHo3MWlmY2dTbXdITmptOUkwTTl6Q0NNR2dvbE1BRzZwMndFbDFySDdSZkhMWnIvOGo4bnpnVGZ0NlhaOTdBcHgyejhkMlo0UjRmdklXemtXMjErMDdsNWw4dXpNVytEM1FmaWdDS1Q3V3VKdlFHNi9SSC9zZWRBWHJXcnFUNXYzTHNuNVl0MWtYb2lGV3ZYOHNUdE5PdGdvQWk3eGN5WUhGaEM1ei9SMjZXNEkrSlJNcDZlVDNxbWVlZnM0eWRSN0NpZWwzZWZvZDB5TU9meGJwMG9EMGlscXVWUWVjK1JxeGxqd21ZVG5BPT0iLCJzYWx0IjoiWGhVQ1dYL2hQU1U9In0='
> > 1: connecting to: 10.42.0.103:5901
> 
> The engine is instructing the WebSocket proxy to connect to the host on the wrong IP address.
> Are you using an all-in-one setup where the engine, KVM and the websocketproxy are on a single machine?
> Can you please check how the engine machine resolve the host name?
> 
> 
> > 1: handler exception: [Errno 111] Connection refused
> > 1: Traceback (most recent call last):
> > File "/usr/lib/python2.6/site-packages/websockify/websocket.py", line 711, in
> > top_new_client
> > self.new_client()
> > File "/usr/lib/python2.6/site-packages/websockify/websocketproxy.py", line
> > 183, in new_client
> > connect=True, use_ssl=self.ssl_target, unix_socket=self.unix_target)
> > File "/usr/lib/python2.6/site-packages/websockify/websocket.py", line 188, in
> > socket
> > sock.connect(addrs[0][4])
> > File "<string>", line 1, in connect
> > error: [Errno 111] Connection refused
> > 
> > 
> > Regards,
> > 
> > mots
> > 
> > _______________________________________________
> > Users mailing list
> > Users at ovirt.org <mailto:Users at ovirt.org> 
> > http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users> 
> > 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20141117/aa8088e7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 485 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ovirt.org/pipermail/users/attachments/20141117/aa8088e7/attachment-0001.sig>


More information about the Users mailing list