/srv/irclogs.ubuntu.com/2017/02/27/#maas.txt

=== jam1 is now known as jam
Budgie^Smoreanyone around fam with maas-enlist error codes? I am getting return code 805:01
kklimonda@pmatulis: better docs for networking side (fabrics, spaces, subnets, vlans) and how it all fits together; better docs on image customization - both with curtin (late and early commands), as well as preparing own images; actually, going back to networking, I think I've configured bonding using some random blog post; I haven't even touched more advanced partitioning, but at this point I'm assuming it's also going to be underdocumented.06:31
cnfmorning10:56
cnfanyone around that can help me underatand the network requirements etc for maas?10:56
brendandcnf, do you have any specific questions?10:58
cnfbrendand: well, maybe, i'm trying to understand what is needed to get maas working10:59
cnfi have machines that are connected with a 2 x 10G LAG10:59
cnfand i'm not sure how to get PXE on that, and what management connectivity is needed to machines after pxe boot etc10:59
cnfa point to documentation that explains this would help, for now11:00
brendandcnf, try reading https://docs.ubuntu.com/maas/2.0/en/ thoroughly11:01
cnfyes, i have that open11:02
cnfhave had for a while11:02
brendandcnf, for the nodes, the pxe boot config is really hw dependent11:02
brendandcnf, so you'll have to consult the machines documentation for that11:03
brendandcnf, and the power management is again machine dependent, so it really depends what kind of hw it is11:03
cnfpower management?11:06
brendandcnf, if you make the machines pxe boot then maas might auto-detect the power parameters11:06
brendandcnf, so start there11:06
cnfi don't understand, where does power management come in?11:07
brendandcnf, so maas can turn the machine on and off11:07
cnfbut that doesn't explain how to do the pxe booting on my network11:07
cnfor what connectivity is required on a network level11:08
brendandcnf, one machine needs to function as the rack/region controller. other ones can be nodes. they must all be on the same vlan11:09
brendandcnf, maas does assume good familiarity with configuring a network11:09
cnfyes, but i don't know what is required11:10
cnfand I can't find the requirements documented11:12
cnfhmz11:55
DesktopMancnf: once you install and configure the rack controller it supplies and pxe. there isn't much of a network requirement for that part, chuck them all on a switch and you're good12:03
cnfDesktopMan: well, i'm not good12:03
cnfit's a switch that's already in use for a LOT of other things12:03
DesktopManthe rack controller also does nat for you so the nodes get wan access through it12:03
DesktopManthen you should pxe boot on a vlan12:03
DesktopManto isolate it12:03
cnfand how do i do that on a LAG link?12:03
DesktopManserver bios, under boot settings12:04
DesktopManchoose the nic for pxe there, and you can also set a vlan (if it's supported)12:04
cnfyes, but no LACP, afaik12:04
cnfanyway, i'm looking into getting that sorted on the juniper side12:04
cnfDesktopMan: so MAAS needs the servers to be in an untagged vlan, a single one for pxe and management?12:05
DesktopManno, you can set the dhcp / pxe server for a vlan if you want12:05
cnfso how do you configure the vlan in the os once it is booted?12:05
cnfwell, s/do you/does maas/ ?12:05
DesktopManI've only used the maas web interface for that, but you go to subnets and click the vlan you want pxe on12:06
DesktopManthen configure the dhcp server for that vlan12:06
cnfDesktopMan: right, that's on the management side12:06
cnfthat makes sense12:06
cnfon the metal side, maas needs to first pxe boot, and then login to the installed OS to change config, right?12:07
DesktopManafter your machines have booted from pxe you commision them (get them ready for use), then deploy them. after deployment (os install) you can configure the rest of the network interfaces from maas12:08
DesktopManor you can log in and do it yourself manually12:08
DesktopManwhen you commision you can select to allow ssh access, if you do it installs the ssh keys for the current maas user.12:09
cnfwell, to commission them, maas needs network connectivity to them, right?12:10
DesktopManyes, but it uses the pxe network for that12:11
cnfbut that means that to the metal, the MAAS vlan needs to be untagged12:11
cnfk, so my biggest problem is getting pxe to work on a LACP bond12:12
DesktopManyeah that part I'm not sure about. is the lacp bond hardware configured?12:13
DesktopManor is it done at the OS level12:13
cnfwell, on the metal on an OS level12:14
cnfso during boot, there is no LACP yet12:14
cnfbut the switch does expect it12:14
cnfwe found something that might work on the qfabrics12:16
cnfwhere you can force one of the members to be up, even without lacp12:16
cnfgoing to test if that works12:16
pmatuliskklimonda, thanks for the feedback13:43
cnfdoes maas work on a V6 network?14:05
roaksoaxcnf: yes14:07
roaksoaxit does14:07
roaksoaxlatest version of MAAS for better support though14:07
pmatuliskklimonda, any more specific info can be put here: https://github.com/CanonicalLtd/maas-docs/issues/new14:08
cnfroaksoax: hmm, docs seem to indicate you still need ipv4 present, though?14:23
cnfhttps://docs.ubuntu.com/maas/2.1/en/installconfig-network-ipv614:23
roaksoaxcnf: not really, no14:25
mupBug #1408820 changed: [docs] configure.html#preseed has out of date link <doc> <trivial> <MAAS:Invalid> <https://launchpad.net/bugs/1408820>16:03
mupBug #1666852 changed: apt IGN messages timeout very high causes failed commissioning and deployment <MAAS:Invalid> <https://launchpad.net/bugs/1666852>16:03
mupBug #1668315 opened: [2.1+] Missing documentation about preseeds in new documentation <doc> <MAAS:Triaged> <https://launchpad.net/bugs/1668315>16:03
cnfhmz16:03
cnfdamn thing won't pxe boot16:07
cnfhow do people use MAAS on machines on a LAG?16:13
kklimondamy machines have separate management interface that I use to PXE them16:14
kklimondaanyway, is it LAG or LACP?16:16
cnfLACP16:18
cnf2 x  10G16:18
kklimondaok, that's tricky - some switches allow you to configure LACP interface to bring the link up as a normal interface until LACP control packet is received16:20
kklimondabut IIRC that's not part of a standard16:20
cnftrying to find how to do that on a juniper16:21
cnfI was hoping http://www.juniper.net/techpubs/en_US/junos10.3/topics/reference/configuration-statement/force-up-edit-interfaces-ex-series.html would help, but it doesn't seem to16:22
kklimondahmm, afaik force-up should do the trick16:22
cnfdoesn't seem to16:23
kklimondait can be configured only on a single interface from bundle afair, are you sure you are configuring the correct one?16:23
cnfit was set on 1 interface, and both of them are set to PXE boot on the DL38016:27
kklimondathose are 10gig interfaces, are you sure your machine is booting from 10gig and not 1gig only? just checking, I've seen servers which had to have 10gig PXE enabled in BIOS16:28
cnfyep16:29
cnfchecked the bios, made sure the 10G ones are at the top16:29
cnfmade sure it where the ipv4 ones, as well16:29
kklimondaI'm testing MAAS 2.2 beta (from ppa:maas/next) and it's throwing a lot of >>django.db.utils.IntegrityError: duplicate key value violates unique constraint "maasserver_staticipaddress_ip_key"<< in logs, any idea if that has been reported?16:35
capncrunch4meis there a way in MAAS to have it load BTRFS instead of ext4 when a machine is deployed?16:35
kklimondaperhaps a custom image?16:36
capncrunch4meit strikes me as a custom storage layout16:36
cnfhmm, dammit :/16:36
kklimondagood point16:37
kklimondacnf: you don't have a separate 1gbe interface?16:37
cnfplenty of interfaces16:37
kklimondanone connected? ;)16:38
cnfnot really switches to connect them to, though16:38
cnfeverything is 10G LACP here16:38
cnfi could add a switch, but then that switch would not have the right vlan16:38
cnfand then i'd have 1G for a few machines, at best16:39
cnfhmm, all searches do indeed point to force-up16:47
cnfbut that isn't working, it seems16:47
kklimondawhat switch model do you have?16:47
cnfjuniper QFX350016:48
cnfso if I enable dhcp in MAAS, do i need to start the service manually on the linux machine it is on?16:54
roaksoaxcnf: No. MAAS will configure / start dhcp. We dont use the "systems" daemon. MAAS runs its own isc-dhcp daemon16:55
cnfroaksoax: ok, but i should see a dhcpd process, right?16:55
cnfor is it called something else?16:56
cnfyeah, maas didn't start the dhcpd it seems...17:01
cnfwow17:01
kklimondaroaksoax: is it running actual isc-dhcp-server, or does it have its own DHCP implementation?17:01
kklimondaroaksoax: at least on 2.2 port 69 is boung to by some python3 process17:01
kklimondaok, my bad17:02
mimizonehi. what's the recommended method replacing preseed scripts in maas 2.1? I need to modify the rt_tables/ip routes during deployment.17:02
mupBug #1668329 opened: [2.2, 2.1] ssh key comment contains unicode character - node deployment fails <MAAS:Triaged> <https://launchpad.net/bugs/1668329>17:03
roaksoaxkklimonda: it is running isc-dhcp17:04
roaksoaxkklimonda: as maas-dhcp17:04
cnfdhcpd     2364  0.0  0.1  35848 13520 ?        Ss   18:00   0:00 dhcpd -user dhcpd -group dhcpd -f -q -4 -pf /run/maas/dhcp/dhcpd.pid -cf /var/lib/maas/dhcpd.conf -lf /var/lib/maas/dhcp/dhcpd.leases ens19217:04
cnffor me17:04
roaksoaxthat's the one17:04
cnfwhich wasn't started when I enabled dhcp in the UI17:04
kklimondayeah, sorry - I've done off-by-one mistake - 67/68 is dhcp, 69 is tftp17:05
kklimondashould MAAS be creating DNS entries for machines' BMC IP addresses?17:10
roaksoaxkklimonda: not for BMC's17:11
brendandroaksoax, we had troubles before with bmc addresses being used for maas - in the ci we create an ip range to cover the bmc addresses17:14
roaksoaxbrendand: was that the source of the issue really ?17:14
brendandroaksoax, creating the range was the solution, not the cause17:15
brendandroaksoax, just wondering if it's relevant to what kklimonda said17:16
roaksoaxbrendand: in our case because we do a bad design thing to share the subnet of the bmc's17:18
kklimondait's not a bad design if it works!17:18
kklimonda@brendand: could this be the cause of MAAS throwing IntegrityErrors?17:20
brendandroaksoax, i thought the bmcs were on a different subnet? 10.245.143.0/21 as opposed to 10.245.136.0/21?17:20
* roaksoax is distracted, otp 17:22
mimizoneanyone on my question regarding modifying the /etc/ip/rt_tables and ip routes during deployment? where can I customized provisioning scripts? It seems preseed is not the recommended way anymore in maas 2.117:42
cnfok, i see dhcp requests coming in17:59
cnfbut maas isn't responding17:59
mimizoneis there still the concept of curtin user_data/custom scripts in maas 2.1? anyone has a pointer to some documentation by any chance?18:02
cnfhmm, and ilo4 support seems broken18:13
cnfit runs the wrong IPMI command18:15
stormmoreso I have been trying to use maas-enlist but it doesn't appear to be working for 2.1, but I am not getting any useful errors to be able to share :-/18:19
stormmorewhen I hit enter it hangs for a second and then the prompt returns with zero other output18:20
mimizoneany familiar with the /etc/maas/preseeds/curtinXXXXX files? I would like to add a few customization in there.19:13
pmatulismimizone, this will soon be documented better. lemme know if this is sufficient for your use case. https://goo.gl/tqZiKB19:25
mimizonepmatulis: thanks. I'll check it out and come back to you in a bit19:26
pmatulismimizone, thanks19:27
mimizonepmatulis: it is very similar to the document for 1.9 basically, right?19:28
pmatulismimizone, yeah19:28
pmatulismimizone, it would be great if you could add any deficiencies as a docs bug - https://github.com/CanonicalLtd/maas-docs/issues/new19:29
mimizonepmatulis: sure. I'll see what I can express clearly that would be useful to all.19:30
pmatulisperfect19:31
mimizonepmatulis: now I am hacking the curtin_userdata file until I get my commands right. but so far, I break the deployment.19:31
mimizoneI am trying to run a "sed" command on the /etc/network/interfaces to fix a bug in the file that was generated.19:32
mimizonewould you know anything in how I can add a command properly in the curtin_userdata?19:32
mimizonehere what I do so far19:32
mimizonenetwork_commands:19:32
mimizone  maas_fix_00: ["bash","-c", "sed s/'|| truepost-up route add'/'|| true\npost-up route add'/g", $OUTPUT_INTERFACES]19:32
stormmorehmmm I am trying to use maas-enlist to enlist some virtual nodes into maas but I keep getting failures19:34
stormmoreI keep getting return code 8 but I don't know what that means and there isn't any other visible error, any suggestions on what logs might provide some insight into what is going on?19:36
stormmoreit is weird, even pxe booting the machine is failing to enlist :-/19:57
roaksoaxstormmore: how is it failing ?20:08
roaksoaxstormmore: try /var/log/maas/rsyslog/maas-enlist*20:08
stormmoreI am having a hard time seeing why it is failing, scrolls off screen way too fast. Trying to get in didn't work before the system shutdown :-/20:10
stormmoreI don't see that log roaksoax :-/20:14
roaksoaxstormmore: ok, try this, is /etc/maas/rackd.conf point to an IP address or localhost ?20:15
stormmoreon the maas server?20:15
stormmoreif so, then yeah it is pointing to the right IP20:16
roaksoaxstormmore: any error logs in /var/log/maas/*.log ?20:17
stormmoreroaksoax, https://gist.github.com/cm-graham/62ed001b9158f8dddbc1a521cce8abc4 is what I am seeing in rackd.log20:23
Siva_Hi20:23
stormmoream I seeing what I think is a dns issue?20:23
Siva_I installed a VM to be managed by MAAS20:23
roaksoaxstormmore: could be. seems MAAS is trying to contact the region and it is failing20:24
Siva_After adding the 'Power address' like qemu+ssh://you@<host-where-vm-is>/system20:24
stormmorestarting to look like it :-/ need to update the nameservers on the maas server :-/20:25
Siva_When I click the 'check now' for Power.. i get the following error20:26
Siva_No rack controllers can access the BMC of node: juju-controller20:26
Siva_maas log shows this : Feb 27 19:27:31 localhost maas.power: [error] juju-controller: Power state could not be queried: Failed to login to virsh console20:26
Siva_Any help on this is much appreciated20:26
roaksoaxSiva_: seems like the rack controller cannot resolve <juju-controller>20:26
Siva_@roaksoax, what does that mean? Not clear20:27
roaksoaxSiva_: that the rack controller in maas cannnot resolve a node called <juju-controller>20:27
roaksoaxSiva_: yseems you are doing qemu+ssh://you@juju-controller/system20:28
Siva_I my case, I explicitly sepcify the ipaddress as qemu+ssh://contrail@10.84.33.1/system20:28
roaksoaxSiva_: ah gotcha now20:28
roaksoaxSiva_: can you ping 10.84.33.1 from where the rack controller is running ?20:28
Siva_yes20:28
roaksoaxSiva_: seems that no rack controller can contact that IP address20:28
Siva_I am able to ping it20:29
roaksoaxbladernr: ^^20:29
roaksoaxerr20:29
roaksoaxblake_r: ^^20:29
roaksoaxblake_r: seems that the rack cannot reach a BMC that's pingable20:30
Siva_the ip address 10.84.33.1 is the bastion host ipaddress where the vm is launched20:30
stormmorecan you ssh to the IP?20:31
Siva_@stormmore, yes I am able ssh into that from my desktop20:31
roaksoaxSiva_: but from the MAAS server ?20:32
Siva_yes, from the maas server.  It ask for a password ... when entered it goes through20:33
Siva_@roaksoax, does the maas log error give you any clue?20:35
Siva_@roaksoax, does the maas log error pasted above give you any clue?20:35
stormmorewondering if it is cause it asks for a password or the maas server isn't using the right key20:36
Siva_@stormore, the ipaddress is the management ip address of the bastion host20:38
Siva_How do I verify if maas server is using the correct key?20:38
blake_rSiva_: how is the SSH handled?20:40
blake_rSiva_: using ssh keys or password?20:40
blake_rSiva_: it its by SSH key then you need to add the SSH key to the maas user20:40
blake_rSiva_: if the private is under the MAAS user then it cannot authenticate20:41
blake_rSiva_: using password is much easier to setup20:41
Siva_@blake_r, I am using the same 'username' and 'password' here in the 'Power address' field here as I would when 'ssh'ing into the bastion host from my desktop20:43
Siva_Does that answer your question?20:43
blake_rSiva_: did you place the password in the Power pass field?20:43
Siva_@blake_r, nope20:44
blake_rSiva_: the password must go into that field20:44
Siva_@blake_r, I am trying it now20:45
stormmorelooks like blake_r is taking you down the path that I was thinking... if you are using user/pass then you need to provide both for it to work20:47
Siva_@blake_r, that worked20:53
blake_rSiva_: great!20:53
Siva_Pls help me understand, why do we need this optional field. I remember setting this up around 6 months back without the password field20:53
Siva_What should be done to make this work without the password field20:53
Siva_@blake_r, thanks for your help. Kindly let me know your input on the above question20:54
blake_rSiva_: if you don't want a password field, then you need to create a ssh key in the "maas" user account20:55
blake_rSiva_: then push the public key to the virsh server20:55
blake_rSiva_: or copy your private ssh key to the maas user20:55
blake_rSiva_: all MAAS services run as the "maas" user, it needs access to the SSH key to authenticate20:56
stormmoreSiva_, basically what blake_r said. it is worth noting that those are the common options (password or ssh key) and if you want passwordless that leaves ssh keys20:59
Siva_@blake_r, I do have the maas key and they maas key is present in the bastion host (where the vm is launched)21:06
Siva_so passwordless should have worked21:06
blake_rSiva_: you need to make sure21:06
blake_rSiva_: you can try "sudo -u maas -H virsh -c {your-connection-string} list --all"21:07
Siva_yes, I tried that and it worked21:07
Siva_so passwordless should have worked. That's why it is confusing for me21:07
Siva_@blake_r, from which machine, do you want me to issue the command 'sudo -u maas -H virsh -c {your-connection-string} list --all'21:09
Siva_I tried from the maas container21:09
blake_rwhich every machine is running the rack controller21:19
roaksoaxSiva_: /win 321:43
roaksoaxerr21:43
roaksoaxsry21:43
stormmorestill no idea why I can't get this to enlist :-/21:49
stormmoreall I do know is I keep getting return code 8 but that doesn't tell me anything about what is going on21:52
roaksoaxstormmore: please pastebin your logs /var/log/maas/*.log21:52
roaksoaxstormmore: if you can get a console log, that would also be helpful21:52
stormmoredo you mean /var/log/syslog when you say console??21:53
roaksoaxstormmore: console as in the server outputs logs to the serial console21:54
stormmoreroaksoax, that might be easier said that done21:55
stormmoreroaksoax, regiond.log - http://paste.ubuntu.com/24080653/21:59
stormmoresorry that is the rackd.log21:59
mupBug #1660860 changed: [1.9] mdadm error message during 14.04 deploy <MAAS:Invalid> <MAAS 1.9:New> <https://launchpad.net/bugs/1660860>22:01
stormmoreroaksoax, here is the correct regiond.log - http://paste.ubuntu.com/24080662/22:02
stormmoreroaksoax, I suspect dns being the problem22:02
stormmoreroaksoax, I suspect that I am running into a race condition since the maas server is using a different dns to get it setup but the node is using the same which isn't pointing back to the maas server22:03
roaksoaxstormmore: this is the issue:22:07
roaksoax2017-02-27 21:51:06 provisioningserver.rackdservices.tftp: [critical] TFTP back-end failed.22:07
roaksoaxTraceback (most recent call last):22:07
roaksoaxFailure: twisted.protocols.amp.UnhandledCommand: (b'UNHANDLED', 'Unknown Error [maas:pid=13020:cmd=GetBootConfig:ask=18]')22:07
roaksoaxstormmore: tail -f /var/log/maas/*.log and capture the moment that the machine is pxe booting and share the output of logs with us22:08
roaksoaxstormmore: if you can also provide a console log of the PXE process it would be good as well22:08
roaksoaxstormmore: /win22:09
roaksoaxerr22:09
stormmoreroaksoax, that is part of my problem, I don't see enough of the console log to determine the issue or have a way of getting the console log off the machine :-/ I do know that maas system is unable to look itself up because it is using a dns server that doesn't have the record22:10
roaksoaxstormmore: but ht eproblem seems to be in the pxe boot22:16
roaksoaxstormmore: at least from the logs above22:16
roaksoaxstormmore: and it doesn't seem that you are pointin rackd.conf to a dns record22:16
stormmoreroaksoax, well pxe seems to be partially working, it is when it goes to enlist the machine that it doesn't work22:17
stormmoreI am waiting for my freshly installed maas server to finish syncing an image so that I can try again22:17
stormmoreroaksoax, it is worth noting that manually trying to enlist from a freshly installed system doesn't work either :-/22:18
mupBug #1660860 opened: [1.9] mdadm error message during 14.04 deploy <MAAS:Invalid> <MAAS 1.9:New> <https://launchpad.net/bugs/1660860>22:19
roaksoaxstormmore: you mean, you try to add a machine via the webui or API and it also fails ?22:20
stormmoreroaksoax, http://paste.ubuntu.com/24080751/22:21
stormmoreroaksoax, using maas-enlist22:21
stormmoreroaksoax, that is literally the totality of output from running that command :-/22:23
mupBug #1660860 changed: [1.9] mdadm error message during 14.04 deploy <MAAS:Invalid> <MAAS 1.9:New> <https://launchpad.net/bugs/1660860>22:25
stormmoreroaksoax, http://paste.ubuntu.com/24080847/ is all the maas logs during a pxe boot attempt22:39
mimizonepmatulis: are you still around? I am trying to find the right naming convention for the files in /etc/maas/preseeds/22:41
mimizonepmatulis: so far curtin_ubuntu_amad64_generic_nodename doesn't seem to work.22:41
mimizoneamd6422:41
Siva_@blake_r, the command sudo -u maas -H virsh -c {your-connection-string} list --all works form the maas container but passwordless acess is not working22:42
Siva_any clue?22:42
stormmoreSiva_, whats the output from ssh-add -l?22:42
Siva_@stormore, ubuntu@xenial-maas:~$ ssh-add -l Could not open a connection to your authentication agent.22:44
stormmorethat will be your problem22:44
Siva_@stormmore, not clear, what am I missing here?22:44
Siva_@stormmore, from which machine should I run that command?22:45
stormmoreSiva_, that tells me that you don't have the key loaded and there for passwordless login won't work22:45
stormmoreSiva_, maas controller22:45
stormmoreactually it should probably be sudo -u maas ssh-add -l unless you are already logged in as the maas user22:46
roaksoaxstormmore: seems the the machine pxe booted into the image22:47
pmatulismimizone, i'm sorry i haven't looked at that stuff in a long time. i don't know22:47
roaksoaxstormmore: and the image is trying to access the metadata, which seems to be successful22:48
roaksoaxstormmore: 2017-02-27 22:36:48 twisted.python.log: [info] ::ffff:10.255.255.4 - - [27/Feb/2017:22:36:48 +0000] "GET /MAAS/metadata/enlist/2012-03-01/user-data HTTP/1.1" 200 8272 "-" "python-requests/2.9.1"22:48
stormmoreroaksoax, yeah just doesn't enlist!22:48
Siva_@stormmore, ubuntu@xenial-maas:~$ sudo -u maas ssh-add -l Could not open a connection to your authentication agent.22:48
Siva_same error22:48
mimizonepmatulis: first of all, I forgot the release number... but I am digging into it. Do you know if the code is in maas basically?22:48
stormmoreroaksoax, and trying to load into the image that is already installed, installing maas-enlist, and trying doesn't help me figure out why it isn't enlisting22:48
pmatulismimizone, it should work, yes22:49
pmatulismimizone, if you could include a reproducer in a docs bug then i would have something to go by22:49
roaksoaxstormmore: so have you ssh'd into the image itself ?22:49
stormmoreSiva_, well that will explain why it will ask for a password using the command roaksoax gave you, you don't have the key loaded into an agent thus it doesn't know it has a key to use22:49
stormmoreroaksoax, correct, I have an image on the machine that I am trying to enlist22:50
Siva_@stormore, the following command works though..... sudo -u maas -H virsh -c {your-connection-string} list --all22:50
Siva_@stormore, the following command works though..... sudo -u maas -H virsh -c {your-connection-string} list --all.... it does not ask for a password22:51
stormmoreok tryin sudo -u maas -H virst -c ssh-add -l22:52
stormmoreargh!22:52
stormmoreok tryin sudo -u maas -H virsh -c ssh-add -l22:52
stormmoreSiva_, the problem when it asks you for a password is caused by the fact that the command you are trying to run doesn't know where the private key is22:53
roaksoaxstormmore: so the enlistment process is:22:56
roaksoax1. machine PXE boots22:56
roaksoax2. loads the image from MAAS' iscsi22:56
roaksoax3. image (cloud-init) access maas metadata server22:56
roaksoax3. cloud-init runs metadata, and contacts maas to "create" a "new" machine22:56
roaksoaxstormmore: from the last log, I see that 1, 2 and 3 went ahead successfully22:56
roaksoax4 is what may be failing22:57
stormmoreyeah and then nothing to show that it is even trying to enlist22:57
stormmore(on a side note, I really wish the return codes from maas-enlist were documented cause that might give some indication)22:58
mimizonepmatulis: sorry to bug, but what is the the typical value  of "release" in the preseed.py? it's not 16.04. Would it be xenial, or the entire name Ubuntu 16.04 LTS "Xenial Xerus"?23:00
mimizoneit is the value release=Config.objects.get_config('commissioning_distro_series'))23:00
mimizoneor release=node.get_distro_series())23:00
roaksoaxstormmore: is there no output in the console ?23:01
stormmoreroaksoax, not that I can get to a place that I can cut and paste :-/23:01
pmatulisroaksoax, can you answer mimizone's query?23:02
roaksoaxstormmore: and you said nothing here either right ? /var/log/maas/rsyslog/maas-enlisting-node/23:02
roaksoaxmimizone: can you pint me to where you are looking exactly ?23:03
mimizoneroaksoax: in maasserver/preseed.py23:03
mimizonetrying to find out how the preseed file is picked, based on the release/node name etc...23:04
roaksoaxmimizone: what do you mean ?23:04
mimizonesee the function get_preseed(node)23:04
mimizonemy understanding is that the preseed file is picked using that naming "{prefix}_{osystem}_{node_arch}_{node_subarch}_{release}_{node_name}"23:05
roaksoaxmimizone: release should be like 'xenial', 'trusty' etc23:05
stormmoreroaksoax, ok we might be making a little progress. found those /var/logs/maas/rsyslogs23:05
mimizoneprefix = curtin during the installation deployment23:05
mimizoneroaksoax: ok thanks. let me try.23:06
roaksoaxmimizone: curtin_userdata_ubuntu_amd64_generic_trusty_node0123:07
roaksoaxmimizone: it should be something along those lines23:07
mimizonestill need the userdata?23:07
roaksoaxmimizone: for ubuntu you can avoid specifying ubuntu23:07
stormmoreroaksoax, those logs were all messy so I have deleted them and trying again to get a clean run23:08
stormmorenow it didn't recreate the log :-/23:08
mimizonelooks like curtin_ubuntu_amd64_generic_xenial_nodename does the trick. It crasehd my deployment = good sign since my curting yaml file is most likely invalid :)23:09
roaksoaxmimizone: hehe, just cp curtin_userdata to yours and modify accordingly23:09
roaksoaxstormmore: restart rsyslog23:09
roaksoax?23:09
stormmoreroaksoax, hmmm knew there was something I forgot to do ;-)23:10
stormmoreroaksoax, I think I found the problem http://paste.ubuntu.com/24081111/23:14
stormmoreroaksoax, specifically curl: (22) The requested URL returned error: 400 BAD REQUEST23:14
stormmoreroaksoax, think I am on the right track?23:20
pmatulismimizone, sweet, you got punted ahead :)23:21
mimizonepmatulis: :) there must be more to it now, because just copying the curtin_userdata to the other config for specifically that node breaks the deployment23:24
pmatulismimizone, like i said, i haven't looked at that stuff in donkey's years23:26
* pmatulis needs to make some ravioli for some small people23:27
mimizoneseeing stuff like this in the maas logs NameError: name 'curtin_preseed' is not defined at line 4 column 5 in file /etc/maas/preseeds/curtin_ubuntu_amd64_generic_xenial_osv16ocp3b23:27
mimizonetrying again with a 2 liner config file instead of an entire copy of the curtin_userdata...23:28
mimizonehow can I make the same GET /MAAS/metadata/latest/by-id/agqa6n/?op=get_preseed from the command line to see what's returned?23:32
mimizonebecause whatever it sends stops the deployment...23:33
mimizoneok got it23:35
mimizonecurl -X GET http://172.30.72.130/MAAS/metadata/latest/by-id/agqa6n/?op=get_preseed23:35
stormmoreOK I am going to take a break for a bit and try again when I get home23:39
mimizoneWhat I am noticing is that if I remove the specific configuration file for my node, the metdata/getpreseed call returns something completely different from the curtin_userdata23:45
mimizoneit returns all the necessary stuff for apt, datasource, syslog etc...23:46
mimizoneotherwise it returns my file, that misses all that info. which I assume explains the deployment aborts the process23:47
mimizonegot it.23:48
mimizonethe file to copy is the /etc/maas/preseeds/curtin23:49
mimizonenot the curtin_userdata23:49
mimizonebasically I need to add {{preseed_data}} at the top of my own file23:49

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