Friday, 2025-07-18

opendevreviewMerged openstack/watcher-tempest-plugin master: Skip execute_workload_balance_strategy_cpu|ram due to known bug  https://review.opendev.org/c/openstack/watcher-tempest-plugin/+/95530203:20
amoralejjgilaber, wrt https://review.opendev.org/c/openstack/watcher/+/954745 it's breaking your test _pre_upgrade_15f7375ca737 as it can not create an audit without the status_message column so fails in https://github.com/openstack/watcher/blob/master/watcher/tests/db/test_migrations.py#L15208:20
amoralejdunno how to manage that, any idea?08:20
amoralejlogs in https://zuul.opendev.org/t/openstack/build/996305808f4e44dab264c0a9ae177d6e08:20
jgilaberamoralej, the problem comes a discrepancy between the db model and the db schema at the point I guess08:28
amoralejexactly08:29
amoralejit expects audit to have a status_message field but the column does not exist yet08:29
amoralejsame would happen when creating an actionplan or an action08:29
jgilaberright, when I added the test, I had the same problem but only with the efficacy indicator08:33
jgilaberas a workaround I created a function that would "manually" create it in the database without using the model08:34
jgilaberhttps://github.com/openstack/watcher/blob/374750847f3ca2284b455792c414808a55e181ff/watcher/tests/db/test_migrations.py#L11708:34
jgilaberone option would be to do the same for audits and action plans 08:35
amoralejwhat does that code?08:35
jgilaberthat reads the existing schema from the db 08:36
jgilaberand inserts a test object with that schema08:36
jgilaberit doesn't follow the db model from watcher, but the db schema at that point in time08:36
jgilaberI can give it a try if you want08:37
amoralejbut, it's inserting a value into a pre-existing column?08:38
amoralejthat's not what we need08:38
jgilaberin this particular case it would not insert a status_message, since when that test is running that does not exist in the schema yet08:39
jgilabersince your allembic migration has not been applied08:39
amoralejso, here is where the object is created https://github.com/openstack/watcher/blob/master/watcher/tests/objects/utils.py#L235-L245 iiuc08:40
jgilabernop, it's using this one08:41
jgilaberhttps://github.com/openstack/watcher/blob/374750847f3ca2284b455792c414808a55e181ff/watcher/tests/db/utils.py#L31308:41
jgilaberconfusing, I know08:41
amoralejyeah, the first calls the second08:41
amoraleji see it now08:41
amoralejso, we could use https://github.com/openstack/watcher/blob/master/watcher/tests/db/utils.py#L82-L10908:43
amoralejactually, i wonder if i should add status_message to those :) 08:45
jgilaberyes, we should keep it up to date08:48
jgilaberI'm trying to test my idea locally, but need a few minutes to setup the db08:48
amoralejsure, no problem, no rush08:49
amoralejthanks!08:49
jgilaberamoralej, I  got it to pass locally with this patch https://etherpad.opendev.org/p/db_migration_test_patch09:24
amoralejshould i include it in my patch or do a separate one only for that an rebase?09:27
jgilaberI think that the change is small enough to keep it in the same patch09:44
amoralejok, lemme send an update09:48
opendevreviewDavid proposed openstack/watcher master: Disable real metrics on devstack injected data jobs  https://review.opendev.org/c/openstack/watcher/+/95528109:57
opendevreviewDavid proposed openstack/watcher master: Disable real metrics on devstack injected data jobs  https://review.opendev.org/c/openstack/watcher/+/95528110:05
opendevreviewDavid proposed openstack/watcher master: Disable real metrics on devstack injected data jobs  https://review.opendev.org/c/openstack/watcher/+/95528110:30
opendevreviewDavid proposed openstack/watcher master: Disable real metrics on devstack injected data jobs  https://review.opendev.org/c/openstack/watcher/+/95528110:31
opendevreviewJoan Gilabert proposed openstack/watcher master: [WIP] Enable listing storage model  https://review.opendev.org/c/openstack/watcher/+/95536511:40
opendevreviewJoan Gilabert proposed openstack/watcher-tempest-plugin master: Add test for volume retype with zone migration  https://review.opendev.org/c/openstack/watcher-tempest-plugin/+/95462511:42
opendevreviewDavid proposed openstack/watcher-tempest-plugin master: Add custom flavor and dynamic threshold to workload_balance tests  https://review.opendev.org/c/openstack/watcher-tempest-plugin/+/95385312:37
opendevreviewDavid proposed openstack/watcher-tempest-plugin master: Add custom flavor and dynamic threshold to workload_balance tests  https://review.opendev.org/c/openstack/watcher-tempest-plugin/+/95385312:42
opendevreviewDavid proposed openstack/watcher-tempest-plugin master: Add custom flavor and dynamic threshold to workload_balance tests  https://review.opendev.org/c/openstack/watcher-tempest-plugin/+/95385313:17
opendevreviewAlfredo Moralejo proposed openstack/watcher master: Add status_message fields to audit, action and actionplan  https://review.opendev.org/c/openstack/watcher/+/95474513:44
opendevreviewAlfredo Moralejo proposed openstack/watcher master: Skip actions automatically based on pre_condition results  https://review.opendev.org/c/openstack/watcher/+/95474613:44
opendevreviewJoan Gilabert proposed openstack/watcher master: [WIP] Enable listing storage model  https://review.opendev.org/c/openstack/watcher/+/95536514:26
opendevreviewJoan Gilabert proposed openstack/watcher-tempest-plugin master: Add test for volume retype with zone migration  https://review.opendev.org/c/openstack/watcher-tempest-plugin/+/95462514:26
*** haleyb is now known as haleyb|out18:33
-opendevstatus- NOTICE: The Gerrit service on review.opendev.org will be offline briefly for a configuration and version update, but should return to service momentarily20:07

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