Re: [ovirt-users] Failing to connect to console via vnc (was: HostedEngine Deployment Woes)

2015-01-11 Thread Yedidyah Bar David
- Original Message -
 From: Mikola Rose mr...@power-soft.com
 To: Yedidyah Bar David d...@redhat.com
 Cc: users@ovirt.org
 Sent: Thursday, January 8, 2015 9:24:51 PM
 Subject: Re: Failing to connect to console via vnc (was: HostedEngine 
 Deployment Woes)
 
 Hi again Didi,
 
 
 I decided to try a bare metal install and migrate to a self hosted.  The bare
 metal install worked great but same issue conencting to the VM via VNC.
 Just prompts for password seems to connect then auto closes any vnc client
 I use.  From the logs it sasys authentication cancelled.  The password to
 connect was in the hosted-engine —deploy at the end so I didn’t think I
 needed to set it again.

This is a temporary password, by default valid for 3 hours.

The one you set with 'hosted-engine --add-console-password' is temporary
too, valid for 2 minutes.

Did vnc console connection work during deploy?

Do you have engine up and running? If so, can you get the console through
the web admin?

 
 The VDSM logs for this session;
 
 Thread-60::DEBUG::2015-01-08
 11:14:53,712::domainMonitor::192::Storage.DomainMonitorThread::(_monitorDomain)
 Refreshing domain ac1ae7f8-cb48-4251-a246-e68efa9772f0
 Thread-60::DEBUG::2015-01-08
 11:14:53,718::fileSD::152::Storage.StorageDomain::(__init__) Reading domain
 in path
 /rhev/data-center/mnt/192.168.1.32:_Volumes_Raid1/ac1ae7f8-cb48-4251-a246-e68efa9772f0
 Thread-60::DEBUG::2015-01-08
 11:14:53,719::persistentDict::192::Storage.PersistentDict::(__init__)
 Created a persistent dict with FileMetadataRW backend
 Thread-60::DEBUG::2015-01-08
 11:14:53,721::persistentDict::234::Storage.PersistentDict::(refresh) read
 lines (FileMetadataRW)=['CLASS=Data', 'DESCRIPTION=hosted_storage',
 'IOOPTIMEOUTSEC=10', 'LEASERETRIES=3', 'LEASETIMESEC=60', 'LOCKPOLICY=ON',
 'LOCKRENEWALINTERVALSEC=5', 'MASTER_VERSION=1',
 'POOL_DESCRIPTION=hosted_datacenter',
 'POOL_DOMAINS=ac1ae7f8-cb48-4251-a246-e68efa9772f0:Active',
 'POOL_SPM_ID=-1', 'POOL_SPM_LVER=0',
 'POOL_UUID=c4a7ea33-d530-492c-a7fa-13418b6c6f0a',
 'REMOTE_PATH=192.168.1.32:/Volumes/Raid1', 'ROLE=Master',
 'SDUUID=ac1ae7f8-cb48-4251-a246-e68efa9772f0', 'TYPE=NFS', 'VERSION=3',
 '_SHA_CKSUM=78daa16373d371fb33ae30943059b955b3d3ebdb']
 Thread-60::DEBUG::2015-01-08
 11:14:53,723::fileSD::611::Storage.StorageDomain::(imageGarbageCollector)
 Removing remnants of deleted images []
 Thread-60::INFO::2015-01-08
 11:14:53,724::sd::384::Storage.StorageDomain::(_registerResourceNamespaces)
 Resource namespace ac1ae7f8-cb48-4251-a246-e68efa9772f0_imageNS already
 registered
 Thread-60::INFO::2015-01-08
 11:14:53,724::sd::392::Storage.StorageDomain::(_registerResourceNamespaces)
 Resource namespace ac1ae7f8-cb48-4251-a246-e68efa9772f0_volumeNS already
 registered
 Thread-60::DEBUG::2015-01-08
 11:14:53,728::fileSD::261::Storage.Misc.excCmd::(getReadDelay) '/bin/dd
 if=/rhev/data-center/mnt/192.168.1.32:_Volumes_Raid1/ac1ae7f8-cb48-4251-a246-e68efa9772f0/dom_md/metadata
 iflag=direct of=/dev/null bs=4096 count=1' (cwd None)
 Thread-60::DEBUG::2015-01-08
 11:14:53,736::fileSD::261::Storage.Misc.excCmd::(getReadDelay) SUCCESS:
 err = '0+1 records in\n0+1 records out\n480 bytes (480 B) copied,
 0.000292092 s, 1.6 MB/s\n'; rc = 0
 VM Channels Listener::DEBUG::2015-01-08
 11:14:59,682::vmChannels::95::vds::(_handle_timeouts) Timeout on fileno 12.
 Thread-60::DEBUG::2015-01-08
 11:15:03,744::fileSD::261::Storage.Misc.excCmd::(getReadDelay) '/bin/dd
 if=/rhev/data-center/mnt/192.168.1.32:_Volumes_Raid1/ac1ae7f8-cb48-4251-a246-e68efa9772f0/dom_md/metadata
 iflag=direct of=/dev/null bs=4096 count=1' (cwd None)
 Thread-60::DEBUG::2015-01-08
 11:15:03,753::fileSD::261::Storage.Misc.excCmd::(getReadDelay) SUCCESS:
 err = '0+1 records in\n0+1 records out\n480 bytes (480 B) copied,
 0.00036382 s, 1.3 MB/s\n'; rc = 0
 Thread-60::DEBUG::2015-01-08
 11:15:13,762::fileSD::261::Storage.Misc.excCmd::(getReadDelay) '/bin/dd
 if=/rhev/data-center/mnt/192.168.1.32:_Volumes_Raid1/ac1ae7f8-cb48-4251-a246-e68efa9772f0/dom_md/metadata
 iflag=direct of=/dev/null bs=4096 count=1' (cwd None)
 Thread-60::DEBUG::2015-01-08
 11:15:13,770::fileSD::261::Storage.Misc.excCmd::(getReadDelay) SUCCESS:
 err = '0+1 records in\n0+1 records out\n480 bytes (480 B) copied,
 0.000338997 s, 1.4 MB/s\n'; rc = 0

