cloudstack: NPE on simulator launch
ISSUE TYPE
- Bug Report
COMPONENT NAME
API
CLOUDSTACK VERSION
4.16.1.0-SNAPSHOT
CONFIGURATION
I’m using the latest 4.16 Master and building the simulator image manually
OS / ENVIRONMENT
Ubuntu 21.10 OpenJDK 11
SUMMARY
INFO [o.a.c.s.d.p.DefaultHostListener] (ApiServer-10:ctx-d982031c ctx-6062c5c0) (logid:aac2a26e) Connection established between storage pool org.apache.cloud
stack.storage.datastore.PrimaryDataStoreImpl@3953e834 and host 1
INFO [o.a.c.s.d.l.SimulatorImageStoreLifeCycleImpl] (ApiServer-1:ctx-58b428a9 ctx-9c2836b5) (logid:5b4df9e5) Trying to add a new data store at nfs://10.147.2
8.6:/export/home/sandbox/sstor to data center 1
ERROR [o.a.c.s.i.TemplateServiceImpl] (ApiServer-1:ctx-58b428a9 ctx-9c2836b5) (logid:5b4df9e5) No remote endpoint to send command, check if host or ssvm is do
wn?
ERROR [c.c.u.SystemVmTemplateRegistration] (ApiServer-1:ctx-58b428a9 ctx-9c2836b5) (logid:5b4df9e5) Failed to register template for hypervisor: Simulator
java.lang.NullPointerException
at com.cloud.upgrade.SystemVmTemplateRegistration.registerTemplate(SystemVmTemplateRegistration.java:676)
at com.cloud.storage.StorageManagerImpl$3.doInTransactionWithoutResult(StorageManagerImpl.java:2834)
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:2791)
at com.cloud.storage.StorageManagerImpl.discoverImageStore(StorageManagerImpl.java:2775)
STEPS TO REPRODUCE
I’m following the simulator docs here
EXPECTED RESULTS
Simulator starts successfully
ACTUAL RESULTS
Simulator fails with NPE on start and ACS won't boot
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 29 (17 by maintainers)
Now simulator works for me as well. Thanks everyone for engagement 😄
Okay, thanks everyone for your help. Let’s settle this down. I’ll make a new build and try things out. Keep in touch
@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
And I can access the UI:
Yes, using the deployDatacenter.py tool with the advancedsg configuration. You should start the UI separately with npm, but API access should be there, immediately.
@tampler Hi, Suresh is the release manager of cloudstack 4.16.1.0. He is working hard on the 4.16.1.0 release. Normally when we merge a PR which fix an issue, we close the original issue for better release tracking. If you still have the same issue, please feel free to open the issue.
good @Pearl1594
api endpoint works in my testing.
@tampler my apologies, I must have missed the comment that it worked about 2 weeks ago… I’ll build an image from the latest 4.16 branch and will get back to you. Thanks