Hi Itamar,

I tried a few more things... I monitored the port traffic using netstat between ovirt-engine(also running browser+spice) and the host(ovirt-node) and I noticed that there is no new connections being made apart from the regular ssh connections when I attempt to start the console. So I think the spice client is unable to get the host IP Address to initiate a connection. Is there a way we can check what IP/hostname spice is using to connect to the host.



On Wed, Apr 11, 2012 at 7:17 PM, Itamar Heim <iheim@redhat.com> wrote:
On 04/11/2012 04:41 PM, Rahul Upadhyaya wrote:
hi Itamar,Spice-devel team,

Adding some more info to the issue.
I also checked on my host using " vdsClient -s 0 list | grep
displayPort" that there were 6 ports open and listening for my 6 running
Vms (5900,5901....) [also verified by trying to telnet to that port from
my machine containing the engine].

+ tried suggestion on this bug report
https://bugzilla.redhat.com/show_bug.cgi?id=805552 . That did not help
my case.

just to rule this out, can you please check if it tries to connect to port 5900 or 65535?
thanks




On Wed, Apr 11, 2012 at 6:57 PM, Itamar Heim <iheim@redhat.com
<mailto:iheim@redhat.com>> wrote:

   cc-ing spice-devel to help with this.

   client has communication to host, which has iptables stopped.
   error from client seems to be:

                  1334120376 INFO [1984:1986] RedPeer::connect_to_peer:
          Connect
                  failed:
                  Connection refused (111)
                  1334120376 WARN [1984:1986] RedChannel::run: failed to
          connect:
                  Connection refused (111)
                  1334120376 INFO [1984:1984] main: Spice client terminated
                  (exitcode = 3)




   On 04/11/2012 04:15 PM, Rahul Upadhyaya wrote:

       Hi Itamar,

       My browser with the spice-xpi is running on the same server
       running the
       management engine. So I  can you ping that private IP address
       from the
       client I am trying to connect with spice.

       On Wed, Apr 11, 2012 at 6:34 PM, Itamar Heim <iheim@redhat.com
       <mailto:iheim@redhat.com>
       <mailto:iheim@redhat.com <mailto:iheim@redhat.com>>> wrote:

           On 04/11/2012 04:00 PM, Rahul Upadhyaya wrote:

               Hi Itamar,

               The Host that I have added is a Private IP machine
       (10.10.x.x) .
               it does
               not have a FQDN. I am able to ping and ssh from my
       management
               (ovirt-engine node) to the host (Fedora16+VDSM)
               Iptables is also stopped for the host. Is there some
       specific
               port that
               SPICE requires to connect ?

                 From the engine I am able to create Vms and do other
       operations on
               them, its only that the console is not connecting.


           question is can you ping that private IP address from the
       client you
           are trying to connect with spice from (spice opens from
       client to
           host running the VM)


               On Wed, Apr 11, 2012 at 6:19 PM, Itamar Heim
       <iheim@redhat.com <mailto:iheim@redhat.com>
       <mailto:iheim@redhat.com <mailto:iheim@redhat.com>>
       <mailto:iheim@redhat.com <mailto:iheim@redhat.com>
       <mailto:iheim@redhat.com <mailto:iheim@redhat.com>>>> wrote:

                   On 04/11/2012 03:48 PM, Rahul Upadhyaya wrote:

                       Hi Itamar,

                       During the installation of the ovirt-engine I have
               followed the
                       steps as
                       mentioned on your website/wiki. All other
       functionality are
                       fine, its
                       only the console that is giving me problems.
       Host IP is
                       resolvable. The
                       fedora machine that I tried it actually the
       localhost
               (same VM - my
                       ovirt engine is on a VM) where my ovirt-engine
       resides. As a
                       measure to
                       check if firewall is creating some problems, I
       stopped the
                       iptables too
                       (I dont think this should be the problem).


                   when you added the host to engine, which ip
       address/hostname
               did you
                   use?




                       On Wed, Apr 11, 2012 at 5:57 PM, Itamar Heim
       <iheim@redhat.com <mailto:iheim@redhat.com>
       <mailto:iheim@redhat.com <mailto:iheim@redhat.com>>
       <mailto:iheim@redhat.com <mailto:iheim@redhat.com>
       <mailto:iheim@redhat.com <mailto:iheim@redhat.com>>>
       <mailto:iheim@redhat.com <mailto:iheim@redhat.com>
       <mailto:iheim@redhat.com <mailto:iheim@redhat.com>>
       <mailto:iheim@redhat.com <mailto:iheim@redhat.com>
       <mailto:iheim@redhat.com <mailto:iheim@redhat.com>>>>> wrote:

                           On 04/11/2012 02:49 PM, Rahul Upadhyaya wrote:

                               Hi Itamar and others,

                               In reference to the problem that I had
       posted
               yesterday you
                               (Itamar) had
                               asked for the spice log on my machine. I
       have
               attached
                       the spice log
                               that gets generated each time when I
       start the
               console (gets
                               generated
                               under ~/.spicec/spicec.log.)




         ==============================________========================__==__==__==__==================__====__====__====__============__=




                               1334120373 INFO [1984:1984]
       Application::main:
               starting
                       0.10.1
                               1334120373 INFO [1984:1984]
       Application::main:
               command
                       line: spicec
                               --controller
                               1334120373 INFO [1984:1984]
       init_key_map: using
               evdev
                       mapping
                               1334120373 INFO [1984:1984]
                       MultyMonScreen::________MultyMonScreen:




                               platform_win: 73400321
                               1334120373 INFO [1984:1984] GUI::GUI:
                               1334120374 INFO [1984:1984]
               ForeignMenu::ForeignMenu:
                       Creating a
                               foreign
                               menu connection
       /tmp/SpiceForeignMenu-1984.uds
                               1334120374 INFO [1984:1984]
       Controller::Controller:
                       Creating a
                               controller connection
       /tmp/spicec-DtxtfS/spice-xpi
                               1334120376 INFO [1984:1986]
               RedPeer::connect_to_peer:
                       Connect
                               failed:
                               Connection refused (111)
                               1334120376 WARN [1984:1986] RedChannel::run:
               failed to
                       connect:
                               Connection refused (111)
                               1334120376 INFO [1984:1984] main: Spice
       client
               terminated
                               (exitcode = 3)



         ==============================________========================__==__==__==__==================__====__====__====__============__==





                               Also, I see connection refused but i am
       not sure
               on which
                               address/port
                               is it trying to connect and failing. Do
       I need
               to start some
                               service or
                               something. I tried disabling my
       firewall.. but that
                       doesn't help
                               too.
                               I tried using the VNC console option too
       but when I
                       select VNC the
                               console option itself gets disabled.

                               All the above I tried on a fedora box with
               firefox 11 +
                               spice-xpi . I
                               also gave a try with windows IE9 . That
       also doesnt
                       work. (In IE
                               even
                               after clicking console.. I dont see any
       activity
               happening.)


                               --
                               Regards,
                               Rahul



         ==============================________========================__==






                           did you install the host from engine, with
       'configure
                       iptables' ? is
                           iptables enabled on the host? is the host ip
       resolveable
                       from client?




                       --
                       Regards,
                       Rahul


         ==============================______==========================







               --
               Regards,
               Rahul





       --
       Regards,
       Rahul


       ==============================__==========================





--
Regards,
Rahul
========================================================





--
Regards,
Rahul
========================================================