*** mlavalle has quit IRC | 00:02 | |
*** martinkennelly has quit IRC | 00:13 | |
*** gyee has quit IRC | 00:38 | |
*** LinPeiWen has joined #openstack-nova | 00:49 | |
melwitt | guilhermesp: you can just do the openstack server reboot --hard to regenerate the guest xml | 00:55 |
---|---|---|
*** tkajinam has quit IRC | 00:55 | |
*** tkajinam has joined #openstack-nova | 00:56 | |
guilhermesp | indeed! thanks melwitt | 00:58 |
melwitt | don't think you needed the undefine but I've been wrong before | 00:59 |
*** zzzeek has quit IRC | 01:07 | |
*** zzzeek has joined #openstack-nova | 01:08 | |
*** zzzeek has quit IRC | 01:33 | |
*** swp20 has quit IRC | 01:33 | |
*** zzzeek has joined #openstack-nova | 01:35 | |
*** k_mouza has joined #openstack-nova | 01:50 | |
*** k_mouza has quit IRC | 01:54 | |
*** zzzeek has quit IRC | 01:54 | |
*** artom has quit IRC | 01:56 | |
*** zzzeek has joined #openstack-nova | 01:57 | |
guilhermesp | melwitt: i'm my case ( an openstack-helm deployment ) my nova compute pod wasnt starting for some reason after a power shutdown. All guests were present on the node but in shutoff state and refusing to start, causing the compute node to crash loop and never be UP | 02:26 |
guilhermesp | so using cli wasnt an option... after undefine all guests that the pod was able to start the compute and things got back to normal :) ( guests were recreated ofc ) | 02:27 |
*** hamalq has quit IRC | 02:29 | |
*** zzzeek has quit IRC | 02:55 | |
*** zzzeek has joined #openstack-nova | 02:57 | |
*** zzzeek has quit IRC | 03:30 | |
*** wangzhh has joined #openstack-nova | 03:31 | |
*** zzzeek has joined #openstack-nova | 03:31 | |
*** rcernin has quit IRC | 03:54 | |
*** rcernin has joined #openstack-nova | 04:00 | |
*** terdei has quit IRC | 04:27 | |
*** terdei has joined #openstack-nova | 04:30 | |
*** ratailor has joined #openstack-nova | 04:39 | |
*** vishalmanchanda has joined #openstack-nova | 04:45 | |
*** whoami-rajat_ has joined #openstack-nova | 05:20 | |
*** ralonsoh has joined #openstack-nova | 05:21 | |
*** mdbooth has quit IRC | 05:22 | |
*** mdbooth has joined #openstack-nova | 05:22 | |
*** mkrai has joined #openstack-nova | 05:25 | |
*** wangzhh has quit IRC | 05:41 | |
*** tinwood has quit IRC | 06:22 | |
*** hemanth_n has joined #openstack-nova | 06:24 | |
*** waleedm_ has joined #openstack-nova | 06:24 | |
*** tinwood has joined #openstack-nova | 06:25 | |
*** csatari has quit IRC | 06:34 | |
*** macz_ has joined #openstack-nova | 06:34 | |
*** PrinzElvis has quit IRC | 06:34 | |
*** knikolla has quit IRC | 06:34 | |
*** knikolla has joined #openstack-nova | 06:36 | |
*** csatari has joined #openstack-nova | 06:36 | |
*** PrinzElvis has joined #openstack-nova | 06:37 | |
*** macz_ has quit IRC | 06:38 | |
openstackgerrit | zitoun proposed openstack/nova master: Explaining when a base image is considered unused to avoid confusion why some images aren't deleted. https://review.opendev.org/c/openstack/nova/+/786059 | 06:47 |
*** bbowen has quit IRC | 06:56 | |
*** lpetrut has joined #openstack-nova | 06:57 | |
*** mkrai has quit IRC | 07:03 | |
*** dklyle has quit IRC | 07:10 | |
*** luksky has joined #openstack-nova | 07:11 | |
*** andrewbonney has joined #openstack-nova | 07:14 | |
*** xinranwang has quit IRC | 07:20 | |
*** ociuhandu has joined #openstack-nova | 07:27 | |
*** k_mouza has joined #openstack-nova | 07:30 | |
*** ociuhandu has quit IRC | 07:31 | |
*** ociuhandu has joined #openstack-nova | 07:31 | |
*** k_mouza has quit IRC | 07:34 | |
*** ociuhandu has quit IRC | 07:41 | |
*** ociuhandu has joined #openstack-nova | 07:42 | |
*** ociuhandu has quit IRC | 07:44 | |
*** ociuhandu has joined #openstack-nova | 07:44 | |
*** waleedm_ has quit IRC | 07:48 | |
*** waleedm_ has joined #openstack-nova | 07:48 | |
*** tosky has joined #openstack-nova | 07:50 | |
*** bbowen has joined #openstack-nova | 07:51 | |
*** derekh has joined #openstack-nova | 07:54 | |
*** rpittau|afk is now known as rpittau | 07:55 | |
*** bbowen_ has joined #openstack-nova | 07:56 | |
*** bbowen has quit IRC | 07:58 | |
*** lucasagomes has joined #openstack-nova | 08:01 | |
*** kashyap has joined #openstack-nova | 08:03 | |
*** martinkennelly has joined #openstack-nova | 08:05 | |
*** slaweq_ has joined #openstack-nova | 08:19 | |
*** slaweq has quit IRC | 08:19 | |
*** rcernin has quit IRC | 08:24 | |
*** macz_ has joined #openstack-nova | 08:35 | |
*** mkrai has joined #openstack-nova | 08:38 | |
*** ricolin has quit IRC | 08:39 | |
*** macz_ has quit IRC | 08:39 | |
*** slaweq_ is now known as slaweq | 08:51 | |
hemanth_n | sean-k-mooney: hi, this is pending final review for a long time https://review.opendev.org/c/openstack/nova/+/761824 (rocky backport), this is not urgent so please review only when you get some time.. thanks | 09:08 |
*** rcernin has joined #openstack-nova | 09:12 | |
*** hoonetorg has joined #openstack-nova | 09:13 | |
*** dtantsur|afk is now known as dtantsur | 09:45 | |
openstackgerrit | Stephen Finucane proposed openstack/nova master: docs: Add man pages for 'nova-policy' https://review.opendev.org/c/openstack/nova/+/729918 | 09:51 |
*** swp20 has joined #openstack-nova | 09:57 | |
*** mkrai has quit IRC | 10:01 | |
*** whoami-rajat_ is now known as whoami-rajat | 10:17 | |
openstackgerrit | Balazs Gibizer proposed openstack/nova-specs master: Change error code when vDPA is unsupported https://review.opendev.org/c/openstack/nova-specs/+/781259 | 10:30 |
*** ociuhandu has quit IRC | 10:38 | |
*** mkrai has joined #openstack-nova | 10:45 | |
*** Luzi has joined #openstack-nova | 10:46 | |
openstackgerrit | Merged openstack/nova-specs master: Change error code when vDPA is unsupported https://review.opendev.org/c/openstack/nova-specs/+/781259 | 10:54 |
*** ociuhandu has joined #openstack-nova | 10:59 | |
*** ociuhandu has quit IRC | 10:59 | |
*** ociuhandu has joined #openstack-nova | 11:00 | |
*** rcernin has quit IRC | 11:04 | |
*** ociuhandu_ has joined #openstack-nova | 11:04 | |
openstackgerrit | Stephen Finucane proposed openstack/nova master: docs: Document location of nova.conf files https://review.opendev.org/c/openstack/nova/+/786202 | 11:04 |
*** ociuhandu has quit IRC | 11:08 | |
*** tkajinam has quit IRC | 11:14 | |
*** ratailor has quit IRC | 11:17 | |
*** swp20 has quit IRC | 11:18 | |
*** ociuhandu_ has quit IRC | 11:20 | |
*** ociuhandu has joined #openstack-nova | 11:20 | |
*** waleedm__ has joined #openstack-nova | 11:27 | |
*** waleedm_ has quit IRC | 11:30 | |
*** hemna has quit IRC | 11:39 | |
*** hemna has joined #openstack-nova | 11:39 | |
*** zoharm has joined #openstack-nova | 11:45 | |
*** rcernin has joined #openstack-nova | 11:45 | |
*** ociuhandu has quit IRC | 11:52 | |
*** ociuhandu has joined #openstack-nova | 11:53 | |
zigo | Hi. Could we get reviews on that trivial doc (config file help) patch? https://review.opendev.org/c/openstack/nova/+/786059 | 11:55 |
*** rcernin has quit IRC | 11:59 | |
*** ociuhandu has quit IRC | 12:02 | |
gibi | zigo: done | 12:02 |
zigo | Thanks. | 12:02 |
*** ociuhandu has joined #openstack-nova | 12:03 | |
*** ociuhandu has quit IRC | 12:08 | |
*** waleedm__ has quit IRC | 12:10 | |
*** ociuhandu has joined #openstack-nova | 12:14 | |
*** ociuhandu has quit IRC | 12:17 | |
*** ociuhandu has joined #openstack-nova | 12:18 | |
stephenfin | ooh, we have our 23.0.0 tag \o/ | 12:18 |
stephenfin | gibi: Does this mean we can start merging larger patches again now? | 12:18 |
gibi | stephenfin: yes it is | 12:18 |
sean-k-mooney | stephenfin: the release was yesterday so yes | 12:18 |
* stephenfin has an alembic migration series _almost_ completed locally | 12:18 | |
stephenfin | hurrah | 12:18 |
gibi | sounds cool | 12:18 |
* stephenfin will try wrap this up and spend tomorrow on reviews so | 12:19 | |
stephenfin | sean-k-mooney: I fixed https://review.opendev.org/c/openstack/nova/+/729918/ and added a follow-up explaining where nova.conf comes from | 12:19 |
*** luksky has quit IRC | 12:20 | |
stephenfin | just fyi | 12:20 |
*** luksky has joined #openstack-nova | 12:20 | |
*** luksky has quit IRC | 12:21 | |
*** luksky has joined #openstack-nova | 12:21 | |
*** hemanth_n has quit IRC | 12:24 | |
*** macz_ has joined #openstack-nova | 12:36 | |
*** macz_ has quit IRC | 12:41 | |
*** Luzi has quit IRC | 12:44 | |
gibi | core: there are two patches needed on master before we get deep into xena: | 13:01 |
gibi | https://review.opendev.org/c/openstack/nova/+/782171 | 13:01 |
gibi | https://review.opendev.org/c/openstack/nova/+/778923 | 13:01 |
gibi | both needs a second core | 13:01 |
openstackgerrit | Johannes Kulik proposed openstack/nova master: vmware: OptionValue.value cannot be Boolean https://review.opendev.org/c/openstack/nova/+/786246 | 13:12 |
*** tkajinam has joined #openstack-nova | 13:14 | |
bauzas | gibi: ack lookinf | 13:18 |
bauzas | lol | 13:18 |
* bauzas just clicked and saw the changes :p | 13:18 | |
gibi | :D | 13:19 |
sean-k-mooney | we likely should look at doing the libvirt min microverion bumps early too | 13:19 |
sean-k-mooney | before m1 in any case | 13:19 |
sean-k-mooney | not as urgent though | 13:20 |
sean-k-mooney | for https://review.opendev.org/c/openstack/nova/+/782171/2/nova/objects/service.py#205 | 13:20 |
sean-k-mooney | should we really be removing the victoria alias | 13:20 |
sean-k-mooney | i would have just appended wallaby | 13:21 |
sean-k-mooney | otherwise what is the point of having a dict | 13:21 |
*** k_mouza has joined #openstack-nova | 13:24 | |
gibi | sean-k-mooney: I can remove the dict. I thought originally that we need a list but the code only uses that latest one so the dict is not needed | 13:29 |
*** mdbooth has quit IRC | 13:29 | |
gibi | but we both need a service number and the name | 13:30 |
*** mdbooth has joined #openstack-nova | 13:31 | |
sean-k-mooney | yep well we could leave it as is too it just feels a little clunky currently | 13:31 |
sean-k-mooney | not that i really want to open this can of worms but our pms keep brinign up the idea of having nova support more then n-1 computes | 13:32 |
sean-k-mooney | im partly wondering if we want this to be confiugrable at some point | 13:33 |
sean-k-mooney | not that i actully want to really support n-2 or n-3 | 13:33 |
sean-k-mooney | im happy we now codify the n-1 support | 13:33 |
*** ricolin has joined #openstack-nova | 13:34 | |
gibi | sean-k-mooney: we cannot simply make the n-2 support configurable, as n-2 support means keeping the compatibilty code and service version checks longer in the code, so it needs in change of the behavior of the developers | 13:34 |
gibi | but anyhow if we want to support a bigger version gap later then it make sense to keep the Victoria version mapping in the dict | 13:36 |
*** artom has joined #openstack-nova | 13:36 | |
openstackgerrit | Balazs Gibizer proposed openstack/nova master: Update min supported service version for Xena. https://review.opendev.org/c/openstack/nova/+/782171 | 13:36 |
gibi | sean-k-mooney: ^^ | 13:37 |
sean-k-mooney | ya it is more work then that | 13:38 |
sean-k-mooney | gibi: we always have a tension downstreeam | 13:38 |
sean-k-mooney | from osp 16 on we move to a FFU only model | 13:39 |
sean-k-mooney | so the only way to go from train is to FFU directly to wallaby when 17 comes out | 13:39 |
sean-k-mooney | that is an issue for a mulit sight multi cell deployment as all nodes need to be upgrade at once | 13:39 |
gibi | I see | 13:40 |
sean-k-mooney | so the tension is between custoemr saying we want to do upgrades on a slower cadance and the fact that we can only support n-1 upstream | 13:40 |
sean-k-mooney | we have other customer that want new feature faster too so not all are the same obviously | 13:41 |
*** k_mouza has quit IRC | 13:47 | |
*** hemanth_n has joined #openstack-nova | 13:47 | |
*** hemanth_n has quit IRC | 13:52 | |
*** k_mouza has joined #openstack-nova | 13:54 | |
*** amodi has joined #openstack-nova | 14:06 | |
noonedeadpunk | Hi there! Have a question regarding nova-conductor and rabbit... We had a deployment on V with enabled SSL for rabbitmq (but without trusted cert or rootca). And while upgrade to W, we disabled ssl for rabbitmq. However, conductor still tries to reach rabbit via ssl and fails with CERTIFICATE_VERIFY_FAILED (whic was the reason why ssl was disabled at the first place) | 14:15 |
noonedeadpunk | Am I missing so nova-manage command to make conductor migrate and re-read config? | 14:16 |
noonedeadpunk | *some | 14:16 |
*** slaweq has quit IRC | 14:16 | |
noonedeadpunk | as with same config code that's deployed just on W works nicely | 14:17 |
gibi | noonedeadpunk: look at the cell_mappings table in your nova api database. I guess it still contains rabbit urls with ssl | 14:17 |
noonedeadpunk | gibi: yep, that's absolutely true | 14:18 |
gibi | noonedeadpunk: you can use nova-manage cell_v2 update_cell to make the adjustments | 14:19 |
*** slaweq has joined #openstack-nova | 14:20 | |
*** k_mouza has quit IRC | 14:20 | |
sean-k-mooney | unless your useing templated transport urls ya yuou likely need to update them | 14:21 |
noonedeadpunk | ok, thanks, that worked! Now I need to review wtf we do in https://opendev.org/openstack/openstack-ansible-os_nova/src/branch/master/tasks/nova_db_setup.yml and https://opendev.org/openstack/openstack-ansible-os_nova/src/branch/master/tasks/nova_db_post_setup.yml | 14:23 |
sean-k-mooney | noonedeadpunk: i can never recall if templated urls is a nova thing or ooo. i think its a nova feature | 14:24 |
* noonedeadpunk no idea what templated urls are | 14:26 | |
noonedeadpunk | https://docs.openstack.org/nova/latest/user/cells.html#template-urls-in-cell-mappings ? | 14:26 |
sean-k-mooney | noonedeadpunk: yes | 14:26 |
sean-k-mooney | it allows you to not sore passward and logins info in the db for rabbit | 14:27 |
sean-k-mooney | nova baisically render teh full url from the template when it tires to connect to rabbit | 14:27 |
sean-k-mooney | filling in the placeholder from it nova.conf | 14:27 |
sean-k-mooney | that way if you cahnge your rabbit password for example you dont need to update the db | 14:28 |
sean-k-mooney | just the config files on the nodes | 14:28 |
noonedeadpunk | eventually I think that's what I'm looking for:) | 14:28 |
sean-k-mooney | i think the tls options can be set that way too | 14:29 |
noonedeadpunk | that's kind of `fragment` I guess. | 14:30 |
sean-k-mooney | i think its in query | 14:30 |
sean-k-mooney | but maybe fragment | 14:31 |
sean-k-mooney | im trying to find an example transport url with tls enabeld to take a look | 14:31 |
noonedeadpunk | The only thing I didn't get now - how to define this variable. I mean where? In [DEFAULT] or [database]? | 14:31 |
noonedeadpunk | yeah, you're right, it's query | 14:32 |
sean-k-mooney | well by default you are using https://docs.openstack.org/nova/latest/configuration/config.html#DEFAULT.transport_url | 14:32 |
sean-k-mooney | and just hardcoding eveything which is fine | 14:33 |
sean-k-mooney | i assume the ssl would come from https://docs.openstack.org/nova/latest/configuration/config.html#oslo_messaging_rabbit.ssl | 14:33 |
noonedeadpunk | that's exactly what I have atm | 14:33 |
noonedeadpunk | well, it also comes from query indeed, ie `transport_url = rabbit://nova:pasword@172.29.236.100:5671//nova?ssl=1` | 14:35 |
*** tesseract has joined #openstack-nova | 14:37 | |
*** zoharm has quit IRC | 14:39 | |
sean-k-mooney | i think you would set somehtin like this "{scheme}://{username}:{password}@{hostname}/{path}?{query}" | 14:41 |
sean-k-mooney | in the cell mapping | 14:41 |
noonedeadpunk | But um. I mean that in nova.conf I should still have regular transport_url ? | 14:42 |
noonedeadpunk | So it's transport_url got splited and auto substituted in case cell mapping contains variables?? | 14:43 |
sean-k-mooney | that im not sure im trying to figure out | 14:43 |
sean-k-mooney | unfortuetly our downstream sos report replace it with transport_url=********* since it could have password so i dont have an example with tls enable to look at | 14:43 |
noonedeadpunk | as eventually http://paste.openstack.org/show/804476/ is not working in nova.conf... (test env, so I'm not bothered about password there :p) | 14:44 |
sean-k-mooney | the unit test seam to be seetting the values in the nova.conf in the tansport url | 14:46 |
sean-k-mooney | https://github.com/openstack/nova/blame/50fdbc752a9ca9c31488140ef2997ed59d861a41/nova/tests/unit/objects/test_cell_mapping.py#L216-L231 | 14:46 |
noonedeadpunk | yep, looks like this way indeed | 14:49 |
sean-k-mooney | noonedeadpunk: i think ya you shoudl be still setting actula datat in the nova.conf | 14:50 |
*** macz_ has joined #openstack-nova | 14:50 | |
*** k_mouza has joined #openstack-nova | 14:50 | |
sean-k-mooney | and then we split the url and teake the info in the db and templeate it | 14:50 |
noonedeadpunk | So I see literally no point in not using templates under any conditions... | 14:50 |
*** hoonetorg has quit IRC | 14:50 | |
*** haleyb has quit IRC | 14:50 | |
noonedeadpunk | sean-k-mooney: thanks a lot! | 14:50 |
sean-k-mooney | noonedeadpunk: i think we always use the in ooo/OSP since it was added in rocky | 14:51 |
noonedeadpunk | I think for us to migrate to it, we need to replace https://opendev.org/openstack/openstack-ansible-os_nova/src/branch/master/tasks/nova_db_setup.yml#L62 and add task to nova-manage cell_v2 update_cell during upgrades as far as I got the process? | 14:52 |
*** lpetrut has quit IRC | 15:00 | |
melwitt | gibi: heya, in case you wanted to look at PS2 on the reject force up if evacuations not complete https://review.opendev.org/c/openstack/nova/+/784130 to check before approving | 15:01 |
gibi | melwitt: thanks for the heads up I will look now | 15:01 |
gibi | melwitt, lyarwood: I'm +A ^^ | 15:06 |
melwitt | sweet thanks gibi | 15:06 |
lyarwood | ack thanks :) | 15:07 |
noonedeadpunk | sean-k-mooney: well, today I learned, and pushed https://review.opendev.org/c/openstack/openstack-ansible-os_nova/+/786258 to use templates. Better late, then never... | 15:08 |
gibi | lyarwood: btw, I went back to the libvirt detach patch series. I hope I can push some update today | 15:08 |
*** dklyle has joined #openstack-nova | 15:09 | |
lyarwood | gibi: oh cool, I've had my head downstream all day with internal escalations | 15:09 |
*** ociuhandu has quit IRC | 15:09 | |
gibi | lyarwood: sounds bad | 15:10 |
*** ociuhandu has joined #openstack-nova | 15:12 | |
*** mlavalle has joined #openstack-nova | 15:17 | |
openstackgerrit | Johannes Kulik proposed openstack/nova master: vmware: Handle empty list attributes on vSphere objects https://review.opendev.org/c/openstack/nova/+/786262 | 15:18 |
*** artom has quit IRC | 15:21 | |
*** k_mouza has quit IRC | 15:21 | |
*** k_mouza_ has joined #openstack-nova | 15:21 | |
*** tesseract has quit IRC | 15:28 | |
gibi | woot http://lists.openstack.org/pipermail/openstack-announce/2021-April/002047.html | 15:29 |
lyarwood | \o/ | 15:30 |
*** ociuhandu_ has joined #openstack-nova | 15:36 | |
*** rcernin has joined #openstack-nova | 15:39 | |
*** ociuhandu has quit IRC | 15:40 | |
*** ociuhandu_ has quit IRC | 15:40 | |
*** rcernin has quit IRC | 15:43 | |
*** ircuser-1 has joined #openstack-nova | 15:44 | |
*** hoonetorg has joined #openstack-nova | 16:03 | |
*** lucasagomes has quit IRC | 16:04 | |
*** zoharm has joined #openstack-nova | 16:16 | |
*** gyee has joined #openstack-nova | 16:17 | |
*** zoharm has quit IRC | 16:19 | |
*** rpittau is now known as rpittau|afk | 16:21 | |
*** hamalq has joined #openstack-nova | 16:28 | |
*** k_mouza_ has quit IRC | 16:32 | |
openstackgerrit | Balazs Gibizer proposed openstack/nova master: Replace blind retry with libvirt event waiting in detach https://review.opendev.org/c/openstack/nova/+/770246 | 16:32 |
openstackgerrit | Balazs Gibizer proposed openstack/nova master: Move instance power state check to _detach_with_retry https://review.opendev.org/c/openstack/nova/+/778918 | 16:32 |
openstackgerrit | Balazs Gibizer proposed openstack/nova master: Consolidate device detach error handling https://review.opendev.org/c/openstack/nova/+/778978 | 16:33 |
openstackgerrit | Balazs Gibizer proposed openstack/nova master: Move the guest.get_disk test to test_guest https://review.opendev.org/c/openstack/nova/+/777151 | 16:35 |
openstackgerrit | Balazs Gibizer proposed openstack/nova master: Enable mypy on libvirt/guest.py https://review.opendev.org/c/openstack/nova/+/777155 | 16:35 |
openstackgerrit | Balazs Gibizer proposed openstack/nova master: Follow up type hints for a634103 https://review.opendev.org/c/openstack/nova/+/777159 | 16:36 |
openstackgerrit | Balazs Gibizer proposed openstack/nova master: libvirt: Remove dead error handling code https://review.opendev.org/c/openstack/nova/+/779704 | 16:36 |
*** ralonsoh has quit IRC | 16:45 | |
*** k_mouza has joined #openstack-nova | 16:46 | |
openstackgerrit | Merged openstack/nova master: docs: Document options for remaining nova-* commands https://review.opendev.org/c/openstack/nova/+/726195 | 16:54 |
openstackgerrit | Merged openstack/nova master: docs: Populate "See Also" section with meaningful links https://review.opendev.org/c/openstack/nova/+/729917 | 16:55 |
sean-k-mooney | noonedeadpunk: cool | 16:56 |
sean-k-mooney | noonedeadpunk: i think ooo was previously the only tool to make use of that but its a nice feature to have | 16:56 |
*** derekh has quit IRC | 17:05 | |
*** k_mouza has quit IRC | 17:06 | |
*** k_mouza has joined #openstack-nova | 17:10 | |
*** k_mouza has quit IRC | 17:25 | |
*** mkrai has quit IRC | 17:29 | |
*** artom has joined #openstack-nova | 17:34 | |
*** rcernin has joined #openstack-nova | 17:39 | |
openstackgerrit | Stephen Finucane proposed openstack/nova master: db: Remove dead code https://review.opendev.org/c/openstack/nova/+/786291 | 17:43 |
openstackgerrit | Stephen Finucane proposed openstack/nova master: db: Remove 'nova.db.sqlalchemy.utils' https://review.opendev.org/c/openstack/nova/+/786292 | 17:44 |
openstackgerrit | Stephen Finucane proposed openstack/nova master: db: Remove unused DB methods https://review.opendev.org/c/openstack/nova/+/786293 | 17:44 |
openstackgerrit | Stephen Finucane proposed openstack/nova master: test: Remove checks for SQLite < 3.7 https://review.opendev.org/c/openstack/nova/+/786294 | 17:44 |
openstackgerrit | Stephen Finucane proposed openstack/nova master: db: Use module-level imports for sqlalchemy https://review.opendev.org/c/openstack/nova/+/786295 | 17:44 |
openstackgerrit | Stephen Finucane proposed openstack/nova master: db: Fold in indexes https://review.opendev.org/c/openstack/nova/+/786296 | 17:44 |
openstackgerrit | Stephen Finucane proposed openstack/nova master: db: Fold in ForeignKey constraints https://review.opendev.org/c/openstack/nova/+/786297 | 17:44 |
openstackgerrit | Stephen Finucane proposed openstack/nova master: db: Remove 'nova.db.base' module https://review.opendev.org/c/openstack/nova/+/786298 | 17:44 |
openstackgerrit | Stephen Finucane proposed openstack/nova master: db: Copy docs from 'nova.db.*' to 'nova.db.sqlalchemy.*' https://review.opendev.org/c/openstack/nova/+/786299 | 17:44 |
openstackgerrit | Stephen Finucane proposed openstack/nova master: db: Synchronize function signatures https://review.opendev.org/c/openstack/nova/+/786300 | 17:44 |
openstackgerrit | Stephen Finucane proposed openstack/nova master: db: Clean up migration code https://review.opendev.org/c/openstack/nova/+/786301 | 17:44 |
*** dtantsur is now known as dtantsur|afk | 17:44 | |
*** rcernin has quit IRC | 17:44 | |
*** andrewbonney has quit IRC | 17:59 | |
*** k_mouza has joined #openstack-nova | 18:24 | |
*** k_mouza has quit IRC | 18:27 | |
*** whoami-rajat has quit IRC | 18:38 | |
*** vishalmanchanda has quit IRC | 18:44 | |
*** jmlowe has quit IRC | 19:18 | |
*** k_mouza has joined #openstack-nova | 19:28 | |
*** k_mouza has quit IRC | 19:32 | |
noonedeadpunk | sean-k-mooney: we really want to follow best practises but not always have time for reading all renos for all releases :( So eventually missing cool things :( | 19:36 |
noonedeadpunk | oh, wait. Isn't cell name not unique now? | 19:42 |
noonedeadpunk | http://paste.openstack.org/show/804488/ <- Is it expected? | 19:43 |
noonedeadpunk | this happens only with the template by the way | 19:44 |
noonedeadpunk | this condition feels wrong for the template https://opendev.org/openstack/nova/src/branch/master/nova/cmd/manage.py#L623-L624 | 19:47 |
noonedeadpunk | because `cell.database_connection` and `cell.transport_url` are always resolved while checked, and `database_connection` with `transport_url` are shown as template... | 19:50 |
noonedeadpunk | wrote down https://bugs.launchpad.net/nova/+bug/1923899 - will try to check what can be done there tomorrow, unless there already be a suggestions | 19:56 |
openstack | Launchpad bug 1923899 in OpenStack Compute (nova) "Nova create duplicate cells when templates are used" [Undecided,New] | 19:56 |
*** ociuhandu has joined #openstack-nova | 20:00 | |
*** ociuhandu has quit IRC | 20:04 | |
openstackgerrit | Merged openstack/nova master: Explaining when a base image is considered unused to avoid confusion why some images aren't deleted. https://review.opendev.org/c/openstack/nova/+/786059 | 20:05 |
noonedeadpunk | It feels like template conversion is processed somewhere in models, as eventually here it's already converted from template to url https://opendev.org/openstack/nova/src/branch/master/nova/objects/cell_mapping.py#L258 | 20:13 |
noonedeadpunk | unless it's done somewhere in oslo.... | 20:13 |
noonedeadpunk | as kind of see nothing in models... https://opendev.org/openstack/nova/src/branch/master/nova/db/sqlalchemy/api_models.py#L111 | 20:14 |
noonedeadpunk | ok, that's where conversion is done https://opendev.org/openstack/nova/src/branch/master/nova/objects/cell_mapping.py#L159-L169 | 20:18 |
sean-k-mooney | noonedeadpunk: the cell names are uniqe yes | 20:19 |
sean-k-mooney | but i dont think we enforce that with a db constraint | 20:20 |
sean-k-mooney | im not sure what will happen with http://paste.openstack.org/show/804488/ | 20:20 |
noonedeadpunk | yeah, there's totally a bug in tempaltes usage | 20:20 |
sean-k-mooney | other then it will proably break | 20:20 |
sean-k-mooney | noonedeadpunk: it look like maybe you don thave support for multiple cells? | 20:22 |
sean-k-mooney | looking at https://review.opendev.org/c/openstack/openstack-ansible-os_nova/+/786258/1/tasks/nova_db_setup.yml | 20:22 |
noonedeadpunk | not sure just what's the best way to pass to avoid formatting here https://opendev.org/openstack/nova/src/branch/master/nova/objects/cell_mapping.py#L159-L169 considering it's going through oslo.versionedobjects | 20:22 |
sean-k-mooney | it was previously hardcoded as --name {{ nova_cell1_name }} | 20:22 |
noonedeadpunk | well, my point is more about that if I run excatly same create_cell command twice - I get exact same 2 cells with different uuids | 20:23 |
sean-k-mooney | ya which is porably a nova bug | 20:23 |
noonedeadpunk | because verification if that cell already exists is just broken for tempalate user scenario - as it compares what is passed as an argument with already resolved template | 20:23 |
sean-k-mooney | i cant think of a valid reason to allow that | 20:23 |
sean-k-mooney | right we should have a unique constraint on the cell name | 20:24 |
noonedeadpunk | and you can't do that anyway when you use just old good fixed stuff | 20:24 |
noonedeadpunk | or avoid resolution of the template when we checking if same cell already exist | 20:25 |
sean-k-mooney | https://opendev.org/openstack/nova/src/branch/master/nova/db/sqlalchemy/api_models.py#L111-L129 | 20:26 |
noonedeadpunk | So I'd say when we call here https://opendev.org/openstack/nova/src/commit/9e5feb051c15166988e87b10132927135bd56884/nova/cmd/manage.py#L618 we should pass smth like resolve=false | 20:26 |
sean-k-mooney | so the unique constatin is only the uuid currently | 20:26 |
sean-k-mooney | we shoudl also have one on the name | 20:26 |
noonedeadpunk | yeah, I saw that... | 20:26 |
sean-k-mooney | dansmith: do you know why that is the case today ^ | 20:26 |
sean-k-mooney | dansmith: i.e. why we allow to cell records with the same name? | 20:27 |
sean-k-mooney | noonedeadpunk: as far as i know we only use the id in other tables | 20:27 |
sean-k-mooney | noonedeadpunk: so other then cell0 which is speciall we dont really use the cell name | 20:27 |
sean-k-mooney | noonedeadpunk: its just for operators really | 20:28 |
dansmith | yeah, name is just for the humans | 20:28 |
noonedeadpunk | well, I'm probably even ok that cell name is not unique. I just see no reason in adding cells with same name, transport_url and database_connection | 20:28 |
dansmith | but no I dunno any reason to or not to be unique on name for any reason | 20:28 |
dansmith | noonedeadpunk: well, we had initially talked about sharding on the db but not the mq, or vice versa, | 20:29 |
dansmith | so I think that's why we didn't make those unique | 20:29 |
noonedeadpunk | And there's an attempt to avoid that with condition and raising `The specified transport_url and/or database_connection combination already exists for another cell with uuid ef89aebc-142d-4755-a377-6ed23b6c1ed4.` | 20:29 |
sean-k-mooney | dansmith: i was debating if this was for some kind of loadbalancing | 20:29 |
dansmith | however, I think we'd have work to do before that would actually work | 20:29 |
dansmith | at least testing | 20:29 |
sean-k-mooney | kind of like the way you can list multple glance? rabbnit? instances in the config instead of using haproxy | 20:30 |
dansmith | no, that was never the reasoning for lack of uniqueness that I recall, | 20:31 |
dansmith | more the opposite, | 20:31 |
dansmith | where you wanted to be able to have two DBs and not two MQs or the like | 20:31 |
sean-k-mooney | ok | 20:31 |
sean-k-mooney | noonedeadpunk: in any case i guess you need to figure out why you are creatin gmultiple cells | 20:31 |
sean-k-mooney | noonedeadpunk: i guess its not checking if it already exits? | 20:32 |
noonedeadpunk | um... any time I run exact same comand - new cell is created. I just want to use same cell, and get exit code 2, when cell with provided transport_url and database_connection already exist | 20:32 |
noonedeadpunk | and when I get exit code 2, I want to update cell if necessary | 20:33 |
noonedeadpunk | sean-k-mooney: it's checking, but check is broken | 20:33 |
noonedeadpunk | I'm kind of trying to explain that for the last several minutes :) | 20:33 |
sean-k-mooney | so nova manage bug? | 20:33 |
noonedeadpunk | https://opendev.org/openstack/nova/src/commit/9e5feb051c15166988e87b10132927135bd56884/nova/cmd/manage.py#L623-L624 | 20:33 |
sean-k-mooney | hum ok | 20:34 |
sean-k-mooney | that should retrun true an print the message | 20:35 |
sean-k-mooney | did you get that message printed | 20:35 |
noonedeadpunk | cell.database_connection here is resolved and `mysql+pymysql://nova:534d29a090559b5a6345122e999a8ef29f67@172.29.236.101/nova?charset=utf8` but database_connection is `{scheme}://{username}:{password}@{hostname}/{path}?{query}` | 20:35 |
sean-k-mooney | looking at http://paste.openstack.org/show/804488/ no | 20:35 |
sean-k-mooney | noonedeadpunk: ah ok | 20:35 |
noonedeadpunk | as when we run objects.CellMappingList.get_all(ctxt) we end up in https://opendev.org/openstack/nova/src/branch/master/nova/objects/cell_mapping.py#L159-L169 | 20:36 |
sean-k-mooney | that porbaly happing when we load the object form the db | 20:36 |
sean-k-mooney | yep | 20:36 |
noonedeadpunk | yep, and we trigger it here https://opendev.org/openstack/nova/src/branch/master/nova/objects/cell_mapping.py#L258 | 20:36 |
sean-k-mooney | so we need to do this https://opendev.org/openstack/nova/src/branch/master/nova/objects/cell_mapping.py#L162-L165 | 20:37 |
sean-k-mooney | in the nova manage command | 20:37 |
noonedeadpunk | So I was thinking to add an extra argumet or adjust context, so that it contained like `template_resolve=false` | 20:37 |
sean-k-mooney | noonedeadpunk: i think it would be simpler just to reolve the unresolved one | 20:37 |
sean-k-mooney | by calling cell_mapping.format_db_url | 20:38 |
sean-k-mooney | in this if https://opendev.org/openstack/nova/src/commit/9e5feb051c15166988e87b10132927135bd56884/nova/cmd/manage.py#L623-L624 | 20:38 |
noonedeadpunk | well, that would have side effect, that in case config on the node where we run nova-manage differs, new cell will be created anyway | 20:38 |
noonedeadpunk | so I think we should compare what we have in database and what we're about to add there | 20:39 |
sean-k-mooney | well the cell.database_connection value is being formated with your local nova.conf too | 20:40 |
sean-k-mooney | noonedeadpunk: so for your actul usecase you could list the cells and check if the cell is present with that name already | 20:41 |
noonedeadpunk | yes, but I may depend from node to node? | 20:41 |
sean-k-mooney | and only create it if it does not exits | 20:42 |
noonedeadpunk | *it may depend | 20:42 |
sean-k-mooney | well nova-manage is only run on the controler nodes right and typically only one of the contoler per cell | 20:43 |
sean-k-mooney | you do not normally run it on compute nodes for example | 20:43 |
noonedeadpunk | I mean shouldn't be there a valid protection, that exact same cells are not present in DB with different UUIDs? | 20:44 |
sean-k-mooney | noonedeadpunk: checking the db content wont work i this case actully | 20:44 |
sean-k-mooney | i think the cell name is really the unique thing | 20:45 |
sean-k-mooney | ingoring the sharding usecase | 20:45 |
sean-k-mooney | that is not currently implemetned | 20:45 |
sean-k-mooney | dansmith: actully i dont think we can support the sharding usecase with the current db schema without denormalising the database | 20:47 |
noonedeadpunk | but at least combination of name+transport_url+database_connection should be unique IMO. And considering templates, I see the only way to do that is to check here https://opendev.org/openstack/nova/src/commit/9e5feb051c15166988e87b10132927135bd56884/nova/cmd/manage.py#L623-L624 that cell.database_connection is still in tempate format, but not transformed | 20:47 |
sean-k-mooney | dansmith: we would realy need to have a second db table that mapped db urls to the cell id or similar | 20:47 |
noonedeadpunk | I kind of submitted bug regarding this https://bugs.launchpad.net/nova/+bug/1923899 as well | 20:48 |
openstack | Launchpad bug 1923899 in OpenStack Compute (nova) "Nova create duplicate cells when templates are used" [Undecided,New] | 20:48 |
dansmith | sean-k-mooney: yeah, above I said that was the original intent to be able to do that, but that we'd still have work to do to make it work | 20:48 |
noonedeadpunk | sorry for late discussion, already midnight here, so need to head out :( | 20:49 |
sean-k-mooney | no worries | 20:49 |
sean-k-mooney | i think if we jsut put a unique constarint on name that would be enough. if we want to supprot sharding we would need to have a second table with something like (id, cell_id, db | 20:50 |
noonedeadpunk | eventually what I intended to do is to rely on cell_create command return code, and if it's 2 - update_cell, if 0 - proceed with setup. And for me it's now always 0 when using templates :( | 20:50 |
sean-k-mooney | (id, cell_id, db_url, db_table) | 20:51 |
sean-k-mooney | noonedeadpunk: ya for now i guess you have to check and not use the return code | 20:51 |
sean-k-mooney | but i think the bug is more or less valid and we should be returning 2 | 20:51 |
noonedeadpunk | yeah:( | 20:52 |
sean-k-mooney | dansmith: im not sure how ye were thinking about shardin gby the way so you might not need to do it by table so maybe the other table would just be (id, cell_id, db_url) not (id, cell_id, db_url, db_table) | 20:53 |
sean-k-mooney | but the impotant thing is we would need to model the many to one relation ship while maintianing only on uuid per cell | 20:55 |
*** rcernin has joined #openstack-nova | 21:02 | |
mnaser | i've been noticing an issue where in a scenario that libvirt loses config, when using vgpu, and doing a hard reboot generates xml that _does not_ contain the vgpu | 21:06 |
mnaser | to reproduce: openstack server stop <instance>; virsh undefine <instance>; openstack server start <instance>; virsh dumpxml <instance> ... no mdev | 21:06 |
mnaser | https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py#L3453-L3456 | 21:12 |
mnaser | this is starting to sound like mdev state is actually conserved in libvirt domains? | 21:13 |
*** Hazelesque has quit IRC | 21:19 | |
*** rcernin has quit IRC | 21:45 | |
*** rcernin has joined #openstack-nova | 21:46 | |
*** jkulik has quit IRC | 21:52 | |
*** jkulik has joined #openstack-nova | 21:54 | |
melwitt | mnaser: this seems kinda related https://bugs.launchpad.net/nova/+bug/1900800 | 21:57 |
openstack | Launchpad bug 1900800 in OpenStack Compute (nova) "VGPUs is not recreated on host reboot" [Low,Confirmed] - Assigned to Sylvain Bauza (sylvain-bauza) | 21:57 |
mnaser | melwitt: that’s exactly it | 22:01 |
*** rcernin has quit IRC | 22:20 | |
*** luksky has quit IRC | 22:34 | |
*** luksky has joined #openstack-nova | 22:34 | |
*** luksky has quit IRC | 22:40 | |
*** tkajinam has quit IRC | 22:43 | |
*** tkajinam has joined #openstack-nova | 22:52 | |
*** luksky has joined #openstack-nova | 22:53 | |
*** hamalq has quit IRC | 22:57 | |
*** hamalq has joined #openstack-nova | 22:57 | |
*** macz_ has quit IRC | 23:05 | |
*** rcernin has joined #openstack-nova | 23:06 | |
*** luksky has quit IRC | 23:18 | |
*** tosky has quit IRC | 23:29 | |
*** irclogbot_1 has quit IRC | 23:50 | |
*** irclogbot_1 has joined #openstack-nova | 23:56 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!