Monday, 2019-02-04

*** janki has joined #openstack-zun05:00
*** janki has quit IRC12:25
*** yevi has joined #openstack-zun16:24
*** hongbin has joined #openstack-zun16:37
yeviwhat database/table does kuryrlibnetwork use to track pools for the networks it creates when integrated with neutron?  I think I have an artifact left over from consectutive rebuilds of zun-compute to the same database and I can't seem to find it17:10
yevinevermind I found it, thank you18:16
hongbinfwiw, kuryr-libnetwork is stateless, it uses neutron as the source of truth, however, docker will persist the network information to etcd18:35
*** rm_work_ has joined #openstack-zun21:37
*** rm_work has quit IRC21:49
*** rm_work_ is now known as rm_work21:49
yevimy problem was that when I was upgrading/building zun in my production environment I had messed something up when I automated it and had to rebuild zun. kury-libnetwork had already created a subnet pool in the neutron database, so after being rebuilt and trying to relaunch containers on that same network it would error and say the subnet pool allready existed. I had no intention of rebuilding the database as it was a production en22:50
yevivironment so I was just looking for the database entry so I could manually purge it. The neutron database is rather large and I was having troubles finding the right table.22:50
yeviI could have worded my original question better22:53
hongbinyevi: you can try to remove the network in docker:22:53
hongbinyevi: list the docker network: docker network ls22:53
hongbinyevi: find any remove the docker network: docker network rm XXX22:53
yeviit wasn't listed in docker anymore, or at least I didn't see it22:53
hongbinok22:54
hongbinif it isn't listed in docker, make sure the zun's database entry is removed22:54
yevidocker and kuryr-libnetwork had been rebuilt, but neutron was still tracking it so when kuryr sent the request it errored22:54
hongbinok, i see22:55
yeviok, I will look for that next time, thank you22:55
hongbinnp22:56
yevijust an odd use case I accidently hit I think22:56
hongbinthat is fine23:01
hongbinzun is tracking the list of docker networks in database, just need to make sure it is sync23:02
hongbinif using mysql, enter the database "zun", search the "network" table, find the row and remove it23:03
hongbinlet me know if it still doesn't work23:03
yevilooking23:08
yeviok, I see it there now. but to make it interesting when I rebuilt zun I had deleted the zun database. I had rebuilt etcd, zun-api, zun-wsproxy, zun-compute, kuryr-libnetwork, docker. After that when I had tried to use my provider network again it errored out. I had to fix it by deleting the subnet pool from neutron's db subnetpool table. After that everything starting working23:15
yeviI did not rebuild neutron or mysql, so that entry still existed23:15
yeviIt is fixed now23:16
yeviIs there a way to sync what zun is seeing as current networks vs what neutron is seeing in subnetpools table? For example, in the neutron.subnetpools table is all entries are for kuryr subnet pools kuryrpool-x.x.x.x/xx. When I rebuilt the services those entries persisted causing my error23:25
yeviwhat I mean is when I rebuilt zun and all associated services which meant that the zun db was pretty much empty, nothing told neutron that that subnetwork was deleted and neutron still thought it existed and would not create it again which is expected. I guess I am missing the piece where I should have done some clean up prior to rebuilding zun so kuryr would update neutron appropriately. I don't think this is a problem with how t23:55
yevihings are done currently, as I can't think of a time when this scenario would normally happen as most deployment methods would account for these. We do not use typical openstack deployment methods, so I think I just ran into a scenario that most will never see and I need to account for in my own deployments.23:55

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!