Re: EntityExistsException on management server startup (createDefaultNetworks)

2012-11-05 Thread Alena Prokharchyk
Hi Dave, See my comments inline. -Alena. On 11/4/12 9:49 PM, "Dave Cahill" wrote: >Hi Alena, > >Thanks very much for your reply. > >> 1) ConfigurationServerImpl, persistDefaultValues method >> >> Wrap all the DB updates in "if (init == null || init.equals("false")) >>{}" >in the single transac

Re: EntityExistsException on management server startup (createDefaultNetworks)

2012-11-04 Thread Dave Cahill
Hi Alena, Thanks very much for your reply. > 1) ConfigurationServerImpl, persistDefaultValues method > > Wrap all the DB updates in "if (init == null || init.equals("false")) {}" in the single transaction. So we don't up with partially updated DB. To do this, would we just add a line like this a

Re: EntityExistsException on management server startup (createDefaultNetworks)

2012-11-02 Thread Alena Prokharchyk
Dave, This code - default network creation - is initiated only when the Global config value "init" is false, as a part of persisting the default cloudStack values. Init is false at the very first management server startup, and it's reset to true after the default values are persisted. Looks like