quality@glassfish.java.net

[Admin][Problem Confirming]Change-Master-Password

From: Tang Yong <tangyong_at_cn.fujitsu.com>
Date: Tue, 26 Aug 2008 16:01:00 +0800

Hi Quality Teams,
Hi Admin Teams,
Hi Kedar,

  I have a problem related "Change-Master-Password".

[BackGround]:
  I use GlassFish V2Ur2-b04 to execute some operations on Windows XP Platform.
The following is the sequence of the operations:
-----------------------------------------------------------------
E:\workspace\glassfish_v2\glassfish\bin>asadmin stop-node-agent na1
Command stop-node-agent executed successfully.

E:\workspace\glassfish_v2\glassfish\bin>asadmin stop-domain
Domain domain1 stopped.

E:\workspace\glassfish_v2\glassfish\bin>asadmin change-master-password na1
Please enter the master password>changeit
Please enter the new master password>tangyong
Please enter the new master password again>tangyong
Master password changed for node agent na1

E:\workspace\glassfish_v2\glassfish\bin>asadmin start-domain
Starting Domain domain1, please wait.
Log redirected to E:\workspace\glassfish_v2\glassfish\domains\domain1\logs\serve
r.log.
Redirecting output to E:/workspace/glassfish_v2/glassfish/domains/domain1/logs/s
erver.log
Domain domain1 started.
Domain [domain1] is running [Sun Java System Application Server 9.1_02 (build b0
4-fcs)] with its configuration and logs at: [E:\workspace\glassfish_v2\glassfish
\domains].
Admin Console is available at [http://localhost:4848].
Use the same port [4848] for "asadmin" commands.
User web applications are available at these URLs:
[http://localhost:8080 https://localhost:8181 ].
Following web-contexts are available:
[/web1 /__wstx-services ].
Standard JMX Clients (like JConsole) can connect to JMXServiceURL:
[service:jmx:rmi:///jndi/rmi://fnst-d6116892d5:3075/jmxrmi] for domain managemen
t purposes.
Domain listens on at least following ports for connections:
[8080 8181 4848 3074 3820 3920 3075 ].
Domain supports application server clusters and other standalone instances.

E:\workspace\glassfish_v2\glassfish\bin>asadmin start-node-agent na1
Please enter the admin user name>admin
Please enter the admin password>adminadmin
Please enter the master password [Enter to accept the default]:>tangyong
Redirecting output to E:/workspace/glassfish_v2/glassfish/nodeagents/na1/agent/l
ogs/server.log
Redirecting application output to E:/workspace/glassfish_v2/glassfish/nodeagents
/na1/agent/logs/server.log
Command start-node-agent executed successfully.

E:\workspace\glassfish_v2\glassfish\bin>asadmin stop-node-agent na1
Command stop-node-agent executed successfully.

E:\workspace\glassfish_v2\glassfish\bin>asadmin stop-domain domain1
Domain domain1 stopped.

E:\workspace\glassfish_v2\glassfish\bin>asadmin change-master-password domain1
Please enter the new master password>daizhiwei
Please enter the new master password again>daizhiwei
Master password changed for domain domain1

E:\workspace\glassfish_v2\glassfish\bin>asadmin start-domain domain1
Starting Domain domain1, please wait.
Log redirected to E:\workspace\glassfish_v2\glassfish\domains\domain1\logs\serve
r.log.
Please enter the master password>daizhiwei
Redirecting output to E:/workspace/glassfish_v2/glassfish/domains/domain1/logs/s
erver.log
Domain domain1 started.
Domain [domain1] is running [Sun Java System Application Server 9.1_02 (build b0
4-fcs)] with its configuration and logs at: [E:\workspace\glassfish_v2\glassfish
\domains].
Admin Console is available at [http://localhost:4848].
Use the same port [4848] for "asadmin" commands.
User web applications are available at these URLs:
[http://localhost:8080 https://localhost:8181 ].
Following web-contexts are available:
[/web1 /__wstx-services ].
Standard JMX Clients (like JConsole) can connect to JMXServiceURL:
[service:jmx:rmi:///jndi/rmi://fnst-d6116892d5:3075/jmxrmi] for domain managemen
t purposes.
Domain listens on at least following ports for connections:
[8080 8181 4848 3074 3820 3920 3075 ].
Domain supports application server clusters and other standalone instances.

E:\workspace\glassfish_v2\glassfish\bin>asadmin start-node-agent na1
Please enter the admin user name>admin
Please enter the admin password>adminadmin
Please enter the master password [Enter to accept the default]:>tangyong
Redirecting output to E:/workspace/glassfish_v2/glassfish/nodeagents/na1/agent/l
ogs/server.log
Redirecting application output to E:/workspace/glassfish_v2/glassfish/nodeagents
/na1/agent/logs/server.log
Timeout waiting for Node Agent na1 to go to starting state.
CLI137 Command start-node-agent failed.
-----------------------------------------------------------------------------

[Problem]:
  During the above operations, I firstly changed the NodeAgent's Master Password, secondly,
I changed the Domain's Master Password. And the NodeAgent's MP(Master Password) is not
same as the Domain's MP.So, when firstly starting NA changed on the first time, NA is started
successfully.However, when secondly starting NA using the MP changed on the first time, the
NA failed to start. However, using the Domain's MP changed on the second time, the NA is started
successfully. So, the NA's Master Password is not same as the Domain's Master Password?

 The attachement is the NodeAgent's serverlog file, please refer to it.

Could you please help to answer the question?

Best Regard!
Thanks!

----Mike.Tang (GlassFish Quality Test Contributor)