*** yamamoto has joined #openstack-lbaas | 00:31 | |
*** yamamoto has quit IRC | 01:33 | |
*** hongbin has joined #openstack-lbaas | 02:23 | |
*** altlogbot_2 has quit IRC | 02:41 | |
*** altlogbot_3 has joined #openstack-lbaas | 02:43 | |
*** yamamoto has joined #openstack-lbaas | 03:02 | |
*** hongbin has quit IRC | 03:13 | |
*** psachin has joined #openstack-lbaas | 03:18 | |
*** yamamoto has quit IRC | 03:29 | |
*** yamamoto has joined #openstack-lbaas | 03:29 | |
*** altlogbot_3 has quit IRC | 03:31 | |
*** altlogbot_1 has joined #openstack-lbaas | 03:32 | |
*** yamamoto has quit IRC | 03:32 | |
*** yamamoto has joined #openstack-lbaas | 03:50 | |
*** sapd1_x has joined #openstack-lbaas | 03:54 | |
*** ivve has quit IRC | 04:12 | |
*** yamamoto has quit IRC | 04:32 | |
*** sapd1_x has quit IRC | 04:41 | |
*** vishalmanchanda has joined #openstack-lbaas | 04:49 | |
*** yamamoto has joined #openstack-lbaas | 04:55 | |
*** yamamoto has quit IRC | 04:56 | |
*** yamamoto has joined #openstack-lbaas | 04:58 | |
*** ivve has joined #openstack-lbaas | 05:15 | |
*** sapd1_x has joined #openstack-lbaas | 05:25 | |
*** yamamoto has quit IRC | 05:26 | |
*** ccamposr has joined #openstack-lbaas | 05:44 | |
*** sapd1_x has quit IRC | 05:53 | |
*** sapd1_x has joined #openstack-lbaas | 05:55 | |
*** mkuf has quit IRC | 05:55 | |
*** yamamoto has joined #openstack-lbaas | 05:58 | |
*** yamamoto has quit IRC | 06:11 | |
*** mkuf has joined #openstack-lbaas | 06:30 | |
*** gcheresh has joined #openstack-lbaas | 06:41 | |
*** yamamoto has joined #openstack-lbaas | 06:43 | |
*** gthiemonge has quit IRC | 06:56 | |
*** yamamoto has quit IRC | 06:59 | |
*** tesseract-RH has joined #openstack-lbaas | 07:05 | |
*** AlexStaf has joined #openstack-lbaas | 07:12 | |
*** altlogbot_1 has quit IRC | 07:13 | |
*** yamamoto has joined #openstack-lbaas | 07:15 | |
*** altlogbot_1 has joined #openstack-lbaas | 07:18 | |
*** yamamoto has quit IRC | 07:21 | |
openstackgerrit | OpenStack Proposal Bot proposed openstack/neutron-lbaas-dashboard master: Imported Translations from Zanata https://review.opendev.org/657328 | 07:34 |
---|---|---|
*** dmellado has quit IRC | 07:44 | |
*** dmellado has joined #openstack-lbaas | 07:44 | |
*** nmagnezi has quit IRC | 07:44 | |
*** yamamoto has joined #openstack-lbaas | 08:00 | |
*** gthiemonge has joined #openstack-lbaas | 08:06 | |
*** yamamoto has quit IRC | 08:07 | |
*** pcaruana has joined #openstack-lbaas | 08:24 | |
*** rpittau|afk is now known as rpittau | 08:24 | |
openstackgerrit | Gregory Thiemonge proposed openstack/octavia-tempest-plugin master: WIP Add UDP test scenario https://review.opendev.org/656515 | 08:39 |
openstackgerrit | OpenStack Proposal Bot proposed openstack/octavia-dashboard master: Imported Translations from Zanata https://review.opendev.org/657346 | 08:40 |
*** sapd1_x has quit IRC | 08:40 | |
*** ivve has quit IRC | 08:40 | |
*** yamamoto has joined #openstack-lbaas | 08:45 | |
*** ivve has joined #openstack-lbaas | 08:55 | |
*** mkuf_ has joined #openstack-lbaas | 08:58 | |
*** mkuf has quit IRC | 09:02 | |
*** mkuf_ has quit IRC | 09:10 | |
*** yamamoto has quit IRC | 09:10 | |
*** altlogbot_1 has quit IRC | 09:11 | |
*** yamamoto has joined #openstack-lbaas | 09:11 | |
*** altlogbot_2 has joined #openstack-lbaas | 09:15 | |
*** altlogbot_2 has quit IRC | 09:15 | |
*** altlogbot_0 has joined #openstack-lbaas | 09:16 | |
*** yamamoto has quit IRC | 09:16 | |
*** yamamoto has joined #openstack-lbaas | 09:19 | |
*** yamamoto has quit IRC | 09:19 | |
*** mkuf_ has joined #openstack-lbaas | 09:38 | |
*** yamamoto has joined #openstack-lbaas | 09:56 | |
*** yamamoto has quit IRC | 10:08 | |
*** takamatsu has joined #openstack-lbaas | 10:36 | |
openstackgerrit | sahid proposed openstack/octavia master: db: add missing primary key in spares_pool table https://review.opendev.org/656459 | 10:40 |
openstackgerrit | sahid proposed openstack/octavia master: db: add missing primary key in spares_pool table https://review.opendev.org/656459 | 10:41 |
*** yboaron has joined #openstack-lbaas | 11:08 | |
*** yboaron_ has joined #openstack-lbaas | 11:18 | |
*** altlogbot_0 has quit IRC | 11:19 | |
*** yboaron has quit IRC | 11:20 | |
*** altlogbot_3 has joined #openstack-lbaas | 11:21 | |
*** henriqueof has joined #openstack-lbaas | 11:44 | |
*** yboaron_ has quit IRC | 12:07 | |
*** boden has joined #openstack-lbaas | 12:10 | |
*** altlogbot_3 has quit IRC | 12:14 | |
*** altlogbot_3 has joined #openstack-lbaas | 12:20 | |
*** pcaruana has quit IRC | 12:29 | |
*** happyhemant has joined #openstack-lbaas | 12:41 | |
*** yamamoto has joined #openstack-lbaas | 12:49 | |
*** gthiemon1e has joined #openstack-lbaas | 12:59 | |
*** gthiemonge has quit IRC | 13:00 | |
*** altlogbot_3 has quit IRC | 13:15 | |
*** altlogbot_0 has joined #openstack-lbaas | 13:16 | |
*** pcaruana has joined #openstack-lbaas | 13:16 | |
*** altlogbot_0 has quit IRC | 13:21 | |
*** altlogbot_2 has joined #openstack-lbaas | 13:24 | |
*** altlogbot_2 has quit IRC | 13:25 | |
*** altlogbot_3 has joined #openstack-lbaas | 13:26 | |
*** psachin has quit IRC | 13:28 | |
*** yamamoto has quit IRC | 13:31 | |
*** yboaron_ has joined #openstack-lbaas | 13:32 | |
*** gthiemonge has joined #openstack-lbaas | 13:35 | |
*** gthiemon1e has quit IRC | 13:36 | |
*** yamamoto has joined #openstack-lbaas | 13:47 | |
*** ianychoi has quit IRC | 13:48 | |
*** ianychoi has joined #openstack-lbaas | 13:52 | |
*** ianychoi has quit IRC | 14:04 | |
*** Vorrtex has joined #openstack-lbaas | 14:14 | |
*** ianychoi has joined #openstack-lbaas | 14:18 | |
*** ivve has quit IRC | 14:40 | |
*** gcheresh has quit IRC | 14:56 | |
*** AlexStaf has quit IRC | 15:16 | |
*** gthiemonge has quit IRC | 15:16 | |
*** yamamoto has quit IRC | 15:16 | |
*** ccamposr has quit IRC | 15:16 | |
*** rpittau is now known as rpittau|afk | 15:43 | |
*** henriqueof has quit IRC | 15:53 | |
*** yamamoto has joined #openstack-lbaas | 15:57 | |
*** yamamoto has quit IRC | 16:10 | |
*** ivve has joined #openstack-lbaas | 16:20 | |
*** ivve has quit IRC | 16:35 | |
*** henriqueof has joined #openstack-lbaas | 17:07 | |
*** vishalmanchanda has quit IRC | 17:08 | |
*** ivve has joined #openstack-lbaas | 17:18 | |
*** tesseract-RH has quit IRC | 17:24 | |
*** Swami has joined #openstack-lbaas | 17:29 | |
johnsom | Hey, nova confirmed the port detach bug, so progress | 18:09 |
openstackgerrit | Merged openstack/octavia-dashboard master: Imported Translations from Zanata https://review.opendev.org/657346 | 18:12 |
rm_work | yeah :P | 18:20 |
rm_work | and the ipv6 multinode thing seems fixed, so we can merge that ^_^ | 18:20 |
rm_work | johnsom: meanwhile i'm getting stuck on the to_data_model object graph mess | 18:21 |
johnsom | Hmmm, for the v1 retirement work? | 18:23 |
johnsom | I am just now digging out of my e-mail backlog... | 18:23 |
johnsom | +2'd | 18:24 |
*** yboaron_ has quit IRC | 18:28 | |
*** yboaron_ has joined #openstack-lbaas | 18:28 | |
rm_work | no, for multi-vip | 18:28 |
rm_work | i started with a TDD approach, wrote the unit test for the api call -- got the model/db work done, and some of the controller work... | 18:29 |
rm_work | but stuck on the stupid graph stuff because i must have missed something and it's just returning a graph with the correct NUMBER of vips but all the same one | 18:29 |
* rm_work goes back to debugging | 18:30 | |
johnsom | lol | 18:30 |
rm_work | oh, so yes, the v1 retirement patch is "good to merge" imo -- it gets all the big stuff, what's left would be unwinding some of the crazy compatability code we added to the v2 types or maybe stuff like the data model graph, but that can happen later | 18:31 |
rm_work | or rather, at least "good to review" | 18:31 |
*** KeithMnemonic has joined #openstack-lbaas | 18:39 | |
rm_work | johnsom: does this look right? http://paste.openstack.org/show/750730/ | 18:44 |
*** happyhemant has quit IRC | 18:48 | |
johnsom | Do you really want to mess with what is already there? | 18:57 |
rm_work | err... kinda have to | 19:00 |
rm_work | right now the vip table is unique per lb_id | 19:00 |
rm_work | and to retain which subnet is returned in the "main" vip slot, we need to track that | 19:01 |
rm_work | which are the only two changes | 19:01 |
rm_work | unless i made another "additional_vip" table which seems ... odd | 19:02 |
rm_work | or rather, not odd, but ... unnecessary | 19:02 |
rm_work | that's just replacing the current "primary key" unique constraint with a compound key of "unique per ip+subnet+lb combo" | 19:03 |
rm_work | and adding one additional field, with an obvious default value | 19:04 |
rm_work | ahhh forgot to update `_get_unique_key` to deal with the new compound key | 19:14 |
openstackgerrit | Merged openstack/octavia-dashboard master: Changes for url transition to OpenDev https://review.opendev.org/654461 | 19:25 |
*** mkuf has joined #openstack-lbaas | 19:32 | |
*** boden_ has joined #openstack-lbaas | 19:32 | |
*** boden has quit IRC | 19:39 | |
*** mkuf_ has quit IRC | 19:39 | |
*** yboaron_ has quit IRC | 19:39 | |
*** Swami has quit IRC | 19:39 | |
*** Vorrtex has quit IRC | 19:39 | |
*** yboaron_ has joined #openstack-lbaas | 19:40 | |
*** Swami has joined #openstack-lbaas | 19:40 | |
*** takamatsu has quit IRC | 19:51 | |
*** gcheresh has joined #openstack-lbaas | 19:57 | |
openstackgerrit | Merged openstack/octavia-dashboard stable/stein: Imported Translations from Zanata https://review.opendev.org/656749 | 20:05 |
NobodyCam | good afternoon Folks; is there a way to delete lb's in PENDING_CREATE state? | 20:20 |
NobodyCam | `Invalid state PENDING_CREATE of loadbalancer resource 7a5622a4-9190-415d-a347-ff2aef3ad2d6 (HTTP 409) (Request-ID: req-9c6d4970-e032-49f7-b0c8-c7fc0b76758d)` | 20:20 |
rm_work | johnsom: all of the conversions back and forth between provider/db dicts/objs is insane | 20:24 |
rm_work | it's hard to even track which format we're in at any given point | 20:25 |
rm_work | and i swear some of these seem redundant | 20:25 |
rm_work | but i'm assuming it's all necessary... | 20:25 |
johnsom | rm_work: completely agree. Not 100% sure it is ALL necessary though. | 20:26 |
johnsom | Good thing is the jobboard work will likely clean it up a bit | 20:26 |
johnsom | NobodyCam: Having rabbit issues? | 20:27 |
NobodyCam | no | 20:29 |
colin- | we get that with cloud-provider-openstack created loadbalancers from time to time NobodyCam | 20:29 |
colin- | still trying to track down why... | 20:29 |
NobodyCam | I updated mysql to error and was able to delete | 20:30 |
colin- | brave man :) | 20:30 |
colin- | s/man/operator/ | 20:30 |
NobodyCam | hehehe | 20:30 |
NobodyCam | yea we are running magnum | 20:31 |
*** Vorrtex has joined #openstack-lbaas | 20:32 | |
NobodyCam | yea we are running magnum | 20:34 |
NobodyCam | colin-: how do you deal with such issues? | 20:34 |
*** gcheresh has quit IRC | 20:35 | |
colin- | presently we do what you just did, i haven't been able to determine exactly what causes it yet in order to stop it happening | 20:35 |
NobodyCam | :) | 20:36 |
NobodyCam | yea last think I see in the log is `Sending create Load Balancer 702673de-8960-48b3-b98f-3aa9c112a515 to provider amphora` | 20:38 |
NobodyCam | s/think/thing/ | 20:39 |
johnsom | That implies a rabbit queue issue, if you didn’t see it in the worker logs | 20:42 |
NobodyCam | humm | 20:42 |
NobodyCam | oh I do see `<<"/octavia">>, [{<<"connection.blocked">>,bool,true},{<<"authentication_failure_close">>,bool,true}` | 20:47 |
NobodyCam | that could be something | 20:47 |
*** pcaruana has quit IRC | 20:51 | |
*** Vorrtex has quit IRC | 20:51 | |
lxkong | rm_work, johnsom, could you please take a look at https://storyboard.openstack.org/#!/story/2005578? not sure it's only affecting us. | 20:52 |
johnsom | lxkong That is an odd one. We of course run mysql in the gate jobs and the migrations have been fine. | 20:53 |
*** imdigitaljim has joined #openstack-lbaas | 20:53 | |
rm_work | yep, that's what i was going to say | 20:54 |
*** schaney has joined #openstack-lbaas | 20:54 | |
rm_work | those are all very well tested | 20:54 |
lxkong | yeah, i looked at the ci log yesterday, didn't find something suspicious | 20:55 |
lxkong | not sure if the mariadb version matters | 20:55 |
johnsom | The other issue with that table, that there is no primary key, I understand. That is something that is specific requirement for the Percona engine. | 20:56 |
lxkong | we are using the same version in production, that failure blocks us from upgrading to stein :-( | 20:56 |
johnsom | I wonder if it's a sqlalchemy version issue really, but it might be mariadb | 20:57 |
lxkong | ok, i will dig a little bit further today | 20:58 |
johnsom | At least mysql has it in 5.5: https://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_current-timestamp | 20:58 |
openstackgerrit | Merged openstack/octavia-tempest-plugin master: Fix ipv6 multinode gate (use private subnet) https://review.opendev.org/656852 | 21:02 |
johnsom | mariadb seems to have it, but they don't say what version they included it in: https://mariadb.com/kb/en/library/current_timestamp/ | 21:02 |
lxkong | i can see the devstack is installing mysql-server-5.7 | 21:03 |
johnsom | lxkong https://mariadb.com/kb/en/library/mariadb-1001-release-notes/#new-features-re-implemented-from-a-similar-mysql-feature | 21:03 |
johnsom | That implies that mariadb didn't implement it until 10.0.1 | 21:04 |
lxkong | johnsom: hmm...yeah | 21:05 |
johnsom | So... Not sure what to tell you there. OpenStack doesn't have a good story about DB compatibility. Really sqlalchemy should "do the right thing" but.... | 21:06 |
rm_work | johnsom: ugh, speaking of DB issues... I may have run into one that's going to kill my plan | 21:07 |
rm_work | to do this the way i was planning, i realized I need to add an `id` field and make that the real primary-key for the `vip` table ... and remove the existing unique constraint on `load_balancer_id`... which makes that table no longer backwards compatible with older controller versions T_T | 21:09 |
rm_work | and i don't know if there's a way around that with this approach | 21:09 |
rm_work | i may have to make another table :/ | 21:09 |
rm_work | which is super gross, I think. but I'll give it some thought | 21:10 |
johnsom | Yeah, I think you are in "another table" space. That is what I commented earlier today. | 21:10 |
rm_work | yeah i thought i might be ok but needing an id field kills it for sure | 21:10 |
rm_work | i think i see what you meant earlier though, changing that constraint might already have sunk me in the same way | 21:11 |
rm_work | whelp | 21:11 |
lxkong | is it possible we use oslo_db.sqlalchemy.models.TimestampMixin which has `updated_at = Column(DateTime, onupdate=lambda: timeutils.utcnow())` instead of specify the `server_default` in the migration script? | 21:11 |
johnsom | lxkong There are easier ways to do it than that, but it shifts the time from the DB time to the python time. | 21:13 |
johnsom | lxkong Also FYI, that keyword was in mysql 5.1 as well: http://download.nust.na/pub6/mysql/doc/refman/5.1/en/date-and-time-functions.html#function_current-timestamp | 21:13 |
johnsom | So, mariadb seems to be significantly out of sync | 21:13 |
lxkong | i think the problem is not mariadb doesn't support CURRENT_TIMESTAMP, but doesn't support CURRENT_TIMESTAMP for DateTime column | 21:15 |
*** henriqueof has quit IRC | 21:16 | |
lxkong | if i change DATETIME to TIMESTAMP, it works | 21:17 |
johnsom | Yeah, ok, so this is really a sqlalchemy bug | 21:17 |
lxkong | https://www.irccloud.com/pastebin/2f1zl7tg/ | 21:17 |
johnsom | We call: sa.Column(u'updated_at', sa.DateTime(), nullable=True, server_default=sa.func.current_timestamp())) | 21:17 |
johnsom | So sqlalchemy is generating invalid SQL for mariadb.... | 21:18 |
lxkong | because the code tells sqlalchemy the type is DateTime instead of TIMESTAMP | 21:19 |
lxkong | https://docs.sqlalchemy.org/en/13/core/type_basics.html#sqlalchemy.types.TIMESTAMP | 21:19 |
johnsom | I mean, sqlalchemy even gives this as an example: https://docs.sqlalchemy.org/en/13/core/defaults.html#client-invoked-sql-expressions | 21:20 |
johnsom | My guess is sqlalchemy should be outputing NOW() instead of CURRENT_TIMESTAMP | 21:20 |
lxkong | that example is using `onupdate ` | 21:20 |
lxkong | instead of DEFAULT | 21:21 |
lxkong | that's different | 21:21 |
johnsom | Yeah, but it's still a DateTime column | 21:21 |
johnsom | https://docs.sqlalchemy.org/en/13/core/functions.html#sqlalchemy.sql.functions.current_timestamp | 21:21 |
johnsom | It also calls out type of DateTime here | 21:21 |
lxkong | johnsom: it's too far away for us to fix sqlalchemy or upgrade mariadb at the moment | 21:25 |
lxkong | from octavia's perspective, is it safe if we change DateTime to TIMESTAMP? | 21:25 |
lxkong | for spares_pool table? | 21:26 |
johnsom | No | 21:26 |
johnsom | I would instead cook up a fix to the migration script, such as using datetime.datetime.now() | 21:27 |
johnsom | Right now we aren't really looking at the value of the column, but we may in the future and I'm not sure that TIMESTAMP is fully compatible from a query perspective. | 21:28 |
lxkong | yeah, fare enough | 21:28 |
lxkong | let me do some tests based on your suggestion | 21:28 |
johnsom | lxkong Actually, we found that the server default doesn't even work. | 21:30 |
johnsom | lxkong https://review.opendev.org/#/c/649766/1/octavia/db/migration/alembic_migrations/versions/46d914b2a5e5_seed_the_spares_pool_table.py | 21:30 |
johnsom | We changed it in the next patch, so just remove the whole server default section and call it a day. | 21:30 |
lxkong | sigh... | 21:31 |
lxkong | thanks johnsom | 21:32 |
johnsom | lxkong I would argue to merge it if you push a patch up that does that. | 21:32 |
johnsom | plus backport it | 21:32 |
lxkong | johnsom: we probably have to carry a private patch by ourselves | 21:33 |
johnsom | lxkong I'm just saying, if you put up a patch that removes the "server_default=sa.func.current_timestamp()" from 6ffc710674ef_spares_pool_table.py I would support merging it and backporting it to fix this upstream for you. | 21:33 |
johnsom | I think we can make a good case | 21:34 |
johnsom | Since it effectively does nothing | 21:34 |
lxkong | johnsom: that would be great. I will test first before proposing a patch | 21:34 |
johnsom | lxkong +1 | 21:35 |
* lxkong goes to stand up meeting and tell a story | 21:35 | |
*** boden_ has quit IRC | 21:45 | |
*** yboaron_ has quit IRC | 21:54 | |
openstackgerrit | Lingxian Kong proposed openstack/octavia master: Remove the server_default value for spares_pool table creation https://review.opendev.org/657462 | 22:14 |
*** rcernin has joined #openstack-lbaas | 22:48 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!