/srv/irclogs.ubuntu.com/2018/03/09/#maas.txt

seffyroffHello folks!  I'm in early stages with my discovery project to spin up MaaS inside a Docker container, right now I'm seeing some errors related to the tgt service not starting, and some ntp resolution socket errors too - as I'm running in a containerized snap, I theorized that there's some additional channels I could connect for a more relaxed runtime environment06:14
seffyroffthe tgt service being the main roadblock as my rackd won't sync images06:28
seffyroffi wondered if I'm hitting the OOM issue that tgt (once) had?07:07
parlosI'm hoping to use MAAS as a orchestrator in a lab environment. Hence; I under stood that the way to go is to have multiple user accounts, and then acquire hosts to that user. Now; can I as an admin assign nodes to a user, or can this only be done from the user account?07:38
parlosGood Morning07:39
seffyroffhmm, looks like the tgt changes for 2.4.0 might help me here07:40
seffyroffi guess there's no snap for that?07:40
roaksoaxseffyroff: not yet08:03
roaksoaxsnas in 18.04 are currently broekn08:03
seffyroffok thanks for the heads up.08:04
seffyroffI'll try some other approaches to getting this working08:04
roaksoaxseffyroff: you should probably look at 2.3.108:06
roaksoaxit had a tgt fix running in containers (lxc)08:06
seffyroffyup, db migrations happening as we speak08:06
seffyroffthanks!08:07
roaksoaxparlos: there's no suhc way to assign a machine to a user. Users/admins have acces to a machine pool, and they can allocate themselves a machine08:09
parlosroaksoax: so, if I want to limit what nodes a user can use, I have to login as user an acquire the nodes as that user... any plans for that?08:10
seffyroffactally roaksoax i do see a 2.4.0 snap, but I guess it'll sulk if I try to install it on a Xenial host?08:39
seffyroffchannels:08:40
seffyroff  stable:          2.3.0-6434-gd354690-snap        (1349) 101MB -08:40
seffyroff  candidate:       2.3.1-6470-g036d646-snap        (1868) 100MB -08:40
seffyroff  beta:            2.3.1-6470-g036d646-snap        (1868) 100MB -08:40
seffyroff  edge:            2.4.0~alpha2-6630-gc925539-snap (1857) 97MB  -08:40
seffyroffhm, tgt still wouldn't start from 2.3.1 snap inside a docker container.  It does start if I snap install to the host itself though.08:47
roaksoaxseffyroff: the 2.4 snap requires ubuntu core 1810:18
alnis anyone able to answer a basic question about the API?10:18
roaksoaxseffyroff: which is still in development10:18
seffyroffnoted, thanks10:19
seffyrofflooks like i'll go for package install, which I was leaning towards anyway so I can apply a downstream WOL patch10:19
seffyroffalthough possibly similar could be accomplished with snap scriptlets10:20
roaksoaxaln: sure, just ask your question and if soneone knows the answerm, they will reply10:20
seffyroffit'll potentially produce a cleaner container also.  So much low level hackery to get snap running in the contaienr first, then maas requires several additional hacks to work within snap within a container >.<10:21
alni want to deploy a machine with the api using `/machines/{system_id}/?op=deploy`. i would have expected it to take boot-resource ID as a parameter but instead it takes distro_series and hwe_kernel.10:22
alni tried to fetch information about the boot-resource from `/boot-sources/{id}/`, but this does not return any information that seems to fit into distro_series or hwe_kernel.10:23
alnhow can i issue a deploy via the api and specify the boot-resource/image i want to use?10:23
aln(deploy works, i just can't get it to use anything other than the default image)10:23
alnoops - second url should be `/boot-resource/{id}/` of course10:24
roaksoaxaln: deploy distro_series=xenial10:25
roaksoaxaln: hwe_kernel=hwe-16.0410:25
roaksoaxaln:         "name": "ubuntu/xenial",10:25
roaksoaxaln:         "subarches": "generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t,hwe-u,hwe-v,hwe-w,ga-16.04,hwe-16.04,hwe-16.10"10:26
alnu'name': u'ubuntu/xenial',10:26
alnu'subarches': u'generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t,hwe-u,hwe-v,hwe-w,ga-16.04'10:26
alnyeah, sorry haha10:26
roaksoaxaln: yeah, although the subarches you can only use ga-16.04, hwe-16.04, etc10:26
roaksoaxat least that's on ym streams10:26
alnokay10:27
alnand this works with custom non-linux images too?10:27
alnso, u'name': u'windows/win2012r2'10:27
alnu'subarches': u'generic',u'name': u'windows/win2012r2'10:27
alni can specify win2012r2 and generic?10:28
roaksoaxaln: for non-ubuntu deployments, you dont need to set the hwe_kernel10:28
roaksoaxaln: the hwe_kernel is only really valid for ubuntu, because that's the kernle the machine will be running post deployment10:28
alnyes of course, thanks10:28
roaksoaxaln: as for windows, distro_series=win2012r210:29
roaksoaxaln: it should workt distro_series=windows/win2012r210:29
roaksoaxbut doens't necessarily10:29
alnyeah, it didn't for me10:29
roaksoaxbut it is not necessary10:29
roaksoaxok, yeah that seems like a bug10:29
alnroaksoax: thanks for the help, but afraid this didn't work10:34
alnissuing request with distro_series=windows2012r2 makes it deploy xenial10:34
roaksoaxaln: it doens't deployxenial, it pxe boots into xenial to deploy windows10:36
alnstatus: Deploying Ubuntu 16.04 LTS10:36
roaksoaxaln: ah1 that's stranger10:36
roaksoaxstrange10:36
roaksoaxwhat version you using ?10:36
alnof maas?10:36
aln2.3.010:36
roaksoaxaln: so I'm looking at our CI, and we use maas <user> machine deploy distro_series=win2012hrv210:38
roaksoaxwin2012hvr210:38
roaksoaxso aln we test that path10:39
alnDeploying Ubuntu 16.04 LTS10:39
alnbut presumably that's what is after the slash in your boot-resource's name10:39
roaksoaxright, so if boot-resource's name is <os>/<series> on distro_series= just use the <series>10:40
alnyeah10:40
alnDeploying Ubuntu 16.04 LTS10:40
roaksoaxaln: also, if you are talking directly to the API, not via the CLI10:40
roaksoaxaln: you should look at: https://github.com/maas/python-libmaas10:41
alni did have a look at this, but we decided just to interface directly, as we don't need to use it much (='my boss told me to do it this way')10:45
roaksoaxgotcha10:45
alnlooking though the library for an example of the call being made for deploy, but it's pretty abstracted10:45
alnif anyone reads my messages above and think they can help, i made a post here: https://askubuntu.com/questions/1013371/specifying-boot-resource-for-maas-api-deploy11:17
ipat8Quick question for you guys13:27
ipat8Is there a newer version of the maas-image-builder?13:27
ipat8I can't seem to BZR branch it13:28
ipat8ChanServ Who is allive?13:32
ipat8*allive13:32
ipat8*alive13:32
nefertyi set up some VMs with manual power management and it seems like they never become ready, is this intentional?13:55
wironeferty: they should be ready after commisioning, then you have to turn them off manualy13:57
nefertyi have turn them off? eh, alright13:57
wirono necessary, it should be on byt after commisioning it reched ready state, if not then there should be some error13:58
wiroin test or commision13:58
nefertyoh hold on, i think i misunderstood when a machine is considered ready, my mistake13:59
mupBug #1754697 opened: [FFe] Standing FFe for MAAS 2.4 <maas (Ubuntu):New> <https://launchpad.net/bugs/1754697>16:15

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