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

roaksoaxseffyroff: what do you want to manipulate00:58
HeyI 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:09
roaksoaxHey: it wont work with MAAS01:22
Heyroaksoax, I added the curtin files01:26
Heyactually, I am one step ahead.. I am using windows-opoenstack-imaging-tools to create the image01:27
=== ackkk is now known as ackk
=== kukacz_ is now known as kukacz
seffyroffroaksoax: I want to set the default domain.  currently hosts are receiving .maas, and I don't want that14:40
roaksoaxseffyroff: change the domain name over the API14:57
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:04
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:05
mupBug #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>15:24
=== frankban is now known as frankban|afk
seffyroffroaksoax: 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 errors17:06
seffyroffwith 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 missing17:28
seffyroffso the origin object doesn't get created in the shell17:28
mupBug #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:30
seffyroffcorrection: the profiles command doesn't seem to include a login subcommand17:36
roaksoaxseffyroff: maas <user> domain update <domain-id> name=<new-name>18:19
roaksoaxseffyroff: this may also be helpful https://www.lucaswilliams.net/index.php/2016/10/02/maas-2-0-and-dns/18:19
seffyroffroaksoax: thanks! - I'll take a look at the link and try out that cmd18:21
seffyroffargument COMMAND: invalid choice: 'domain' (choose from 'devices', 'files', 'machines', 'nodes', 'rack-controllers', 'region-controllers', 'version')18:25
seffyroffthe admin profile doesn't have access to the domain18:26
roaksoaxseffyroff: are you sure its a user ?18:29
roaksoaxadmin user*18:29
seffyroffadmin is the user i login to the webui with.  How can I determine it's perms?18:31
seffyroffyou are on to something there though18:32
seffyroffif i use the guthub maas client i see:18:32
seffyroff~/amc$ bin/maas users admin --profile admin18:32
seffyroffError: argument --profile: invalid choice: 'admin' (choose from )18:32
seffyroffguthub.  Lol.  Freudian slip there - I need a snack :D18:33
roaksoaxseffyroff: use the older cli18:35
roaksoaxseffyroff: not the one from python-libmaas18:35
seffyroffwith that I get: argument COMMAND: invalid choice: 'domain' (choose from 'devices', 'files', 'machines', 'nodes', 'rack-controllers', 'region-controllers', 'version')18:36
seffyroffcorrection18:39
seffyroffI get argument COMMAND: invalid choice: 'domain' (choose from 'refresh', 'logout', 'list', 'login', 'apikey', 'createadmin', 'changepassword', 'admin')18:39
seffyroffhang on, i did a refresh and now it looks like I'm getting more options18:43
seffyroffit's working now!18:45
seffyroffright, 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 :D18:50
seffyroffseparate 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 pxe18:54
seffyrofftrying to pxe-boot it again whilst watching the logs19:04
seffyroffmaasserver.region_controller.DNSReloadError: Failed to reload DNS; serial mismatch on domains lan, maas19:06
seffyroffok, so i can't easily (via webui or cli) seem to remove dnsresource records19:33
seffyroffhm, 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
seffyroffSuccess.20:10
seffyroffMachine-readable output follows:20:10
seffyroff[]20:10
seffyroffok, so deleting all devices seemed to be the only way to remove dnsresource records20:16
seffyroffso i've done that20:16
seffyroffthey will be re-discovered :/20:16
seffyroffok, successfully renamed the maas domain now20:19
seffyroffstill seeing the DNS reload error though20:19
seffyroff2018-03-29 20:20:24 maasserver.region_controller: [critical] Failed configuring DNS.20:21
seffyroffTraceback (most recent call last):20:21
seffyroff  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 393, in callback20:21
seffyroff    self._startRunCallbacks(result)20:21
seffyroff  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 501, in _startRunCallbacks20:21
seffyroff    self._runCallbacks()20:21
seffyroff  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 588, in _runCallbacks20: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 gotResult20: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 _inlineCallbacks20:21
seffyroff    result = g.send(result)20:21
seffyroff  File "/usr/lib/python3/dist-packages/maasserver/region_controller.py", line 175, in _checkSerial20:21
seffyroff    "on domains %s" % ', '.join(not_matching_domains))20:21
seffyroffmaasserver.region_controller.DNSReloadError: Failed to reload DNS; serial mismatch on domains lan20:21
seffyroffeek, sorry for the spam20:21
seffyroffhere's a link to the log entry: http://termbin.com/znbl20:24
seffyroffmy pxe-boot issue seems to have gone away.  my new machine just successfully pxe-booted into enlistment20:33
seffyroffnot sure what changed there :/20:33
mupBug #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:52
mupBug #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>20:58
seffyroffi guess my next move, which is my default move with anything DNS related is 'wait an hour' and see if it corrects itself?21:03
roaksoaxseffyroff: that's strange, what you are reporting21:10
roaksoaxseffyroff: that said21:10
roaksoaxseffyroff: if machines atomatically dhcp from MAAS they will have a dns record created to the, which you cannot remove21:10
roaksoaxseffyroff: iirc, same when you deploy a machine21:11
roaksoaxseffyroff: so the stuff that maas does automatically cannot be changed21:11
seffyroffwell, 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 nodes21:14
seffyroffthere is an upstream dns server on the lan, but i don't seen anything in its logs related to local dns lookups21:15
seffyroffmy 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 to21:15
seffyroffi can see in the /etc/bind/maas/* files refrences to serials in the zone files21:16
seffyroffso just pick an increment higher??21:17
roaksoaxseffyroff: 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 to21:17
seffyroffok, however I have done a bunch of stuff before reaching this point.  I'm tempted to tear down and reinstall maas first.21:18
seffyroffwhich is non-trivial as the rackd is now providing dhcp to my lan21:19
seffyroffalthough not super difficult21:19
seffyroffi'll do that first.21:19
roaksoaxseffyroff: sounds good21:24
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 lmk23:54

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