glassfish
  1. glassfish
  2. GLASSFISH-17942

validate-dcom against localhost gave a wrong status.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.2_b14
    • Component/s: distributed management
    • Labels:
      None

      Description

      Win 2008 GF 3.1.2 b12.
      Executed validate-dcom against localhost:

      =================================================================
      asadmin validate-dcom localhost
      Enter AS_ADMIN_WINDOWSPASSWORD password>
      Enter AS_ADMIN_WINDOWSPASSWORD password again>
      remote failure:
      Successfully resolved host name to: localhost/127.0.0.1
      Successfully connected to DCOM Port at port 135 on host localhost.
      Can't connect to NetBIOS Session Service at port 139 on host localhost.
      This is usually caused by a firewall blocking the port or the Server Service bei
      ng stopped. : Connection refused: connect
      Successfully connected to Windows Shares at port 445 on host localhost.

      Command validate-dcom failed.
      ======================================================

      I believe in this case validate-dcom gave a wrong status. It works if to use machine name instead of "localhost" and create-node-dcom works with nodehost=localhost.

        Activity

        Hide
        Byron Nevins added a comment -

        This is the way it works. localhost and the machine name have different intricate connections to DCOM. There is no need to change this behavior since we don't support using Distributed COM for communications on the same machine.

        Show
        Byron Nevins added a comment - This is the way it works. localhost and the machine name have different intricate connections to DCOM. There is no need to change this behavior since we don't support using Distributed COM for communications on the same machine.
        Hide
        Byron Nevins added a comment -

        Note that this behavior is out of our hands – it is DCOM itself

        Show
        Byron Nevins added a comment - Note that this behavior is out of our hands – it is DCOM itself
        Hide
        Byron Nevins added a comment -

        Add a check – if the host == this machine
        then fail with an error message immediately.

        Show
        Byron Nevins added a comment - Add a check – if the host == this machine then fail with an error message immediately.
        Hide
        Byron Nevins added a comment -

        AFTER the change:

        d:\gf\branches\3.1.2\cluster\admin>asadmin validate-dcom -W \pw_orcl -w wnevins localhost
        remote failure: The host, localhost, is the local machine. DCOM is only for use on distributed systems.

        d:\gf\branches\3.1.2\cluster\admin>asadmin validate-dcom -W \pw_orcl -w wnevins 127.0.0.1
        remote failure: The host, 127.0.0.1, is the local machine. DCOM is only for use on distributed systems.

        d:\gf\branches\3.1.2\cluster\admin>asadmin validate-dcom -W \pw_orcl -w wnevins wnevins-lap
        remote failure: The host, wnevins-lap, is the local machine. DCOM is only for use on distributed systems.

        d:\gf\branches\3.1.2\cluster\admin>asadmin validate-dcom -W \pw_orcl -w wnevins 10.28.51.113
        remote failure: The host, 10.28.51.113, is the local machine. DCOM is only for use on distributed systems.

        d:\gf\branches\3.1.2\cluster\admin>asadmin validate-dcom -W \pw_orcl -w wnevins 10.159.220.147
        remote failure: The host, 10.159.220.147, is the local machine. DCOM is only for use on distributed systems.

        Show
        Byron Nevins added a comment - AFTER the change: d:\gf\branches\3.1.2\cluster\admin>asadmin validate-dcom -W \pw_orcl -w wnevins localhost remote failure: The host, localhost, is the local machine. DCOM is only for use on distributed systems. d:\gf\branches\3.1.2\cluster\admin>asadmin validate-dcom -W \pw_orcl -w wnevins 127.0.0.1 remote failure: The host, 127.0.0.1, is the local machine. DCOM is only for use on distributed systems. d:\gf\branches\3.1.2\cluster\admin>asadmin validate-dcom -W \pw_orcl -w wnevins wnevins-lap remote failure: The host, wnevins-lap, is the local machine. DCOM is only for use on distributed systems. d:\gf\branches\3.1.2\cluster\admin>asadmin validate-dcom -W \pw_orcl -w wnevins 10.28.51.113 remote failure: The host, 10.28.51.113, is the local machine. DCOM is only for use on distributed systems. d:\gf\branches\3.1.2\cluster\admin>asadmin validate-dcom -W \pw_orcl -w wnevins 10.159.220.147 remote failure: The host, 10.159.220.147, is the local machine. DCOM is only for use on distributed systems.
        Hide
        Byron Nevins added a comment -

        d:\gf\branches\3.1.2\cluster>svn commit d:\gf\trunk\main\nucleus\cluster d:\gf\branches\3.1.2\cluster
        Sending D:\gf\branches\3.1.2\cluster\admin\src\main\java\com\sun\enterprise\v3\admin\cluster\LocalStrings.properties
        Sending D:\gf\branches\3.1.2\cluster\admin\src\main\java\com\sun\enterprise\v3\admin\cluster\ValidateDcom.java
        Sending D:\gf\branches\3.1.2\cluster\compare.bat
        Sending D:\gf\branches\3.1.2\cluster\copyy.bat
        Sending D:\gf\branches\3.1.2\cluster\setfiles.bat
        Sending D:\gf\trunk\main\nucleus\cluster\admin\src\main\java\com\sun\enterprise\v3\admin\cluster\LocalStrings.properties
        Sending D:\gf\trunk\main\nucleus\cluster\admin\src\main\java\com\sun\enterprise\v3\admin\cluster\ValidateDcom.java
        Transmitting file data .......
        Committed revision 51431.

        Show
        Byron Nevins added a comment - d:\gf\branches\3.1.2\cluster>svn commit d:\gf\trunk\main\nucleus\cluster d:\gf\branches\3.1.2\cluster Sending D:\gf\branches\3.1.2\cluster\admin\src\main\java\com\sun\enterprise\v3\admin\cluster\LocalStrings.properties Sending D:\gf\branches\3.1.2\cluster\admin\src\main\java\com\sun\enterprise\v3\admin\cluster\ValidateDcom.java Sending D:\gf\branches\3.1.2\cluster\compare.bat Sending D:\gf\branches\3.1.2\cluster\copyy.bat Sending D:\gf\branches\3.1.2\cluster\setfiles.bat Sending D:\gf\trunk\main\nucleus\cluster\admin\src\main\java\com\sun\enterprise\v3\admin\cluster\LocalStrings.properties Sending D:\gf\trunk\main\nucleus\cluster\admin\src\main\java\com\sun\enterprise\v3\admin\cluster\ValidateDcom.java Transmitting file data ....... Committed revision 51431.

          People

          • Assignee:
            Byron Nevins
            Reporter:
            easarina
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: