René's URL Explorer Experiment


Title: Maintenance mode destination nullpointer with local storage data disk · Issue #9887 · apache/cloudstack · GitHub

Open Graph Title: Maintenance mode destination nullpointer with local storage data disk · Issue #9887 · apache/cloudstack

X Title: Maintenance mode destination nullpointer with local storage data disk · Issue #9887 · apache/cloudstack

Description: ISSUE TYPE Bug Report COMPONENT NAME Maintenance Mode CLOUDSTACK VERSION 4.19.1.2 CONFIGURATION host.maintenance.local.storage.strategy: Migration OS / ENVIRONMENT SUMMARY Nullpointer exception when setting a host in maintenance if the h...

Open Graph Description: ISSUE TYPE Bug Report COMPONENT NAME Maintenance Mode CLOUDSTACK VERSION 4.19.1.2 CONFIGURATION host.maintenance.local.storage.strategy: Migration OS / ENVIRONMENT SUMMARY Nullpointer exception whe...

X Description: ISSUE TYPE Bug Report COMPONENT NAME Maintenance Mode CLOUDSTACK VERSION 4.19.1.2 CONFIGURATION host.maintenance.local.storage.strategy: Migration OS / ENVIRONMENT SUMMARY Nullpointer exception whe...

Opengraph URL: https://github.com/apache/cloudstack/issues/9887

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Maintenance mode destination nullpointer with local storage data disk","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\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\nMaintenance Mode\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##### CONFIGURATION\r\n\u003c!--\r\nInformation about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise\r\n--\u003e\r\n~~~\r\nhost.maintenance.local.storage.strategy: Migration\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\n\r\n##### SUMMARY\r\n\u003c!-- Explain the problem/feature briefly --\u003e\r\nNullpointer exception when setting a host in maintenance if the host has a running vm with a local storage data disk.\r\n\r\nFound the bug while fixing another bug where the host going into maintenance is not avoided so maintenance for local storage vms can fail.\r\nDuring testing I did not find a path in the current version to reach the breaking code without a debugger attached.\r\n\r\nBug is caused by the deployment returning `null` causing a nullpointer in https://github.com/apache/cloudstack/blob/18fe4226cecc930ec0b39c43e5b63a48c17c2ad4/server/src/main/java/com/cloud/resource/ResourceManagerImpl.java#L1471\r\n\r\nDeployment returns null as the only suitable storage pool returned by `findSuitablePoolsForVolumes` in `server/src/main/java/com/cloud/deploy/DeploymentPlanningManagerImpl.java` for the data disk is the host the data disk is located on.  (Only applies for data disk, for a local storage root disk all suitable storage pools are evaluated). With that host being avoided to prepare it for maintenance the deployment planner has no suitable hosts returning null.\r\n\r\nMigrating the vm using the ui does not cause issues.\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* Create a vm with a local storage data disk.\r\n* Add breakpoint at the start of https://github.com/apache/cloudstack/blob/18fe4226cecc930ec0b39c43e5b63a48c17c2ad4/server/src/main/java/com/cloud/deploy/DeploymentPlanningManagerImpl.java#L300\r\n* Set host with the vm in maintenance\r\n* Add the host going into maintenance to the avoids `avoids.addHost();`\r\n* Continue running\r\n\r\n\u003c!-- Paste example playbooks or commands between quotes below --\u003e\r\n\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\nVM migrated and host going into maintenance\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\n2024-11-01 16:04:39,428 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-5:ctx-b739d4ae job-371) (logid:51494050) Unexpected exception while executing org.apache.cloudstack.api.command.\r\nadmin.host.PrepareForMaintenanceCmd\r\njava.lang.NullPointerException\r\n        at com.cloud.resource.ResourceManagerImpl.migrateAwayVmWithVolumes(ResourceManagerImpl.java:1471)\r\n        at com.cloud.resource.ResourceManagerImpl.doMaintain(ResourceManagerImpl.java:1403)\r\n        at com.cloud.resource.ResourceManagerImpl.maintain(ResourceManagerImpl.java:1489)\r\n        at com.cloud.resource.ResourceManagerImpl.maintain(ResourceManagerImpl.java:1543)\r\n        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.base/java.lang.reflect.Method.invoke(Method.java:566)\r\n        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)\r\n        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)\r\n        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\r\n        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\r\n        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\r\n        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)\r\n        at com.sun.proxy.$Proxy200.maintain(Unknown Source)\r\n        at org.apache.cloudstack.api.command.admin.host.PrepareForMaintenanceCmd.execute(PrepareForMaintenanceCmd.java:101)\r\n        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:172)\r\n        at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:112)\r\n        at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:654)\r\n        at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:48)\r\n        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)\r\n        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102)\r\n        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52)\r\n        at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:45)\r\n        at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:602)\r\n        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)\r\n        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\r\n        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\r\n        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\r\n        at java.base/java.lang.Thread.run(Thread.java:829)\r\n\r\n~~~\r\n\r\n","author":{"url":"https://github.com/BartJM","@type":"Person","name":"BartJM"},"datePublished":"2024-11-04T16:32:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/9887/cloudstack/issues/9887"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2a6e528c-6587-4c3c-b354-94695a446992
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDE90:71B10:D78957:12868C1:6A4DCD27
html-safe-nonce390845d2c67d76fcd2da52aeebf509882f992291e7d8d0ce08722313515c7d81
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTkwOjcxQjEwOkQ3ODk1NzoxMjg2OEMxOjZBNERDRDI3IiwidmlzaXRvcl9pZCI6IjY0NTY1MjI5NDIyNzIzNTk3MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc3bf11c9ec750b3774c5843821c316d39b9f3fc7b8d53be1e1c7a95bfc044cf9
hovercard-subject-tagissue:2633282202
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/9887/issue_layout
twitter:imagehttps://opengraph.githubassets.com/dcf00e7fc4d71282e9207b4bd8f4647f91c437eca63a8284ca77a0c8b92e3b34/apache/cloudstack/issues/9887
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dcf00e7fc4d71282e9207b4bd8f4647f91c437eca63a8284ca77a0c8b92e3b34/apache/cloudstack/issues/9887
og:image:altISSUE TYPE Bug Report COMPONENT NAME Maintenance Mode CLOUDSTACK VERSION 4.19.1.2 CONFIGURATION host.maintenance.local.storage.strategy: Migration OS / ENVIRONMENT SUMMARY Nullpointer exception whe...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameBartJM
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
go-importgithub.com/apache/cloudstack git https://github.com/apache/cloudstack.git
octolytics-dimension-user_id47359
octolytics-dimension-user_loginapache
octolytics-dimension-repository_id9759448
octolytics-dimension-repository_nwoapache/cloudstack
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id9759448
octolytics-dimension-repository_network_root_nwoapache/cloudstack
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/apache/cloudstack/issues/9887#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fissues%2F9887
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fissues%2F9887
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=apache%2Fcloudstack
Reloadhttps://github.com/apache/cloudstack/issues/9887
Reloadhttps://github.com/apache/cloudstack/issues/9887
Reloadhttps://github.com/apache/cloudstack/issues/9887
Please reload this pagehttps://github.com/apache/cloudstack/issues/9887
apache https://github.com/apache
cloudstackhttps://github.com/apache/cloudstack
Notifications https://github.com/login?return_to=%2Fapache%2Fcloudstack
Fork 1.3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Star 3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Code https://github.com/apache/cloudstack
Issues 536 https://github.com/apache/cloudstack/issues
Pull requests 268 https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality 0 https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Code https://github.com/apache/cloudstack
Issues https://github.com/apache/cloudstack/issues
Pull requests https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Maintenance mode destination nullpointer with local storage data diskhttps://github.com/apache/cloudstack/issues/9887#top
Severity:Majorhttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22Severity%3AMajor%22
affects:4.19.1https://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22affects%3A4.19.1%22
component:local-storagehttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22component%3Alocal-storage%22
status:needs-reproducinghttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22status%3Aneeds-reproducing%22
type:bughttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22type%3Abug%22
4.19.3https://github.com/apache/cloudstack/milestone/38
https://github.com/BartJM
BartJMhttps://github.com/BartJM
on Nov 4, 2024https://github.com/apache/cloudstack/issues/9887#issue-2633282202
cloudstack/server/src/main/java/com/cloud/resource/ResourceManagerImpl.javahttps://github.com/apache/cloudstack/blob/18fe4226cecc930ec0b39c43e5b63a48c17c2ad4/server/src/main/java/com/cloud/resource/ResourceManagerImpl.java#L1471
18fe422https://github.com/apache/cloudstack/commit/18fe4226cecc930ec0b39c43e5b63a48c17c2ad4
cloudstack/server/src/main/java/com/cloud/deploy/DeploymentPlanningManagerImpl.javahttps://github.com/apache/cloudstack/blob/18fe4226cecc930ec0b39c43e5b63a48c17c2ad4/server/src/main/java/com/cloud/deploy/DeploymentPlanningManagerImpl.java#L300
18fe422https://github.com/apache/cloudstack/commit/18fe4226cecc930ec0b39c43e5b63a48c17c2ad4
Severity:Majorhttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22Severity%3AMajor%22
affects:4.19.1https://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22affects%3A4.19.1%22
component:local-storagehttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22component%3Alocal-storage%22
status:needs-reproducinghttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22status%3Aneeds-reproducing%22
type:bughttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22type%3Abug%22
4.19.3https://github.com/apache/cloudstack/milestone/38
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.