Thursday, 2016-04-21

*** gyee has joined #openstack-barbican00:04
*** gyee has quit IRC00:14
*** jamielennox|away is now known as jamielennox00:28
*** jkf has quit IRC00:38
*** xek has quit IRC00:39
*** spotz_zzz is now known as spotz00:40
*** jamielennox is now known as jamielennox|away00:49
*** jamielennox|away is now known as jamielennox00:51
*** jhfeng has joined #openstack-barbican01:18
*** fredyx10 has joined #openstack-barbican01:25
*** jkf has joined #openstack-barbican01:37
*** zz_dimtruck is now known as dimtruck01:52
*** fredyx10 has quit IRC02:08
*** fredyx10 has joined #openstack-barbican02:08
*** fredyx10 has quit IRC02:43
*** fredyx10 has joined #openstack-barbican02:44
*** fredyx10 has quit IRC03:05
*** jhfeng has quit IRC03:10
*** jamielennox is now known as jamielennox|away03:21
*** dave-mccowan has quit IRC03:37
*** jhfeng has joined #openstack-barbican03:38
*** jhfeng has quit IRC03:49
*** Nirupama has joined #openstack-barbican04:40
*** jaosorior has joined #openstack-barbican05:07
*** ozialien has joined #openstack-barbican05:47
*** dimtruck is now known as zz_dimtruck06:14
*** spotz is now known as spotz_zzz06:15
*** ozialiendoze has joined #openstack-barbican06:22
*** scheuran has joined #openstack-barbican06:24
*** ozialien has quit IRC06:24
openstackgerritOpenStack Proposal Bot proposed openstack/barbican: Imported Translations from Zanata  https://review.openstack.org/30877706:32
*** edtubill has quit IRC07:09
*** woodster_ has quit IRC07:18
*** permalac has quit IRC07:19
*** ozialien has joined #openstack-barbican07:29
*** ozialiendoze has quit IRC07:31
*** jaosorior has quit IRC08:22
*** jaosorior has joined #openstack-barbican08:30
-openstackstatus- NOTICE: OVH servers are down, we are working to solve it. This will cause that jobs queue is processed slowly, please have patience.10:36
*** jaosorior has quit IRC10:52
*** jaosorior has joined #openstack-barbican10:53
*** jorgem has quit IRC11:00
*** jorgem has joined #openstack-barbican11:00
*** arunkant_ has joined #openstack-barbican11:06
*** mmotiani_ has quit IRC11:08
*** arunkant has quit IRC11:08
*** mmotiani_ has joined #openstack-barbican11:08
*** ozialiendoze has joined #openstack-barbican11:12
*** ozialien has quit IRC11:13
*** spotz_zzz is now known as spotz11:49
*** spotz is now known as spotz_zzz11:53
openstackgerritMerged openstack/barbican: Imported Translations from Zanata  https://review.openstack.org/30877712:12
*** krotscheck_dcm is now known as krotscheck12:15
*** alee has quit IRC12:29
*** dave-mccowan has joined #openstack-barbican12:32
*** Nirupama has quit IRC12:47
-openstackstatus- NOTICE: OVH provider is enabled again, please wait for the job queue to be processed12:47
*** ozialien has joined #openstack-barbican13:06
*** ozialiendoze has quit IRC13:06
*** ozialiendoze has joined #openstack-barbican13:12
*** ozialien has quit IRC13:13
*** alee has joined #openstack-barbican13:38
*** cheneydc has joined #openstack-barbican13:40
*** fredyx10 has joined #openstack-barbican13:45
*** jhfeng has joined #openstack-barbican14:05
*** zz_dimtruck is now known as dimtruck14:08
*** rhagarty has quit IRC14:11
*** spotz_zzz is now known as spotz14:23
*** nkinder has quit IRC14:35
*** asingh has joined #openstack-barbican14:37
*** nkinder has joined #openstack-barbican14:39
*** jaosorior has quit IRC14:56
*** edtubill has joined #openstack-barbican15:09
*** jaosorior has joined #openstack-barbican15:16
*** scheuran has quit IRC15:27
*** jhfeng has quit IRC15:28
*** jhfeng has joined #openstack-barbican15:32
*** sigmavirus24_awa is now known as sigmavirus2415:33
*** rhagarty has joined #openstack-barbican15:40
*** cheneydc has quit IRC15:48
*** openstackgerrit has quit IRC15:48
*** jaosorior has quit IRC15:48
*** openstackgerrit has joined #openstack-barbican15:48
openstackgerritMerged openstack/barbican: use thread safe fnmatch  https://review.openstack.org/30857115:53
*** rhagarty has quit IRC16:04
*** jhfeng has quit IRC16:10
*** rhagarty has joined #openstack-barbican16:10
*** diazjf has joined #openstack-barbican16:17
*** arun_kant has joined #openstack-barbican16:22
*** jhfeng has joined #openstack-barbican16:28
*** diazjf has quit IRC16:31
*** jhfeng has quit IRC16:39
*** tkelsey has joined #openstack-barbican16:54
*** rhagarty has quit IRC16:56
*** alee is now known as alee_lunch16:58
*** jhfeng has joined #openstack-barbican16:59
*** jhfeng has quit IRC17:01
*** dave-mccowan has quit IRC17:01
*** jhfeng has joined #openstack-barbican17:03
*** stevemar has quit IRC17:06
*** Kiall has quit IRC17:07
*** dave-mccowan has joined #openstack-barbican17:07
*** stevemar has joined #openstack-barbican17:08
*** lixiaoy1 has quit IRC17:08
*** rhagarty has joined #openstack-barbican17:08
*** lixiaoy1 has joined #openstack-barbican17:09
*** Kiall has joined #openstack-barbican17:10
*** tkelsey has quit IRC17:15
*** mathiasb_ has joined #openstack-barbican17:16
*** mmotiani- has joined #openstack-barbican17:19
*** mmotiani_ has quit IRC17:19
*** mathiasb has quit IRC17:19
*** a2hill has quit IRC17:19
*** ptoohill has joined #openstack-barbican17:20
*** 6JTAACLMH has joined #openstack-barbican17:24
*** fawadkhaliq has joined #openstack-barbican17:29
*** jhfeng has quit IRC17:52
*** jhfeng has joined #openstack-barbican17:54
*** sigmavirus24 is now known as sigmavirus24_awa17:55
openstackgerritMerged openstack/python-barbicanclient: Make Client test documentation similar to Barbican  https://review.openstack.org/21913518:08
*** sigmavirus24_awa is now known as sigmavirus2418:09
openstackgerritOpenStack Proposal Bot proposed openstack/barbican: Updated from global requirements  https://review.openstack.org/30774518:10
openstackgerritOpenStack Proposal Bot proposed openstack/python-barbicanclient: Updated from global requirements  https://review.openstack.org/30315118:16
*** peter-hamilton has joined #openstack-barbican18:33
*** woodster_ has joined #openstack-barbican18:34
*** alee_lunch is now known as alee18:46
*** tkelsey has joined #openstack-barbican18:50
*** tkelsey has quit IRC18:55
*** fredyx10 has left #openstack-barbican18:55
agrebennikovredrobot, hi18:57
agrebennikovremember the question I was asking about yesterday?18:57
agrebennikovabout the "db sync" issue18:57
redrobotagrebennikov hi18:58
agrebennikovwoodster_, if you have a minute please^18:58
agrebennikovso I was provided with the patch18:58
agrebennikovbut the command still fails, and it actually fails when it applies very first migration18:58
agrebennikov2016-04-21 18:59:36.621 23501 INFO alembic.runtime.migration [-] Will assume non-transactional DDL.19:00
agrebennikov2016-04-21 18:59:36.829 23501 INFO alembic.runtime.migration [-] Running upgrade  -> 1a0c2cdafb38, create test table19:00
agrebennikov2016-04-21 18:59:36.835 23501 DEBUG alembic.runtime.migration [-] new branch insert 1a0c2cdafb38 update_to_step /usr/lib/python2.7/dist-packages/alembic/runtime/migration.py:47619:00
agrebennikov2016-04-21 18:59:36.848 23501 INFO alembic.runtime.migration [-] Running upgrade 1a0c2cdafb38 -> juno, juno_initial19:00
agrebennikov2016-04-21 18:59:37.083 23501 ERROR barbican.cmd.db_manage [-] Problem seen trying to execute Alembic commands19:00
agrebennikovOperationalError: (_mysql_exceptions.OperationalError) (1709, 'Index column size too large. The maximum column size is 767 bytes.') [SQL: u'CREATE INDEX values_index ON container_consumer_metadata (container_id, name, `URL`)']19:00
agrebennikovand the patch covered row size I believe19:00
woodster_agrebennikov: so is that the issue redrobot mentioned yesterday (https://bugs.launchpad.net/barbican/+bug/1528774) that is fixed in mitaka but not liberty?19:02
openstackLaunchpad bug 1528774 in Barbican "db creation fails with error "Specified key was too long"" [Critical,Fix released] - Assigned to Christopher Solis (cnsolis)19:02
woodster_agrebennikov: so you were trying to apply that fix to liberty then?19:02
agrebennikovyeah19:03
agrebennikovI did19:03
agrebennikovURL = sa.Column(sa.String(255))19:03
agrebennikovthis was applied19:03
woodster_agrebennikov: is it possible the old tables/schema were still in the db?19:03
agrebennikovhm.. I guess I re-created the db.. but let me verify once again...19:04
agrebennikovsec19:04
agrebennikovso same. And I believe this is nothing about that issue since I'm in the very beginning, while the patch covers something closer to the end19:09
woodster_agrebennikov: it seems that something is still running with the 500 char size instead of 256 :\19:13
*** peter-hamilton has quit IRC19:30
agrebennikovwoodster_, you mean barbican code side or the db side?19:42
woodster_agrebennikov: not sure. Haven't worked with packages much for barbican. something is still trying to set the column size to 500 instead of 256 it seems19:44
agrebennikovwoodster_, but do you know exactly how that first migration works? 1a0c2cdafb38 -> juno, juno_initial19:48
agrebennikovI mean where I have to take a look at19:49
agrebennikovalternatively I can try to update my code to the latest liberty and see how it goes19:49
*** gyee has joined #openstack-barbican20:00
*** sigmavirus24 is now known as sigmavirus24_awa20:09
*** fawadkhaliq has quit IRC20:11
*** fawadkhaliq has joined #openstack-barbican20:13
*** sigmavirus24_awa is now known as sigmavirus2420:13
*** fawadkhaliq has quit IRC20:19
*** fawadkhaliq has joined #openstack-barbican20:20
*** fawadkhaliq has quit IRC20:24
*** fawadkhaliq has joined #openstack-barbican20:25
*** jamielennox|away is now known as jamielennox20:29
woodster_agrebennikov: this file starts the process up: https://github.com/openstack/barbican/blob/master/barbican/model/migration/alembic_migrations/versions/juno_initial.py  (assuming the barbican.conf file has db_auto_create = False)20:47
agrebennikovwoodster_, oh, no - the setting is true20:48
*** krotscheck has quit IRC20:48
*** krotscheck has joined #openstack-barbican20:48
*** tkelsey has joined #openstack-barbican20:53
*** fawadk has joined #openstack-barbican20:54
*** fawadkhaliq has quit IRC20:54
*** tkelsey has quit IRC20:57
*** fawadk has quit IRC20:59
woodster_agrebennikov: so to use alembic and the patch, set that to false21:00
*** fawadkhaliq has joined #openstack-barbican21:07
*** fawadkhaliq has quit IRC21:08
*** fawadkhaliq has joined #openstack-barbican21:08
*** fawadkhaliq has quit IRC21:08
agrebennikovwoodster_, so we found the root of the issue21:15
agrebennikovin the very first migration (juno_initial) URL column was created with the length 50021:15
woodster_agrebennikov: nice!21:15
agrebennikovand the migration failed on index creation21:16
agrebennikovwhen I changed the value in barbican/model/migration/alembic_migrations/container_init_ops.py21:16
woodster_agrebennikov: I would have expected the gate to catch that :\21:16
agrebennikovto sa.Column('URL', sa.String(length=255), nullable=True),21:16
agrebennikoveverything works now21:17
agrebennikovseems the gate doesn't apply the migration21:17
agrebennikovand creates the latest schema right away21:17
*** alee has quit IRC21:17
agrebennikovbut for some reason it doesn't work for me((21:18
woodster_agrebennikov: sounds like we need to revisit that at the summit next week21:18
agrebennikovwoodster_, sounds like....21:19
agrebennikov))21:19
zigoI think it's really weird that Barbican doesn't include in its setup procedure to do a db-sync.21:29
zigoEvery other services do...21:29
woodster_zigo: I thought that was the role of alembic21:33
zigowoodster_: I've been told that db migration wasn't to be done at install time, and that Barbican would auto-create tables.21:33
zigoIs that wrong?21:33
woodster_zigo: well it can work in two modes...one where sqlalchemy creates the tables from models, and one where alebic versions are applied21:34
woodster_zigo: out of the box barbican runs in the sqlalchemy mode, but can be configured to do the alembic one21:35
* zigo is now even more confused21:35
woodster_zigo: the problem was alembic didn't work with sqlite when I first wrote all of that stuff, and I wanted it to be easy for folks to run barbican out of the box and play with the api21:35
zigoWell, now SQLA is fixed for SQLite ...21:36
zigoIt works pretty well with it, as much as I can tell.21:36
woodster_zigo: so we deploy barbican with the auto-create mode (from sqlalchemy) set to false, to force alembic versioning stuff21:36
zigoWhere's the switch?21:37
zigoIn barbican.conf?21:37
zigoIn the Debian package, I just get the alembic migration to start after the package is installed (well, if the user decided to use the dbconfig-common interface, which is optional).21:37
zigoAnd I noticed that barbican/model/migration/alembic_migrations/versions/1c0f328bfce0_fixing_composite_primary_keys_and_.py breaks.21:38
zigoIs this fixed?21:38
woodster_zigo: its db_auto_create in the default section of the config file...set that to False to turn on alembic syncing21:38
zigoThere's no such thing as db_auto_create in etc/barbican/barbican.conf ...21:39
woodster_zigo: I think this is the fix?: https://bugs.launchpad.net/barbican/+bug/152877421:39
openstackLaunchpad bug 1528774 in Barbican "db creation fails with error "Specified key was too long"" [Critical,Fix released] - Assigned to Christopher Solis (cnsolis)21:39
woodster_zigo: well it defaults to True so not in the conf file (I prefer to have all conf fields in the conf file, but I think that got overruled a while ago)21:39
woodster_zigo: used here: https://github.com/openstack/barbican/blob/master/barbican/model/repositories.py#L19321:40
woodster_zigo: ....the auto create conf setting that is21:40
zigowoodster_: So, should I patch the default config file and set it to false?21:42
zigo(since the default config file doesn't have it at all ...)21:42
woodster_zigo: yes if you want to activate alembic db syncing21:42
zigoThat's what the package does, so yes.21:43
zigoThough as I wrote, it has to be fixed, somehow.21:43
zigoThe bug you pointed out was *one* of the issues, there's still the one I'm telling about that needs to be fixed.21:43
woodster_zigo: ah ok. Would  you be up for creating a LP bug for it by chance?21:45
zigoI can.21:45
zigoThough I need to re-attempt installing ... :P21:45
zigoDoing that one.21:45
*** fawadkhaliq has joined #openstack-barbican21:52
zigoWeird, it worked ...21:54
zigoProbably that one got fixed in Mitaka final too then.21:54
woodster_zigo: I think redrobot mentioned a bug was fixed, I thought the one I posted21:54
zigoI just found it 1 issues working on this though: python-pymysql is missing as depends:21:55
woodster_zigo: not in liberty though21:55
zigoFixing it.21:55
zigoLiberty is the past for me.21:55
zigoI wont work on it again. :P21:55
openstackgerritMerged openstack/barbican: migrate keystone_data to openstackclient  https://review.openstack.org/30783722:07
*** spotz is now known as spotz_zzz22:16
*** fawadkhaliq has quit IRC22:16
*** fawadkhaliq has joined #openstack-barbican22:25
*** fawadkhaliq has quit IRC22:28
*** fawadkhaliq has joined #openstack-barbican22:30
*** krotscheck is now known as krotscheck_dcm22:32
*** sigmavirus24 is now known as sigmavirus24_awa22:35
*** fawadkhaliq has quit IRC22:40
*** edtubill has quit IRC22:45
*** tkelsey has joined #openstack-barbican22:54
*** tkelsey has quit IRC22:58
*** edtubill has joined #openstack-barbican23:05
*** dimtruck is now known as zz_dimtruck23:26
*** arun_kant has quit IRC23:36
*** zz_dimtruck is now known as dimtruck23:40
*** 6JTAACLMH has quit IRC23:43
*** asingh has quit IRC23:43
*** edtubill has quit IRC23:57
*** jhfeng has quit IRC23:57

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