This all seems unrelated, result of some monitoring.

When I try to login with an invalid password, I get in vdsm.log:

libvirtEventLoop::DEBUG::2015-01-11 
10:04:41,423::clientIF::555::vm.Vm::(dispatchLibvirtEvents) 
vmId=`7d43e8bd-7b09-4bd1-9254-6780da07da5a`::graphics event phase 0 localAddr 
{'node': '0.0.0.0', 'service': '5900', 'family': 0} remoteAddr {'node': 
'10.36.4.232', 'service': '50218', 'family': 0}authScheme vnc subject []
libvirtEventLoop::DEBUG::2015-01-11 
10:04:42,150::clientIF::555::vm.Vm::(dispatchLibvirtEvents) 
vmId=`7d43e8bd-7b09-4bd1-9254-6780da07da5a`::graphics event phase 1 localAddr 
{'node': '0.0.0.0', 'service': '5900', 'family': 0} remoteAddr {'node': 
'10.36.4.232', 

[ovirt-users] Failing to connect to console via vnc (was: HostedEngine Deployment Woes)

2015-01-08 Thread Yedidyah Bar David
- Original Message -
 From: Mikola Rose mr...@power-soft.com
 To: Yedidyah Bar David d...@redhat.com
 Cc: users@ovirt.org
 Sent: Thursday, January 8, 2015 2:03:08 AM
 Subject: Re: [ovirt-users] HostedEngine Deployment Woes
 
 
 I am also Seeing this in the messages.log
 
 Jan  7 13:55:39 pws-hv15 vdsm vds ERROR unexpected error#012Traceback (most
 recent call last):#012  File /usr/share/vdsm/BindingXMLRPC.py, line 1070,
 in wrapper#012res = f(*args, **kwargs)#012  File
 /usr/share/vdsm/BindingXMLRPC.py, line 314, in vmSetTicket#012return
 vm.setTicket(password, ttl, existingConnAction, params)#012  File
 /usr/share/vdsm/API.py, line 610, in setTicket#012return
 v.setTicket(password, ttl, existingConnAction, params)#012  File
 /usr/share/vdsm/vm.py, line 4560, in setTicket#012graphics =
 _domParseStr(self._dom.XMLDesc(0)).childNodes[0]. \#012AttributeError:
 'NoneType' object has no attribute 'XMLDesc'
 Jan  7 13:55:39 pws-hv15 sanlock[2152]: 2015-01-07 13:55:39-0800 6412 [2152]:
 cmd 9 target pid 7899 not found
 Jan  7 13:55:40 pws-hv15 vdsm vm.Vm WARNING
 vmId=`edc69fdd-6188-4dce-b1dc-d5ed03f914e5`::_readPauseCode unsupported by
 libvirt vm

