Wednesday, 2016-04-20

*** jhfeng has quit IRC00:00
*** jhfeng has joined #openstack-barbican00:01
*** jhfeng has quit IRC00:05
*** mjm159 has quit IRC00:10
*** fawadkhaliq has joined #openstack-barbican00:25
openstackgerritNathan Reller proposed openstack/barbican: Added KMIP Secret Store to Devstack  https://review.openstack.org/30743400:26
*** fawadkhaliq has quit IRC00:56
*** fawadkhaliq has joined #openstack-barbican00:57
*** zz_dimtruck is now known as dimtruck01:02
*** dave-mccowan has joined #openstack-barbican01:07
*** jhfeng has joined #openstack-barbican01:29
*** lixiaoy1 has joined #openstack-barbican01:50
*** gyee has quit IRC02:27
*** dave-mcc_ has joined #openstack-barbican02:31
*** dave-mccowan has quit IRC02:32
*** sekrit is now known as CIA02:44
*** dave-mcc_ has quit IRC02:47
*** fawadkhaliq has quit IRC02:53
*** yuanying has quit IRC02:56
*** yuanying has joined #openstack-barbican03:48
*** fawadkhaliq has joined #openstack-barbican04:28
*** jhfeng has quit IRC04:38
*** jhfeng has joined #openstack-barbican04:38
*** jhfeng has quit IRC04:43
*** Nirupama has joined #openstack-barbican05:30
*** dimtruck is now known as zz_dimtruck05:36
*** zz_dimtruck is now known as dimtruck05:43
*** yuanying_ has joined #openstack-barbican05:57
*** yuanying has quit IRC05:58
*** dimtruck is now known as zz_dimtruck06:24
*** yuanying_ has quit IRC06:47
*** yuanying has joined #openstack-barbican06:48
*** jaosorior has joined #openstack-barbican06:57
*** permalac has joined #openstack-barbican07:00
*** zz_dimtruck is now known as dimtruck07:25
*** dimtruck is now known as zz_dimtruck07:34
*** scheuran has joined #openstack-barbican07:37
*** fawadkhaliq has quit IRC07:45
*** fawadkhaliq has joined #openstack-barbican07:45
*** yuanying has quit IRC07:49
*** yuanying has joined #openstack-barbican07:52
*** fawadkhaliq has quit IRC08:02
*** yuanying has quit IRC08:05
*** zz_dimtruck is now known as dimtruck08:07
*** dimtruck is now known as zz_dimtruck08:17
*** david-lyle has quit IRC08:59
*** david-lyle has joined #openstack-barbican09:00
*** zz_dimtruck is now known as dimtruck09:08
*** dimtruck is now known as zz_dimtruck09:17
*** zz_dimtruck is now known as dimtruck10:08
*** dimtruck is now known as zz_dimtruck10:18
*** jaosorior has quit IRC10:52
*** jaosorior has joined #openstack-barbican10:53
*** zz_dimtruck is now known as dimtruck11:09
*** dimtruck is now known as zz_dimtruck11:19
*** zz_dimtruck is now known as dimtruck12:10
*** dimtruck is now known as zz_dimtruck12:21
*** rellerreller has joined #openstack-barbican12:46
*** dave-mccowan has joined #openstack-barbican12:46
*** asingh has joined #openstack-barbican12:59
*** zz_dimtruck is now known as dimtruck13:07
*** fredyx10 has joined #openstack-barbican13:18
*** fredyx101 has joined #openstack-barbican13:19
*** fredyx10 has quit IRC13:22
*** asingh has quit IRC13:25
*** Nirupama has quit IRC13:34
*** dimtruck is now known as zz_dimtruck13:44
*** asingh has joined #openstack-barbican13:55
*** fredyx101 has quit IRC13:55
*** fredyx10 has joined #openstack-barbican13:57
*** jaosorior has quit IRC14:09
*** jmckind has joined #openstack-barbican14:09
*** jaosorior has joined #openstack-barbican14:09
*** zz_dimtruck is now known as dimtruck14:12
*** sigmavirus24_awa is now known as sigmavirus2414:15
*** jaosorior has quit IRC14:16
*** spotz_zzz is now known as spotz14:27
*** asingh has quit IRC14:28
*** fredyx10 has quit IRC14:32
*** asingh has joined #openstack-barbican14:38
*** jaosorior has joined #openstack-barbican14:40
*** asingh has quit IRC14:47
*** asingh has joined #openstack-barbican14:47
openstackgerritSharat Sharma proposed openstack/barbican: Added secret=True attribute to 'kek'.  https://review.openstack.org/30838314:48
*** dimtruck is now known as zz_dimtruck15:09
*** fredyx10 has joined #openstack-barbican15:16
openstackgerritSteve Martinelli proposed openstack/barbican: migrate keystone_data to openstackclient  https://review.openstack.org/30783715:17
*** zz_dimtruck is now known as dimtruck15:24
*** jhfeng has joined #openstack-barbican15:24
*** fredyx10 has quit IRC15:27
*** fredyx10 has joined #openstack-barbican15:28
*** jaosorior has quit IRC15:29
*** scheuran has quit IRC15:37
*** jmckind has quit IRC15:38
*** dimtruck is now known as zz_dimtruck15:49
*** gyee has joined #openstack-barbican15:54
*** mmotiani_ has joined #openstack-barbican15:57
*** mmotiani_ has quit IRC15:57
*** mmotiani_ has joined #openstack-barbican15:59
*** zz_dimtruck is now known as dimtruck16:04
*** nkinder has quit IRC16:37
*** nkinder has joined #openstack-barbican16:37
*** asingh has quit IRC16:43
*** asingh has joined #openstack-barbican16:43
*** diazjf has joined #openstack-barbican17:23
*** michael_ has joined #openstack-barbican17:32
*** diazjf has quit IRC17:33
*** jmckind has joined #openstack-barbican17:42
*** jmckind has quit IRC17:46
*** edtubill has joined #openstack-barbican18:04
*** woodster_ has joined #openstack-barbican18:39
*** sigmavirus24 is now known as sigmavirus24_awa18:45
*** agrebennikov has joined #openstack-barbican18:49
agrebennikovhi folks, I'm trying to set up barbican in poc environment. I've created db for it, but when I execute "barbican-db-manage upgrade" I get mysql errors like "The maximum column size is 767 bytes"18:54
agrebennikovany help will be appreciated))18:55
*** sigmavirus24_awa is now known as sigmavirus2418:56
redrobothi agrebennikov18:57
agrebennikovhi redrobot18:57
redrobotagrebennikov I think we had a bug submitted for that (or a similar issue)18:57
redrobotagrebennikov digging through launchpad, give me a sec.18:58
*** dimtruck is now known as zz_dimtruck18:59
*** zz_dimtruck is now known as dimtruck19:03
*** michael_ has quit IRC19:04
*** michael_ has joined #openstack-barbican19:05
redrobotagrebennikov https://bugs.launchpad.net/barbican/+bug/152877419:06
openstackLaunchpad bug 1528774 in Barbican "db creation fails with error "Specified key was too long"" [Undecided,Fix released] - Assigned to Christopher Solis (cnsolis)19:06
redrobotagrebennikov seems like the same issue you're having?19:06
agrebennikovright....19:07
redrobotagrebennikov should have been fixed in Mitaka19:07
redrobotagrebennikov what version are you deploying?19:07
agrebennikovim using trusty packages (liberty)19:08
redrobotagrebennikov ah yeah... we haven't backported that fix to liberty... hmm...  easiest thing would be for you to try the Mitaka release... not sure what the packaging status is though.19:08
agrebennikovredrobot, I'm just wondering how the code is passing the gates then?))19:09
agrebennikovif there is a stable release with such a huge issue19:10
*** michael_ has quit IRC19:10
redrobotagrebennikov around the Liberty timeframe, we were building the devstack gate schema from the models (ie, the alembic migrations were not tested)19:11
redrobotagrebennikov after this bug was reported/fixed we changed the gates to always use the migrations19:11
redrobotagrebennikov you're the first to report it broken in Liberty though19:11
agrebennikovinteresting fact though - when i used liberty code from github I guess I didn't have this issue...19:12
agrebennikovseems it is only in packages19:12
redrobotagrebennikov could be that the packages disable the feature that builds the schema from the models19:12
agrebennikovredrobot, any way to change this behaviour in place?19:13
agrebennikovredrobot, I'm not very familiar with building schema in the code19:13
redrobotagrebennikov yeah, should be a config file option, give me a sec19:14
redrobotagrebennikov add a line to your barbican.conf like so19:19
redrobotdb_auto_create = True19:19
agrebennikovhm.... is it really about creation or fulfilling the existing one with schema?19:20
redrobotagrebennikov that should cause the API process to build the DB schema from the models instead of the alembic migration19:20
*** edtubill has quit IRC19:21
agrebennikovredrobot, and what will be the workflow then? "create db -> install package -> change this option -> restart barbican-api"?19:21
redrobotagrebennikov yeah, that sounds right19:22
woodster_agrebennikov: in auto create mode, barbican will populate the schema for you. So you'd probably have to drop all existing tables and run barbican again in the auto create mode.19:29
agrebennikovall right, let me try it)19:30
agrebennikovredrobot, default section?19:32
agrebennikovsince if I Just restart barbican-api with this option in the default - nothing happens19:33
agrebennikovfrom the code perspective it is in default19:36
woodster_agrebennikov: actually the default is for auto populate to be True: https://github.com/openstack/barbican/blob/master/barbican/common/config.py#L6119:39
woodster_agrebennikov: i.e. if you add nothing to the barbican.conf it should auto populate.19:40
agrebennikovwoodster_, yeah, I found it already. it is a bit complicated to analyze what happens since thr process starts with wsgi19:40
agrebennikovand it doersn't write anything useful into log19:41
woodster_agrebennikov: it is actually used here: https://github.com/openstack/barbican/blob/master/barbican/model/repositories.py#L19319:41
agrebennikovI saw that too, tnx19:41
agrebennikoveven though there is not much sense for me19:42
woodster_agrebennikov: yeah the original intent was for barbican to just run quickly out of the box against a simple db (sqlite)19:42
agrebennikovwoodster_, as usually for any new project :( "lets create Something... quickly. and figure out down the road"19:43
woodster_agrebennikov: alembic didn't used to work against sqlite early on I recall19:43
agrebennikovwoodster_, my personal problem - I don't know the word "alembic" =(19:43
woodster_agrebennikov: that's the frame work that applies all the version files here: https://github.com/openstack/barbican/tree/master/barbican/model/migration/alembic_migrations/versions19:44
agrebennikovwoodster_, I mean I don't know what it means in this context19:44
agrebennikovok19:44
agrebennikovwoodster_, but is it supposed to work in the way similar to all other OS projects?19:45
woodster_agrebennikov: well if you don't auto create, alembic builds the db instead of SQLAlchemy, using those version files to do it. Both will get you to the same place, but alembic is the 'proper' way, that most deployers would do things19:45
woodster_agrebennikov: other projects use alembic if that's what you mean. The auto-create mode I'm not so sure about actually19:46
woodster_agrebennikov:  if you see discrepancies relative to other projects, please bring them up though.19:47
*** michael_ has joined #openstack-barbican19:49
agrebennikovwoodster_, just talked to the dev guy next to me and he explained the difference to me)) so yes, I probably was using sqlite before, when I was deploying manually19:57
agrebennikovwoodster_, do you know if it is possible to re-build the packages using barbican CI?19:57
agrebennikovI mean with the patch integrated19:58
agrebennikovsince otherwise I will have to path the code once I installed the packages. which is very unlikely19:59
*** dimtruck is now known as zz_dimtruck19:59
agrebennikovwoodster_, or, alternatively (as you said) I'll have to figure out why the api server doesn't build the schema for me19:59
*** rellerreller has quit IRC20:00
*** zz_dimtruck is now known as dimtruck20:01
*** edtubill has joined #openstack-barbican20:07
openstackgerritZhiQiang Fan proposed openstack/barbican: use thread safe fnmatch  https://review.openstack.org/30857120:26
woodster_agrebennikov: well, if I understand you, you are trying to run barbican from packaging, which might be disabling the auto-populate mode?20:28
agrebennikovwoodster_, not really. I install from packages, yes, but I cannot get the code to create the schema for me anyway. Even though I see cfg.BoolOpt('db_auto_create', default=True)20:30
woodster_agrebennikov: do you see logs at all, and if so any errors?20:31
agrebennikovwoodster_, I do see the log, but it doesn't have much sense.20:32
agrebennikovspawned uWSGI master process (pid: 25168)20:32
agrebennikov*** Stats server enabled on localhost:9314 fd: 6 ***20:32
agrebennikov*** starting uWSGI Emperor ***20:32
agrebennikovthats pretty much it20:32
woodster_agrebennikov: are you using debian packages or rpms?20:33
agrebennikovdeb20:33
agrebennikovwoodster_, this is comfusing me also20:33
agrebennikov*** Operational MODE: no-workers ***20:33
agrebennikov!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!20:33
agrebennikovno request plugin is loaded, you will not be able to manage requests.20:33
openstackagrebennikov: Error: "!!!!!!!!!!!!!" is not a valid command.20:33
woodster_agrebennikov: zigo might have some insights here...I think logging is tricky out of the box20:34
zigoo/20:34
agrebennikovseems so....20:34
zigoHow may I help?20:34
agrebennikovzigo, :)20:34
agrebennikovare you a master of logging?20:34
agrebennikov;)20:34
woodster_zigo: I'm trying to recall what you had said about running barbican from packages and logging20:34
woodster_agrebennikov: zigo is a deb packager for things openstack20:35
zigoIf I remember well, there was an issue with barbican daemons not accepting oslo.config options from the command line, no ?20:35
woodster_zigo: agrebennikov is trying to run barbican from packages, but were there follow on config steps that should be performed to get things working?20:35
woodster_zigo: I think so20:36
woodster_zigo: but that should just affect the logging portion of barbican correct?20:36
zigoThe issue is that you *cannot* rely on configuration files to set logging, because daemons are sharing a single config file, so it has to be set in the startup script (systemd, upstart, sysv-rc...)20:37
agrebennikovzigo, oh man.... this is just awsome)) do you guys work with those folks who are writing puppet-barbican?20:37
agrebennikov/usr/bin/uwsgi --master --die-on-term --emperor /etc/barbican/vassals --logto /var/log/barbican/barbican-api.log --stats localhost:931420:38
agrebennikovthis is how I have my barbican instance spawned20:38
zigoagrebennikov: This is not mitaka, as I removed the use of uwsgi in Mitaka ...20:38
zigoagrebennikov: You must be using Liberty, no ?20:38
agrebennikovzigo, right, this is liberty20:38
zigoagrebennikov: I do know EmlienM very well, as I used to be employed by eNovance (before they got aquired by Red Hat).20:39
zigoSo yes, I do work with puppet guys, though I'm not really sure about the support for Barbican.20:39
zigoagrebennikov: Also, are you running Ubuntu or Debian?20:40
agrebennikovubuntu20:40
zigoI *do not* maintain the barbican server package for Ubuntu, they do their own.20:40
woodster_zigo: oh so they might be adding their own secret sauce to the mix :)20:41
zigoThough the Liberty package may be the one I wrote.20:41
woodster_zigo: oh got it20:41
zigo(ie: they synched it from Debian at the time, and now decided to add their own secret bugs... :P)20:41
zigowoodster_: Here's the sever list that I maintain in Debian, the one with a U in front are packaged that are re-done by Ubuntu on top of all the Python module dependency which we work out in Debian http://paste.openstack.org/show/494888/20:42
woodster_zigo: more U's than not!20:43
woodster_agrebennikov: so do you have config files at /etc/barbican/...?20:45
*** asingh has quit IRC21:02
*** asingh has joined #openstack-barbican21:02
zigoagrebennikov: I would advise to *not* use the Canonical's pacakge, as it derives from what I did in Liberty, which is full of cruft compared to what I have now for Mitaka.21:09
zigoagrebennikov: Can you upgrade to Mitaka ?21:10
zigoI have Trusty backports for Mitaka as well if you need it.21:10
*** fredyx10 has quit IRC21:12
*** xek has quit IRC21:16
*** michael_ has quit IRC21:23
agrebennikovzigo, sorry for being absent - I was talking to xarses and alex21:28
agrebennikovso no, I cannot upgrade to mitaka(21:28
agrebennikovbut we can probably create our own packages if we got CI21:28
agrebennikovfor barbican21:28
*** xek has joined #openstack-barbican21:29
*** asingh has quit IRC21:31
*** alee has quit IRC21:37
*** alee has joined #openstack-barbican21:37
*** asingh has joined #openstack-barbican22:14
*** sigmavirus24 is now known as sigmavirus24_awa22:15
*** dimtruck is now known as zz_dimtruck22:20
*** spotz is now known as spotz_zzz22:21
*** gyee has quit IRC22:25
*** edtubill has quit IRC22:28
*** asingh has quit IRC22:38
*** asingh has joined #openstack-barbican22:39
*** asingh has quit IRC22:49
*** krotscheck is now known as krotscheck_dcm22:57
*** jhfeng has quit IRC22:58
*** edtubill has joined #openstack-barbican22:58
*** asingh has joined #openstack-barbican23:01
*** asingh has quit IRC23:18
*** jamielennox is now known as jamielennox|away23:51

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