sm97 opened a new issue #4241:
URL: https://github.com/apache/cloudstack/issues/4241
<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and master branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete
the comments.
-->
##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
* Bug Report
##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
CKS
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on master
branch.
-->
~~~
4.14.0
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network,
advanced networking, etc. N/A otherwise
-->
Advanced networking
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
CentOS7 on MS, XCP-NG 8.2 on hypervisors
##### SUMMARY
<!-- Explain the problem/feature briefly -->
Cannot create kubernetes cluster from classic/primate UIs. It fails on
master VM creation. Other Linux/Winsows VMs are created by MS without issues on
the same hypervisor.
##### STEPS TO REPRODUCE
<!--
For bugs, show exactly how to reproduce the problem, using a minimal
test-case. Use Screenshots if accurate.
For new features, show how the feature would be used.
-->
<!-- Paste example playbooks or commands between quotes below -->
~~~
1. Enable the kubernetes service
2. Register new kubernetes version:
add kubernetessupportedversion name=v1.16.3 semanticversion=1.16.3
url=http://packages.shapeblue.com.s3-eu-west-1.amazonaws.com/cks/setup-1.16.3.iso
mincpunumber=2 minmemory=2048
3. Add CoreOS template from
http://dl.openvm.eu/cloudstack/coreos/x86_64/coreos_production_cloudstack_image-xen.vhd.bz2
4. Wait till its ready
5. Now create a kubernetes cluster from UI with 2 nodes
~~~
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
Expected kubernetes cluster to be created successfully
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
2020-08-03 17:16:20,000 INFO [o.a.c.f.j.i.AsyncJobMonitor]
(API-Job-Executor-30:ctx-fe4f9ce8 job-3345) (logid:492b8e9c) Add job-3345 into
job monitoring
2020-08-03 17:16:20,016 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-30:ctx-fe4f9ce8 job-3345) (logid:bfd9221f) Executing
AsyncJobVO {id:3345, userId: 9, accountId: 9, instanceType: VirtualMachine,
instanceId: 3, cmd:
org.apache.cloudstack.api.command.user.kubernetes.cluster.CreateKubernetesClusterCmd,
cmdInfo: {"keypair":"[email protected]","description":"kuber
test","httpmethod":"GET","ctxAccountId":"9","uuid":"090ac64f-a796-4cf3-ab78-885025d89ff8","cmdEventType":"KUBERNETES.CLUSTER.CREATE","kubernetesversionid":"4841cf7a-9033-462f-9bfe-f7425303daf2","size":"1","serviceofferingid":"48611534-7524-4d94-97f3-81d1d3f135c9","response":"json","ctxUserId":"9","name":"kubetest","zoneid":"1be9f1f9-e6d2-4133-942d-8582d645ca8f","networkid":"02e37ff6-48ab-4c87-888e-09f248845fd0","ctxStartEventId":"5601","id":"3","ctxDetails":"{\"interface
com.cloud.offering.ServiceOffering\":\"48611534-7524-4d94-97f3-81d1d3f135c9\",\"interface
com.cloud.kubernetes.version.KubernetesSupportedV
ersion\":\"4841cf7a-9033-462f-9bfe-f7425303daf2\",\"interface
com.cloud.dc.DataCenter\":\"1be9f1f9-e6d2-4133-942d-8582d645ca8f\",\"interface
com.cloud.network.Network\":\"02e37ff6-48ab-4c87-888e-09f248845fd0\"}"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result:
null, initMsid: 46783616671, completeMsid: null, lastUpdated: null, lastPolled:
null, created: null, removed: null}
2020-08-03 17:16:20,542 ERROR [c.c.a.ApiAsyncJobDispatcher]
(API-Job-Executor-30:ctx-fe4f9ce8 job-3345) (logid:bfd9221f) Unexpected
exception while executing
org.apache.cloudstack.api.command.user.kubernetes.cluster.CreateKubernetesClusterCmd
java.lang.NullPointerException
at
com.cloud.vm.UserVmManagerImpl.createVirtualMachine(UserVmManagerImpl.java:3764)
at
com.cloud.vm.UserVmManagerImpl.createAdvancedVirtualMachine(UserVmManagerImpl.java:3405)
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.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:107)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
at
com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy176.createAdvancedVirtualMachine(Unknown
Source)
at
com.cloud.kubernetes.cluster.actionworkers.KubernetesClusterStartWorker.createKubernetesMaster(KubernetesClusterStartWorker.java:203)
at
com.cloud.kubernetes.cluster.actionworkers.KubernetesClusterStartWorker.provisionKubernetesClusterMasterVm(KubernetesClusterStartWorker.java:271)
at
com.cloud.kubernetes.cluster.actionworkers.KubernetesClusterStartWorker.startKubernetesClusterOnCreate(KubernetesClusterStartWorker.java:498)
at
com.cloud.kubernetes.cluster.KubernetesClusterManagerImpl.startKubernetesCluster(KubernetesClusterManagerImpl.java:1057)
at
org.apache.cloudstack.api.command.user.kubernetes.cluster.CreateKubernetesClusterCmd.execute(CreateKubernetesClusterCmd.java:273)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:156)
at
com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108)
at
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:603)
at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:551)
at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2020-08-03 17:16:20,545 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-30:ctx-fe4f9ce8 job-3345) (logid:bfd9221f) Complete async
job-3345, jobStatus: FAILED, resultCode: 530, result:
org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530}
2020-08-03 17:16:20,546 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-30:ctx-fe4f9ce8 job-3345) (logid:bfd9221f) Publish async
job-3345 complete on message bus
2020-08-03 17:16:20,546 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-30:ctx-fe4f9ce8 job-3345) (logid:bfd9221f) Wake up jobs
related to job-3345
2020-08-03 17:16:20,546 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-30:ctx-fe4f9ce8 job-3345) (logid:bfd9221f) Update db status
for job-3345
2020-08-03 17:16:20,547 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-30:ctx-fe4f9ce8 job-3345) (logid:bfd9221f) Wake up jobs
joined with job-3345 and disjoin all subjobs created from job- 3345
2020-08-03 17:16:20,549 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-30:ctx-fe4f9ce8 job-3345) (logid:bfd9221f) Done executing
org.apache.cloudstack.api.command.user.kubernetes.cluster.CreateKubernetesClusterCmd
for job-3345
2020-08-03 17:16:20,549 INFO [o.a.c.f.j.i.AsyncJobMonitor]
(API-Job-Executor-30:ctx-fe4f9ce8 job-3345) (logid:bfd9221f) Remove job-3345
from job monitoring
~~~
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]