*** itlinux has quit IRC | 00:03 | |
*** daidv has quit IRC | 00:06 | |
*** daidv has joined #openstack-keystone | 00:06 | |
*** cmurphy has quit IRC | 00:17 | |
*** cmurphy has joined #openstack-keystone | 00:17 | |
*** AlexeyAbashkin has joined #openstack-keystone | 00:19 | |
*** lbragstad has quit IRC | 00:23 | |
*** AlexeyAbashkin has quit IRC | 00:23 | |
*** oikiki has quit IRC | 00:26 | |
*** oikiki has joined #openstack-keystone | 00:27 | |
*** edmondsw has quit IRC | 00:31 | |
*** oikiki has quit IRC | 00:39 | |
*** r-daneel has quit IRC | 00:43 | |
*** threestrands has joined #openstack-keystone | 00:44 | |
openstackgerrit | Tim Burke proposed openstack/keystonemiddleware master: Only include response body if there's a response https://review.openstack.org/538108 | 01:01 |
---|---|---|
openstackgerrit | Tim Burke proposed openstack/keystonemiddleware master: Properly zero out max_retries in test_http_error_not_cached_token https://review.openstack.org/547228 | 01:01 |
*** itlinux has joined #openstack-keystone | 01:46 | |
*** edmondsw has joined #openstack-keystone | 02:17 | |
*** edmondsw has quit IRC | 02:22 | |
*** itlinux has quit IRC | 02:28 | |
*** mattoliverau_ is now known as mattoliverau | 02:35 | |
*** itlinux has joined #openstack-keystone | 02:38 | |
*** annp has joined #openstack-keystone | 02:49 | |
openstackgerrit | Dinesh Bhor proposed openstack/python-keystoneclient master: Add return-request-id-to-caller function(v3/contrib) https://review.openstack.org/268003 | 02:56 |
openstackgerrit | Dinesh Bhor proposed openstack/python-keystoneclient master: Add return-request-id-to-caller function(v3/contrib) https://review.openstack.org/268003 | 02:57 |
*** Faster-Fanboi_ has quit IRC | 03:10 | |
*** oikiki has joined #openstack-keystone | 03:12 | |
*** Faster-Fanboi has joined #openstack-keystone | 03:12 | |
*** itlinux has quit IRC | 03:30 | |
*** oikiki has quit IRC | 03:33 | |
*** gyee has quit IRC | 03:56 | |
*** edmondsw has joined #openstack-keystone | 04:06 | |
*** edmondsw has quit IRC | 04:11 | |
*** chergd has quit IRC | 04:11 | |
*** AlexeyAbashkin has joined #openstack-keystone | 04:18 | |
*** links has joined #openstack-keystone | 04:21 | |
*** AlexeyAbashkin has quit IRC | 04:23 | |
*** links has quit IRC | 04:33 | |
*** itlinux has joined #openstack-keystone | 04:36 | |
*** Faster-Fanboi has quit IRC | 04:46 | |
*** links has joined #openstack-keystone | 04:47 | |
*** Faster-Fanboi has joined #openstack-keystone | 04:52 | |
*** Faster-Fanboi has quit IRC | 05:14 | |
*** Faster-Fanboi has joined #openstack-keystone | 05:20 | |
*** oikiki has joined #openstack-keystone | 05:26 | |
openstackgerrit | Suramya proposed openstack/keystone master: Consolidate identity-domain-specific-config.rst https://review.openstack.org/547274 | 05:27 |
*** oikiki has quit IRC | 05:39 | |
*** Suramya has joined #openstack-keystone | 05:46 | |
openstackgerrit | Suramya proposed openstack/keystone master: Consolidate identity-token-binding.rst https://review.openstack.org/547277 | 05:50 |
*** edmondsw has joined #openstack-keystone | 05:55 | |
*** edmondsw has quit IRC | 05:59 | |
*** idlemind has quit IRC | 06:02 | |
*** namnh has joined #openstack-keystone | 06:12 | |
*** threestrands has quit IRC | 06:13 | |
*** namnh has quit IRC | 06:16 | |
*** annp has quit IRC | 06:16 | |
*** namnh has joined #openstack-keystone | 06:16 | |
*** annp has joined #openstack-keystone | 06:16 | |
openstackgerrit | Suramya proposed openstack/keystone master: Consolidate endpoint-policy.rst https://review.openstack.org/547288 | 06:19 |
openstackgerrit | Suramya proposed openstack/keystone master: Consolidate endpoint-filtering.rst Consolidate from configuration.rst into endpoint-filtering.rst. https://review.openstack.org/547291 | 06:31 |
openstackgerrit | Suramya proposed openstack/keystone master: Consolidate oauth1.rst https://review.openstack.org/547293 | 06:47 |
*** pcaruana has joined #openstack-keystone | 06:56 | |
openstackgerrit | Suramya proposed openstack/keystone master: Consolidate endpoint-filtering.rst https://review.openstack.org/547291 | 06:58 |
*** pcaruana has quit IRC | 07:02 | |
*** pcaruana has joined #openstack-keystone | 07:02 | |
openstackgerrit | Suramya proposed openstack/keystone master: Consolidate auth-totp.rst https://review.openstack.org/547298 | 07:09 |
*** josecastroleon has joined #openstack-keystone | 07:16 | |
openstackgerrit | Suramya proposed openstack/keystone master: Consolidate service-catalog.rst https://review.openstack.org/547303 | 07:20 |
*** josecastroleon has quit IRC | 07:25 | |
*** josecastroleon has joined #openstack-keystone | 07:25 | |
*** cz2 has quit IRC | 07:30 | |
*** eEbx- has quit IRC | 07:30 | |
*** homeski has quit IRC | 07:30 | |
*** itlinux has quit IRC | 07:31 | |
*** nkinder has quit IRC | 07:31 | |
*** panbalag has quit IRC | 07:31 | |
*** sileht has quit IRC | 07:31 | |
*** dgonzalez has quit IRC | 07:31 | |
openstackgerrit | Suramya proposed openstack/keystone master: Consolidate health-check-middleware.rst https://review.openstack.org/547308 | 07:34 |
*** edmondsw has joined #openstack-keystone | 07:43 | |
*** edmondsw has quit IRC | 07:48 | |
*** josecastroleon has quit IRC | 07:51 | |
*** itlinux has joined #openstack-keystone | 07:53 | |
*** nkinder has joined #openstack-keystone | 07:53 | |
*** panbalag has joined #openstack-keystone | 07:53 | |
*** sileht has joined #openstack-keystone | 07:53 | |
*** dgonzalez has joined #openstack-keystone | 07:53 | |
*** josecastroleon has joined #openstack-keystone | 07:56 | |
*** cz2 has joined #openstack-keystone | 07:57 | |
*** eEbx- has joined #openstack-keystone | 07:57 | |
*** homeski has joined #openstack-keystone | 07:57 | |
*** cz2 has quit IRC | 08:11 | |
*** eEbx- has quit IRC | 08:11 | |
*** homeski has quit IRC | 08:11 | |
*** itlinux has quit IRC | 08:11 | |
*** nkinder has quit IRC | 08:11 | |
*** panbalag has quit IRC | 08:11 | |
*** sileht has quit IRC | 08:11 | |
*** dgonzalez has quit IRC | 08:11 | |
*** rcernin has quit IRC | 08:16 | |
*** tesseract has joined #openstack-keystone | 08:19 | |
*** dgonzalez has joined #openstack-keystone | 08:22 | |
*** nkinder has joined #openstack-keystone | 08:22 | |
*** panbalag has joined #openstack-keystone | 08:23 | |
*** sileht has joined #openstack-keystone | 08:23 | |
*** edmondsw has joined #openstack-keystone | 08:28 | |
*** homeski has joined #openstack-keystone | 08:33 | |
*** eEbx has joined #openstack-keystone | 08:33 | |
*** cz2 has joined #openstack-keystone | 08:33 | |
*** rcernin has joined #openstack-keystone | 09:09 | |
*** slunkad has quit IRC | 09:13 | |
*** slunkad has joined #openstack-keystone | 09:14 | |
openstackgerrit | Suramya proposed openstack/keystone master: Consolidate event_notifications.rst https://review.openstack.org/547337 | 09:18 |
*** slunkad has quit IRC | 09:27 | |
*** slunkad has joined #openstack-keystone | 09:28 | |
*** slunkad has quit IRC | 09:38 | |
*** belmoreira has joined #openstack-keystone | 09:42 | |
*** slunkad has joined #openstack-keystone | 09:50 | |
*** rcernin has quit IRC | 09:59 | |
*** masber has quit IRC | 10:01 | |
*** namnh has quit IRC | 10:44 | |
*** daidv has quit IRC | 10:58 | |
*** annp has quit IRC | 11:11 | |
*** links has quit IRC | 11:42 | |
*** d0ugal has quit IRC | 11:52 | |
*** links has joined #openstack-keystone | 11:56 | |
*** d0ugal has joined #openstack-keystone | 11:58 | |
*** raildo has joined #openstack-keystone | 12:10 | |
*** edmondsw has quit IRC | 12:18 | |
*** edmondsw has joined #openstack-keystone | 12:18 | |
*** edmondsw has quit IRC | 12:23 | |
*** bhagyashris has quit IRC | 12:29 | |
*** links has quit IRC | 12:30 | |
*** masber has joined #openstack-keystone | 12:38 | |
*** links has joined #openstack-keystone | 12:44 | |
*** edmondsw has joined #openstack-keystone | 13:10 | |
*** links has quit IRC | 13:56 | |
*** dklyle has quit IRC | 14:04 | |
*** idlemind has joined #openstack-keystone | 14:16 | |
*** Guest60045 is now known as zeus | 14:18 | |
*** zeus has joined #openstack-keystone | 14:18 | |
*** nixi_girl has joined #openstack-keystone | 14:25 | |
*** lbragstad has joined #openstack-keystone | 14:37 | |
*** ChanServ sets mode: +o lbragstad | 14:37 | |
openstackgerrit | Lance Bragstad proposed openstack/keystone-specs master: Add specification for a capabilities API https://review.openstack.org/547162 | 14:45 |
*** r-daneel has joined #openstack-keystone | 14:54 | |
*** spilla has joined #openstack-keystone | 14:56 | |
*** edmondsw has quit IRC | 15:00 | |
*** edmondsw has joined #openstack-keystone | 15:00 | |
*** edmondsw has quit IRC | 15:05 | |
*** masber has quit IRC | 15:05 | |
lbragstad | would anyone be opposed to me moving the libraries session to the end of Wednesday to accommodate gmann_ here ? http://lists.openstack.org/pipermail/openstack-dev/2018-February/127670.html | 15:13 |
lbragstad | so - after lunch, if the tempest discussion interests you, we could head there for the v2.0 removal bits and then pick up normal keystone stuff later, and wrap up the libraries discussion at the end of the day | 15:14 |
*** nixi_girl has quit IRC | 15:20 | |
*** david-lyle has joined #openstack-keystone | 15:21 | |
*** dave-mccowan has joined #openstack-keystone | 15:29 | |
*** nixi_girl has joined #openstack-keystone | 15:37 | |
knikolla | o/ | 15:46 |
*** dklyle has joined #openstack-keystone | 15:50 | |
gagehugo | o/ | 15:53 |
*** david-lyle has quit IRC | 15:53 | |
gagehugo | no opposition from me | 15:54 |
lbragstad | cool | 15:55 |
*** cwright has quit IRC | 15:59 | |
*** nixi_girl has quit IRC | 16:00 | |
*** jaosorior has quit IRC | 16:05 | |
*** openstackgerrit has quit IRC | 16:33 | |
*** oikiki has joined #openstack-keystone | 17:08 | |
*** gyee has joined #openstack-keystone | 17:10 | |
*** dave-mccowan has quit IRC | 17:15 | |
*** dave-mccowan has joined #openstack-keystone | 17:16 | |
*** dklyle has quit IRC | 17:17 | |
*** edmondsw has joined #openstack-keystone | 17:18 | |
*** Suramya has quit IRC | 17:23 | |
*** belmoreira has quit IRC | 17:25 | |
*** d0ugal has quit IRC | 17:46 | |
*** d0ugal has joined #openstack-keystone | 17:54 | |
*** rm_work has quit IRC | 18:06 | |
*** dansmith has quit IRC | 18:07 | |
*** zeus has quit IRC | 18:07 | |
*** homeski has quit IRC | 18:07 | |
*** tesseract has quit IRC | 18:19 | |
*** openstackgerrit has joined #openstack-keystone | 18:20 | |
openstackgerrit | OpenStack Release Bot proposed openstack/keystone master: Update reno for stable/newton https://review.openstack.org/547593 | 18:20 |
openstackgerrit | OpenStack Release Bot proposed openstack/keystoneauth master: Update reno for stable/newton https://review.openstack.org/547595 | 18:21 |
openstackgerrit | OpenStack Release Bot proposed openstack/keystonemiddleware master: Update reno for stable/newton https://review.openstack.org/547597 | 18:21 |
*** r-daneel has quit IRC | 18:24 | |
*** lbragstad has quit IRC | 18:31 | |
*** pcaruana has quit IRC | 18:33 | |
*** dansmith has joined #openstack-keystone | 18:33 | |
*** bigjools has joined #openstack-keystone | 18:33 | |
*** dansmith is now known as Guest17026 | 18:33 | |
*** zeus has joined #openstack-keystone | 18:35 | |
*** zeus is now known as Guest89134 | 18:36 | |
*** robcresswell_ has joined #openstack-keystone | 18:37 | |
*** hogepodge_ has joined #openstack-keystone | 18:37 | |
*** mwhahaha_ has joined #openstack-keystone | 18:37 | |
*** gus_ has joined #openstack-keystone | 18:38 | |
*** cmurphy_ has joined #openstack-keystone | 18:40 | |
*** andreykurilin_ has joined #openstack-keystone | 18:43 | |
*** jamielennox_ has joined #openstack-keystone | 18:43 | |
*** johnthetubaguy_ has joined #openstack-keystone | 18:44 | |
*** cmurphy has quit IRC | 18:44 | |
*** robcresswell has quit IRC | 18:44 | |
*** mwhahaha has quit IRC | 18:44 | |
*** martinus__ has quit IRC | 18:44 | |
*** andreykurilin has quit IRC | 18:44 | |
*** hogepodge has quit IRC | 18:44 | |
*** gus has quit IRC | 18:44 | |
*** jamielennox has quit IRC | 18:44 | |
*** johnthetubaguy has quit IRC | 18:44 | |
*** mwhahaha_ is now known as mwhahaha | 18:44 | |
*** jamielennox_ is now known as jamielennox | 18:44 | |
*** robcresswell_ is now known as robcresswell | 18:44 | |
*** hogepodge_ is now known as hogepodge | 18:44 | |
*** martinus__ has joined #openstack-keystone | 18:51 | |
*** rm_work has joined #openstack-keystone | 18:51 | |
*** rm_work has quit IRC | 18:51 | |
*** rm_work has joined #openstack-keystone | 18:51 | |
*** lbragstad has joined #openstack-keystone | 18:57 | |
*** ChanServ sets mode: +o lbragstad | 18:57 | |
*** mchlumsky has quit IRC | 19:06 | |
*** mchlumsky has joined #openstack-keystone | 19:07 | |
*** itlinux has joined #openstack-keystone | 19:22 | |
*** itlinux has quit IRC | 19:35 | |
*** chergd has joined #openstack-keystone | 19:38 | |
*** itlinux has joined #openstack-keystone | 19:44 | |
*** knasim-wrs has joined #openstack-keystone | 19:46 | |
knasim-wrs | hi, doing a skip-release (Newton->Pike) online migration, we sometimes see the DB contract fail | 19:47 |
knasim-wrs | and its always in the 014_X DB contraction script | 19:48 |
knasim-wrs | ALTER TABLE local_user ADD CONSTRAINT local_user_user_id_fkey FOREIGN KEY(user_id, domain_id) REFERENCES "user" (id, domain_id) ON DELETE CASCADE ON UPDATE CASCADE | 19:48 |
knasim-wrs | the contraction is attempting to modify the local_user DB table to add domain_id as a foreign key and if you get unlucky then Keystone is doing an Identity backend call in the same DB which causes a deadlock | 19:49 |
knasim-wrs | so the question is, do we need 014_X (the domain id foreign constraint) DB migration script or I can omit it | 19:49 |
knasim-wrs | the other option is to momentarily shut off Keystone before doing a Contract but that will be service disruptive | 19:50 |
*** itlinux has quit IRC | 19:50 | |
knasim-wrs | @lbragstad: We discussed this issue previously. Its quite reproducible on skip level Online migrations | 19:51 |
lbragstad | this is the migration in question - https://github.com/openstack/keystone/blob/1175a356fc71036b38c41025f5a90e16f91bbc98/keystone/common/sql/contract_repo/versions/014_contract_add_domain_id_to_user_table.py ? | 19:52 |
lbragstad | it's failing here specifically - https://github.com/openstack/keystone/blob/1175a356fc71036b38c41025f5a90e16f91bbc98/keystone/common/sql/contract_repo/versions/014_contract_add_domain_id_to_user_table.py#L46-L49 ? | 19:53 |
lbragstad | knasim-wrs another work around you could do - would be to roll out a custom policy that disables anyone from making an identity request (e.g. create_user, update_user, delete_user, etc...) | 19:58 |
lbragstad | that would prevent a partial service outage until you can run the migration | 19:58 |
lbragstad | once the migrations are complete you could revert the policy change and open up the identity API again | 19:59 |
lbragstad | not ideal - but it might be a better option that taking the service down | 19:59 |
knasim-wrs | thanks Lance, but I think that one of my services (Nova) was simply doing an AUTH while the contraction happened. This is the Keystone DB operation that was happening at that time: | 20:01 |
knasim-wrs | SELECT local_user.id AS local_user_id, local_user.user_id AS local_user_user_id, local_user.domain_id AS local_user_domain_id, local_user.name AS local_user_name, local_user.failed_auth_count AS local_user_failed_auth_count, local_user.failed_auth_at AS local_user_failed_auth_at, anon_1.user_id AS anon_1_user_id, anon_1.user_domain_id AS anon_1_use | 20:01 |
knasim-wrs | r_domain_id | 20:01 |
knasim-wrs | WHERE "user".id = '20bd4216910340bc8e6019f6d826f9d7') AS anon_1 JOIN local_user ON anon_1.user_id = local_user.user_id AND anon_1.user_domain_id = local_user.domain_id ORDER BY anon_1.user_id, anon_1.user_domain_id | 20:02 |
knasim-wrs | yes lbragstad, the links you send indicate which DB migration is failing | 20:03 |
lbragstad | i'm trying to figure out why the deadlock happened | 20:03 |
lbragstad | knasim-wrs do you have a paste of the error? | 20:07 |
lbragstad | with a little more context? | 20:07 |
knasim-wrs | sure | 20:09 |
knasim-wrs | 1 sec | 20:09 |
knasim-wrs | https://thepasteb.in/p/0ghJWZQnm8Pf5 | 20:11 |
knasim-wrs | so the problem is that DB contraction wants Exlusive Lock on the local_user DB table. Keystone wants Shared Lock on the local_user DB table hence the deadlock. The contraction could should play nice and either yield or take out a Shared lock | 20:13 |
*** oikiki has quit IRC | 20:14 | |
knasim-wrs | Process 76955 (KEYSTONE) waits for AccessShareLock on relation 17776 of database 16401; blocked by process 76959 ( DB Contract). | 20:14 |
*** oikiki has joined #openstack-keystone | 20:14 | |
lbragstad | hmm | 20:14 |
lbragstad | process 76955 is the read? | 20:15 |
lbragstad | it looks like | 20:15 |
knasim-wrs | Process 76959(DB Contract) waits for AccessExclusiveLock on relation 17886 of database 16401; blocked by process 76955 (Keystone) | 20:15 |
lbragstad | and process 76959 is the fk operation | 20:15 |
knasim-wrs | thats right | 20:15 |
knasim-wrs | fk operation wants exclusive lock | 20:15 |
lbragstad | right | 20:15 |
knasim-wrs | and keystone was doing an AUTH in the local_user DB at that time and wants a Shared lock on that table | 20:15 |
lbragstad | hmm | 20:16 |
openstackgerrit | Gage Hugo proposed openstack/keystone master: Add new setup commands for token keys https://review.openstack.org/547657 | 20:16 |
knasim-wrs | keystone was just doing a read operation on the table, contract wants to do a write operation | 20:16 |
lbragstad | right... | 20:16 |
lbragstad | so - do you cache identity responses? | 20:16 |
*** itlinux has joined #openstack-keystone | 20:17 | |
lbragstad | https://github.com/openstack/keystone/blob/master/etc/keystone.conf.sample#L1055-L1057 | 20:17 |
lbragstad | i was thinking that might help because calling the identity API to get a user by id would return a cached user reference instead of having to go pull it from the database | 20:19 |
lbragstad | and hopefully eliminate the read operation | 20:20 |
knasim-wrs | caching was not in this load. I can try with caching enabled so yes in that case it won't be hitting the DB | 20:22 |
*** david-lyle has joined #openstack-keystone | 20:25 | |
lbragstad | that might be an easy workaround to get you past the migration | 20:31 |
*** pramodrj07 has joined #openstack-keystone | 20:34 | |
*** itlinux has quit IRC | 20:36 | |
*** Exhar has quit IRC | 20:41 | |
*** itlinux has joined #openstack-keystone | 20:42 | |
*** r-daneel has joined #openstack-keystone | 21:00 | |
*** pramodrj07 has quit IRC | 21:02 | |
*** rmascena has joined #openstack-keystone | 21:02 | |
*** raildo has quit IRC | 21:05 | |
*** rmascena has quit IRC | 21:06 | |
*** oikiki has quit IRC | 21:07 | |
*** oikiki has joined #openstack-keystone | 21:09 | |
*** cmurphy_ is now known as cmurphy | 21:13 | |
*** nkinder has quit IRC | 21:16 | |
*** itlinux has quit IRC | 21:16 | |
*** panbalag has quit IRC | 21:19 | |
*** dave-mcc_ has joined #openstack-keystone | 21:35 | |
*** dave-mccowan has quit IRC | 21:36 | |
*** edmondsw has quit IRC | 21:40 | |
*** Exhar has joined #openstack-keystone | 21:56 | |
*** spilla has quit IRC | 22:17 | |
*** masber has joined #openstack-keystone | 22:27 | |
*** masber has quit IRC | 22:30 | |
*** masber has joined #openstack-keystone | 22:30 | |
*** dave-mcc_ has quit IRC | 22:34 | |
*** dave-mccowan has joined #openstack-keystone | 22:46 | |
gmann_ | lbragstad: thanks | 22:53 |
lbragstad | gmann_ no problem, thanks for hosting the topic | 23:01 |
*** masuberu has joined #openstack-keystone | 23:07 | |
*** masber has quit IRC | 23:09 | |
*** dave-mccowan has quit IRC | 23:11 | |
*** mchlumsky has quit IRC | 23:12 | |
*** itlinux has joined #openstack-keystone | 23:22 | |
*** r-daneel has quit IRC | 23:27 | |
*** itlinux has quit IRC | 23:28 | |
*** agrebennikov has joined #openstack-keystone | 23:57 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!