Thanks for that link Sheng - I ran the sudo keytool manually and that fixed the issue, I don't get prompted manually for the password anymore. Guess we'll need to address modification of scripts that assume passwordless sudo to be configured.
Regards, Vijay On 9/16/13 5:46 PM, "Sheng Yang" <sh...@yasker.org> wrote: >It's not the keystore who prompted the password again. The log shows: > >INFO [cloud.server.ConfigurationServerImpl] (Timer-2:) Going to update >systemvm iso with generated keypairs if needed > >It's newly generated ssh key. See: >https://issues.apache.org/jira/browse/CLOUDSTACK-1389 > >--Sheng > > >On Mon, Sep 16, 2013 at 5:41 PM, Vijayendra Bhamidipati < >vijayendra.bhamidip...@citrix.com> wrote: > >> I'm setting up devcloud on mac os x and am running into this problem >>when >> bringing up the mgmt server (following the instructions on >> https://cwiki.apache.org/confluence/display/CLOUDSTACK/DevCloud, this is >> in step 7.3) >> >> >> INFO [utils.component.ComponentContext] (Timer-2:) Configuring >> com.cloud.upgrade.DatabaseIntegrityChecker_EnhancerByCloudStack_372ea153 >> INFO [utils.component.ComponentContext] (Timer-2:) Configuring >> com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_f2e47214 >> INFO [cloud.server.ConfigurationServerImpl] (Timer-2:) Processing >> updateSSLKeyStore >> INFO [cloud.server.ConfigurationServerImpl] (Timer-2:) SSL keystore >> located at >> >>/Users/vijay/work/cloudstack-ws/asf/cloudstack-apache/client/target/cloud >>-client-ui-4.2.0/WEB-INF/classes/cloud.keystore >> Password:WARN [utils.script.Script] (Script-1:) Interrupting script. >> WARN [utils.script.Script] (Timer-2:) Timed out: sudo keytool -genkey >> -keystore >> >>/Users/vijay/work/cloudstack-ws/asf/cloudstack-apache/client/target/cloud >>-client-ui-4.2.0/WEB-INF/classes/cloud.keystore >> -storepass vmops.com -keypass vmops.com -keyalg RSA -validity 3650 >>-dname >> cn="Cloudstack >>User",ou="local.citrite.net",o="local.citrite.net",c="Unknown" >> . Output is: >> WARN [cloud.server.ConfigurationServerImpl] (Timer-2:) Would use >> fail-safe keystore to continue. >> java.io.IOException: Fail to generate certificate!: timeout >> at >> >>com.cloud.server.ConfigurationServerImpl.generateDefaultKeystore(Configur >>ationServerImpl.java:496) >> at >> >>com.cloud.server.ConfigurationServerImpl.updateSSLKeystore(ConfigurationS >>erverImpl.java:517) >> at >> >>com.cloud.server.ConfigurationServerImpl.persistDefaultValues(Configurati >>onServerImpl.java:289) >> at >> >>com.cloud.utils.component.ComponentInstantiationPostProcessor$Interceptor >>Dispatcher.intercept(ComponentInstantiationPostProcessor.java:125) >> at >> >>com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImp >>l.java:157) >> at >> >>com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(Compon >>entContext.java:111) >> at >>com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:54) >> at java.util.TimerThread.mainLoop(Timer.java:512) >> at java.util.TimerThread.run(Timer.java:462) >> INFO [cloud.server.ConfigurationServerImpl] (Timer-2:) Processing >> updateKeyPairs >> INFO [cloud.server.ConfigurationServerImpl] (Timer-2:) Keypairs already >> in database, updating local copy >> INFO [cloud.server.ConfigurationServerImpl] (Timer-2:) Going to update >> systemvm iso with generated keypairs if needed >> Password: >> >> >> >> I'm running 4.2 however not master. Why am I being prompted for a >> password again? The default keystore generation kicked in, so I cannot >> understand this repeated prompt can't seem to find whether/where sudo >> keytool is being invoked again/retried has anyone run into this issue >> before? Would be helpful if anyone running devcloud currently on os x >>could >> provide pointers. >> >> Thanks! >> Regards, >> Vijay >>