Github user rhtyd commented on the issue:

    https://github.com/apache/cloudstack/pull/1950
  
    Additional notes, I still found issues with mgmt server not working 
afterwards likely due to permission/sudoers issue:
    
     017-02-22 18:37:25,076 INFO  [c.c.s.ConfigurationServerImpl] 
(localhost-startStop-1:null) (logid:) Trying to inject public and private keys 
into systemvm iso
    2017-02-22 18:37:25,076 DEBUG [c.c.u.s.Script] (localhost-startStop-1:null) 
(logid:) Looking for scripts/vm/systemvm/injectkeys.sh in the classpath
    2017-02-22 18:37:25,076 DEBUG [c.c.u.s.Script] (localhost-startStop-1:null) 
(logid:) System resource: 
file:/usr/share/cloudstack-common/scripts/vm/systemvm/injectkeys.sh
    2017-02-22 18:37:25,076 DEBUG [c.c.u.s.Script] (localhost-startStop-1:null) 
(logid:) Absolute path =  
/usr/share/cloudstack-common/scripts/vm/systemvm/injectkeys.sh
    2017-02-22 18:37:25,076 DEBUG [c.c.u.s.Script] (localhost-startStop-1:null) 
(logid:) Looking for vms/systemvm.iso in the classpath
    2017-02-22 18:37:25,076 DEBUG [c.c.u.s.Script] (localhost-startStop-1:null) 
(logid:) System resource: file:/usr/share/cloudstack-common/vms/systemvm.iso
    2017-02-22 18:37:25,076 DEBUG [c.c.u.s.Script] (localhost-startStop-1:null) 
(logid:) Absolute path =  /usr/share/cloudstack-common/vms/systemvm.iso
    2017-02-22 18:37:25,076 DEBUG [c.c.s.ConfigurationServerImpl] 
(localhost-startStop-1:null) (logid:) Executing: /bin/bash 
/usr/share/cloudstack-common/scripts/vm/systemvm/injectkeys.sh 
/var/lib/cloudstack/management/.ssh/id_rsa.pub 
/var/lib/cloudstack/management/.ssh/id_rsa 
/usr/share/cloudstack-common/vms/systemvm.iso 
    2017-02-22 18:37:25,231 DEBUG [c.c.s.ConfigurationServerImpl] 
(localhost-startStop-1:null) (logid:) Exit value is 1
    2017-02-22 18:37:25,232 DEBUG [c.c.s.ConfigurationServerImpl] 
(localhost-startStop-1:null) (logid:) mount: /dev/loop0 is write-protected, 
mounting read-onlymkdir: cannot create directory ‘/tmp/cloud/systemvm’: 
Permission denied
    2017-02-22 18:37:25,232 INFO  [c.c.s.ConfigurationServerImpl] 
(localhost-startStop-1:null) (logid:) Injected public and private keys into 
systemvm iso with result : mount: /dev/loop0 is write-protected, mounting 
read-onlymkdir: cannot create directory ‘/tmp/cloud/systemvm’: Permission 
denied
    2017-02-22 18:37:25,232 WARN  [c.c.s.ConfigurationServerImpl] 
(localhost-startStop-1:null) (logid:) Failed to inject generated public key 
into systemvm iso mount: /dev/loop0 is write-protected, mounting 
read-onlymkdir: cannot create directory ‘/tmp/cloud/systemvm’: Permission 
denied
    2017-02-22 18:37:25,234 WARN  [o.a.c.s.m.c.ResourceApplicationContext] 
(localhost-startStop-1:null) (logid:) Exception encountered during context 
initialization - cancelling refresh attempt: 
org.springframework.context.ApplicationContextException: Failed to start bean 
'cloudStackLifeCycle'; nested exception is 
com.cloud.utils.exception.CloudRuntimeException: Failed to inject generated 
public key into systemvm iso mount: /dev/loop0 is write-protected, mounting 
read-onlymkdir: cannot create directory ‘/tmp/cloud/systemvm’: Permission 
denied
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to