Title: Intermittent Template Download Failure (NOT_DOWNLOADED) in CloudStack 4.20.1.0 with Linstor Primary Storage · Issue #11905 · apache/cloudstack · GitHub
Open Graph Title: Intermittent Template Download Failure (NOT_DOWNLOADED) in CloudStack 4.20.1.0 with Linstor Primary Storage · Issue #11905 · apache/cloudstack
X Title: Intermittent Template Download Failure (NOT_DOWNLOADED) in CloudStack 4.20.1.0 with Linstor Primary Storage · Issue #11905 · apache/cloudstack
Description: Hi all, I’m encountering an intermittent issue when uploading templates to CloudStack 4.20.1.0 where Linstor is used as Primary Storage. Here’s the detailed breakdown: CloudStack Version: 4.20.1.0 Primary Storage: Linstor-controller 1.32...
Open Graph Description: Hi all, I’m encountering an intermittent issue when uploading templates to CloudStack 4.20.1.0 where Linstor is used as Primary Storage. Here’s the detailed breakdown: CloudStack Version: 4.20.1.0 ...
X Description: Hi all, I’m encountering an intermittent issue when uploading templates to CloudStack 4.20.1.0 where Linstor is used as Primary Storage. Here’s the detailed breakdown: CloudStack Version: 4.20.1.0 ...
Opengraph URL: https://github.com/apache/cloudstack/issues/11905
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Intermittent Template Download Failure (NOT_DOWNLOADED) in CloudStack 4.20.1.0 with Linstor Primary Storage","articleBody":"Hi all,\n\nI’m encountering an intermittent issue when uploading templates to CloudStack 4.20.1.0 where Linstor is used as Primary Storage. Here’s the detailed breakdown:\n\n\nCloudStack Version: 4.20.1.0\nPrimary Storage:\nLinstor-controller 1.32.3-1ppa1-noble1\nLinstor-satellite 1.32.3-1ppa1-noble1\nDRBD_KERNEL_VERSION=9.2.14\nSystem: Ubuntu 24.04.3 LTS\nHypervisor: KVM\n\nWhen uploading a template (e.g., an Ubuntu 22.04 qcow2 image), the process intermittently fails with NOT_DOWNLOADED in Primary Storage. In my tests, 2 out of 3 upload attempts fail, while 1 succeeds randomly.\n\n\n\nTwo critical symptoms:\n1. qemu-img Binary Not Found: The CloudStack agent not execute qemu-img convert (verified via strace ):\nps -ef | grep cloudstack-agent\nstrace -f -s 256 -p 1318808 -o /tmp/agent_trace.log\n\ncan't find execute qemu-img convert like this:\n ```\nexecve(\"/usr/local/sbin/qemu-img\", [\"qemu-img\", \"convert\", \"-n\", \"--target-is-zero\", \"-W\", \"-S\", \"1M\", \"-O\", \"raw\", \"-t\", \"none\", \"-U\", \"--image-opts\", \"driver=qcow2,file.filename=/mnt/.../xxx.qcow2\", \"/dev/drbd1105\"], ...) = -1 ENOENT (No such file or directory)\n ```\n\n\nDRBD Devices Stay “Unused”: Linstor resource listings show DRBD devices as Unused (instead of one of device InUse):\n\n ```\n root@NODE76:~# linstor v l |grep 80bc7788-638e-4211-9b31-d76d037b50b3\n | cs-80bc7788-638e-4211-9b31-d76d037b50b3 | NODE158 | DfltDisklessStorPool | 0 | 1105 | /dev/drbd1105 | | Unused | Diskless | Established(2) |\n | cs-80bc7788-638e-4211-9b31-d76d037b50b3 | NODE76 | x86_pool_zfs_ssd | 0 | 1105 | /dev/drbd1105 | 20.00 GiB | Unused | UpToDate | Established(2) |\n | cs-80bc7788-638e-4211-9b31-d76d037b50b3 | NODE83 | x86_pool_zfs_ssd | 0 | 1105 | /dev/drbd1105 | 20.00 GiB | Unused | UpToDate | Established(2) |\n ```\n\n\nSteps to Reproduce:\n1. Upload a qcow2 template (e.g., `ubuntu-22.04.4-amd64-base-UEFI.qcow2`) to CloudStack.\n2. Monitor the Primary Storage (Linstor) download status.\n3. Repeat the upload 3+ times and observe intermittent `NOT_DOWNLOADED` failures.\n\n\nExpected Behavior:\nThe template should download to Primary Storage successfully every time, with `qemu-img convert` executing properly and DRBD devices showing `InUse`.\n\n\nActual Behavior:\n- Intermittent failures (2 out of 3 attempts fail).\n- DRBD resources remain `Unused` during failed attempts.\n\n\nQuestions:\n- What configuration or troubleshooting steps should I take to resolve this intermittent behavior?\n\n\nAny insights or guidance would be greatly appreciated!\n\nThanks,\n\n\u003cimg width=\"1598\" height=\"865\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/12b26478-f480-4201-90ab-407f5fd1522b\" /\u003e","author":{"url":"https://github.com/gw769","@type":"Person","name":"gw769"},"datePublished":"2025-10-24T07:59:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/11905/cloudstack/issues/11905"}
| 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:71c09448-89f2-c631-3c42-c11a6a8dd306 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8666:13DA2D:261A090:3706BC5:6A4D1D32 |
| html-safe-nonce | 5e896ecabe4d358cb7b176b7bcaade8c53ff1202fb37f612bf9257d3646ddfa6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjY2OjEzREEyRDoyNjFBMDkwOjM3MDZCQzU6NkE0RDFEMzIiLCJ2aXNpdG9yX2lkIjoiNzEyMDUxMTkyMjg5MzY5Mzk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bc9692128c21ba2c647063c435ed43de85cec8df7fe1304686d6c897f7d7132c |
| hovercard-subject-tag | issue:3548140306 |
| 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/11905/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a781bb7b6bc4c4dbbeada3d61ba88a6fded8b1bae10a906f547ac423994859ed/apache/cloudstack/issues/11905 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a781bb7b6bc4c4dbbeada3d61ba88a6fded8b1bae10a906f547ac423994859ed/apache/cloudstack/issues/11905 |
| og:image:alt | Hi all, I’m encountering an intermittent issue when uploading templates to CloudStack 4.20.1.0 where Linstor is used as Primary Storage. Here’s the detailed breakdown: CloudStack Version: 4.20.1.0 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gw769 |
| hostname | github.com |
| expected-hostname | github.com |
| None | bcb4661e6fb4fe8b394c51ea02ccdb2236d40dc59afc75a3bbba50bf6517134c |
| 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 | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width