Title: NPE during host rolling maintenance when host has tag and service offering doesn't have host tag · Issue #9834 · apache/cloudstack · GitHub
Open Graph Title: NPE during host rolling maintenance when host has tag and service offering doesn't have host tag · Issue #9834 · apache/cloudstack
X Title: NPE during host rolling maintenance when host has tag and service offering doesn't have host tag · Issue #9834 · apache/cloudstack
Description: NPE during host rolling maintenance when host has tag and service offering doesn't have host tag. ISSUE TYPE Bug Report COMPONENT NAME Host CLOUDSTACK VERSION 4.19.1.2 OS / ENVIRONMENT MS + KVM Hosts (OL8) SUMMARY NPE after start rolling...
Open Graph Description: NPE during host rolling maintenance when host has tag and service offering doesn't have host tag. ISSUE TYPE Bug Report COMPONENT NAME Host CLOUDSTACK VERSION 4.19.1.2 OS / ENVIRONMENT MS + KVM Hos...
X Description: NPE during host rolling maintenance when host has tag and service offering doesn't have host tag. ISSUE TYPE Bug Report COMPONENT NAME Host CLOUDSTACK VERSION 4.19.1.2 OS / ENVIRONMENT MS + KVM...
Opengraph URL: https://github.com/apache/cloudstack/issues/9834
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NPE during host rolling maintenance when host has tag and service offering doesn't have host tag","articleBody":"\u003c!--\r\nVerify first that your issue/request is not already reported on GitHub.\r\nAlso test if the latest release and main branch are affected too.\r\nAlways add information AFTER of these HTML comments, but no need to delete the comments.\r\n--\u003e\r\n\r\nNPE during host rolling maintenance when host has tag and service offering doesn't have host tag.\r\n\r\n##### ISSUE TYPE\r\n\u003c!-- Pick one below and delete the rest --\u003e\r\n * Bug Report\r\n\r\n##### COMPONENT NAME\r\n\u003c!--\r\nCategorize the issue, e.g. API, VR, VPN, UI, etc.\r\n--\u003e\r\n~~~\r\nHost\r\n~~~\r\n\r\n##### CLOUDSTACK VERSION\r\n\u003c!--\r\nNew line separated list of affected versions, commit ID for issues on main branch.\r\n--\u003e\r\n\r\n~~~\r\n4.19.1.2\r\n~~~\r\n\r\n##### OS / ENVIRONMENT\r\n\u003c!--\r\nInformation about the environment if relevant, N/A otherwise\r\n--\u003e\r\n\r\nMS + KVM Hosts (OL8)\r\n\r\n\r\n##### SUMMARY\r\n\u003c!-- Explain the problem/feature briefly --\u003e\r\n\r\nNPE after start rolling maintenance when host has tag and service offering doesn't have host tag. Other host(s) in cluster has tag.\r\n\r\n##### STEPS TO REPRODUCE\r\n\u003c!--\r\nFor bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.\r\n\r\nFor new features, show how the feature would be used.\r\n--\u003e\r\n\r\n- Set host tag to host, say Host1\r\n- Set host tag to any other host, say Host2, in the same cluster as Host1\r\n- Create VM on the Host1, using service offering with no host tag\r\n- Start rolling maintenance on Host1\r\n\r\n\r\nLogs:\r\n\r\n```\r\n2024-10-22 05:40:25,689 INFO [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-32:ctx-6b9edab0 job-41) (logid:c9c074cb) Add job-41 into job monitoring\r\n2024-10-22 05:40:25,691 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (qtp660017404-20:ctx-f60bd7f6 ctx-8a09649a) (logid:2c81de00) submit async job-41, details: AsyncJobVO: {id:41, userId: 2, accountId: 2, instanceType: Host, instanceId: 2, cmd: org.apache.cloudstack.api.command.admin.resource.StartRollingMaintenanceCmd, cmdInfo: {\"response\":\"json\",\"ctxUserId\":\"2\",\"sessionkey\":\"5KjTYbzLXZBM2G0YP4VX1m0ImKo\",\"httpmethod\":\"GET\",\"ctxStartEventId\":\"115\",\"hostids\":\"00016127-58a3-4cd4-95e6-f7279db0574c\",\"ctxDetails\":\"{\\\"interface com.cloud.host.Host\\\":\\\"00016127-58a3-4cd4-95e6-f7279db0574c\\\"}\",\"ctxAccountId\":\"2\",\"cmdEventType\":\"HOST.ROLLING.MAINTENANCE\"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 32989593469185, completeMsid: null, lastUpdated: null, lastPolled: null, created: null, removed: null}\r\n2024-10-22 05:40:25,693 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-32:ctx-6b9edab0 job-41) (logid:2df29f6c) Executing AsyncJobVO: {id:41, userId: 2, accountId: 2, instanceType: Host, instanceId: 2, cmd: org.apache.cloudstack.api.command.admin.resource.StartRollingMaintenanceCmd, cmdInfo: {\"response\":\"json\",\"ctxUserId\":\"2\",\"sessionkey\":\"5KjTYbzLXZBM2G0YP4VX1m0ImKo\",\"httpmethod\":\"GET\",\"ctxStartEventId\":\"115\",\"hostids\":\"00016127-58a3-4cd4-95e6-f7279db0574c\",\"ctxDetails\":\"{\\\"interface com.cloud.host.Host\\\":\\\"00016127-58a3-4cd4-95e6-f7279db0574c\\\"}\",\"ctxAccountId\":\"2\",\"cmdEventType\":\"HOST.ROLLING.MAINTENANCE\"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 32989593469185, completeMsid: null, lastUpdated: null, lastPolled: null, created: null, removed: null}\r\n2024-10-22 05:40:25,695 DEBUG [c.c.a.ApiServlet] (qtp660017404-20:ctx-f60bd7f6 ctx-8a09649a) (logid:2c81de00) ===END=== 10.0.3.251 -- GET hostids=00016127-58a3-4cd4-95e6-f7279db0574c\u0026command=startRollingMaintenance\u0026response=json\u0026sessionkey=5KjTYbzLXZBM2G0YP4VX1m0ImKo\r\n2024-10-22 05:40:25,709 DEBUG [c.c.r.RollingMaintenanceManagerImpl] (API-Job-Executor-32:ctx-6b9edab0 job-41 ctx-d4ae806d) (logid:2df29f6c) State checks on the hosts in the cluster\r\n2024-10-22 05:40:25,709 DEBUG [c.c.r.RollingMaintenanceManagerImpl] (API-Job-Executor-32:ctx-6b9edab0 job-41 ctx-d4ae806d) (logid:2df29f6c) Checking hosts capacity before attempting rolling maintenance\r\n2024-10-22 05:40:25,733 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-32:ctx-6b9edab0 job-41) (logid:2df29f6c) Unexpected exception while executing org.apache.cloudstack.api.command.admin.resource.StartRollingMaintenanceCmd\r\njava.lang.NullPointerException\r\n\tat com.cloud.resource.RollingMaintenanceManagerImpl.lambda$checkHostTags$1(RollingMaintenanceManagerImpl.java:679)\r\n\tat java.base/java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90)\r\n\tat java.base/java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1632)\r\n\tat java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:127)\r\n\tat java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502)\r\n\tat java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488)\r\n\tat java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)\r\n\tat java.base/java.util.stream.MatchOps$MatchTask.doLeaf(MatchOps.java:306)\r\n\tat java.base/java.util.stream.MatchOps$MatchTask.doLeaf(MatchOps.java:277)\r\n\tat java.base/java.util.stream.AbstractShortCircuitTask.compute(AbstractShortCircuitTask.java:115)\r\n\tat java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746)\r\n\tat java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)\r\n\tat java.base/java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:408)\r\n\tat java.base/java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:736)\r\n\tat java.base/java.util.stream.MatchOps$MatchOp.evaluateParallel(MatchOps.java:242)\r\n\tat java.base/java.util.stream.MatchOps$MatchOp.evaluateParallel(MatchOps.java:196)\r\n\tat java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)\r\n\tat java.base/java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:528)\r\n\tat com.cloud.resource.RollingMaintenanceManagerImpl.checkHostTags(RollingMaintenanceManagerImpl.java:679)\r\n\tat com.cloud.resource.RollingMaintenanceManagerImpl.performCapacityChecksBeforeHostInMaintenance(RollingMaintenanceManagerImpl.java:626)\r\n\tat com.cloud.resource.RollingMaintenanceManagerImpl.performCapacityChecks(RollingMaintenanceManagerImpl.java:593)\r\n\tat com.cloud.resource.RollingMaintenanceManagerImpl.startRollingMaintenance(RollingMaintenanceManagerImpl.java:200)\r\n\tat org.apache.cloudstack.api.command.admin.resource.StartRollingMaintenanceCmd.execute(StartRollingMaintenanceCmd.java:131)\r\n\tat com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:172)\r\n\tat com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:112)\r\n\tat org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:654)\r\n\tat org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:48)\r\n\tat org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)\r\n\tat org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102)\r\n\tat org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52)\r\n\tat org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:45)\r\n\tat org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:602)\r\n\tat java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)\r\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\r\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\r\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\r\n\tat java.base/java.lang.Thread.run(Thread.java:829)\r\n2024-10-22 05:40:25,738 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-32:ctx-6b9edab0 job-41) (logid:2df29f6c) Complete async job-41, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{\"uuidList\":[],\"errorcode\":\"530\"}\r\n```\r\n\r\n\u003cimg width=\"1250\" alt=\"Host_RollingMaintenance_Issue\" src=\"https://github.com/user-attachments/assets/1a704468-a056-4a21-b71b-2d1b70604738\"\u003e\r\n\r\n\u003c!-- You can also paste gist.github.com links for larger files --\u003e\r\n\r\n##### EXPECTED RESULTS\r\n\u003c!-- What did you expect to happen when running the steps above? --\u003e\r\n\r\n~~~\r\nRolling maintenance of host should be performed without any issues.\r\n~~~\r\n\r\n##### ACTUAL RESULTS\r\n\u003c!-- What actually happened? --\u003e\r\n\r\n\u003c!-- Paste verbatim command output between quotes below --\u003e\r\n~~~\r\nRolling maintenance of host fails with error.\r\n~~~\r\n","author":{"url":"https://github.com/sureshanaparti","@type":"Person","name":"sureshanaparti"},"datePublished":"2024-10-22T06:23:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/9834/cloudstack/issues/9834"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:691a21ed-750f-3172-92a2-eaf438fa8c69 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA82:2A256:10F7730:186DDA5:6A4E55FE |
| html-safe-nonce | 23e20db8e43bb14f6d7ee297d1692ae1bf1b6c40cb6c4c2731dd1f92254f6ed7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTgyOjJBMjU2OjEwRjc3MzA6MTg2RERBNTo2QTRFNTVGRSIsInZpc2l0b3JfaWQiOiI0OTkyNzY0NTQ4Mzk1OTgwMjg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | db390fc6551b10f992702849f6e6b2d6d0f9f6bea9dea4882a6b0118f3abc47c |
| hovercard-subject-tag | issue:2604391782 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/9834/issue_layout |
| twitter:image | https://opengraph.githubassets.com/14f9c54e4d3099ebd23d3dd7919d4d1bceef696cbe930220692c931e0cf4c023/apache/cloudstack/issues/9834 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/14f9c54e4d3099ebd23d3dd7919d4d1bceef696cbe930220692c931e0cf4c023/apache/cloudstack/issues/9834 |
| og:image:alt | NPE during host rolling maintenance when host has tag and service offering doesn't have host tag. ISSUE TYPE Bug Report COMPONENT NAME Host CLOUDSTACK VERSION 4.19.1.2 OS / ENVIRONMENT MS + KVM Hos... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sureshanaparti |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/cloudstack git https://github.com/apache/cloudstack.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 9759448 |
| octolytics-dimension-repository_nwo | apache/cloudstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9759448 |
| octolytics-dimension-repository_network_root_nwo | apache/cloudstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f344f1eab54fc7dfc02d0d018cda7e158c3db65c |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width