Wednesday, 2021-04-21

*** sfernand has quit IRC00:49
*** carloss has quit IRC03:18
*** felipe_rodrigues has quit IRC03:53
*** vishalmanchanda has joined #openstack-manila04:55
*** mnaser has quit IRC05:59
*** mnaser has joined #openstack-manila06:00
*** tosky has joined #openstack-manila07:46
openstackgerritMaurice Escher proposed openstack/manila master: init_host should be called before RPC consumer is created  https://review.opendev.org/c/openstack/manila/+/78732108:16
openstackgerritMaurice Escher proposed openstack/manila master: init_host should be called before RPC consumer is created  https://review.opendev.org/c/openstack/manila/+/78732108:34
*** noonedeadpunk has joined #openstack-manila08:37
noonedeadpunkhi there! I found our CI failing for manila tempest jobs, with pretty weird reason. I found that in manila-scheduler log http://paste.openstack.org/show/804656/08:39
noonedeadpunkso in backend we really set `cephfs_enable_snapshots = False` https://zuul.opendev.org/t/openstack/build/01161b92bafe4074a38b1d800eb8f8c4/log/logs/etc/host/manila/manila.conf.txt#3208:39
noonedeadpunkBut I really not sure, if that's a reason for failing scheduler filter08:40
noonedeadpunkI mean, that in case share reports snapshots as supported, but they are disabled in config - that shouldn't be considered as failure.08:40
noonedeadpunkBut when it's enabled in config, but reported by share as false - then it should fail08:41
noonedeadpunkor I'm missing smth here?08:41
*** lpetrut has joined #openstack-manila09:39
tbarronnoonedeadpunk: as of wallaby that config setting has no effect; cephfs snapshot support is no longer experimental in ceph itself and manila-share passes through the capability to the scheduler10:28
tbarronas in your scheduler log pastebin10:28
tbarroneven if you set the deprecated ceph_enable_snapshots option to False10:29
noonedeadpunkwell, I'd say it has effect, since scheduling is failing because of that:)10:29
tbarronnoonedeadpunk: no it's failing despite that10:30
tbarronthe fix is to change your share type10:30
tbarronthe scheduler failure is due to mismatch between share type (which is saying gimme a back end w/o snapshot support) and the10:30
tbarronbackend itself, which has snapshot support despite the ineffective setting of that deprecated option10:31
noonedeadpunkoh, well, just noticed that `default_share_type` is not valid there...10:33
tbarronnoonedeadpunk: manila type-key default-shares set snapshot_support=True10:34
tbarronnoonedeadpunk: manila type-key default-shares set create_from_snapshot_support=True10:34
tbarronsub for default-shares10:34
tbarronThen remove that deprecated ineffective option from manila.conf for cleanup purposes as it will confuse.10:35
tbarronnoonedeadpunk: This isn't an ideal situation but ceph made a bunch of not particularly backward compatible changes10:35
tbarronthough they were good changes10:36
tbarronand we needed to adapt.10:36
tbarronIt's in releasenotes of course but ...10:36
noonedeadpunkok, gotcha. But if we're talking about new manila deployment, do I need to run these commands as well? Or it would be enough just to remove cephfs_enable_snapshots from share at the beggining?10:37
noonedeadpunkYeah, I saw, but I didn't expect to things fail bacause of that:)10:37
tbarronnoonedeadpunk: your expectations are reasonable :(10:37
tbarronnoonedeadpunk: on a new deployment you still need a share type that matches the back end capabilities for share creation to succeed10:38
tbarronnoonedeadpunk: if osa creates the share type it should create it with those extra spec settings10:39
tbarronnoonedeadpunk: as an example, tempest creates a bunch of share types before it runs and it was modified for wallaby in this respect10:39
tbarronmanila-tempest-plugin10:40
noonedeadpunkI think we run only these things https://opendev.org/openstack/openstack-ansible-os_manila/src/branch/master/tasks/manila_backends.yml#L39-L4010:41
noonedeadpunkok, I got the direction, will try to check this now)10:41
tbarronnoonedeadpunk: you need a couple more items 'snapshot_support: True' 'create_share_from_snapshot_support: True'10:46
tbarronnoonedeadpunk: Thanks, and sorry for the hassle.10:46
noonedeadpunkbut it's only in case share_driver is CephFSDriver ?10:47
tbarronnoonedeadpunk: the principle holds for all back ends but only the CephFSDriver had such a change in wallaby10:52
noonedeadpunkwell, what I'm trying to understand is when to run these commands...10:53
noonedeadpunkbecause I think you might not always want to enable snapshots?10:53
tbarronThe share type setup is one time, post deployment, prior to use.10:54
noonedeadpunkmeant when in terms of scenarios :)10:54
tbarronwell manila back ends normally have snapshot capability.  It was a deficiency on cephs part not to match.  To be clear10:55
noonedeadpunkaha, so I can jsut run that unconditionally let's say?10:56
tbarronthe share owner still has to issue 'manila snapshot create ...' for snapshots to be created.  this isn't a run-shapshots-automatically off the clock thing.10:56
tbarronIf a user doesn't want any snapshots, doesn't want the extra disk consumption or whatever (after share and snap diverge over time) then they just don't create them.10:57
tbarronor they delete older ones.10:57
gouthamr"because I think you might not always want to enable snapshots?" --> these extra-specs are optional: if you as an administrator don't want your users to create snapshots or clone snapshots, you shouldn't set snapshot_support and create_share_from_snapshot_support in the share type10:57
tbarrongouthamr: what are you doing up?10:58
noonedeadpunkok, yeah, agree. Was just trying to understand if there're cases where this might be smth you might want to avoid from setting10:58
gouthamrdidn't mean to interrupt your discussion :P10:58
gouthamri wanted to say the failures here are purely manila-tempest-plugin's inflexibility in one sense10:59
noonedeadpunkgouthamr: well, everything started from that when I don't set this, scheduler fails to select host for creating share10:59
noonedeadpunkhttp://paste.openstack.org/show/804656/10:59
gouthamryep11:00
noonedeadpunkso I kind of can't not setting snapshot_support if I don't want users to use snapshots?11:01
*** carloss has joined #openstack-manila11:01
gouthamrour tempest tests lack the ability to have a "don't care" situation with these extra-specs - they default to setting "snapshot_support" and "create_share_from_snapshot_support" into share types11:02
gouthamrthat's what's failing in your test jobs11:02
noonedeadpunkwell, yes. I can kind of make our tests match tempest, but was just more wondering about if it should work overall in non-ci or dunno11:04
noonedeadpunk(eventually we're running tempest as well)11:04
gouthamroh i was under the impression you're running manila-tempest-plugin tests11:04
gouthamrwhat are you running? :)11:05
gouthamri mean is this a custom test that i can see somewhere?11:05
noonedeadpunkah, sorry11:06
noonedeadpunkI read your statement wrong way)11:06
noonedeadpunkyes, we're running tempest scenario11:06
noonedeadpunkbut it used to have `run_snapshot_tests` option?11:06
gouthamrit still does - and that defaults to True, unless you're overriding it11:07
noonedeadpunkwe have it configured that way https://opendev.org/openstack/openstack-ansible/src/branch/master/tests/roles/bootstrap-host/templates/user_variables_manila.yml.j2#L35-L5711:07
gouthamri see, ty11:07
noonedeadpunk(and it's false for this scenario)11:07
gouthamrand these tests are only being run with CephFS? (i assume yes, based on the manila_backends section at the bottom of that yaml)11:08
noonedeadpunkyeah11:09
noonedeadpunkwe're trying just to do minimal set of tests to ensure that deployment basicaly working11:09
gouthamrawesome - then for Wallaby and beyond, you can set "run_snapshot_tests=True" (or remove the override)11:09
noonedeadpunkand rely on massive testing you perform11:09
gouthamri see, if you don't want to run snapshot tests, you can set "run_snapshot_tests=False" and set "capability_snapshot_support=True"11:10
noonedeadpunkbut I should add running `manila type-key default-shares set snapshot_support=True` and `manila type-key default-shares set create_from_snapshot_support=True` anyway?11:10
gouthamrbut i wouldn't recommend it11:10
noonedeadpunkaha, gotcha11:10
gouthamrnoonedeadpunk: this is what's tripping us up here: https://github.com/openstack/manila-tempest-plugin/blob/602f101c14ea9130226359942636fb5bf0c9e782/manila_tempest_tests/tests/scenario/manager_share.py#L459-L46411:14
gouthamrnoonedeadpunk: we're creating a share type and setting "snapshot_support" from the config opt  "capability_snapshot_support=True", which defaults to "run_snapshot_tests" when not set11:15
gouthamri was exploring some cleanup in the tests: https://review.opendev.org/c/openstack/manila-tempest-plugin/+/785307 and i missed these scenario tests11:17
gouthamrso thanks for pointing this out, i'll include it in my cleanup - but, for your immediate relief, you can set "capability_snapshot_support=True" in https://opendev.org/openstack/openstack-ansible/src/branch/master/tests/roles/bootstrap-host/templates/user_variables_manila.yml.j2#L35-L57 and still have the right thing happening11:18
noonedeadpunkcool awesome, thanks for pointing to that setting!11:19
*** dviroel_ has quit IRC11:19
openstackgerritMaurice Escher proposed openstack/manila master: init_host should be called before RPC consumer is created  https://review.opendev.org/c/openstack/manila/+/78732111:29
noonedeadpunkgouthamr: umm.. but in https://github.com/openstack/manila-tempest-plugin/blob/602f101c14ea9130226359942636fb5bf0c9e782/manila_tempest_tests/tests/scenario/manager_share.py#L459-L464 it's using `CONF.share.capability_snapshot_support` or I read it wrong?11:44
gouthamrnoonedeadpunk: https://github.com/openstack/manila-tempest-plugin/blob/602f101c14ea9130226359942636fb5bf0c9e782/manila_tempest_tests/plugin.py#L39-L5311:47
gouthamrnoonedeadpunk: if CONF.share.capability_snapshot_support isn't set, we default to the value of CONF.share.run_snapshot_tests11:48
noonedeadpunkI think I just can't understand why setting everything to false is not going to work...11:49
noonedeadpunkbecause driver will explicitly say that it's supported?11:50
noonedeadpunkand that's what not handled I guess11:50
noonedeadpunkok, gotcha11:50
noonedeadpunkI just though that if I wan't run `manila type-key default-shares set snapshot_support=True` driver won't report it as supported11:51
noonedeadpunkand we don't run this bit at the moment11:51
gouthamrah, nope - the cephfs driver reports capability as being True since Wallaby, and you can't control that...11:54
gouthamrsince Victoria*11:54
gouthamrin the past, since CephFS snapshots were experimental (a ceph side limitation) it made sense to have a configuration option to allow administrators to opt in11:55
*** sfernand has joined #openstack-manila12:57
openstackgerritLiron Kuchlani proposed openstack/manila-tempest-plugin master: Stop supporting microversion 2.23 and less  https://review.opendev.org/c/openstack/manila-tempest-plugin/+/78107413:26
openstackgerritLiron Kuchlani proposed openstack/manila-tempest-plugin master: Stop supporting microversion 2.23 and less  https://review.opendev.org/c/openstack/manila-tempest-plugin/+/78107413:33
openstackgerritDina Saparbaeva proposed openstack/manila-ui master: WIP: API v2.45, adds metadata support to access rules  https://review.opendev.org/c/openstack/manila-ui/+/78304113:50
openstackgerritTom Barron proposed openstack/manila master: Fix api error message for snapshot creation failure  https://review.opendev.org/c/openstack/manila/+/78737113:52
openstackgerritLiron Kuchlani proposed openstack/manila-tempest-plugin master: Setup snapshot extra specs only if required  https://review.opendev.org/c/openstack/manila-tempest-plugin/+/78530713:57
gouthamrHello folks! We're beginning in https://www.openstack.org/ptg/rooms/austin in just a minute!13:59
*** lpetrut has quit IRC14:29
noonedeadpunksorry for bothering you today, but any guess wtf might be wrong here? https://zuul.opendev.org/t/openstack/build/a6aa7c2a74674d7694812f6d15441137/log/logs/host/manila-api.service.journal-13-32-09.log.txt#250 ?14:49
*** dviroel is now known as dviroel|lunch15:34
gouthamrnoonedeadpunk: ouch, haven't seen that before16:03
gouthamrlemme take a look after the PTG session today, any chance you can report a bug?16:04
gouthamris it possible the version of oslo_context is too old?16:04
*** tkajinam has quit IRC16:07
*** tkajinam has joined #openstack-manila16:07
noonedeadpunkgouthamr: we're taking it from u-c, so unlikely... Well, np, I will try to launch a sandbox and see what's going on there...16:08
noonedeadpunkjsut thought maybe smth you know from top of your head)16:08
noonedeadpunkas eventually I think that worked in the morning...16:09
*** vhari has quit IRC16:26
*** vhari has joined #openstack-manila16:29
*** dviroel|lunch is now known as dviroel16:30
gouthamrnoonedeadpunk: sorry late ack, nope nothing from the top of my head - although i did see a note about _read_deleted being unset in the context object from some nova code: https://opendev.org/openstack/nova/src/branch/master/nova/context.py#L163-L17918:12
gouthamror not, we have getters/setters for this code here in manila: https://opendev.org/openstack/manila/src/branch/master/manila/context.py#L73-L8618:14
*** jmlowe has joined #openstack-manila18:44
*** vishalmanchanda has quit IRC18:54
openstackgerritDina Saparbaeva proposed openstack/manila-ui master: WIP: API v2.45, adds metadata support to access rules  https://review.opendev.org/c/openstack/manila-ui/+/78304119:06
*** lpetrut has joined #openstack-manila19:32
*** lpetrut has quit IRC19:34
*** tosky has quit IRC23:42

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