Uh oh!
There was an error while loading. Please reload this page.
multi local storage handling for kvm - #6699
Conversation
weizhouapache
commented
Sep 5, 2022
DK101010
commented
Sep 5, 2022
@weizhouapache Damn, the last time I checked the PRs, I didn't see that one.... never mind Hmm ... you implemented this via agent properties and my implementation works via UI like the other storages. Perhaps we find a compromise. But I'm afraid that our implementations are disjunct. Do you have an idea? |
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
weizhouapache
commented
Sep 9, 2022
The reason I choose agree with you it would be nice to support it via api and UI, it will be more user-friendly. for example 1 is optional if 2,3,4 are supported. we can start by adding a host with only 1 local storage pool. |
DK101010
commented
Sep 13, 2022
I would also prefer to ignore number 1. But I still have two questions. Why do the agent properties have to be adapted? |
weizhouapache
commented
Sep 13, 2022
@DK101010 you can check |
weizhouapache
commented
Sep 26, 2022
@blueorangutan package |
blueorangutan
commented
Sep 26, 2022
@weizhouapache a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
blueorangutan
commented
Sep 26, 2022
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 4284 |
weizhouapache
commented
Oct 5, 2022
@DK101010 |
DK101010
commented
Oct 5, 2022
@weizhouapache it isn't done. Currently I try to find out, why it is important to use the agent.properties file instead to create entries directly in the db via rest api. |
67ff6dc to
3a19913Compare3a19913 to
2889e3dCompare…/multi_local_storage_handling
Co-authored-by: João Jandre <48719461+JoaoJandre@users.noreply.github.com>
shwstppr
commented
Nov 8, 2023
@blueorangutan package |
blueorangutan
commented
Nov 8, 2023
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
blueorangutan
commented
Nov 8, 2023
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7675 |
DaanHoogland
commented
Nov 8, 2023
@blueorangutan test |
blueorangutan
commented
Nov 8, 2023
@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Nov 9, 2023
[SF] Trillian test result (tid-8276)
|
DK101010
commented
Nov 10, 2023
Strange, we use it already in our environment without problems. hmm ... I will check this again next week. |
DaanHoogland
commented
Nov 13, 2023
@DK101010 , is there maybe a prereq procedure that needs documentation? like installing/enabling a provider and or setting global configurations. |
…m/NDBSGMS/cloudstack into feat/multi_local_storage_handling
DaanHoogland
commented
Nov 13, 2023
@blueorangutan package |
blueorangutan
commented
Nov 13, 2023
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
DK101010
commented
Nov 13, 2023
@rajujith@DaanHoogland many thanks for testing. The problem was that the filesystem protocol is dependent on scope and zone. If the zone was not selected or the zone was selected before the scope, the protocol is not updated. With the new scope event it should now also work for you |
blueorangutan
commented
Nov 13, 2023
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7731 |
There was a problem hiding this comment.
LGTM.
Steps I followed:
Enable 'Enable local storage for User Instances' at zone.
Create Local storage:
1. Create a directory in one of the KVM host.
2. Click on add primary storage in the cloudstack UI. 3. Fill the form selecting the scope as 'HOST" and the above host. Selected the protocol 'Filesystem'.
4. Input the directory path from the above step 1. If the directory is not present the primary storage addition fails, I believe this is expected.
Deleted the above primary storage, the primary storage is not visible anymore in the UI. The directory remains in the KVM host filesystem.
Verified volume deployments, and migrations.
DaanHoogland
commented
Nov 15, 2023
@blueorangutan test |
blueorangutan
commented
Nov 15, 2023
@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
DaanHoogland
commented
Nov 15, 2023
@JoaoJandre can you approve now? |
DaanHoogland
commented
Nov 16, 2023
api-rate limit again:
I think we can call this a success |
Co-authored-by: DK101010 <dirk.klahre@itelligence.de> Co-authored-by: João Jandre <48719461+JoaoJandre@users.noreply.github.com>
andrijapanicsb
commented
Dec 11, 2023
Whoever is reviewing the PR, can we please try to ensure that the proper documentation is also provided for a feature? I'll add the related docs for this one. Thanks. |






Description
Is currently a POC, if someone have additional ideas or hints.
Motivation
Users sometimes only have the option to use local storages, so they should have the option to use local storage like other storage types.
Implementation
Decided to use already existing code to prevent breaks in current behavior(adapted agent code by user to add local storage)
With this implementation it is possible to add and use local storage like other storage types.
Key properties to add a local storage
Scope: HOST
Protocol: Filesytem
Path: mount path in KVM
Condition:
Enable local storage for User VMs = true in zone detail settings
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Currently only tested in own environment