Tuesday, 2017-02-07

*** pleia2_ is now known as pleia201:04
*** yfried has joined #openstack-shade02:26
*** yfried has quit IRC03:16
*** gouthamr has quit IRC03:26
*** yfried has joined #openstack-shade04:28
*** yfried has quit IRC04:45
*** jamielennox is now known as jamielennox|away07:59
*** jamielennox|away is now known as jamielennox08:06
*** abregman has joined #openstack-shade08:32
*** yfried has joined #openstack-shade08:37
*** abregman is now known as abregman|afk10:31
*** cdent has joined #openstack-shade10:51
*** abregman|afk is now known as abregman12:00
*** purplerbot has quit IRC12:15
*** purplerbot has joined #openstack-shade12:15
*** cdent has quit IRC12:30
*** ioggstream has joined #openstack-shade13:24
*** gouthamr has joined #openstack-shade14:48
*** cdent has joined #openstack-shade15:14
*** gouthamr has quit IRC15:22
*** gouthamr has joined #openstack-shade15:29
*** gouthamr has quit IRC15:30
*** larainema has quit IRC15:46
*** yfried has quit IRC16:20
*** openstackgerrit has quit IRC16:35
*** abregman has quit IRC17:35
*** gouthamr has joined #openstack-shade18:02
*** ioggstream has quit IRC18:09
*** gouthamr has quit IRC18:35
*** greenlight_ has joined #openstack-shade19:32
*** gouthamr has joined #openstack-shade19:41
*** gouthamr has quit IRC19:41
*** greenlight_ has left #openstack-shade19:48
*** yfried has joined #openstack-shade20:02
*** yfried has quit IRC20:28
*** ianw has quit IRC21:07
*** ianw has joined #openstack-shade21:07
*** ioggstream has joined #openstack-shade21:20
*** gouthamr has joined #openstack-shade21:21
*** cdent has quit IRC21:36
*** jamielennox is now known as jamielennox|away21:42
*** gouthamr has quit IRC21:45
dhellmannmordred : if I want to boot an ephemiral instance and attach a volume, is there a secret incantation? I keep getting "Invalid input for field/attribute boot_index. Value: None. None is not of type 'integer"22:19
morgandhellmann: did you speak it in latin, backwards.... because......... >.>22:20
morgandhellmann: sorry, let me be less snarky22:20
morgani dunno off the top of my head mordred might though.22:20
dhellmannI'm using this ansible snippet: http://paste.openstack.org/show/598019/22:20
dhellmannit worked on dreamhost, but all of their instances boot from volumes (I think)22:20
mordreddhellmann: the actual incantation is INSANE to do that ... but we should be hiding the crazy in shade22:20
dhellmannI'm using my devstack host now, and it doesn't work22:20
morganmordred: oh you translate it to ancient sumerian for dhellmann then? :P22:21
dhellmannmordred : I'm passing stuff to shade via ansible, so...22:21
dhellmannthis version has the volume setup too: http://paste.openstack.org/show/598020/22:23
mordreddhellmann: ok. you may have found a bug22:23
dhellmannwhee!22:23
* mordred looking at api spec real quick22:23
mordredhttps://github.com/openstack-infra/shade/blob/master/shade/openstackcloud.py#L5176-L519122:24
mordredis the seciton in question22:24
mordred(please note the wonderful format that is expected to be passed in)22:25
dhellmannour apis are lovely22:25
dhellmannwhat is boot_index even supposed to be?22:25
dhellmannwell, setting boot_from_volume=yes doesn't help22:26
mordredhttp://docs.openstack.org/developer/nova/block_device_mapping.html#block-device-mapping-v222:26
mordred"Setting a negative value or None indicates that the device should not be used for booting. The simplest usage is to set it to 0 for the boot device and leave it as None for any other devices."22:26
* mordred sighs22:26
mordredso apparently that's not true anymore22:26
dhellmannI guess now it must be a negative value22:26
dhellmannlet me try changing my copy of shade locally to see if -1 works22:26
mordredcool22:26
mordredI also wonder if just leaving it out of the payload works too22:27
dhellmannI'll try both22:27
dhellmannwe should have some regression tests using shade in the gate22:28
mordredwow. from the current nova api guide: block_device_mapping_v2.boot_index body string22:28
mordreddhellmann: yah - turns out we have some functional tests in shade that catch a lot of regressions22:28
dhellmann-1 worked22:28
mordred\o/22:28
dhellmannI'll submit that patch22:29
mordredthanks - I'm going to go poke the nova team to see ifthis is actually a nova bug22:29
dhellmannk22:29
dhellmannI'll try leaving it out next22:29
dhellmannoh, interesting, you're passing '0' elsewhere22:30
dhellmannrather than 022:30
dhellmannI used -1 and that worked22:31
mordredthe docs _say_ string :)22:31
dhellmannmordred: leaving it out also seems to work, which version do you prefer?22:31
dhellmannmaybe '-1' would be more backwards compatible22:31
dhellmanntrying '-1' now22:32
*** ioggstream has quit IRC22:32
dhellmannthat seems to work, too22:32
mordreddhellmann: my hunch is nova bug if the code worked on dreamhost, and it's in shade like that which means we _hopefully_ tested it at some point22:33
mordreddhellmann: but honestly, I think '-1', -1 and just leaving it out all seem like lovely solutions22:33
mordredwhichever feels good to you22:34
dhellmannI guess I could test against dreamhost, too, to make sure it works there, too22:34
clarkbfwiw the volume attachment boot dance is one of my least favorite things in openstack right now22:36
clarkbthere are no good consistent ways to determine where the volume is attached, and you have to do dance like things in order to partition and format and mount in the right order before things get configured to use disk22:37
morganclarkb: ugh22:41
morganclarkb: double ugh22:41
morganclarkb: triple ugh22:41
morganclarkb: unfun.22:41
clarkbmorgan: ya its different between kvm and xen and you almost need a "pause at boot right here so that I can do all the things nthat I need to do before you attempt to do things like write logs to disk or start services or run config management"22:41
*** jamielennox|away is now known as jamielennox22:42
clarkbmorgan: tldr is that i have laerned what I really want most of the time is manilla :P22:42
clarkbbut I haven't actually been able to use it yet as I don't think any of our public clouds offer it22:42
morganright22:42
morgani mean... it almost sounds like something cinder should be doing vs *YAOS* (that would be yet-another-openstack-service)22:43
morganunless cinder has just punted on volume attachment boot things.22:43
mordreddhellmann: this makes me worry that we don't have a functional test of attaching a non-boot volume at boot time22:43
morganmordred: we probably dont22:43
clarkbmorgan: I dig in a while back and cinder can format but only to swap I think22:43
morganclarkb: *blink*.22:44
mordredmorgan: well, I believe it's actualy _nova_ that does cinder volume attachment on boot22:44
morganclarkb: i.. that makes me sad.22:44
clarkbmordred: that is when I discovered that you can use nova api as a key value store beacuse random things like image format don't actually get type checked22:44
morganclarkb: i should be able to say "give me volume, size X, partition table y, format Z"22:44
morganthis sounds exactly like a cinder thing22:44
mordredclarkb: well - they've fixed the type checking now22:44
clarkbmordred: nice!22:45
mordredclarkb: starting in microversion something something22:45
morganmordred: yay minor improvements22:45
*** gouthamr has joined #openstack-shade22:45
morgan(minor improvements go a long way for good UX)22:45
mordredthey do indeed22:45
morgan(not being snarky there, seriously, yay)22:45
clarkbmorgan: but ya one of our struggles is we want to boot instance and do something like format an ext4 fs on cinder volume then attach it under say /var/logs22:45
clarkbyou can't really use config management for that beacuse by the time config management runs its too late22:46
morganclarkb: the way i see it, give me a volume, size x, partition table looks like y, format z, cinder gives you a guid/uuid of the fs you can mount or of partitions/fs22:46
morganwhatever22:47
morgana clear idea of what you'd use to mount the thing22:47
morganthen you have it for config management22:47
morganit's a bit of a dance still, but doesn't need a *pause* go do things *unpause* boot22:47
*** openstackgerrit has joined #openstack-shade22:47
openstackgerritDoug Hellmann proposed openstack-infra/shade master: pass -1 for boot_index of non-boot volumes  https://review.openstack.org/43046522:47
clarkbto make things even more exciting cloud init has tried to address this by having format and mount rules except then clouds turned it on by default making it even harder for you to mount things elsewhere...22:48
morgani... ugh22:48
morgannooooo22:48
* morgan still gets the clear feeling most people who write the openstack APIs never, ever, ever, have to use them22:49
openstackgerritMonty Taylor proposed openstack-infra/shade master: Add test of attaching a volume at boot time  https://review.openstack.org/43046822:52
mordreddhellmann, clarkb, morgan: ^^ let's see if that breaks without doug's patch. then if it does, we can rebase it22:52
morgancool22:53
dhellmannmordred, morgan : https://bugs.launchpad.net/nova/+bug/1662699 if you want to watch along22:55
openstackLaunchpad bug 1662699 in OpenStack Compute (nova) "API documentation and behavior do not match for booting with attached volumes" [Undecided,New]22:55
mordreddhellmann: yay! we've hopefully made openstack a little bit better today22:56
dhellmannone drop of water at a time22:58
openstackgerritMonty Taylor proposed openstack-infra/shade master: Add test of attaching a volume at boot time  https://review.openstack.org/43046823:48
mordredthat had an error - I want to see the actual error happen23:49
mordreds/an error/a pep8 error/23:49
mordredclarkb: feel like popping https://review.openstack.org/#/c/430465 with a +2 or a +A?23:49
clarkbsure let me review23:50
clarkbI +2'd as you mentioned wanting to make sure tests work23:53

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