[00:58] <roaksoax> seffyroff: what do you want to manipulate
[01:09] <Hey> I created a Windows VM and I want to convert it so that it cna be used with MAAS. What format do I covert it too?
[01:22] <roaksoax> Hey: it wont work with MAAS
[01:26] <Hey> roaksoax, I added the curtin files
[01:27] <Hey> actually, I am one step ahead.. I am using windows-opoenstack-imaging-tools to create the image
[14:40] <seffyroff> roaksoax: I want to set the default domain.  currently hosts are receiving .maas, and I don't want that
[14:57] <roaksoax> seffyroff: change the domain name over the API
[15:04] <Hey_> roaksoax: I created a windows image customized it, sysprepped it, then cast it to a Hyper-v VM using WinPE.  I then placed the curtin folder in the root.
[15:05] <Hey_> The steps following this is to create an image that MAAS can use for BareMetal.
[15:05] <Hey_> Do those steps look correct?
[15:05] <Hey_> amd I missing anything?
[15:24] <mup> Bug #1707563 changed: [2.2] no API document on /api/2.0/machines/{system_id}/ op=test <doc> <docteam> <MAAS:Fix Released> <https://launchpad.net/bugs/1707563>
[17:06] <seffyroff> roaksoax: sure thing, that's what I've been wrestling with.  I've tried using the python visceral stuff, the shell, the cli, rest calls via curl or postman, in each case i get different, generic errors
[17:28] <seffyroff> with curl and postman, I can't get oauth exchange to happen, so stuck before anything useful.  With the cli I don't seem to be able to query dnsresources.  Using the maas library from github, the profiles command seems to be missing
[17:28] <seffyroff> so the origin object doesn't get created in the shell
[17:30] <mup> Bug #1759911 opened: [enhancement] during enlistment, when maas can't create a bmc user/password, node's bmc ip address is not reported <foundations-engine> <MAAS:Triaged by andreserl> <https://launchpad.net/bugs/1759911>
[17:36] <seffyroff> correction: the profiles command doesn't seem to include a login subcommand
[18:19] <roaksoax> seffyroff: maas <user> domain update <domain-id> name=<new-name>
[18:19] <roaksoax> seffyroff: this may also be helpful https://www.lucaswilliams.net/index.php/2016/10/02/maas-2-0-and-dns/
[18:21] <seffyroff> roaksoax: thanks! - I'll take a look at the link and try out that cmd
[18:25] <seffyroff> argument COMMAND: invalid choice: 'domain' (choose from 'devices', 'files', 'machines', 'nodes', 'rack-controllers', 'region-controllers', 'version')
[18:26] <seffyroff> the admin profile doesn't have access to the domain
[18:29] <roaksoax> seffyroff: are you sure its a user ?
[18:29] <roaksoax> admin user*
[18:31] <seffyroff> admin is the user i login to the webui with.  How can I determine it's perms?
[18:32] <seffyroff> you are on to something there though
[18:32] <seffyroff> if i use the guthub maas client i see:
[18:32] <seffyroff> ~/amc$ bin/maas users admin --profile admin
[18:32] <seffyroff> Error: argument --profile: invalid choice: 'admin' (choose from )
[18:33] <seffyroff> guthub.  Lol.  Freudian slip there - I need a snack :D
[18:35] <roaksoax> seffyroff: use the older cli
[18:35] <roaksoax> seffyroff: not the one from python-libmaas
[18:36] <seffyroff> with that I get: argument COMMAND: invalid choice: 'domain' (choose from 'devices', 'files', 'machines', 'nodes', 'rack-controllers', 'region-controllers', 'version')
[18:39] <seffyroff> correction
[18:39] <seffyroff> I get argument COMMAND: invalid choice: 'domain' (choose from 'refresh', 'logout', 'list', 'login', 'apikey', 'createadmin', 'changepassword', 'admin')
[18:43] <seffyroff> hang on, i did a refresh and now it looks like I'm getting more options
[18:45] <seffyroff> it's working now!
[18:50] <seffyroff> right, so the name I want to change the maas domain to is another exisiting domain, which I can't delete as it has nodes using it.  So next step is to batch change those nodes back to the maas domain.  I can figure this out, maybe :D
[18:54] <seffyroff> separate issue (or maybe it's related?) i can pxe-boot a machine from the maas rack controller (I see it pulls dhcp from the rack controller's IP) but it doesn't then netboot, it just exits pxe
[19:04] <seffyroff> trying to pxe-boot it again whilst watching the logs
[19:06] <seffyroff> maasserver.region_controller.DNSReloadError: Failed to reload DNS; serial mismatch on domains lan, maas
[19:33] <seffyroff> ok, so i can't easily (via webui or cli) seem to remove dnsresource records
[20:10] <seffyroff> hm, in the GUI i see a bunch of resource records under the 'lan' domain, but when I do  'maas admin dnsresource-records read domain=lan' i get:
[20:10] <seffyroff> Success.
[20:10] <seffyroff> Machine-readable output follows:
[20:10] <seffyroff> []
[20:16] <seffyroff> ok, so deleting all devices seemed to be the only way to remove dnsresource records
[20:16] <seffyroff> so i've done that
[20:16] <seffyroff> they will be re-discovered :/
[20:19] <seffyroff> ok, successfully renamed the maas domain now
[20:19] <seffyroff> still seeing the DNS reload error though
[20:21] <seffyroff> 2018-03-29 20:20:24 maasserver.region_controller: [critical] Failed configuring DNS.
[20:21] <seffyroff> Traceback (most recent call last):
[20:21] <seffyroff>   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 393, in callback
[20:21] <seffyroff>     self._startRunCallbacks(result)
[20:21] <seffyroff>   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 501, in _startRunCallbacks
[20:21] <seffyroff>     self._runCallbacks()
[20:21] <seffyroff>   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 588, in _runCallbacks
[20:21] <seffyroff>     current.result = callback(current.result, *args, **kw)
[20:21] <seffyroff>   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1184, in gotResult
[20:21] <seffyroff>     _inlineCallbacks(r, g, deferred)
[20:21] <seffyroff> --- <exception caught here> ---
[20:21] <seffyroff>   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks
[20:21] <seffyroff>     result = g.send(result)
[20:21] <seffyroff>   File "/usr/lib/python3/dist-packages/maasserver/region_controller.py", line 175, in _checkSerial
[20:21] <seffyroff>     "on domains %s" % ', '.join(not_matching_domains))
[20:21] <seffyroff> maasserver.region_controller.DNSReloadError: Failed to reload DNS; serial mismatch on domains lan
[20:21] <seffyroff> eek, sorry for the spam
[20:24] <seffyroff> here's a link to the log entry: http://termbin.com/znbl
[20:33] <seffyroff> my pxe-boot issue seems to have gone away.  my new machine just successfully pxe-booted into enlistment
[20:33] <seffyroff> not sure what changed there :/
[20:52] <mup> Bug #1759944 opened: [2.4, UI] Changing the subnet's fabric/vlan over the UI has no effect <MAAS:Triaged> <https://launchpad.net/bugs/1759944>
[20:58] <mup> Bug #1759946 opened: [2.3+] Changing a subnet's fabric/vlan doesn't automatically update the interface model <MAAS:New> <MAAS 2.3:New> <https://launchpad.net/bugs/1759946>
[21:03] <seffyroff> i guess my next move, which is my default move with anything DNS related is 'wait an hour' and see if it corrects itself?
[21:10] <roaksoax> seffyroff: that's strange, what you are reporting
[21:10] <roaksoax> seffyroff: that said
[21:10] <roaksoax> seffyroff: if machines atomatically dhcp from MAAS they will have a dns record created to the, which you cannot remove
[21:11] <roaksoax> seffyroff: iirc, same when you deploy a machine
[21:11] <roaksoax> seffyroff: so the stuff that maas does automatically cannot be changed
[21:14] <seffyroff> well, that error spams every 30 seconds or so, and has been doing so all day, so prior to any machine deployment, and has continued even when I deleted all nodes
[21:15] <seffyroff> there is an upstream dns server on the lan, but i don't seen anything in its logs related to local dns lookups
[21:15] <seffyroff> my bind knowledge is fairly limited so not sure how to proceed.  there's a set-serial command which might help, but it's unclear to me what to set it to
[21:16] <seffyroff> i can see in the /etc/bind/maas/* files refrences to serials in the zone files
[21:17] <seffyroff> so just pick an increment higher??
[21:17] <roaksoax> seffyroff: i would reocmmend you file a bug and provide step by step instructions on how to reproduce it, as I just tried, and was unable to
[21:18] <seffyroff> ok, however I have done a bunch of stuff before reaching this point.  I'm tempted to tear down and reinstall maas first.
[21:19] <seffyroff> which is non-trivial as the rackd is now providing dhcp to my lan
[21:19] <seffyroff> although not super difficult
[21:19] <seffyroff> i'll do that first.
[21:24] <roaksoax> seffyroff: sounds good
[23:54] <dsop_> Hi all. Looking for assistance with curtin. Want to have different config files for different machines in maas; would I 'pin' them to tags? Or would I 'pin' them to domains?
[23:54] <dsop_> thanks in advance. also if there's a better place to ask this (or to find previous questions) please lmk