When? When you try to connect with virsh?

Note that you need to create a temporary password with:
hosted-engine --add-console-password

 
 
 On Jan 7, 2015, at 1:58 PM, Mikola Rose
 mr...@power-soft.commailto:mr...@power-soft.com wrote:
 
 Also tried;
 [root@pws-hv15 ~]# virsh -c qemu+tls://pws-hv15.power-soft.net/system console
 HostedEngine
 Connected to domain HostedEngine
 Escape character is ^]
 
 
 no prompts or interaction after the Escape character line

iirc 'console' connects you to the serial console, not vnc, no?

 
 
 On Jan 7, 2015, at 1:42 PM, Mikola Rose
 mr...@power-soft.commailto:mr...@power-soft.com wrote:
 
 I tried realvnc

How exactly?

You need to connect to the host where it runs.

BTW, do you have there other VMs? If you migrated the engine vm there
after you already had other VMs, it will not get console '0' but some
other.

 
 The log file doesn’t really tell me whats going on that I can see
 
 2015-01-07 21:35:15.381+: starting up
 LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
 QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -name HostedEngine -S -M rhel6.5.0
 -cpu Westmere -enable-kvm -m 4096 -realtime mlock=off -smp
 2,sockets=2,cores=1,threads=1 -uuid edc69fdd-6188-4dce-b1dc-d5ed03f914e5
 -smbios type=1,manufacturer=Red Hat,product=RHEV
 Hypervisor,version=6Server-6.6.0.2.el6,serial=4C4C4544-0036-5210-8036-B1C04F4A3032_d4:ae:52:d1:91:7a,uuid=edc69fdd-6188-4dce-b1dc-d5ed03f914e5
 -nodefconfig -nodefaults -chardev
 socket,id=charmonitor,path=/var/lib/libvirt/qemu/HostedEngine.monitor,server,nowait
 -mon chardev=charmonitor,id=monitor,mode=control -rtc
 base=2015-01-07T21:35:15,driftfix=slew -no-reboot -no-shutdown -device
 piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device
 virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x4 -device
 virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -drive
 file=/rhel-server-6.6-x86_64-dvd.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw,serial=
 -device
 ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1
 -drive
 file=/var/run/vdsm/storage/9b103e2f-d35b-4b56-a380-a374c21219d1/bdfd32e0-8116-4d29-baa2-6f6a98d981c6/9d2b9c8d-9005-4cb9-836b-a3848a24b4c4,if=none,id=drive-virtio-disk0,format=raw,serial=bdfd32e0-8116-4d29-baa2-6f6a98d981c6,cache=none,werror=stop,rerror=stop,aio=threads
 -device
 virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk0,id=virtio-disk0
 -netdev tap,fd=26,id=hostnet0,vhost=on,vhostfd=27 -device
 virtio-net-pci,netdev=hostnet0,id=net0,mac=00:16:3e:64:dd:63,bus=pci.0,addr=0x3
 -chardev
 socket,id=charchannel0,path=/var/lib/libvirt/qemu/channels/edc69fdd-6188-4dce-b1dc-d5ed03f914e5.com.redhat.rhevm.vdsm,server,nowait
 -device
 virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.rhevm.vdsm
 -chardev
 socket,id=charchannel1,path=/var/lib/libvirt/qemu/channels/edc69fdd-6188-4dce-b1dc-d5ed03f914e5.org.qemu.guest_agent.0,server,nowait
 -device
 virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=org.qemu.guest_agent.0
 -chardev pty,id=charconsole0 -device
 virtconsole,chardev=charconsole0,id=console0 -vnc 0:0,password -vga cirrus
 -msg timestamp=on
 char device redirected to /dev/pts/1

Sorry, no idea.

Please try getting some more info from the vnc client.
I personally use tightvnc on linux and verified that it can connect to
a hosted-engine console.

I am also changing the subject to attract others...

 
 On Jan 7, 2015, at 12:18 AM, Yedidyah Bar David
 d...@redhat.commailto:d...@redhat.com wrote:
 
 - Original Message -
 From: Mikola Rose mr...@power-soft.commailto:mr...@power-soft.com
 To: Yedidyah Bar David d...@redhat.commailto:d...@redhat.com
 Cc: users@ovirt.orgmailto:users@ovirt.org
 Sent: Wednesday, January 7,