13:01 PM
alastairp
2016-06-14 16640, 2016
13:01 PM
alastairp
3:00 PM <Gentlecat> some parts of the template could look better, I guess
2016-06-14 16600, 2016
13:04 PM
alastairp
oh, I like the filters at the top
2016-06-14 16602, 2016
13:04 PM
alastairp
I'll do that
2016-06-14 16608, 2016
13:04 PM
alastairp
otherwise it's pretty similar, yeah?
2016-06-14 16653, 2016
13:06 PM
Gentlecat
yeah, pretty much
2016-06-14 16613, 2016
13:07 PM
Gentlecat
table header could use a small update too
2016-06-14 16605, 2016
13:09 PM
kartikgupta0909
Gentlecat: is this flask.config same as the config.py or is it some other file which I need to change?
2016-06-14 16613, 2016
13:09 PM
kartikgupta0909
I cant really locate flask.config
2016-06-14 16633, 2016
13:09 PM
Gentlecat
it's a global config object (dictionary basically)
2016-06-14 16655, 2016
13:09 PM
Gentlecat
you can import values into it, which is what happens when the app is created
2016-06-14 16602, 2016
13:10 PM
Gentlecat
they are imported from config.py
2016-06-14 16621, 2016
13:10 PM
kartikgupta0909
okay is this happening automatically or I need to write it somewhere?
2016-06-14 16626, 2016
13:10 PM
Gentlecat
2016-06-14 16636, 2016
13:10 PM
Gentlecat
what's happening?
2016-06-14 16654, 2016
13:10 PM
kartikgupta0909
i did grep flask.config and I got nothing
2016-06-14 16600, 2016
13:11 PM
kartikgupta0909
i ll try the link you ve just sent
2016-06-14 16617, 2016
13:13 PM
Gentlecat
are you trying to find a module that contains configuration related code?
2016-06-14 16651, 2016
13:13 PM
Gentlecat
2016-06-14 16608, 2016
13:14 PM
ruaok
do we have any grub-reboot experts in the house?
2016-06-14 16613, 2016
13:14 PM
ruaok
zas and I are too stupid to use it.
2016-06-14 16629, 2016
13:14 PM
kartikgupta0909
No I just wanted to import a variable from config.py to templates/datasets/evaluate.html
2016-06-14 16656, 2016
13:14 PM
kartikgupta0909
and when I defined it in the config.py and tried to use it in the template it couldnt get the value
2016-06-14 16659, 2016
13:14 PM
kartikgupta0909
nor any error
2016-06-14 16644, 2016
13:15 PM
kartikgupta0909
i saw the code which is importing all the values defined in config.py automatically to the app.config
2016-06-14 16601, 2016
13:16 PM
kartikgupta0909
but I am still not able to access it in the template for some reason
2016-06-14 16606, 2016
13:16 PM
Gentlecat
how are you trying to import it?
2016-06-14 16606, 2016
13:16 PM
ruaok
kepstin: ping
2016-06-14 16614, 2016
13:16 PM
kartikgupta0909
{% if Eval_location: %}
2016-06-14 16630, 2016
13:16 PM
Gentlecat
you need to use global variable
2016-06-14 16632, 2016
13:16 PM
kartikgupta0909
Eval_location is a boolean in my config.py
2016-06-14 16638, 2016
13:16 PM
kepstin
Hi ruaok
2016-06-14 16644, 2016
13:16 PM
ruaok
moin kepstin.
2016-06-14 16645, 2016
13:16 PM
Gentlecat
config['Eval_location']
2016-06-14 16600, 2016
13:17 PM
ruaok
we're having some issues getting grub-reboot to work so we can test an older kernel on the gateways
2016-06-14 16615, 2016
13:17 PM
ruaok
but the setting never takes and we keep booting into the most recent kernel.
2016-06-14 16619, 2016
13:17 PM
ruaok
do you have any insights?
2016-06-14 16648, 2016
13:17 PM
kepstin
Is /boot on raid? What filesystem?
2016-06-14 16627, 2016
13:18 PM
ruaok
no raid at all, ext4
2016-06-14 16635, 2016
13:19 PM
kepstin
Hmm. That should be fine I think. You're using stock Ubuntu grub config?
2016-06-14 16647, 2016
13:19 PM
ruaok
I believe so.
2016-06-14 16658, 2016
13:19 PM
ruaok
zas should confirm when he gets back from his smoke brea
2016-06-14 16600, 2016
13:20 PM
ruaok
k
2016-06-14 16602, 2016
13:20 PM
kartikgupta0909
2016-06-14 16638, 2016
13:20 PM
kartikgupta0909
its not even printing anything
2016-06-14 16649, 2016
13:20 PM
kartikgupta0909
although it should when it goes to the else statement
2016-06-14 16606, 2016
13:22 PM
kepstin
ruaok: confirm that /boot/grub/grub.cfg has load_env and save_env commands in it
2016-06-14 16620, 2016
13:22 PM
Gentlecat
2016-06-14 16628, 2016
13:23 PM
ruaok
2016-06-14 16648, 2016
13:23 PM
ruaok
the top part of the file that contains all refs to load/save_end
2016-06-14 16649, 2016
13:23 PM
ruaok
env
2016-06-14 16625, 2016
13:24 PM
kepstin
ok, good
2016-06-14 16635, 2016
13:24 PM
kartikgupta0909
still no luck Gentlecat
2016-06-14 16627, 2016
13:25 PM
Gentlecat
well, try to output `config` from the template
2016-06-14 16631, 2016
13:25 PM
Gentlecat
see what values are there
2016-06-14 16642, 2016
13:25 PM
Gentlecat
do some debugging yourself
2016-06-14 16636, 2016
13:26 PM
kepstin
so, the issue is that grub-reboot is for old grub (0.9x), but you're using grub 2.0. The correct command is "grub-editenv - set next_entry=4" where 4 is the index in crub.cfg of the kernel you want
2016-06-14 16653, 2016
13:26 PM
ruaok
ahhh!
2016-06-14 16600, 2016
13:27 PM
ruaok
that explains the very confusing docs. :)
2016-06-14 16611, 2016
13:27 PM
Slurpee joined the channel
2016-06-14 16657, 2016
13:27 PM
kartikgupta0909
ahh, the variable isnt there
2016-06-14 16604, 2016
13:28 PM
kartikgupta0909
I ll have a look into it why it isnt there
2016-06-14 16641, 2016
13:28 PM
kepstin
ruaok: indexing is 0-based :)
2016-06-14 16600, 2016
13:29 PM
ruaok
where do you get the list that it current thinks it has?
2016-06-14 16619, 2016
13:29 PM
ruaok
ah, zas is already trying the next go. :)
2016-06-14 16623, 2016
13:29 PM
kepstin
ruaok: the generated /boot/grub/grub.cfg has all the kernels in it
2016-06-14 16624, 2016
13:30 PM
zas
it didnt work either
2016-06-14 16637, 2016
13:30 PM
zas
since booting on default kernel
2016-06-14 16607, 2016
13:32 PM
Gentlecat
2016-06-14 16615, 2016
13:32 PM
kepstin
I have to go to work now, gonna be on a bus for a while :/
2016-06-14 16643, 2016
13:33 PM
kepstin
i've only got one box with grub that I can play with to test stuff, and that won't be until this evening :/
2016-06-14 16625, 2016
13:35 PM
kartikgupta0909
Gentlecat: It worked. The variable needs to be in capital letters to be imported.
2016-06-14 16655, 2016
13:36 PM
ruaok
kepstin: the menuentry items in grub.cfg is a tree.
2016-06-14 16602, 2016
13:37 PM
ruaok
how do we get orginals out of that?
2016-06-14 16655, 2016
13:37 PM
kepstin
count them in depth-first traversal
2016-06-14 16601, 2016
13:38 PM
ruaok
2016-06-14 16601, 2016
13:38 PM
kepstin
iirc
2016-06-14 16634, 2016
13:38 PM
ruaok
ok, we want the 4.2.0 kernel to be default, and the 3.13.x kernel to be next.
2016-06-14 16642, 2016
13:38 PM
ruaok
lets both count and see if we arrive at the same values.
2016-06-14 16635, 2016
13:39 PM
kepstin
I get '3' for the 'Ubuntu, with Linux 3.16.0-73-generic'
2016-06-14 16648, 2016
13:39 PM
ruaok
we want 3.13, so that is 7
2016-06-14 16609, 2016
13:40 PM
kepstin
ah, wasn't paying enough attention there ;)
2016-06-14 16645, 2016
13:41 PM
ruaok
2016-06-14 16655, 2016
13:41 PM
ruaok
do we need to run update-grub?
2016-06-14 16641, 2016
13:42 PM
ruaok
sanity check, please kepstin
2016-06-14 16617, 2016
13:48 PM
kepstin
no, if it boots right now then it should be good
2016-06-14 16630, 2016
13:48 PM
ruaok
booted fine, into 4.2.0 kernel.
2016-06-14 16632, 2016
13:48 PM
ruaok
:(
2016-06-14 16618, 2016
13:49 PM
kepstin
grub loads the env file using its filesystem drivers and fails if it can't write to the file, iirc, which is why it can't be used on software raid or lvm
2016-06-14 16630, 2016
13:49 PM
kepstin
but plain ext4 should be ok, I think?
2016-06-14 16653, 2016
13:49 PM
ruaok
next_entry was reset, FWIW
2016-06-14 16631, 2016
13:50 PM
kepstin
hmm. does the kernel file /boot/vmlinuz-3.13.0-88-generic actually exist on the system?
2016-06-14 16602, 2016
13:51 PM
ruaok
2016-06-14 16629, 2016
13:52 PM
kepstin
cause if the env file is used - and it is, if the next_entry was reset - the only thing I can think of for it not using that entry is that it fails to load for some reason and falls back :/
2016-06-14 16653, 2016
13:53 PM
ruaok
2016-06-14 16616, 2016
13:54 PM
kepstin
so, you *can* manually edit the /boot/grub/grub.cfg file if you understand that it'll get overwritten by update-grub later
2016-06-14 16617, 2016
13:54 PM
zas
we are still unsure about the correct syntax, is there a way to test it ?
2016-06-14 16637, 2016
13:54 PM
kepstin
you can rewrite it to remove the submenu, and re-arrange the kernel you want to the top
2016-06-14 16648, 2016
13:54 PM
ruaok
do we maybe need 1>1 and 1>7 ?
2016-06-14 16650, 2016
13:54 PM
kepstin
then it'll work even if the next_entry stuff is all broken
2016-06-14 16659, 2016
13:54 PM
kepstin
and update-grub will reset it back to the stock
2016-06-14 16605, 2016
13:56 PM
kepstin
just have to be careful not to put in any syntax errors tho, since then you'll just get a grub rescue prompt :/
2016-06-14 16642, 2016
13:57 PM
kepstin
2016-06-14 16644, 2016
13:57 PM
kepstin
hmm.
2016-06-14 16659, 2016
13:57 PM
kepstin
^^ that should be the syntax to use for the variable, I think
2016-06-14 16609, 2016
13:58 PM
kepstin
looks like you can use either name or index
2016-06-14 16623, 2016
13:58 PM
ruaok
1>1 and 1>7 should work then?
2016-06-14 16628, 2016
13:59 PM
kepstin
1>1 should be Ubuntu, with Linux 4.2.0-38-generic (recovery mode)
2016-06-14 16655, 2016
13:59 PM
kepstin
i think 1>6 will be the 3.13 kernel
2016-06-14 16629, 2016
14:00 PM
ruaok
ah, yes each sub menu is based.
2016-06-14 16651, 2016
14:00 PM
zas
ruaok: try "1>6" ?
2016-06-14 16656, 2016
14:00 PM
kepstin
I guess grub-reboot should actually work with grub 2.0; it's a shell script or something that runs grub-editenv to update variables. might be distro-specific?
2016-06-14 16602, 2016
14:01 PM
MBJenkins
2016-06-14 16603, 2016
14:01 PM
MBJenkins
Michael Wiencek: Update translations from transifex.
2016-06-14 16645, 2016
14:01 PM
kepstin
alternately, "Advanced options for Ubuntu>Advanced options for Ubuntu" might work
2016-06-14 16656, 2016
14:01 PM
kepstin
er, "Advanced options for Ubuntu>Ubuntu, with Linux 3.13.0-88-generic"
2016-06-14 16621, 2016
14:02 PM
zas
2016-06-14 16641, 2016
14:02 PM
ruaok
2016-06-14 16642, 2016
14:02 PM
zas
kepstin: we tried already without success
2016-06-14 16611, 2016
14:03 PM
ruaok
I've tried single quotes, double quotes.
2016-06-14 16616, 2016
14:03 PM
ruaok
all get env block too small
2016-06-14 16616, 2016
14:04 PM
kepstin
... how big is it? do 'ls -l /boot/grub/grubenv'
2016-06-14 16643, 2016
14:04 PM
ruaok
-rw-r--r-- 1 root root 1009 Jun 14 13:47 /boot/grub/grubenv
2016-06-14 16658, 2016
14:04 PM
kartikgupta0909
alastairp: I have made the changes you suggested in yesterdays review. Please have a look whenever you get time
2016-06-14 16618, 2016
14:05 PM
kepstin
so about a kb? that seems like it would be big enough. weird :/
2016-06-14 16640, 2016
14:08 PM
kepstin
Could try using grub-editenv - create to blank it, then set the variable again
2016-06-14 16611, 2016
14:09 PM
kepstin
Blank will fall back to first kernel, so that should be safe
2016-06-14 16639, 2016
14:09 PM
ruaok
2016-06-14 16648, 2016
14:09 PM
ruaok
create worked. :)
2016-06-14 16620, 2016
14:10 PM
ruaok
rebooting
2016-06-14 16609, 2016
14:11 PM
ruaok
FINALLY!
2016-06-14 16611, 2016
14:11 PM
ruaok
thanks kepstin
2016-06-14 16642, 2016
14:20 PM
MBJenkins
2016-06-14 16610, 2016
14:23 PM
MBJenkins
2016-06-14 16646, 2016
14:23 PM
alastairp
kartikgupta0909: thanks
2016-06-14 16605, 2016
14:24 PM
kartikgupta0909
I ll start working on this weeks task
2016-06-14 16612, 2016
14:24 PM
alastairp
nice!
2016-06-14 16628, 2016
14:24 PM
alastairp
I've been doing some work here to export datasets
2016-06-14 16642, 2016
14:24 PM
alastairp
the process is very slow. We;re going to have to do some optimisations
2016-06-14 16650, 2016
14:24 PM
kartikgupta0909
oh great. That will be really helpful
2016-06-14 16657, 2016
14:24 PM
kartikgupta0909
Yeah I am ready to spend time on that
2016-06-14 16658, 2016
14:24 PM
ruaok
kepstin: problem continues on this kernel. :(
2016-06-14 16606, 2016
14:25 PM
ruaok
we'll proceed with the switch swap
2016-06-14 16611, 2016
14:25 PM
kartikgupta0909
will be an interesting task
2016-06-14 16622, 2016
14:25 PM
alastairp
I think the slowest part is that we are exporting 1 item at a time. I think we should increase it to 100/time or maybe more
2016-06-14 16636, 2016
14:25 PM
alastairp
we should also look at protobufs
2016-06-14 16602, 2016
14:26 PM
alastairp
I have a list of serialization methods I want to try, to see which one is the smallest
2016-06-14 16620, 2016
14:26 PM
kartikgupta0909
oh if you want I could spend sometime on that
2016-06-14 16630, 2016
14:26 PM
kartikgupta0909
before I start working on that
2016-06-14 16600, 2016
14:27 PM
MBJenkins