Pearl1594 commented on issue #5936:
URL: https://github.com/apache/cloudstack/issues/5936#issuecomment-1031402738


   @tampler I built a new docker image from the 4.16 branch and observed the 
same behavior as reported before - I noticed the NPE, but MS is up and running
   ```
   [17:30:41] pearl@pearl-XPS-15-7590:~/lab/cloudstack$ docker image ls
   REPOSITORY                                                TAG       IMAGE ID 
      CREATED          SIZE
   cloudstack/simulator                                      latest    
d8640fffd454   31 minutes ago   13GB
   
   
   [17:32:16] pearl@pearl-XPS-15-7590:~/lab/cloudstack$ docker ps
   CONTAINER ID   IMAGE                         COMMAND                  
CREATED          STATUS          PORTS                                          
                 NAMES
   a8b95f3944f7   cloudstack/simulator:latest   "/usr/bin/supervisord"   10 
minutes ago   Up 10 minutes   8080/tcp, 8096/tcp, 0.0.0.0:8080->5050/tcp, 
:::8080->5050/tcp   sim
   
   
   ### Grepping for the NPE & the subsequent logs inside the container
   root@a8b95f3944f7:~# cat vmops.log | grep NullPointerException -A30
   java.lang.NullPointerException
        at 
com.cloud.upgrade.SystemVmTemplateRegistration.registerTemplate(SystemVmTemplateRegistration.java:676)
        at 
com.cloud.storage.StorageManagerImpl$3.doInTransactionWithoutResult(StorageManagerImpl.java:2845)
        at 
com.cloud.utils.db.TransactionCallbackNoReturn.doInTransaction(TransactionCallbackNoReturn.java:25)
        at com.cloud.utils.db.Transaction$2.doInTransaction(Transaction.java:50)
        at com.cloud.utils.db.Transaction.execute(Transaction.java:40)
        at com.cloud.utils.db.Transaction.execute(Transaction.java:47)
        at 
com.cloud.storage.StorageManagerImpl.registerSystemVmTemplateOnFirstNfsStore(StorageManagerImpl.java:2802)
        at 
com.cloud.storage.StorageManagerImpl.discoverImageStore(StorageManagerImpl.java:2786)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
        at com.sun.proxy.$Proxy114.discoverImageStore(Unknown Source)
        at 
org.apache.cloudstack.api.command.admin.storage.AddImageStoreCmd.execute(AddImageStoreCmd.java:135)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:156)
        at com.cloud.api.ApiServer.queueCommand(ApiServer.java:772)
        at com.cloud.api.ApiServer.handleRequest(ApiServer.java:596)
        at com.cloud.api.ApiServer.handle(ApiServer.java:502)
        at org.apache.http.protocol.HttpService.doService(HttpService.java:437)
        at 
org.apache.http.protocol.HttpService.handleRequest(HttpService.java:342)
        at com.cloud.api.ApiServer$WorkerTask.runInContext(ApiServer.java:1326)
        at 
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:48)
        at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)
        at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102)
   --
   Caused by: java.lang.NullPointerException
        at 
com.cloud.upgrade.SystemVmTemplateRegistration.registerTemplate(SystemVmTemplateRegistration.java:676)
        at 
com.cloud.storage.StorageManagerImpl$3.doInTransactionWithoutResult(StorageManagerImpl.java:2845)
        at 
com.cloud.utils.db.TransactionCallbackNoReturn.doInTransaction(TransactionCallbackNoReturn.java:25)
        ... 32 more
   2022-02-07 08:56:24,131 INFO  [c.c.u.SystemVmTemplateRegistration] 
(ApiServer-8:ctx-68a2e5b0 ctx-e497c9bd) (logid:b8cb6485) Unmounting store
   2022-02-07 08:56:24,131 DEBUG [c.c.u.s.Script] (ApiServer-8:ctx-68a2e5b0 
ctx-e497c9bd) (logid:b8cb6485) Executing: /bin/bash -c sudo umount 
/tmp/tmp10742134008486500295 
   2022-02-07 08:56:24,132 DEBUG [c.c.u.s.Script] (ApiServer-8:ctx-68a2e5b0 
ctx-e497c9bd) (logid:b8cb6485) Executing while with timeout : 3600000
   2022-02-07 08:56:24,139 DEBUG [c.c.u.s.Script] (ApiServer-8:ctx-68a2e5b0 
ctx-e497c9bd) (logid:b8cb6485) Exit value is 32
   2022-02-07 08:56:24,139 DEBUG [c.c.u.s.Script] (ApiServer-8:ctx-68a2e5b0 
ctx-e497c9bd) (logid:b8cb6485) umount: /tmp/tmp10742134008486500295: no mount 
point specified.
   2022-02-07 08:56:24,172 INFO  [c.c.c.ConfigurationManagerImpl] 
(ApiServer-9:ctx-3056b89e ctx-70b4389a) (logid:8d178580) No storage traffic 
type was specified by admin, create default storage traffic on physical network 
200 with same configure of management traffic type
   2022-02-07 08:56:24,415 DEBUG [c.c.a.ApiServlet] 
(qtp1665366772-287:ctx-e669acd4) (logid:2f8314ef) ===START===  127.0.0.1 -- 
POST  
   2022-02-07 08:56:24,430 DEBUG [c.c.u.AccountManagerImpl] 
(qtp1665366772-287:ctx-e669acd4) (logid:2f8314ef) Attempting to log in user: 
admin in domain 1
   2022-02-07 08:56:24,432 DEBUG [o.a.c.s.a.PBKDF2UserAuthenticator] 
(qtp1665366772-287:ctx-e669acd4) (logid:2f8314ef) Retrieving user: admin
   2022-02-07 08:56:24,708 DEBUG [c.c.u.AccountManagerImpl] 
(qtp1665366772-287:ctx-e669acd4) (logid:2f8314ef) CIDRs from which account 
'Acct[149f6018-87c4-11ec-81c5-50eb7122da94-admin] -- Account {"id": 2, "name": 
"admin", "uuid": "149f6018-87c4-11ec-81c5-50eb7122da94"}' is allowed to perform 
API calls: 0.0.0.0/0,::/0
   
   ```
   And I can access the UI:
   
   
![image](https://user-images.githubusercontent.com/10495417/152785042-f3bc50cd-a563-4bef-bb35-b4c598303af8.png)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to