Title: NPE during host rolling maintenance when host has VMs with custom constrained/unconstrained service offering · Issue #9836 · apache/cloudstack · GitHub
Open Graph Title: NPE during host rolling maintenance when host has VMs with custom constrained/unconstrained service offering · Issue #9836 · apache/cloudstack
X Title: NPE during host rolling maintenance when host has VMs with custom constrained/unconstrained service offering · Issue #9836 · apache/cloudstack
Description: NPE during host rolling maintenance when host has VMs with custom constrained/unconstrained service offering ISSUE TYPE Bug Report COMPONENT NAME Host CLOUDSTACK VERSION 4.19.1.2 OS / ENVIRONMENT MS + KVM Hosts (OL8) SUMMARY NPE after st...
Open Graph Description: NPE during host rolling maintenance when host has VMs with custom constrained/unconstrained service offering ISSUE TYPE Bug Report COMPONENT NAME Host CLOUDSTACK VERSION 4.19.1.2 OS / ENVIRONMENT M...
X Description: NPE during host rolling maintenance when host has VMs with custom constrained/unconstrained service offering ISSUE TYPE Bug Report COMPONENT NAME Host CLOUDSTACK VERSION 4.19.1.2 OS / ENVIRONMENT M...
Opengraph URL: https://github.com/apache/cloudstack/issues/9836
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NPE during host rolling maintenance when host has VMs with custom constrained/unconstrained service offering","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 VMs with custom constrained/unconstrained service offering\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\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##### SUMMARY\r\n\u003c!-- Explain the problem/feature briefly --\u003e\r\n\r\nNPE after start rolling maintenance when host has VMs with custom constrained/unconstrained service offering.\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 (tag1) to host, say Host1\r\n- Set host tag (tag1) to any other host, say Host2, in the same cluster as Host1\r\n- Create custom constrained/unconstrained service offering with host tag tag1\r\n- Create VM on the Host1, using the above service offering\r\n- Start rolling maintenance on Host1\r\n\r\nLogs:\r\n\r\n```\r\n2024-10-22 07:33:59,845 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-39:ctx-8b239b3a job-58) (logid:dae9839e) Executing AsyncJobVO: {id:58, userId: 2, accountId: 2, instanceType: Host, instanceId: 1, cmd: org.apache.cloudstack.api.command.admin.resource.StartRollingMaintenanceCmd, cmdInfo: {\"response\":\"json\",\"ctxUserId\":\"2\",\"sessionkey\":\"5KjTYbzLXZBM2G0YP4VX1m0ImKo\",\"httpmethod\":\"GET\",\"ctxStartEventId\":\"141\",\"hostids\":\"3ebaf579-7343-463b-9f85-8d7672f23dff\",\"ctxDetails\":\"{\\\"interface com.cloud.host.Host\\\":\\\"3ebaf579-7343-463b-9f85-8d7672f23dff\\\"}\",\"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 07:33:59,857 DEBUG [c.c.r.RollingMaintenanceManagerImpl] (API-Job-Executor-39:ctx-8b239b3a job-58 ctx-46d77a1d) (logid:dae9839e) State checks on the hosts in the cluster\r\n2024-10-22 07:33:59,857 DEBUG [c.c.r.RollingMaintenanceManagerImpl] (API-Job-Executor-39:ctx-8b239b3a job-58 ctx-46d77a1d) (logid:dae9839e) Checking hosts capacity before attempting rolling maintenance\r\n2024-10-22 07:33:59,865 DEBUG [c.c.c.CapacityManagerImpl] (API-Job-Executor-39:ctx-8b239b3a job-58 ctx-46d77a1d) (logid:dae9839e) Host {id: 1, name: ol8.localdomain, uuid: 3ebaf579-7343-463b-9f85-8d7672f23dff} is KVM hypervisor type, no max guest limit check needed\r\n2024-10-22 07:33:59,876 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-39:ctx-8b239b3a job-58) (logid:dae9839e) Unexpected exception while executing org.apache.cloudstack.api.command.admin.resource.StartRollingMaintenanceCmd\r\njava.lang.NullPointerException\r\n\tat com.cloud.capacity.CapacityManagerImpl.checkIfHostHasCpuCapability(CapacityManagerImpl.java:415)\r\n\tat com.cloud.resource.RollingMaintenanceManagerImpl.performCapacityChecksBeforeHostInMaintenance(RollingMaintenanceManagerImpl.java:641)\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 07:33:59,879 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-39:ctx-8b239b3a job-58) (logid:dae9839e) Complete async job-58, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{\"uuidList\":[],\"errorcode\":\"530\"}\r\n```\r\n\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, when host has VMs with custom constrained/unconstrained service offering.\r\n~~~\r\n","author":{"url":"https://github.com/sureshanaparti","@type":"Person","name":"sureshanaparti"},"datePublished":"2024-10-22T07:50:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/9836/cloudstack/issues/9836"}
| 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:a19e997c-32ce-c925-2d01-fec256f01de9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE80:3F0C56:5D45B7:87F126:6A4E0F47 |
| html-safe-nonce | e10a06daa434afe9da9d4170bb4065e85b3b46e47c3cff18968f0414c79be58a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTgwOjNGMEM1Njo1RDQ1Qjc6ODdGMTI2OjZBNEUwRjQ3IiwidmlzaXRvcl9pZCI6Ijg2NDU5NDE0Nzg0MjQ0NDg4MzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 140349e040a392f0980ce39b109f814652927649ec8e47cfd429eea5ea5b3e98 |
| hovercard-subject-tag | issue:2604583093 |
| 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/9836/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2405d71c9abdf01e319936d7026d79c6dca2cbb25b6a3a3e3e21377a28e465eb/apache/cloudstack/issues/9836 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2405d71c9abdf01e319936d7026d79c6dca2cbb25b6a3a3e3e21377a28e465eb/apache/cloudstack/issues/9836 |
| og:image:alt | NPE during host rolling maintenance when host has VMs with custom constrained/unconstrained service offering ISSUE TYPE Bug Report COMPONENT NAME Host CLOUDSTACK VERSION 4.19.1.2 OS / ENVIRONMENT M... |
| 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 | df0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6 |
| 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 | 51470c353b8a1f52a88d3e3cc2014b17ab8cc1ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width