[ https://issues.apache.org/jira/browse/CLOUDSTACK-2013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13632047#comment-13632047 ]
Hugo Trippaers commented on CLOUDSTACK-2013: -------------------------------------------- My mistake, sorry about that. Fixed by Phong Nguyen (review 10437 / commit 794e653c1325f6ba78b700f62e75c5a7b502c4eb) Can you retest and close this if it is fixed? > Failed to inject generated public key into systemvm iso due to > java.io.IOException > ---------------------------------------------------------------------------------- > > Key: CLOUDSTACK-2013 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2013 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Install and Setup > Affects Versions: 4.2.0 > Reporter: Chandan Purushothama > Priority: Blocker > Fix For: 4.2.0 > > > On deployment of a new management Server Installation an IOException is > thrown with a message - "java.io.IOException: Cannot run program "/bin/bash > /usr/share/cloudstack-common/scripts/vm/systemvm/injectkeys.sh": > java.io.IOException: error=2, No such file or directory". But when i executed > the entire command "/bin/bash > /usr/share/cloudstack-common/scripts/vm/systemvm/injectkeys.sh > /var/cloudstack/management/.ssh/id_rsa.pub > /var/cloudstack/management/.ssh/id_rsa > /usr/share/cloudstack-common/vms/systemvm.iso", it got executed successfully. > I mentioned both my observations below: > =========== > Observations: > =========== > 2013-04-11 12:08:17,004 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.storage.dao.SnapshotDaoImpl_EnhancerByCloudStack_94988adb > 2013-04-11 12:08:17,005 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.keystore.KeystoreDaoImpl_EnhancerByCloudStack_b8a6a674 > 2013-04-11 12:08:17,005 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.api.query.dao.ProjectAccountJoinDaoImpl_EnhancerByCloudStack_6f988912 > 2013-04-11 12:08:17,006 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.usage.dao.UsageJobDaoImpl_EnhancerByCloudStack_2ea68b19 > 2013-04-11 12:08:17,006 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.network.vpc.dao.VpcOfferingServiceMapDaoImpl_EnhancerByCloudStack_5fbb9eb5 > 2013-04-11 12:08:17,006 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.certificate.dao.CertificateDaoImpl_EnhancerByCloudStack_c32228e > 2013-04-11 12:08:17,006 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.api.query.dao.ProjectJoinDaoImpl_EnhancerByCloudStack_cf97355d > 2013-04-11 12:08:17,006 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.cluster.dao.ManagementServerHostPeerDaoImpl_EnhancerByCloudStack_e8becae6 > 2013-04-11 12:08:17,007 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.event.dao.UsageEventDaoImpl_EnhancerByCloudStack_676aa0b5 > 2013-04-11 12:08:17,007 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.dc.dao.DataCenterIpAddressDaoImpl_EnhancerByCloudStack_8fa8b12b > 2013-04-11 12:08:17,007 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.event.dao.EventJoinDaoImpl_EnhancerByCloudStack_e1d13dbe > 2013-04-11 12:08:17,007 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.network.ovs.dao.OvsTunnelNetworkDaoImpl_EnhancerByCloudStack_cb5f2eae > 2013-04-11 12:08:17,007 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.api.query.dao.ServiceOfferingJoinDaoImpl_EnhancerByCloudStack_51dbf00b > 2013-04-11 12:08:17,007 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.storage.dao.StoragePoolWorkDaoImpl_EnhancerByCloudStack_e2bdd71 > 2013-04-11 12:08:17,008 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.offerings.dao.NetworkOfferingServiceMapDaoImpl_EnhancerByCloudStack_542956a4 > 2013-04-11 12:08:17,008 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.dc.dao.DataCenterLinkLocalIpAddressDaoImpl_EnhancerByCloudStack_c608ddfc > 2013-04-11 12:08:17,015 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.network.dao.ExternalFirewallDeviceDaoImpl_EnhancerByCloudStack_d9ee7101 > 2013-04-11 12:08:17,015 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.dc.dao.DcDetailsDaoImpl_EnhancerByCloudStack_6088ad2e > 2013-04-11 12:08:17,015 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.api.query.dao.UserVmJoinDaoImpl_EnhancerByCloudStack_5145214 > 2013-04-11 12:08:17,015 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > org.apache.cloudstack.region.gslb.GlobalLoadBalancerDaoImpl_EnhancerByCloudStack_19a64e96 > 2013-04-11 12:08:17,016 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > org.apache.cloudstack.engine.datacenter.entity.api.db.dao.EngineClusterDaoImpl_EnhancerByCloudStack_5614a901 > 2013-04-11 12:08:17,016 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.api.query.dao.DataCenterJoinDaoImpl_EnhancerByCloudStack_74ec8e2f > 2013-04-11 12:08:17,016 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.upgrade.dao.VersionDaoImpl_EnhancerByCloudStack_314feb18 > 2013-04-11 12:08:17,016 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.simulator.dao.MockVolumeDaoImpl_EnhancerByCloudStack_d44e58cc > 2013-04-11 12:08:17,017 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.simulator.dao.MockStoragePoolDaoImpl_EnhancerByCloudStack_ab4e4293 > 2013-04-11 12:08:17,017 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > org.apache.cloudstack.storage.db.ObjectInDataStoreDaoImpl_EnhancerByCloudStack_c15b0a09 > 2013-04-11 12:08:17,023 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.network.lb.dao.ElasticLbVmMapDaoImpl_EnhancerByCloudStack_62665294 > 2013-04-11 12:08:17,024 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.network.dao.PhysicalNetworkIsolationMethodDaoImpl_EnhancerByCloudStack_703c7432 > 2013-04-11 12:08:17,024 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.network.vpc.dao.PrivateIpDaoImpl_EnhancerByCloudStack_6de30a61 > 2013-04-11 12:08:17,024 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > org.apache.cloudstack.engine.cloud.entity.api.db.dao.VMReservationDaoImpl_EnhancerByCloudStack_918a8b74 > 2013-04-11 12:08:17,024 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.dc.dao.ClusterVSMMapDaoImpl_EnhancerByCloudStack_6127b693 > 2013-04-11 12:08:17,024 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.projects.dao.ProjectAccountDaoImpl_EnhancerByCloudStack_e249388e > 2013-04-11 12:08:17,025 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.configuration.dao.ResourceLimitDaoImpl_EnhancerByCloudStack_e6f0a611 > 2013-04-11 12:08:17,025 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > org.apache.cloudstack.storage.snapshot.db.SnapshotDao2Impl_EnhancerByCloudStack_f21b726c > 2013-04-11 12:08:17,025 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.network.vpc.dao.VpcServiceMapDaoImpl_EnhancerByCloudStack_22a15b0b > 2013-04-11 12:08:17,025 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.network.as.dao.ConditionDaoImpl_EnhancerByCloudStack_9fee9c0b > 2013-04-11 12:08:17,025 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.vm.dao.UserVmCloneSettingDaoImpl_EnhancerByCloudStack_7fdaeb6a > 2013-04-11 12:08:17,026 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.network.dao.NetworkAccountDaoImpl_EnhancerByCloudStack_e9a03093 > 2013-04-11 12:08:17,026 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.vm.dao.ConsoleProxyDaoImpl_EnhancerByCloudStack_c806a0f8 > 2013-04-11 12:08:17,026 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.api.query.dao.AsyncJobJoinDaoImpl_EnhancerByCloudStack_c5f8ff9d > 2013-04-11 12:08:17,026 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.async.dao.SyncQueueDaoImpl_EnhancerByCloudStack_2817446a > 2013-04-11 12:08:17,026 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.storage.dao.SwiftDaoImpl_EnhancerByCloudStack_a17f46ee > 2013-04-11 12:08:17,027 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.api.query.dao.DomainRouterJoinDaoImpl_EnhancerByCloudStack_33f8a8b1 > 2013-04-11 12:08:17,027 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.simulator.dao.MockSecurityRulesDaoImpl_EnhancerByCloudStack_f3e3e5b3 > 2013-04-11 12:08:17,032 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.network.dao.Site2SiteCustomerGatewayDaoImpl_EnhancerByCloudStack_6b021e56 > 2013-04-11 12:08:17,033 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.storage.dao.VMTemplateDetailsDaoImpl_EnhancerByCloudStack_738ed440 > 2013-04-11 12:08:17,033 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.network.dao.BigSwitchVnsDaoImpl_EnhancerByCloudStack_edc1792b > 2013-04-11 12:08:17,033 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.capacity.dao.CapacityDaoImpl_EnhancerByCloudStack_dad7fbb8 > 2013-04-11 12:08:17,033 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.tags.dao.ResourceTagsDaoImpl_EnhancerByCloudStack_dcab95ba > 2013-04-11 12:08:17,033 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.usage.dao.ExternalPublicIpStatisticsDaoImpl_EnhancerByCloudStack_593f3dc7 > 2013-04-11 12:08:17,034 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.api.query.dao.VolumeJoinDaoImpl_EnhancerByCloudStack_71a1731c > 2013-04-11 12:08:17,034 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.network.security.dao.SecurityGroupWorkDaoImpl_EnhancerByCloudStack_4560bf0 > 2013-04-11 12:08:17,034 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.network.vpc.dao.VpcGatewayDaoImpl_EnhancerByCloudStack_8f0b382a > 2013-04-11 12:08:17,034 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > org.apache.cloudstack.region.dao.RegionDaoImpl_EnhancerByCloudStack_5b6d3a6f > 2013-04-11 12:08:17,034 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.network.dao.InlineLoadBalancerNicMapDaoImpl_EnhancerByCloudStack_b92a4179 > 2013-04-11 12:08:17,035 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.vm.snapshot.dao.VMSnapshotDaoImpl_EnhancerByCloudStack_bc43240c > 2013-04-11 12:08:17,035 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.api.query.dao.ResourceTagJoinDaoImpl_EnhancerByCloudStack_42618c72 > 2013-04-11 12:08:17,035 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.simulator.dao.MockConfigurationDaoImpl_EnhancerByCloudStack_4f73701c > 2013-04-11 12:08:17,035 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.ha.dao.HighAvailabilityDaoImpl_EnhancerByCloudStack_4063f294 > 2013-04-11 12:08:17,035 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.user.dao.UserStatsLogDaoImpl_EnhancerByCloudStack_f7bdd96b > 2013-04-11 12:08:17,036 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.async.dao.AsyncJobDaoImpl_EnhancerByCloudStack_f3d9a0ff > 2013-04-11 12:08:17,036 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.usage.dao.UsageDaoImpl_EnhancerByCloudStack_4b53509a > 2013-04-11 12:08:17,036 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.vm.dao.DomainRouterDaoImpl_EnhancerByCloudStack_c010dff2 > 2013-04-11 12:08:17,036 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.cluster.dao.ManagementServerHostDaoImpl_EnhancerByCloudStack_b859bf8 > 2013-04-11 12:08:17,042 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.network.as.dao.AutoScaleVmGroupDaoImpl_EnhancerByCloudStack_bae62e65 > 2013-04-11 12:08:17,043 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.usage.dao.UsagePortForwardingRuleDaoImpl_EnhancerByCloudStack_fe20c230 > 2013-04-11 12:08:17,043 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.network.dao.VirtualRouterProviderDaoImpl_EnhancerByCloudStack_6877e3e1 > 2013-04-11 12:08:17,043 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > org.apache.cloudstack.engine.datacenter.entity.api.db.dao.HostTagsDaoImpl_EnhancerByCloudStack_de5b87d6 > 2013-04-11 12:08:17,043 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.network.dao.NetworkDaoImpl_EnhancerByCloudStack_62d25770 > 2013-04-11 12:08:17,044 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > org.apache.cloudstack.storage.image.db.ImageDataStoreProviderDaoImpl_EnhancerByCloudStack_f8311a1a > 2013-04-11 12:08:17,044 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > org.apache.cloudstack.storage.volume.db.VolumeDao2Impl_EnhancerByCloudStack_311813f8 > 2013-04-11 12:08:17,044 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.storage.dao.GuestOSDaoImpl_EnhancerByCloudStack_9186a3fd > 2013-04-11 12:08:17,045 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.user.dao.UserAccountDaoImpl_EnhancerByCloudStack_5e68c56b > 2013-04-11 12:08:17,045 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.netapp.dao.VolumeDaoImpl_EnhancerByCloudStack_a6fd0d12 > 2013-04-11 12:08:17,045 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.api.query.dao.SecurityGroupJoinDaoImpl_EnhancerByCloudStack_765da2a7 > 2013-04-11 12:08:17,045 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.storage.dao.VMTemplateDaoImpl_EnhancerByCloudStack_2e4f1e86 > 2013-04-11 12:08:17,051 INFO [utils.db.GenericDaoBase] (Timer-1:null) Cache > created: [ name = VMTemplateDaoImpl_EnhancerByCloudStack_2e4f1e86 status = > STATUS_ALIVE eternal = false overflowToDisk = false maxElementsInMemory = 100 > maxElementsOnDisk = 0 memoryStoreEvictionPolicy = LRU timeToLiveSeconds = 600 > timeToIdleSeconds = 300 diskPersistent = false > diskExpiryThreadIntervalSeconds = 120 cacheEventListeners: hitCount = 0 > memoryStoreHitCount = 0 diskStoreHitCount = 0 missCountNotFound = 0 > missCountExpired = 0 ] > 2013-04-11 12:08:17,057 DEBUG [storage.dao.VMTemplateDaoImpl] (Timer-1:null) > Found parameter routing unique name null > 2013-04-11 12:08:17,057 DEBUG [storage.dao.VMTemplateDaoImpl] (Timer-1:null) > Use console proxy template : routing > 2013-04-11 12:08:17,060 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.upgrade.DatabaseIntegrityChecker_EnhancerByCloudStack_7eb96e2d > 2013-04-11 12:08:17,060 INFO [utils.component.ComponentContext] > (Timer-1:null) Configuring > com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_3a6f3eee > 2013-04-11 12:08:17,072 DEBUG [cloud.server.ConfigurationServerImpl] > (Timer-1:null) ConfigurationServer is saving default values to the database. > 2013-04-11 12:08:17,470 DEBUG [cloud.server.ConfigurationServerImpl] > (Timer-1:null) ConfigurationServer made secondary storage vm required. > 2013-04-11 12:08:17,482 DEBUG [cloud.server.ConfigurationServerImpl] > (Timer-1:null) ConfigurationServer made secondary storage copy encrypted. > 2013-04-11 12:08:17,482 DEBUG [cloud.server.ConfigurationServerImpl] > (Timer-1:null) ConfigurationServer made secondary storage copy use realhostip. > 2013-04-11 12:08:17,492 DEBUG [db.Transaction.Transaction] (Timer-1:null) > Rolling back the transaction: Time = 4 Name = null; called by > -Transaction.rollback:890-Transaction.removeUpTo:833-Transaction.close:657-TransactionContextBuilder.interceptException:63-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:133-ServiceOfferingDaoImpl.persistSystemServiceOffering:104-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-ConfigurationServerImpl.createServiceOffering:860-ConfigurationServerImpl.persistDefaultValues:200-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-ConfigurationServerImpl.configure:140-ComponentContext.initComponentsLifeCycle:111 > 2013-04-11 12:08:17,509 DEBUG [db.Transaction.Transaction] (Timer-1:null) > Rolling back the transaction: Time = 5 Name = null; called by > -Transaction.rollback:890-Transaction.removeUpTo:833-Transaction.close:657-TransactionContextBuilder.interceptException:63-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:133-ServiceOfferingDaoImpl.persistSystemServiceOffering:104-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-ConfigurationServerImpl.createServiceOffering:860-ConfigurationServerImpl.persistDefaultValues:201-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-ConfigurationServerImpl.configure:140-ComponentContext.initComponentsLifeCycle:111 > 2013-04-11 12:08:17,567 DEBUG [cloud.server.ConfigurationServerImpl] > (Timer-1:null) ConfigurationServer saved "/var/cloudstack/mnt" as > mount.parent. > 2013-04-11 12:08:17,576 DEBUG [utils.script.Script] (Timer-1:null) Executing: > /bin/bash -c /sbin/route | grep default > 2013-04-11 12:08:17,684 DEBUG [utils.script.Script] (Timer-1:null) Execution > is successful. > 2013-04-11 12:08:17,689 DEBUG [cloud.server.ConfigurationServerImpl] > (Timer-1:null) ConfigurationServer saved "10.223.131.170" as host. > 2013-04-11 12:08:18,053 INFO [cloud.server.ConfigurationServerImpl] > (Timer-1:null) Processing updateSSLKeyStore > 2013-04-11 12:08:18,063 INFO [cloud.server.ConfigurationServerImpl] > (Timer-1:null) SSL keystore located at > /etc/cloudstack/management/cloud.keystore > 2013-04-11 12:08:18,079 INFO [cloud.server.ConfigurationServerImpl] > (Timer-1:null) Processing updateKeyPairs > 2013-04-11 12:08:18,079 INFO [cloud.server.ConfigurationServerImpl] > (Timer-1:null) Keypairs already in database, updating local copy > 2013-04-11 12:08:18,103 INFO [cloud.server.ConfigurationServerImpl] > (Timer-1:null) Going to update systemvm iso with generated keypairs if needed > 2013-04-11 12:08:18,103 DEBUG [utils.script.Script] (Timer-1:null) Looking > for scripts/vm/systemvm/injectkeys.sh in the classpath > 2013-04-11 12:08:18,103 DEBUG [utils.script.Script] (Timer-1:null) System > resource: null > 2013-04-11 12:08:18,107 DEBUG [utils.script.Script] (Timer-1:null) Classpath > resource: null > 2013-04-11 12:08:18,107 DEBUG [utils.script.Script] (Timer-1:null) Looking > for scripts/vm/systemvm/injectkeys.sh > 2013-04-11 12:08:18,108 DEBUG [utils.script.Script] (Timer-1:null) Current > binaries reside at /usr/share/cloudstack-management/webapps/client/WEB-INF/lib > 2013-04-11 12:08:18,108 DEBUG [utils.script.Script] (Timer-1:null) Looking > for scripts/vm/systemvm/injectkeys.sh in > /usr/share/cloudstack-management/webapps/client/WEB-INF/lib/scripts/vm/systemvm/injectkeys.sh > 2013-04-11 12:08:18,108 DEBUG [utils.script.Script] (Timer-1:null) Looking > for scripts/vm/systemvm/injectkeys.sh in > /usr/share/cloudstack-management/webapps/client/WEB-INF/lib/scripts/vm/systemvm/injectkeys.sh > 2013-04-11 12:08:18,108 DEBUG [utils.script.Script] (Timer-1:null) Looking > for scripts/vm/systemvm/injectkeys.sh in > /usr/share/cloudstack-management/webapps/client/WEB-INF/scripts/vm/systemvm/injectkeys.sh > 2013-04-11 12:08:18,108 DEBUG [utils.script.Script] (Timer-1:null) Looking > for scripts/vm/systemvm/injectkeys.sh in > /usr/share/cloudstack-management/webapps/client/scripts/vm/systemvm/injectkeys.sh > 2013-04-11 12:08:18,108 DEBUG [utils.script.Script] (Timer-1:null) Looking > for scripts/vm/systemvm/injectkeys.sh in > /usr/share/cloudstack-management/webapps/scripts/vm/systemvm/injectkeys.sh > 2013-04-11 12:08:18,108 DEBUG [utils.script.Script] (Timer-1:null) Looking > for scripts/vm/systemvm/injectkeys.sh in > /usr/share/cloudstack-management/scripts/vm/systemvm/injectkeys.sh > 2013-04-11 12:08:18,108 DEBUG [utils.script.Script] (Timer-1:null) Looking > for scripts/vm/systemvm/injectkeys.sh in > /usr/share/scripts/vm/systemvm/injectkeys.sh > 2013-04-11 12:08:18,115 DEBUG [utils.script.Script] (Timer-1:null) Looking > for scripts/vm/systemvm/injectkeys.sh in > /usr/scripts/vm/systemvm/injectkeys.sh > 2013-04-11 12:08:18,115 DEBUG [utils.script.Script] (Timer-1:null) Looking > for scripts/vm/systemvm/injectkeys.sh in /scripts/vm/systemvm/injectkeys.sh > 2013-04-11 12:08:18,115 DEBUG [utils.script.Script] (Timer-1:null) Searching > in environment.properties > 2013-04-11 12:08:18,115 DEBUG [utils.script.Script] (Timer-1:null) > environment.properties says scripts should be in /usr/share/cloudstack-common > 2013-04-11 12:08:18,115 DEBUG [utils.script.Script] (Timer-1:null) Looking > for scripts/vm/systemvm/injectkeys.sh in > /usr/share/cloudstack-common/scripts/vm/systemvm/injectkeys.sh > 2013-04-11 12:08:18,116 DEBUG [utils.script.Script] (Timer-1:null) Looking > for vms/systemvm.iso in the classpath > 2013-04-11 12:08:18,116 DEBUG [utils.script.Script] (Timer-1:null) System > resource: null > 2013-04-11 12:08:18,116 DEBUG [utils.script.Script] (Timer-1:null) Classpath > resource: null > 2013-04-11 12:08:18,116 DEBUG [utils.script.Script] (Timer-1:null) Looking > for vms/systemvm.iso > 2013-04-11 12:08:18,116 DEBUG [utils.script.Script] (Timer-1:null) Current > binaries reside at /usr/share/cloudstack-management/webapps/client/WEB-INF/lib > 2013-04-11 12:08:18,116 DEBUG [utils.script.Script] (Timer-1:null) Looking > for vms/systemvm.iso in > /usr/share/cloudstack-management/webapps/client/WEB-INF/lib/vms/systemvm.iso > 2013-04-11 12:08:18,116 DEBUG [utils.script.Script] (Timer-1:null) Looking > for vms/systemvm.iso in > /usr/share/cloudstack-management/webapps/client/WEB-INF/lib/vms/systemvm.iso > 2013-04-11 12:08:18,116 DEBUG [utils.script.Script] (Timer-1:null) Looking > for vms/systemvm.iso in > /usr/share/cloudstack-management/webapps/client/WEB-INF/vms/systemvm.iso > 2013-04-11 12:08:18,116 DEBUG [utils.script.Script] (Timer-1:null) Looking > for vms/systemvm.iso in > /usr/share/cloudstack-management/webapps/client/vms/systemvm.iso > 2013-04-11 12:08:18,116 DEBUG [utils.script.Script] (Timer-1:null) Looking > for vms/systemvm.iso in > /usr/share/cloudstack-management/webapps/vms/systemvm.iso > 2013-04-11 12:08:18,116 DEBUG [utils.script.Script] (Timer-1:null) Looking > for vms/systemvm.iso in /usr/share/cloudstack-management/vms/systemvm.iso > 2013-04-11 12:08:18,117 DEBUG [utils.script.Script] (Timer-1:null) Looking > for vms/systemvm.iso in /usr/share/vms/systemvm.iso > 2013-04-11 12:08:18,117 DEBUG [utils.script.Script] (Timer-1:null) Looking > for vms/systemvm.iso in /usr/vms/systemvm.iso > 2013-04-11 12:08:18,117 DEBUG [utils.script.Script] (Timer-1:null) Looking > for vms/systemvm.iso in /vms/systemvm.iso > 2013-04-11 12:08:18,117 DEBUG [utils.script.Script] (Timer-1:null) Searching > in environment.properties > 2013-04-11 12:08:18,117 DEBUG [utils.script.Script] (Timer-1:null) > environment.properties says scripts should be in /usr/share/cloudstack-common > 2013-04-11 12:08:18,117 DEBUG [utils.script.Script] (Timer-1:null) Looking > for vms/systemvm.iso in /usr/share/cloudstack-common/vms/systemvm.iso > 2013-04-11 12:08:18,117 DEBUG [cloud.server.ConfigurationServerImpl] > (Timer-1:null) Executing: /bin/bash > /usr/share/cloudstack-common/scripts/vm/systemvm/injectkeys.sh > /var/cloudstack/management/.ssh/id_rsa.pub > /var/cloudstack/management/.ssh/id_rsa > /usr/share/cloudstack-common/vms/systemvm.iso > 2013-04-11 12:08:18,164 WARN [cloud.server.ConfigurationServerImpl] > (Timer-1:null) Exception: /bin/bash > /usr/share/cloudstack-common/scripts/vm/systemvm/injectkeys.sh > /var/cloudstack/management/.ssh/id_rsa.pub > /var/cloudstack/management/.ssh/id_rsa > /usr/share/cloudstack-common/vms/systemvm.iso > java.io.IOException: Cannot run program "/bin/bash > /usr/share/cloudstack-common/scripts/vm/systemvm/injectkeys.sh": > java.io.IOException: error=2, No such file or directory > at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) > at com.cloud.utils.script.Script.execute(Script.java:183) > at com.cloud.utils.script.Script.execute(Script.java:161) > at > com.cloud.server.ConfigurationServerImpl.injectSshKeysIntoSystemVmIsoPatch(ConfigurationServerImpl.java:737) > at > com.cloud.server.ConfigurationServerImpl.updateKeyPairs(ConfigurationServerImpl.java:667) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:267) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImpl.java:140) > at > com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111) > at > com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:50) > at java.util.TimerThread.mainLoop(Timer.java:534) > at java.util.TimerThread.run(Timer.java:484) > Caused by: java.io.IOException: java.io.IOException: error=2, No such file or > directory > at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) > at java.lang.ProcessImpl.start(ProcessImpl.java:81) > at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) > ... 20 more > 2013-04-11 12:08:18,165 WARN [cloud.server.ConfigurationServerImpl] > (Timer-1:null) Failed to inject generated public key into systemvm iso > java.io.IOException: Cannot run program "/bin/bash > /usr/share/cloudstack-common/scripts/vm/systemvm/injectkeys.sh": > java.io.IOException: error=2, No such file or directory > at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) > at com.cloud.utils.script.Script.execute(Script.java:183) > at com.cloud.utils.script.Script.execute(Script.java:161) > at > com.cloud.server.ConfigurationServerImpl.injectSshKeysIntoSystemVmIsoPatch(ConfigurationServerImpl.java:737) > at > com.cloud.server.ConfigurationServerImpl.updateKeyPairs(ConfigurationServerImpl.java:667) > at > com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_3a6f3eee.CGLIB$updateKeyPairs$7(<generated>) > at > com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_3a6f3eee_FastClassByCloudStack_20c7c3f6.invoke(<generated>) > at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_3a6f3eee.updateKeyPairs(<generated>) > at > com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:267) > at > com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_3a6f3eee.CGLIB$persistDefaultValues$2(<generated>) > at > com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_3a6f3eee_FastClassByCloudStack_20c7c3f6.invoke(<generated>) > at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_3a6f3eee.persistDefaultValues(<generated>) > at > com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImpl.java:140) > at > com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111) > at > com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:50) > at java.util.TimerThread.mainLoop(Timer.java:534) > at java.util.TimerThread.run(Timer.java:484) > Caused by: java.io.IOException: java.io.IOException: error=2, No such file or > directory > at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) > at java.lang.ProcessImpl.start(ProcessImpl.java:81) > at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) > ... 20 more > 2013-04-11 12:08:21,794 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.persist.dao.CloudStackAccountDaoImpl_EnhancerByCloudStack_286242ec > 2013-04-11 12:08:21,801 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.persist.dao.OfferingDaoImpl_EnhancerByCloudStack_bd6cb246 > 2013-04-11 12:08:21,802 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.persist.dao.SMetaDaoImpl_EnhancerByCloudStack_da13a23e > 2013-04-11 12:08:21,802 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.persist.dao.MultipartMetaDaoImpl_EnhancerByCloudStack_c17c24fd > 2013-04-11 12:08:21,803 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.persist.dao.UserCredentialsDaoImpl_EnhancerByCloudStack_7b156d5d > 2013-04-11 12:08:21,804 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.persist.dao.CloudStackConfigurationDaoImpl_EnhancerByCloudStack_e947b51b > 2013-04-11 12:08:21,805 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.persist.dao.BucketPolicyDaoImpl_EnhancerByCloudStack_40e21ee0 > 2013-04-11 12:08:21,805 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.persist.dao.SObjectItemDaoImpl_EnhancerByCloudStack_24f4d6a9 > 2013-04-11 12:08:21,806 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.persist.dao.MHostMountDaoImpl_EnhancerByCloudStack_79f80ab8 > 2013-04-11 12:08:21,807 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.persist.dao.MHostDaoImpl_EnhancerByCloudStack_ebe02cf9 > 2013-04-11 12:08:21,808 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.persist.dao.MultiPartUploadsDaoImpl_EnhancerByCloudStack_a754d226 > 2013-04-11 12:08:21,808 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.persist.dao.SBucketDaoImpl_EnhancerByCloudStack_78910ef1 > 2013-04-11 12:08:21,808 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.persist.dao.SAclDaoImpl_EnhancerByCloudStack_eb7fe76d > 2013-04-11 12:08:21,811 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.persist.dao.MultiPartPartsDaoImpl_EnhancerByCloudStack_734efca8 > 2013-04-11 12:08:21,811 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.persist.dao.CloudStackSvcOfferingDaoImpl_EnhancerByCloudStack_72a4e90b > 2013-04-11 12:08:21,812 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.persist.dao.SHostDaoImpl_EnhancerByCloudStack_1472a343 > 2013-04-11 12:08:21,812 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.persist.dao.SObjectDaoImpl_EnhancerByCloudStack_fb4d1334 > 2013-04-11 12:08:21,813 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.persist.dao.CloudStackUserDaoImpl_EnhancerByCloudStack_f69b988e > 2013-04-11 12:08:21,813 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.service.core.ec2.EC2Engine_EnhancerByCloudStack_4dd9f7e4 > 2013-04-11 12:08:22,332 DEBUG [db.Transaction.Transaction] (main:null) > Rolling back the transaction: Time = 464 Name = getOfferingCount; called by > -Transaction.rollback:890-Transaction.removeUpTo:833-Transaction.close:657-OfferingDaoImpl.getOfferingCount:47-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-EC2Engine.loadConfigValues:138-EC2Engine.configure:106-ComponentContext.initComponentsLifeCycle:111-EC2MainServlet.init:69-StandardWrapper.loadServlet:1173-StandardWrapper.load:993-StandardContext.loadOnStartup:4187 > 2013-04-11 12:08:22,333 INFO [utils.component.ComponentContext] (main:null) > Configuring > com.cloud.bridge.service.controller.s3.ServiceProvider_EnhancerByCloudStack_790a9259 > 2013-04-11 12:08:22,471 DEBUG [db.Transaction.Transaction] (main:null) > Rolling back the transaction: Time = 27 Name = initialize; called by > -Transaction.rollback:890-Transaction.removeUpTo:833-Transaction.close:657-MHostDaoImpl.getByHostKey:49-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-ServiceProvider.setupHost:300-ServiceProvider.initialize:239-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-ServiceProvider.configure:110-ComponentContext.initComponentsLifeCycle:111-EC2MainServlet.init:69-StandardWrapper.loadServlet:1173 > 2013-04-11 12:08:22,519 DEBUG [db.Transaction.Transaction] (main:null) > Rolling back the transaction: Time = 2 Name = initialize; called by > -Transaction.rollback:890-Transaction.removeUpTo:833-Transaction.close:657-SHostDaoImpl.getLocalStorageHost:67-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-ServiceProvider.setupLocalStorage:314-ServiceProvider.initialize:249-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-ServiceProvider.configure:110-ComponentContext.initComponentsLifeCycle:111-EC2MainServlet.init:69-StandardWrapper.loadServlet:1173 > 2013-04-11 12:08:22,520 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.persist.dao.CloudStackAccountDaoImpl_EnhancerByCloudStack_286242ec > 2013-04-11 12:08:22,520 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.persist.dao.OfferingDaoImpl_EnhancerByCloudStack_bd6cb246 > 2013-04-11 12:08:22,520 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.persist.dao.SMetaDaoImpl_EnhancerByCloudStack_da13a23e > 2013-04-11 12:08:22,520 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.persist.dao.MultipartMetaDaoImpl_EnhancerByCloudStack_c17c24fd > 2013-04-11 12:08:22,520 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.persist.dao.UserCredentialsDaoImpl_EnhancerByCloudStack_7b156d5d > 2013-04-11 12:08:22,520 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.persist.dao.CloudStackConfigurationDaoImpl_EnhancerByCloudStack_e947b51b > 2013-04-11 12:08:22,520 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.persist.dao.BucketPolicyDaoImpl_EnhancerByCloudStack_40e21ee0 > 2013-04-11 12:08:22,520 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.persist.dao.SObjectItemDaoImpl_EnhancerByCloudStack_24f4d6a9 > 2013-04-11 12:08:22,520 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.persist.dao.MHostMountDaoImpl_EnhancerByCloudStack_79f80ab8 > 2013-04-11 12:08:22,520 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.persist.dao.MHostDaoImpl_EnhancerByCloudStack_ebe02cf9 > 2013-04-11 12:08:22,520 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.persist.dao.MultiPartUploadsDaoImpl_EnhancerByCloudStack_a754d226 > 2013-04-11 12:08:22,520 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.persist.dao.SBucketDaoImpl_EnhancerByCloudStack_78910ef1 > 2013-04-11 12:08:22,520 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.persist.dao.SAclDaoImpl_EnhancerByCloudStack_eb7fe76d > 2013-04-11 12:08:22,521 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.persist.dao.MultiPartPartsDaoImpl_EnhancerByCloudStack_734efca8 > 2013-04-11 12:08:22,521 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.persist.dao.CloudStackSvcOfferingDaoImpl_EnhancerByCloudStack_72a4e90b > 2013-04-11 12:08:22,521 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.persist.dao.SHostDaoImpl_EnhancerByCloudStack_1472a343 > 2013-04-11 12:08:22,521 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.persist.dao.SObjectDaoImpl_EnhancerByCloudStack_fb4d1334 > 2013-04-11 12:08:22,521 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.persist.dao.CloudStackUserDaoImpl_EnhancerByCloudStack_f69b988e > 2013-04-11 12:08:22,521 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.service.core.ec2.EC2Engine_EnhancerByCloudStack_4dd9f7e4 > 2013-04-11 12:08:22,521 INFO [utils.component.ComponentContext] (main:null) > Starting > com.cloud.bridge.service.controller.s3.ServiceProvider_EnhancerByCloudStack_790a9259 > :q > ^C > [root@asfmgmt systemvm]# /bin/bash > /usr/share/cloudstack-common/scripts/vm/systemvm/injectkeys.sh > /var/cloudstack/management/.ssh/id_rsa.pub > /var/cloudstack/management/.ssh/id_rsa > /usr/share/cloudstack-common/vms/systemvm.iso > Files /var/cloudstack/management/.ssh/id_rsa and > /usr/share/cloudstack-common/scripts/vm/systemvm/id_rsa.cloud differ > [root@asfmgmt systemvm]# > ========== > Bug Impact: > ========== > Unable to login as an admin User since the management server didn't "enable" > the Admin account and change its password to the default password. The > Management Server didn't reach that part of code due to this bug. -- 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