/srv/irclogs.ubuntu.com/2013/05/31/#maas.txt

=== ubot5` is now known as ubot5
=== matsubara is now known as matsubara-lunch
=== matsubara-lunch is now known as matsubara
=== kentb-out is now known as kentb
roaksoaxjtv:15:23
roaksoaxjtv: ping15:23
jtvHi roaksoax15:24
roaksoaxjtv: howdy!! is the MAAS_CONFIG_DIR only for the provisioningserver?15:24
jtvNo, it's meant for all of MAAS.15:25
jtvGot a use for it?  :)15:25
roaksoaxjtv: well I think that's kind of non desired15:26
roaksoaxjtv: each service/daemon should have its own variable to find its config15:26
jtvNote that this isn't what we talked about with custom templates.15:28
jtvIt helps, but it's more of a first step.15:28
roaksoaxjtv: yes I understand! However, I do still believe that each service should be able to find its config on its own15:28
jtvIf we move something from the source tree to /etc, then that introduces the very basic problem of how to find the right one when we're running from branch.15:29
roaksoaxjtv: if you implement thjis, this now means that you will have to deprecate celery_common15:29
jtvWhy that?15:29
roaksoaxjtv: no nevermind about that, but yo will have to make the MAAS_CONFIG_DIR a common variuable for the cluster and the region15:31
roaksoaxjtv: it would have to work the same way it works with celerycommon_config.py15:31
roaksoaxisn't that adding more complexity than required?15:32
jtvIn normal test/demo usage where you run from a single branch, it would be a single variable yes.15:32
roaksoaxjtv: yes, but MAAS in real world will not run in one single node, would it?15:32
jtvThe celery config works slightly differently.  It makes a distinction between a production-or-test run vs. a demo run.15:32
jtvIn the real world you don't run MAAS from a branch.  You run it from an installed package.15:32
jtvThat's the case where you _don't_ have MAAS_CONFIG_DIR.15:33
jtvBut when you're running tests or a demo, you _do_ want MAAS_CONFIG_DIR.15:33
jtvIf you wanted to run a demo cluster and a demo region with different setups, on the same machine, you would either run them from separate branches, or override MAAS_CONFIG_DIR for one or the other, to point to a different config directory.15:34
jtvNot sure you'd want that, of course.15:34
roaksoaxjtv: right, so what if you set MAAS_CONFIG_DIR in a system where you instlaled MAAS via package to use /user/share15:35
roaksoaxjtv: then the code will pick that up15:35
roaksoaxjtv: and use that as a config dir15:35
roaksoaxright?15:35
jtvYou could make it pick that up if you wanted to, I suppose, but would you want to?15:36
jtvIf you install a MAAS package, you will simply not have a MAAS_CONFIG_DIR.  If you do set one, that allows you to run one or more of the MAAS processes from a different config.15:36
roaksoaxjtv: ok15:36
roaksoaxi guess what I'm trying to understand is if this is also meant to be used when we package this up15:37
jtvThe main thing here is to provide a uniform way for MAAS code to ask, "where is /etc/maas?" — and get a branch-local version when running from a branch.15:37
jtvNo, it's not meant to be used by a package.15:37
roaksoaxjtv: right, but "/etc/maas" is a packaging convinience15:38
roaksoaxis a safe default15:38
jtvYes, that remains unchanged.15:38
jtvIt's normally only when running from a branch, instead of from a packaged install, that you'll want MAAS_CONFIG_DIR.15:38
jtvSo it creates a kind of "lightweight chroot" effect for (1) tests, and (2) demos.15:39
jtvThe problem with using the celery config for this was that it throws tests and production into one kind of config, and demos into another.  Not the right fit.15:39
roaksoaxjtv: right, but what I mean is that currently we run the pserv by passing it the --config-file option that tells where to load the pserv.yaml right?15:40
jtvIt's optional, I think.15:40
roaksoaxno15:40
roaksoaxthat's how the daemon is run15:40
roaksoaxand that's how it should be run15:40
roaksoaxdaemons should allow you to tell them where the configuration is and if not sent, then it would look for a sane default15:41
jtvSo you're saying it's not looking for a sane default?  That seems wrong.15:41
jtvAnd we do in fact have code in there that looks for a sane default, /etc/maas/pserv.yaml.15:41
jtvUnfortunately it *also* looks for an insane default, ./etc/pserv.yaml.15:41
jtvThat's for branch runs.15:41
jtvWith MAAS_CONFIG_DIR, that will simplify to: if an explicit file was selected, use that.  Otherwise, look for $MAAS_CONFIG_DIR/pserv.yaml.15:42
roaksoaxjtv: ok so MAAS_CONFIG_DIR is only for branch runs and not when you actually *install* and run maas?15:42
jtvExactly.15:42
roaksoaxjtv: ok, so as long as nothing else changes, then I'm fine with that15:42
jtvGood, because I think the code already landed.  :)15:42
roaksoaxbecause I also read that this is the basis for dropping POWER_{CONFIG,TEMPLATE}_DIR15:43
jtvEventually, yes.  Not exactly dropping it, I think, because that'd break compatibility.  But the important point is that templates by  default would live in $MAAS_CONFIG_DIR/templates.15:44
jtvIf we don't have $MAAS_CONFIG_DIR, then we'd have to make that "if we're running from a branch, use <branch>/etc/maas/templates.  Otherwise, use /etc/maas/templates."15:44
roaksoaxright15:45
jtvSo this change allows us to say: the default location for templates is $MAAS_CONFIG_DIR/templates.  Once we have that, we can allow people to customize that location.15:45
roaksoaxright15:46
jtvAnd then if we do that, you can move the entire template directory (and softlink the parts that you don't want to change, I guess) and _then_ there should be no more need for those fine-grained configuration items.15:46
jtvSo yes, this is the basis, but it's not a simple direct step.  :)15:46
roaksoaxjtv: ok so as far as the templates then15:46
roaksoaxjtv: this means that MAAS_CONFIG_DIR/templates would also work in production environments and not only when running from a branch right?15:47
jtvRight — and in a production environment it would be /etc/maas/templates, whereas in a branch it would be <branch>/etc/maas/templates.15:47
roaksoaxright15:48
roaksoaxwhich means that in a production environment15:48
roaksoaxwe still have to set MAAS_CONFIG_DIR15:48
jtvYou don't have to  set it in a production environment — unless you're trying to run MAAS with a different config directory.  But as discussed we'd rather do that for just the templates.15:49
roaksoaxexactly15:49
roaksoaxthat's my point15:49
roaksoaxmy point is that by default MAAS_CONFIG_DIR will default to /etc/maas and will make all of the daemons/services to look for their configs in MAAS_CONFIG_DIR15:49
roaksoaxthis means that MAAS_CONFIG_DIR is a common variable for both the cluster and the region15:50
jtvYes, that won't change.15:50
jtvRight now it's hard-coded.  You're not meant to customize it in production, although you could if you wanted to.15:50
roaksoaxjtv: right, that's my point15:50
jtvSo, no worries then?  Great!15:51
roaksoaxjtv: regardless that MAAS_CONFIG_DIR is set to /etc/maas, then a daemon/service should be allowed to specify *where* is config file is located15:51
jtvYes, separate issue.15:51
jtvYou're currently keeping me from realizing that dream.  :)15:51
jtvOkay, not fair — what I mean is, there's more groundwork to be laid so that we can move templates to /etc, and there's more design work to be done to satisfy various people's requirements.  And I'm eagerly implementing the groundwork right now.15:54
roaksoaxjtv: ok, well to keep it simply, i'm just concerned that implementing this will affect allowing each service/dameon specify where its config are located15:54
jtvIf you really wanted to tweak  this per daemon, then just pass each daemon a different value for the variable.  It's an environment variable, not a configuration item.  But it's not really meant for that — it's an implementation detail, if you will.15:55
roaksoaxok15:55
AskUbuntuMaas enlist nodes with pxe timeout | http://askubuntu.com/q/30247916:36
kumquathi all, when cloud-init runs its final userdata on a VM node, i'm getting the "error inserting ipmi_si: no such device" fatal exit after installing freeipmi-tools and trying to set up.17:59
kumquatany help would be appreciated, since the node is hanging on commissioning and keeps sending messages to nodegroups/register17:59
roaksoaxkumquat: do your nodes have ipmi cards?18:03
kumquatah, no. the fatal error also didn't impact the bootup - after a while the node registers itself successfully anyway.18:05
roaksoaxkumquat: yeah18:05
roaksoaxrvba: still around by any chance?18:39
jtvsmoser: still here?20:50
=== kentb is now known as kentb-out
* smoser missed jtv22:17

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