cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alena Prokharchyk (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-7258) System accounts/users are tried to be inserted twice on RPM setup
Date Tue, 05 Aug 2014 17:50:12 GMT
Alena Prokharchyk created CLOUDSTACK-7258:
---------------------------------------------

             Summary: System accounts/users are tried to be inserted twice on RPM setup
                 Key: CLOUDSTACK-7258
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7258
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
    Affects Versions: 4.5.0
            Reporter: Alena Prokharchyk
             Fix For: Future


In the developer setup, initial CS configuration - inserting system/admin user, account -
is done in ConfigurationServerImpl class - on the MS startup.

As opposed to that, in RPM setup (the one that QA and customers use), the initial setup is
first done by calling cloud-setup-databases before the MS start, which in turn calls DataBaseConfig.java.
DataBaseConfig.java inserts system users. Then when MS starts, ConfigurationServerImpl code
tries to insert the same system/admin users again - and it fails as those users are already
inserted. Currently we handle it by simply catching and logging mysql exceptions in DEBUG
mode.

We should fix the installation process so the user is inserted only once; and change the logic
in ConfigurationServer - instead of logging the exception, we should throw the RuntimeException
indicating that essential CS configuration failed, and that exception should fail MS startup.


That would be a big change that has to be well tested through. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message