cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sangeetha Hariharan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-993) "admin" user is not getting created when management server is started.
Date Wed, 16 Jan 2013 22:02:12 GMT
Sangeetha Hariharan created CLOUDSTACK-993:
----------------------------------------------

             Summary: "admin" user is not getting created when management server is started.

                 Key: CLOUDSTACK-993
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-993
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
            Reporter: Sangeetha Hariharan
            Priority: Critical


"admin" user is not getting created when management server is started. 

Installed the management server.

Executed cloud-setup-databases 
Then executed cloud-setup-management

When I login to the management server , I was not able to log in with admin/password credentials.

When the management server is started , I see the following exception in the logs:

2013-01-16 16:13:23,278 ERROR [cloud.servlet.CloudStartupServlet] (main:null) Exception starting
management server
java.lang.NullPointerException
        at com.cloud.server.ManagementServerImpl.enableAdminUser(ManagementServerImpl.java:3631)
        at com.cloud.servlet.CloudStartupServlet.init(CloudStartupServlet.java:50)
        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

I don’t see admin user being created in the DB by default.

mysql> select * from account;
+----+--------------+--------------------------------------+------+-----------+---------+---------+----------------+----------------+-----------------+
| id | account_name | uuid                                 | type | domain_id | state   |
removed | cleanup_needed | network_domain | default_zone_id |
+----+--------------+--------------------------------------+------+-----------+---------+---------+----------------+----------------+-----------------+
|  1 | system       | 9ed4c716-f2dc-421a-85d3-827826c37d5d |    1 |         1 | enabled |
NULL    |              0 | NULL           |            NULL |
|  2 | admin        | 4feb1bfa-e6c2-40b2-8159-13d0d6d7799c |    1 |         1 | enabled |
NULL    |              0 | NULL           |            NULL |
+----+--------------+--------------------------------------+------+-----------+---------+---------+----------------+----------------+-----------------+
2 rows in set (0.00 sec)

mysql> select * from user;
+----+--------------------------------------+----------+-------------------+------------+-----------+----------+-------+---------+---------+------------+---------------------+---------+----------+--------------------+---------------+--------------------------+
| id | uuid                                 | username | password          | account_id |
firstname | lastname | email | state   | api_key | secret_key | created             | removed
| timezone | registration_token | is_registered | incorrect_login_attempts |
+----+--------------------------------------+----------+-------------------+------------+-----------+----------+-------+---------+---------+------------+---------------------+---------+----------+--------------------+---------------+--------------------------+
|  1 | affe8ed1-623c-434c-9066-843cb82b5240 | system   | 0.112965704047089 |          1 |
system    | cloud    | NULL  | enabled | NULL    | NULL       | 2013-01-16 16:13:12 | NULL
   | NULL     | NULL               |             0 |                        0 |
+----+--------------------------------------+----------+-------------------+------------+-----------+----------+-------+---------+---------+------------+---------------------+---------+----------+--------------------+---------------+--------------------------+
1 row in set (0.00 sec)


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message