1:06 AM
dimtruck is now known as zz_dimtruck
1:16 AM
zhurong joined the channel
2:32 AM
zz_dimtruck is now known as dimtruck
3:11 AM
devkulkarni joined the channel
3:53 AM
mkam joined the channel
3:54 AM
mkam has quit
4:02 AM
dimtruck is now known as zz_dimtruck
4:03 AM
zz_dimtruck is now known as dimtruck
4:54 AM
devkulkarni has quit
5:06 AM
dimtruck is now known as zz_dimtruck
6:49 AM
zz_dimtruck is now known as dimtruck
8:28 AM
itisha joined the channel
9:43 AM
dimtruck is now known as zz_dimtruck
10:00 AM
zhurong has quit
12:27 PM
Ablu
How do I create the db required by solum?
12:27 PM
I am trying to get a working sqlite db
12:28 PM
i tried to run db_manage upgrade. But that fails with some syntax errors... But I do not want to upgrade anyway, right? I only want a fresh new db i guess
12:28 PM
But I cannot find a script for creating that
13:18 PM
zhurong joined the channel
13:31 PM
muralia joined the channel
14:13 PM
zhurong has quit
14:22 PM
devkulkarni joined the channel
14:22 PM
devkulkarni
good morning / good afternoon / good evening
14:29 PM
mkam joined the channel
14:31 PM
vijendar joined the channel
14:33 PM
good morning vijendar
14:34 PM
vijendar
good morning devkulkarni
14:38 PM
mkam has quit
14:38 PM
muralia_ joined the channel
14:38 PM
mkam joined the channel
14:41 PM
muralia has quit
14:53 PM
Ablu
Hi
14:53 PM
<Ablu> How do I create the db required by solum?
14:53 PM
<Ablu> I am trying to get a working sqlite db
14:53 PM
<Ablu> i tried to run db_manage upgrade. But that fails with some syntax errors... But I do not want to upgrade anyway, right? I only want a fresh new db i guess
14:53 PM
<Ablu> But I cannot find a script for creating that
14:53 PM
devkulkarni: can you help me there?
14:54 PM
I am in a lesson at the moment. But I will read later.
14:58 PM
devkulkarni
Ablu: ack
15:00 PM
Ablu
devkulkarni: well no hurry. I can still write stuff :) only wanted to raise the questions so one can see them :)
15:01 PM
devkulkarni1 joined the channel
15:03 PM
devkulkarni has quit
15:05 PM
krotscheck is now known as krotscheck_dcm
15:08 PM
devkulkarni1
solum-db-manage --config-file $SOLUM_CONF_DIR/$SOLUM_CONF_FILE upgrade head where $SOLUM_CONF_DIR/$SOLUM_CONF_FILE will be location of solum.conf file (/etc/solum/solum.conf)
15:08 PM
15:09 PM
basically solum-db-manage will start from the first revision and apply all the revisions up until the head
15:11 PM
openstackgerrit
15:43 PM
16:38 PM
devkulkarni1
16:54 PM
vijendar has quit
17:04 PM
vijendar joined the channel
17:20 PM
itisha has quit
17:21 PM
devkulkarni1 has quit
17:31 PM
Ablu
devkulkarni2: hm ok.. i only ran upgrade without head as parameter
17:35 PM
devkulkarni joined the channel
17:37 PM
zz_dimtruck is now known as dimtruck
17:37 PM
devkulkarni has quit
17:39 PM
devkulkarni2: hm. I get: sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) near "DROP": syntax error [SQL: u'ALTER TABLE "plan" DROP COLUMN deploy_keys_uri']
17:47 PM
dimtruck is now known as zz_dimtruck
18:02 PM
devkulkarni joined the channel
18:03 PM
zz_dimtruck is now known as dimtruck
18:03 PM
dimtruck is now known as zz_dimtruck
18:14 PM
devkulkarni: hm ok.. i only ran upgrade without head as parameter
18:14 PM
devkulkarni has quit
18:14 PM
ehm
18:14 PM
wait...
18:14 PM
Ablu>devkulkarni2: hm. I get: sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) near "DROP": syntax error [SQL: u'ALTER TABLE "plan" DROP COLUMN deploy_keys_uri']
18:14 PM
that was what i wanted to copy, paste :)
18:15 PM
vijendar has quit
18:15 PM
ehm.
18:19 PM
devkulkarni joined the channel
18:20 PM
Ablu>Ablu>devkulkarni2: hm. I get: sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) near "DROP": syntax error [SQL: u'ALTER TABLE "plan" DROP COLUMN deploy_keys_uri']
18:20 PM
vijendar joined the channel
18:22 PM
devkulkarni
Ablu: what command are you running?
18:22 PM
is there a stack trace?
18:24 PM
Ablu
devkulkarni2: yeah the end of it. I ran upgrade head
18:24 PM
i think i got the same error when i tried upgrade alone earlier today
18:24 PM
let me get the full trace...
18:25 PM
18:26 PM
devkulkarni: one cannot drop columns in sqlite. So that is the issue I guess
18:26 PM
though i do not understand why it needs to drop a colum for creating a new db?
18:26 PM
does it start with the oldest version and slowly upgrades it?
18:26 PM
I guess I need to use mysql then?
18:36 PM
mkam has quit
18:43 PM
devkulkarni has quit
18:59 PM
vijendar has quit
19:06 PM
vijendar joined the channel
19:06 PM
devkulkarni joined the channel
19:06 PM
devkulkarni
Ablu: back
19:07 PM
Ablu
devkulkarni: hi :)
19:07 PM
so i guess i need to use mysql?
19:07 PM
devkulkarni
looks like that might be the case here
19:08 PM
Ablu
devkulkarni: so it always takes the oldest db which exists and upgrades it through all versions?
19:08 PM
devkulkarni
yes, alembic migrations work that way. it starts with the very first revision and applies all the revisions up until head
19:14 PM
vijendar has quit
19:15 PM
vijendar joined the channel
19:32 PM
vijendar has quit
19:38 PM
mkam joined the channel
19:44 PM
vijendar joined the channel
19:51 PM
julim joined the channel
20:12 PM
devkulkarni has quit
20:13 PM
devkulkarni joined the channel
20:15 PM
devkulkarni has quit
20:30 PM
vijendar has quit
20:32 PM
devkulkarni joined the channel
20:33 PM
vijendar joined the channel
20:58 PM
gpilz joined the channel
21:12 PM
gpilz has quit
21:21 PM
vijendar has quit
21:28 PM
devkulkarni has quit
21:34 PM
devkulkarni joined the channel
21:37 PM
devkulkarni has quit
21:37 PM
devkulkarni joined the channel
21:47 PM
gpilz joined the channel
22:15 PM
devkulkarni has quit
22:28 PM
mkam has quit
22:46 PM
julim has quit