Saturday, 2012-04-07

*** cjwilson has quit IRC00:02
*** slyphon has quit IRC00:04
*** spiffxp has quit IRC00:12
*** samkottler has quit IRC00:24
*** mdrnstm has quit IRC00:36
*** maplebed has quit IRC00:57
*** issackelly has quit IRC00:58
*** heckj has quit IRC00:59
*** roge has quit IRC00:59
*** mnewby has quit IRC01:00
*** littleidea has quit IRC01:02
*** Mandell has quit IRC01:13
*** reed has quit IRC01:13
*** mnewby has joined #openstack-dev01:16
*** rods has quit IRC01:22
*** paulstallworth has joined #openstack-dev01:28
*** winston-d has joined #openstack-dev01:29
*** novas0x2a|lapto1 has quit IRC01:32
*** littleidea has joined #openstack-dev01:34
*** roge has joined #openstack-dev01:40
*** mdrnstm has joined #openstack-dev01:42
*** mnewby has quit IRC01:52
*** Transformer has joined #openstack-dev02:00
*** mnewby has joined #openstack-dev02:01
*** Transformer has quit IRC02:04
*** pixelbeat has quit IRC02:06
*** winston-d has quit IRC02:08
*** Ryan_Lane has quit IRC02:10
*** mnewby has quit IRC02:11
*** deshantm__ has joined #openstack-dev02:14
*** mjfork has quit IRC02:16
*** deshantm_ has quit IRC02:18
*** Beryllium has quit IRC02:30
*** shiju has joined #openstack-dev02:37
*** vricci has joined #openstack-dev02:38
*** roge has quit IRC02:41
*** pengyong has quit IRC02:41
*** darkhorse has quit IRC02:54
*** darkhorse has joined #openstack-dev02:56
*** dtroyer_zzz is now known as dtroyer03:05
*** asalkeld has quit IRC03:14
*** deshantm__ is now known as deshantm03:22
*** Mandell has joined #openstack-dev03:52
*** infernix has quit IRC04:22
*** deshantm has quit IRC04:22
*** dtroyer is now known as dtroyer_zzz04:32
*** sleepsonzzz is now known as sleepsonthefloor04:33
*** mnewby has joined #openstack-dev04:42
*** paulstallworth_ has joined #openstack-dev04:58
*** paulstallworth has quit IRC04:59
*** paulstallworth_ is now known as paulstallworth04:59
*** darkhorse has quit IRC05:01
*** Ryan_Lane has joined #openstack-dev05:02
*** lloydde has joined #openstack-dev05:03
*** hattwick has quit IRC05:03
*** paulstallworth has quit IRC05:12
*** paulstallworth has joined #openstack-dev05:14
*** Mandell has quit IRC05:15
*** Mandell has joined #openstack-dev05:15
*** devananda has quit IRC05:17
*** devananda has joined #openstack-dev05:20
*** lloydde has quit IRC05:24
*** mnewby has quit IRC05:51
*** mnewby has joined #openstack-dev05:56
*** dubsquared1 has quit IRC06:04
*** littleidea has quit IRC06:17
*** andrewsben is now known as andrewsben_zz06:17
*** bepernoot has joined #openstack-dev06:22
*** dachary has joined #openstack-dev06:26
*** paulstallworth has quit IRC06:27
*** bepernoot has quit IRC06:43
*** jaypipes has quit IRC07:35
*** jaypipes has joined #openstack-dev07:35
*** bepernoot has joined #openstack-dev07:38
*** shiju has quit IRC07:50
*** hattwick has joined #openstack-dev07:59
*** bepernoot has quit IRC08:01
*** maploin has joined #openstack-dev09:18
*** maploin has quit IRC09:18
*** maploin has joined #openstack-dev09:18
*** negronjl has quit IRC09:23
*** maploin has quit IRC09:25
*** Mandell has quit IRC09:27
*** devananda has quit IRC09:30
*** devananda has joined #openstack-dev09:31
*** negronjl has joined #openstack-dev09:36
*** bepernoot has joined #openstack-dev10:15
*** bepernoot has quit IRC10:15
*** zigo has joined #openstack-dev10:31
*** bepernoot has joined #openstack-dev10:48
*** Ryan_Lane has quit IRC10:56
*** asalkeld has joined #openstack-dev11:01
*** maploin has joined #openstack-dev11:10
*** maploin has joined #openstack-dev11:10
*** pixelbeat has joined #openstack-dev11:15
*** rods has joined #openstack-dev11:16
*** maploin has quit IRC11:54
*** sannes has quit IRC11:55
*** sannes1 has joined #openstack-dev11:55
*** sannes1 has quit IRC12:08
*** sannes has joined #openstack-dev12:08
*** sannes has quit IRC12:10
*** sannes has joined #openstack-dev12:10
*** longhudou has joined #openstack-dev12:23
*** bepernoot has joined #openstack-dev12:27
*** asalkeld has quit IRC12:32
*** mjfork has joined #openstack-dev12:33
*** roge has joined #openstack-dev12:35
*** mjfork has quit IRC12:37
*** longhudou has quit IRC12:38
*** vricci has joined #openstack-dev12:54
*** mjfork has joined #openstack-dev12:56
*** pixelbeat has quit IRC12:56
*** maploin has joined #openstack-dev12:59
*** maploin has joined #openstack-dev12:59
*** ches has quit IRC13:29
*** ches has joined #openstack-dev13:29
*** maploin has quit IRC13:29
*** roge has quit IRC13:35
*** bepernoo1 has joined #openstack-dev13:40
*** bepernoot has quit IRC13:42
*** sleepsonthefloor is now known as sleepsonzzz13:44
*** bepernoot has joined #openstack-dev13:45
*** bepernoo1 has quit IRC13:45
*** dtroyer_zzz is now known as dtroyer13:49
*** bepernoo1 has joined #openstack-dev13:50
*** ncode has joined #openstack-dev13:50
*** ncode has joined #openstack-dev13:50
*** bepernoot has quit IRC13:51
*** dtroyer is now known as dtroyer_zzz13:55
*** lloydde has joined #openstack-dev13:58
*** roge has joined #openstack-dev14:20
*** dachary has quit IRC14:20
*** ncode_ has joined #openstack-dev14:20
*** ncode_ has joined #openstack-dev14:20
*** ncode_ has quit IRC14:20
*** Mandell has joined #openstack-dev14:22
*** ncode has quit IRC14:23
*** roge has quit IRC14:32
*** littleidea has joined #openstack-dev14:47
*** paulstallworth has joined #openstack-dev15:02
*** spiffxp has joined #openstack-dev15:07
*** paulstallworth has quit IRC15:12
*** Mandell has quit IRC15:13
*** roge has joined #openstack-dev15:18
*** lloydde has quit IRC15:19
*** roge has joined #openstack-dev15:21
*** lloydde has joined #openstack-dev15:26
*** Mandell has joined #openstack-dev15:27
*** roge has quit IRC15:35
*** bepernoo1 has quit IRC15:44
*** lloydde has quit IRC15:50
*** lloydde has joined #openstack-dev15:50
*** Mandell_ has joined #openstack-dev15:51
*** Mandell has quit IRC15:51
*** lloydde has quit IRC15:51
*** littleidea has quit IRC15:57
*** dachary has joined #openstack-dev16:02
*** paulstallworth has joined #openstack-dev16:27
*** paulstallworth has quit IRC16:34
*** bepernoot has joined #openstack-dev16:34
*** Mandell_ has quit IRC16:47
*** lloydde has joined #openstack-dev16:49
*** deshantm has joined #openstack-dev16:51
*** darkhorse has joined #openstack-dev16:56
*** lloydde has quit IRC17:00
*** dtroyer_zzz is now known as dtroyer17:15
*** dolphm has joined #openstack-dev17:15
*** bepernoot has quit IRC17:36
*** dolphm has quit IRC18:08
*** dtroyer is now known as dtroyer_zzz18:13
*** Radium has joined #openstack-dev18:22
*** mnewby has quit IRC18:23
*** Mandell has joined #openstack-dev18:24
*** mnewby has joined #openstack-dev18:25
*** ncode has joined #openstack-dev18:25
*** dwalleck has joined #openstack-dev18:29
*** ncode has quit IRC18:30
*** ncode has joined #openstack-dev18:33
*** ncode has joined #openstack-dev18:33
*** ncode has quit IRC18:42
*** bepernoot has joined #openstack-dev18:47
*** mnewby_ has joined #openstack-dev18:53
*** spiffxp has quit IRC18:55
*** mnewby__ has joined #openstack-dev18:56
*** mnewby has quit IRC18:57
*** mnewby__ is now known as mnewby18:57
*** mnewby_ has quit IRC18:58
*** bepernoot has quit IRC18:58
*** ncode has joined #openstack-dev19:02
*** ncode has joined #openstack-dev19:02
*** ncode has quit IRC19:02
*** bepernoot has joined #openstack-dev19:13
*** dolphm has joined #openstack-dev19:20
*** bepernoot has quit IRC19:20
*** hashar has joined #openstack-dev19:22
*** sleepsonzzz is now known as sleepsonthefloor19:34
*** sleepsonthefloor is now known as sleepsonzzz19:42
*** dolphm has quit IRC19:44
*** zigo has quit IRC19:44
*** mnewby_ has joined #openstack-dev19:51
*** mnewby has quit IRC19:55
*** mnewby_ is now known as mnewby19:55
*** roge has joined #openstack-dev20:18
*** bepernoot has joined #openstack-dev20:22
*** dtroyer_zzz is now known as dtroyer20:27
*** pixelbeat has joined #openstack-dev20:36
*** bepernoot has joined #openstack-dev20:38
*** bepernoot has quit IRC20:43
*** andrewsmedina has quit IRC20:55
*** deshantm_ has joined #openstack-dev21:15
*** andrewsmedina has joined #openstack-dev21:15
*** deshantm has quit IRC21:18
*** Ryan_Lane has joined #openstack-dev21:20
*** blamar has joined #openstack-dev23:02
*** mikal has joined #openstack-dev23:03
mikalAnyone got any hot tips on how to debug sqlalchemy migrations?23:05
mikalSpecifically, I keep getting:23:05
mikal  File "/usr/lib/python2.7/dist-packages/sqlalchemy/sql/compiler.py", line 1527, in _requires_quotes23:05
mikal    lc_value = value.lower()23:05
mikalAttributeError: 'int' object has no attribute 'lower'23:05
mikalFrom deep down in the sqlalchemy goo23:06
blamarmikal: Yeah, that's never pretty. Are you trying to drop columns?23:12
mikalYeah, I thought what I was doing was relatively simple...23:12
blamarBelieve me, it should be.23:12
mikalI'm just trying to update the block_device_mapping table to using instance UUIDs instead of instance IDs.23:12
mikalThere is a drop of an int column in there at the end of the update23:12
mikalThe best bit is the code is largely copied from a previous migration, which just works23:13
blamarmigrate has been the biggest pain in my side…hours of unnecessary debugging only to end up doing raw SQL migrations in the end23:13
mikalI couldn't find an example of that in the existing migrations23:15
blamarmikal: You'll see that every once and a while we'll have .sql files in the migrate_repo directory (I'm assuming you're talking about Nova)…that means that we couldn't do the migration with the migration lib so we resorted to raw SQL23:15
mikalI'm basically copying 064_change_instance_id_to_uuid_in_instance_actions.py23:15
mikalAhhh, ok23:15
mikalThey seem to mostly be for sqlite? Which is what I am using when I run the unit tests.23:16
blamarmikal: Right, sqlite has issues dropping columns from what I remember23:17
blamarLike, it doesn't support it23:17
mikalHeh23:17
mikalSo... this might all be a sqlite problem?23:17
blamarWell, the accepted strategy is to recreate the table without the column and then migrate all the data over.23:18
mikal076_sqlite_upgrade.sql is kind of funny to read23:18
blamarpython-migrate is supposed to do that for you, but it fails miserably23:18
mikalWith a .sql file, right?23:18
mikalNot in python?23:18
blamarYeah, we end up doing it with sql, create the table and then export/import into the new one. Rename and you're done.23:19
mikalOk. I'll give that a try then23:19
mikalAnything has to be better that what I am trying to do now23:19
mikalReading 076 as an example...23:20
mikalSo the migration is provided in python, and then the .sql overrides that for specific migrations?23:20
*** littleidea has joined #openstack-dev23:23
blamarmikal: I *believe* what happens is the python one is used for mysql migrations and .sql is used for sqlite…but I could be mistaken.23:24
mikalHmmm, the engine name is in the sql file, so I am hoping it depends on what overrides you provide23:24
blamarmikal: Actually no, you're right…it'll override the upgrade.23:24
mikalIs there a guide somewhere for how to write these? Or do people just learn this stuff the hard way?23:25
blamarNot sure why the python file for that one has an upgrade section though...23:25
blamarmikal: Yeah, sorry :\ hard mode for now23:25
mikalNP, just making sure I'm not doing this the hard way unnessesarily23:25
*** mikal has quit IRC23:26
blamarmikal: Migrations have always been something we're always looking to improve, but no results yet23:26
blamarcomplicated23:26
*** spiffxp has joined #openstack-dev23:27
*** mikal has joined #openstack-dev23:28
*** mikal has quit IRC23:28
*** mikal has joined #openstack-dev23:32
mikalSorry about that. I need to find an IRC client which doesn't suck so much.23:34
*** spiffxp has quit IRC23:40
*** dachary has quit IRC23:45
*** andrewsmedina has quit IRC23:50
*** andrewsmedina has joined #openstack-dev23:57

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