Wednesday, 2023-05-17

sylvanldHello everyone! I was playing with subnet deletion API and I have a quick question :) Our use case: we want a share to be attached to multiple subnets that might change, so we need to be able to add/remove subnets from a share network that is attached to a share though a share server. Question: I can't figure out why currently share server is deleted on share-network-subnet deletion (other subnets might be13:06
opendevreviewRenan Vitor proposed openstack/manila master: [NetApp] Fix NetApp driver create from snapshot  https://review.opendev.org/c/openstack/manila/+/88317513:27
sylvanldHello! we want a share to be attached to multiple subnets that might change, so we need to be able to add/remove subnets from a share network that is attached to a share though a share server.13:40
sylvanldQuestion: why are share servers deleted on share-network-subnet deletion? Other subnets might be configured on it, so IMO share-server lifecycle seems more related to the share than the subnet.13:43
sylvanldOther related question: Currently we can't delete a subnet that is used by a share. Why this choice of design? (We would like to be able to change the subnets of a share without destroying it)13:48
sylvanldI am asking a few questions to understand whether a blueprint might be appropriate. If so I would happy to help with implementation :)13:50
carlosso/ hey there sylvanld 13:51
carloss> Question: why are share servers deleted on share-network-subnet deletion? 13:51
carlossis this happening when you already have two subnets attached?13:51
carloss> I am asking a few questions to understand whether a blueprint might be appropriate. If so I would happy to help with implementation :)13:51
carlossoh, great :)13:51
carlossplease feel free to fire questions away :)13:52
carlosswe also have some maintainers that made some changes to share network subnets attached to multiple server recently, so they can back me up :)13:52
carlossyeah, we are not allowing the deletion of the share network subnets when they have shares attached to it13:56
carlossI wouldn't have problems against it though13:56
carlossI mean, not if you have other share network subnets also attached to the share server13:56
sylvanld> is this happening when you already have two subnets attached?13:57
carlossnahimsouza[m] felipe_rodrigues: do you have some background on this? do you recall if we have limitations wrt this?13:58
sylvanldWith current implementation,  we can only delete subnet if no share has been created yet with this share network. So no share network exists.13:58
sylvanld* no -share-server sry13:58
sylvanld> I mean, not if you have other share network subnets also attached to the share server14:01
sylvanldI had a quick look at the code. I was wondering why having at least one subnet in a share network is mandatory ?14:01
sylvanldI mean the share won't have any export path, but IMO there is no problem with this behaviour14:03
nahimsouza[m]<carloss> "nahimsouza felipe_rodrigues..." <- hey guys, sorry carloss, I don't know much about the design decisions for share network subnets, I would need to analyze the code before answering this... but right now I don't recall of any limitations 14:12
carloss> I had a quick look at the code. I was wondering why having at least one subnet in a share network is mandatory ?14:14
carlosssylvanld: it iss important to ensure that the share will always be tied to a share network subnet, which holds the allocation details for the share server, where the share is located14:14
carlossif a share exists and it does not have an export location, then the share becomes "useless" I'd say, as no one can mount that share14:15
carlossand if you drop a share network subnet when there are sharesthere, the driver would remove the allocation and the current mounts would be disrupted14:16
carlosss/sharesthere/shares there14:17
sylvanld> if a share exists and it does not have an export location, then the share becomes "useless" I'd say14:23
sylvanldI agree but it might get one later once a new subnet is added to the share-network. Not a big deal for our use case anyway. We could simply add subnetB before removing subnetA.14:24
sylvanld> if you drop a share network subnet when there are shares there, the driver would remove the allocation and the current mounts would be disrupted14:31
sylvanldI understand that this can cause unintended behaviour. But as a manila user, I expect to be able to do it.14:31
sylvanldMaybe by setting some kind of flag through query params to indicate I know the consequences of what I am doing. (E.G: umount_existing_shares=true)14:32
sylvanldWhat do you think about it ?14:32
carlosssylvanld: --force in this case would be the way to go, I think. Specially if we consider that when we want to force something in other operations, that's the pattern we follow14:41
carlossunmount_existing_shares flag would sound a bit like "manila knows who is mounting this share and we will umount them at the end of this operation", when it actually doesn't14:42
carloss> We could simply add subnetB before removing subnetA.14:43
carlossI'd say I prefer ^ over forcing the deletion of the subnet and the share becoming unavailable for some time14:43
carlosseven though we would expect the operator know what they are doing, this could be way too disruptive and impact many shares at once14:44
carlossother people might have different opinions though :)14:44
carlossgouthamr: thoughts? :)14:44
gouthamrhey sylvanld carloss: i'm catching up now, so may be slow14:47
gouthamr> Question: why are share servers deleted on share-network-subnet deletion? Other subnets might be configured on it, so IMO share-server lifecycle seems more related to the share than the subnet.14:47
gouthamr^ would you like a behavior where manila doesn't cleanup share servers after deletion of shares? if yes, there is a configuration option to force this behavior14:48
gouthamr``delete_share_server_with_last_share``: https://docs.openstack.org/manila/latest/configuration/shared-file-systems/config-options.html#id1014:50
sylvanld> would you like a behavior where manila doesn't cleanup share servers after deletion of shares? if yes, there is a configuration option to force this behavior14:54
sylvanldNo, it is more related to share_network_subnets API. I would like to delete a subnet of a share-network used by one or many share(s)14:56
sylvanldThis is not possible currently, but I was trying to figure out what would occurs if it was authorized.14:58
gouthamrack; then i agree with the thought process here; if were to allow deletion of subnets, we'd need atleast one subnet connected - so if you were replacing an existing subnet, we could allow adding the new one and then removing the other one.. 15:00
gouthamrsylvanld: https://specs.openstack.org/openstack/manila-specs/specs/release_independent/share-server-multiple-subnet.html -- this was supposed to be a multi-part specification15:00
gouthamrfelipe_rodrigues isn't here today; but i think in one of the earlier iterations of the spec, he was seeking the ability to remove subnet/s as well15:01
gouthamrsylvanld: if you plan to implement that feature, a short spec would help and we can brainstorm the implications 15:05
sylvanld> if you plan to implement that feature, a short spec would help and we can brainstorm the implications15:08
sylvanldIs a blueprint here the good place to start this kind of spec? https://blueprints.launchpad.net/manila15:09
gouthamrsylvanld: yes please, and there's a specs repository: https://opendev.org/openstack/manila-specs --- this is where we host design docs; we review them the same way as we review code (via review.opendev.org) 15:15
gouthamrsylvanld: here are some open specs being reviewed at the moment: https://review.opendev.org/q/project:openstack%252Fmanila-specs+status:open15:15
gouthamra blueprint is helpful because a feature may have multiple code changes and blueprints make that easy to track for posterity15:18
gouthamrbut the tool doesn’t allow conversations/review15:19
sylvanldgouthamr: great! I will create a first version of this spec to discuss this :)15:23
sylvanldthanks everyone!15:23
gouthamrperfect, thanks sylvanld15:25
rdupontovhHi, i work with sylvanld and have an other small topic to discuss while we're at it gouthamr :)15:31
rdupontovhabout this change: https://review.opendev.org/c/openstack/manila/+/880852 15:31
rdupontovhwe had some discussion about https://bugs.launchpad.net/manila/+bug/2012742 but it stopped last month :D15:32
gouthamrah my bad rdupontovh15:32
rdupontovhno problem15:32
gouthamrmeant to take another look at it; you taught me about Oslo config drivers! so thanks! :)15:32
carlossthanks sylvanld :D15:40
opendevreviewMerged openstack/devstack-plugin-ceph stable/wallaby: Cap cinder-tempest-plugin version for stable/wallaby  https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/87192019:33
opendevreviewGoutham Pacha Ravi proposed openstack/devstack-plugin-ceph master: Update default ceph version to "quincy"  https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/88344420:35
opendevreviewMerged openstack/manila-tempest-plugin master: [CI] Fix cephfs-nfs job by running on centos-stream-9  https://review.opendev.org/c/openstack/manila-tempest-plugin/+/88262422:46

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!