/srv/irclogs.ubuntu.com/2012/06/14/#ubuntu-installer.txt

mptxnox, hi, I'm working on the LVM design again. When you make a logical volume, do you get to name it? If so, what are the constraints on the name?11:36
cjwatsonmpt: Yes, you get to name it.  The valid names are documented in http://manpages.ubuntu.com/manpages/precise/en/man8/lvm.8.html#contenttoc711:38
mpta-z A-Z 0-9 + _ . -11:40
mptThanks cjwatson11:41
mptI wonder what a sensible default name would be11:41
cjwatsonLet me check what partman-lvm does.11:41
mptlv1, lv2, etc?11:42
cjwatsonCan't say sequence numbers are desperately pleasant.11:42
cjwatsonDoes it need a default?  LV names are supposed to be human-meaningful; that's kind of one of the benefits.11:42
cjwatsond-i doesn't supply a default name and I don't remember hearing complaints about that.11:43
cjwatsonI tend to name them based on what I plan to use them for ...11:43
mptIt doesn't need a default, it's just a choice between having a default (pre-selected for typing over) vs. a greater possibility of presenting an error message11:44
mpt(though that error message would still be needed if you explicitly tried to set the name to "")11:44
cjwatsonOr one of the special reserved names.11:45
cjwatsonPeople aren't likely to use "pvmove" by accident, but "snapshot" isn't that far out of the question.11:46
mptMaybe the same error for that, hopefully a slightly different one11:46
mptHaving anything exposed in Ubiquity opens it up to a wider range of audience, and therefore complaints, than d-i :-)11:46
cjwatsonPerhaps.  The flip side is that in some ways its users tend to be a bit more conventional.11:47
cjwatsonArguably.11:48
xnoxmpt: I named my LVM Group as interalhdd11:54
xnoxmpt: individual volumes I named after the mountpoint - e.g full name endedup with internalhdd/root internallhdd/home11:55
mptThere's such a thing as an LVM group?12:03
mptoh, huh12:04
cjwatsonvolume group12:04
mptOh, a "volume group" is what I thought was called a "logical volume"12:05
mptok12:05
xnox/dev/sda + /dev/sdb (physical volumes) = (physical group) => (logical group) "internalhdd"12:06
cjwatsons/physical group/volume group/12:06
xnox(logicalgroup) "internalhdd" => logical volumes, e.g. root home usr, with mount points and filesystems12:06
mptxnox, hm, so are "internalhdd/root" and "internalhdd/home" partitions you put on this logical volume group?12:06
xnoxyeap. you partition a volume group into logical volumes with is transperant/equivalent to partitioning a drive into partitions12:07
cjwatson"internalhdd" is a VG; "root" and "home" are LVs.  You put filesystems on LVs.12:07
mptOkay, I have sketches of two possible designs for this, I'll scan them and you can see what you think12:16
* xnox is excited12:17
mptxnox, http://imgur.com/RnyVL12:23
mptSo in the first one you have separate panes for (a) all the physical disks and (b) all the current VGs12:24
mptand funnel-like shading between the two, to show which physical disks make up which VG12:25
mptIn the second, a single tree view, with a branch at the start for any physical disks that aren't currently in a VG12:26
mptDrawback of the first design is that it could be a bit cramped horizontally. Drawback of the second design is that if you have lots of VGs, you might not be able to see a VG, and the disk you want to add to it, simultaneously.12:28
cjwatsonPVs (the constituent elements of VGs) are normally partitions rather than disks (although it's technically possible to use whole disks for them).12:31
cjwatsonI generally strongly recommend using partitions because that way it's clearer where to put things like boot loaders.12:31
cjwatsonSo I would s/disks/partitions/g there I think.12:32
mptoh, huh12:32
mptSo what does "physical" mean, then, if not "something you can hold in your hand"?12:32
mptOr would knowing that make my head hurt?12:32
cjwatsonIt means something with defined physical extents on a disk.12:32
cjwatsonRather than something that's free to move around at will.12:32
cjwatsons/defined/fixed/12:32
mptIf a PV can be a partition, and LVGs can be partitioned, does that mean LVM can be nested?12:33
cjwatsonIt's more or less the same metaphor as physical vs. virtual memory12:33
xnoxphysical volume can be: whole disk (sda), parition (sda1), complex device (crypt), already assembled raid device (md0)12:33
cjwatsonPass :-)  But you don't normally partition LVs.12:33
cjwatsonIn principle you might be able to use an LV as a PV, but, err, maybe the tools prohibit it because it's stupid.  I've never tried.12:33
xnoxmpt: no, lvm should not be nested.12:34
mptIs the difference between logical and physical volumes anything to do with the difference between logical and physical partitions?12:34
cjwatsonI like your first design better than your second.12:34
mptOr are they just coincidental uses of the same terms?12:34
cjwatsonI think that's mostly coincidental, unfortunately.12:34
cjwatsonWell, different layers perhaps12:34
mptphew+ugh12:34
cjwatsonActually12:34
cjwatsonIt's logical vs. primary partitions, not logical vs. physica.12:35
cjwatson+l12:35
xnoxi like second if it has three heading types: no LVM; lvmgroup hdd; new group. With ability to drag and drop. Dropping a partition on the the 'new group' should ask to name it12:35
mptxnox, drag and drop would be possible in either design, I think12:35
xnoxok12:35
cjwatsonDrag and drop is a bit unpleasant when you have to scroll.12:35
mptyes, not the primary interaction method, just a bonus12:35
xnoxif drap and drop possible, first design is better if you have many disks/partitions.12:36
cjwatsonRight, what I mean is that if it's there as a bonus, we should make sure that the design is such that you can have the drag source and target on screen simultaneously.  Otherwise it's more like a taunt.12:36
mptfair enough12:36
* xnox yeah trying to scroll while dragging is a pain, both with good intention and by mistake12:37
mptAutoscroll while dragging is something developers often get wrong12:37
cjwatsonI don't think horizontal space should be too bad with the first design; physical partition names will generally be short (except maybe in some crazy raid cases or something, but still not that long), and usually VG names aren't essays.12:37
cjwatsonWe can default the VG name to "ubuntu".12:37
mptBearing in mind that the dialog can be wider than my sketch, I just did it that narrow so I could fit two on one page :-)12:37
cjwatsonSince most people will only have one.12:37
cjwatson(And lots of LVs.)12:37
xnoxcjwatson: mpt has proposed to not offer lvm&crypt in the auto-partition page in this itteration, do you agree that it's only for manual partitioning? shall auto-recipes for lvm/lvmcrypt be available for pre-seeding only?12:38
* xnox notes, get dual-widescreen pages for mpt =))))12:38
* mpt rotates the paper 90 degrees12:39
cjwatsonI don't agree that it's only for manual partitioning in general, but if you want to prune it as a scope control exercise for this release then I'm OK with that, I guess.12:39
cjwatsonLVM+crypto is the easiest way to get a completely encrypted system.12:39
cjwatsonSo I do think it's something we should aim to present as an automatic option.12:39
mptcjwatson, I can imagine either an "Encrypt this disk" checkbox which does LVM+crypto behind the scenes for whichever auto partitioning option you chose12:40
mpt(minus the partitions belonging to other OSes, of course)12:40
cjwatson(Reason to use LVM on top of crypto rather than crypto alone: you generally have more than one partition-like object at the bottom level, and if you only have a single encrypted container then you only have to enter one password.)12:41
mptOr, a separate "Disk encryption" step that asks you with more explanation up-front12:41
mptBut yes, I do think we should start with it just in the advanced partitioner, and work out from there.12:42
mptAvoid feature regression before doing new stuff.12:43
cjwatsonMakes sense12:43
mptI'll let you think about the design until tomorrow, and then I'll draw it in higher resolution and write it up in detail12:45
* xnox feels like writting a concept optional plugin for ubiquity automatic partitioner to add that as a demo, for smart people who know how respin CD's / update ubiquity in the live session. High enough barrier of entry.12:45
cjwatsonubiquity --enable-blah12:50
cjwatsonWe had the opposite for migration-assistant for a while, so there's precedent.12:51
cjwatsonIn fact I think that's how I deployed the advanced partitioner rewrite in feisty.12:51
xnoxyou did.12:51
xnoxI was thinking12:51
xnoxubiquity --danger-do-not-use12:51
cjwatsonYeah, you had to say 'ubiquity --new-partitioner'12:51
* xnox following btrfs release naming scheme12:52
xnoxcjwatson: ok, gotcha.12:52
cjwatsonHaving to use a command line option is sufficient deterrent to the casual.12:53
cjwatsonIMO anyway.12:53
xnoxyeah, I keep forgetting that casuals don't use terminals12:54
antarusheh, casuals12:54
xnoxalthough I did train my relatives to reliably open reverse ssh port forward to trusted people only (me)12:55
xnoxcjwatson: have you seen my email/question on the ubuntu-installer mailing list, w.r.t ubi_partman not picking up lvm recepes/options into the statemachine to be a valid answer for a question15:30
xnoxand how to best adjust datastructure to accomodate for multiple variants per installation type15:31
* cjwatson goes to read list mail15:31
cjwatsonExpect some delay, sounds like a hard question ;-)15:31
xnoxcjwatson: you answered half of the email with 'just use something like --new-partitioner' flag to hide ugly non-designed ui15:32
bdmurraystgraber: could you look at bug 929092?18:24
ubot2Launchpad bug 929092 in oem-priority "ubiquity crashed with DBusException in call_blocking(): org.freedesktop.DBus.GLib.UnmappedError.NmSettingWirelessSecurityErrorQuark.Code1: Failed to determine AP security information" [Critical,Confirmed] https://launchpad.net/bugs/92909218:24
stgraberbdmurray: the fix does sound good, would need someone to test this though18:32
bdmurraysomeone like?18:33
stgrabersomeone who has a test machine with a wireless card ;)18:33
stgrabertrying to reproduce with a WPA key of less than 8 characters, then doing an in place change of /usr/lib/ubiquity/plugins/ubi-wireless.py, adding the proposed try/except block and checking that ubi-wireless no longer crashes18:35
stgraberif that works, I'm certainly happy to commit the change to ubiquity's trunk and precise branch (can't SRU just yet as there's already one in -proposed)18:35
skaetslangasek,  ev,  in errors.ubuntu.com,  for 12.04, over last month period,  there's an ubiquity crash showing up, without a bug number (freq 4600, first seen 2.10.8, last seen 2.10.17)19:13
evskaet: yeah, I'm still working on the ability to create a bug from errors.ubuntu.com19:15
evit became complicated when I found out launchpadlib wasn't thread safe19:15
evwhich was further complication from not being able to use OAuth19:15
skaetev,  ah...  thanks.  ok,  just was wondering if it was something we should be targetting to fix for 12.04.119:16
* skaet looking forward to the bugs getting auto created.19:16
evskaet: I can't say about the specific crash. That's up to whoever is hacking on ubiquity19:17
evbugs wont be auto-created, there was push back on that19:17
evbut we're trying to find middle ground19:17
evwe'll likely auto-create for the top X19:17
skaetev,  that'll work.19:17
evand then leave the rest to someone clicking a link on errors.ubuntu.com19:17
skaetyeah,  clicking on the ones that are worrisome and the bugs being created would solve it19:18
skaetev,  top 20 over the last month might be reasonable goal for the auto create,  but getting so that we click and a bug get opened so we can track it in our other systems would be higher priority to me.19:20
evyup, I basically had the latter working19:21
evbut due to the issues around lplib, I'll have to either push it behind rabbit/celery19:21
evor just hit launchpad directly with good ol http19:21
evs/basically/did/19:22
evskaet: rob just approved hitting LP's API directly, rather than going through lplib. So expect the create bug links before the weekend, or next week at the latest.20:21
skaetwoot!  :)20:22
skaetthanks ev!20:22
evskaet: Do you think it's reasonable to let anyone click on them, or do you think we really need to be authenticated to open ID to initiate that (they'll all be created by a bot user).20:23
evI'm inclined to say "anyone", as we're only doing it this way to avoid doing it for every single one, regardless of size, and it's unlikely that people will see the really small ones.20:23
evthe create bug links, that is20:23
skaetev,  I'm biased to let it be everyone intially, and then ratchet it back to members of certain groups only if we have problems.20:24
evsounds excellent20:24
evthanks20:24

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