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

=== Salty is now known as Guest45701
=== disposable3 is now known as disposable2
=== mimizone_ is now known as mimizone
=== marlinc_ is now known as marlinc
benlakeI’m apparantly missing something regarding where to access the API. Is it provided on the same port as the WebUI (I’d assume so)? /api/version/ and /api/2.0/ both return “No Such Resource"15:18
benlakewhelp. Just figured it out, /MAAS/api/version/15:19
benlakethat’s a tad unexpected. Had the impression /MAAS/ and /API/ would be respective UI and API roots.15:21
benlakeThe docs do not mention the MAAS_URL is the prefix.15:21
pmatulisbenlake, please provide the URL to the doc you followed15:34
benlakehttps://docs.ubuntu.com/maas/2.1/en/api15:35
pmatulisbenlake, ok, interesting. the intended page to get started with the CLI/API is:15:36
pmatulishttps://docs.ubuntu.com/maas/2.1/en/manage-cli15:36
benlakeerr, I wanted to get started with the API.15:37
pmatuliswe try to direct people at this top-level page:15:37
pmatulishttps://docs.ubuntu.com/maas/2.1/en/intro-management15:37
pmatulisbut i can see how you can end up directly on the API page15:37
benlakeAPI Documentation is a giant top level button :D15:38
pmatulisright15:38
benlakeI’m not using the CLI tool, I was looking for, and found, the API docs :P15:38
benlakewhich are great. Only trip was seeing all the /api roots paths, and not realizing that was in addition to whatever the configured MAAS_URL is15:39
pmatulisthe API docs are generated from the maas code. i don't have any influence there15:41
pmatulisroaksoax, possible to add some clarity? ^^^15:41
roaksoaxbenlake: cli is just a reflection of the API15:42
roaksoaxbenlake: it is auto generated15:42
roaksoaxbenlake: MAAS_URL is a config on /etc/maas/rackd.conf15:42
benlakeI’m confused by what you’re attempting to convey15:42
benlakewhy is the CLI relevant to wanting to access the API directly and discoverying how?15:43
benlakeand yes, I realize where the MAAS_URL is, it was just not apparent it needed to be the prefix to the paths referenced by the API docs.15:43
benlakethe service provided on 5240 could provide both /api/ and /maas/15:45
benlakenothing is wrong. I was just commenting that I tripped over /api needing to be /maas/api15:45
pmatulisbenlake, in passing, for any general documentation issues you can open them here:15:46
pmatulishttps://github.com/CanonicalLtd/maas-docs/issues/new15:46
benlakeyeah, the threshold for making paperwork is tricky.15:47
benlakefor a minor trip up that could easily be an expectation of mine simply not being the case; I leaned toward saying it here and seeing if it’s worth the issue.15:48
benlakethanks for he ref.15:48
pmatulisbenlake, your comment is valid IMO. and IRC is fine to discuss. i really meant for any future issues15:51
benlakeif I make interfaces changes to a controller, is there a way to get MAAS up to speed? Are the fabric references tied to interface names internally?15:56
benlakeare PPAs added via MAAS available through the proxy?16:40
* benlake is guessing not since Package Repositories says “…subsequently deployed”16:41
mupBug #1694759 opened: RSD Pod refresh shows ComposedNodeState is "Failed" <MAAS:Confirmed for newell-jensen> <MAAS RSD :Confirmed for newell-jensen> <https://launchpad.net/bugs/1694759>17:02
mupBug #1694761 opened: Invalid Pod Resources error shows in API but not UI <MAAS:Confirmed for blake-rouse> <https://launchpad.net/bugs/1694761>17:17
mupBug #1694761 changed: Invalid Pod Resources error shows in API but not UI <MAAS:Confirmed for blake-rouse> <https://launchpad.net/bugs/1694761>17:26
benlakeHmm, are the MAAS NTP settings used in the PXE boot images? I’m seeing ntp.ubuntu.com used during an attempted Release operation.17:31
benlakeI’m also seeing massing ureadahead errors, but I think they’ve been there for a while.17:32
benlakes/massing/massive/ - by massive I mean like 29k+ entries in syslog17:32
mupBug #1694761 opened: Invalid Pod Resources error shows in API but not UI <MAAS:Confirmed for blake-rouse> <https://launchpad.net/bugs/1694761>17:32
mupBug #1694767 opened: RSD composition not setting local disk tags <MAAS:Confirmed for newell-jensen> <MAAS RSD :Confirmed for newell-jensen> <https://launchpad.net/bugs/1694767>17:33
roaksoaxbenlake: the ureadahead errors are being looked at, non-maas issue though17:48
roaksoaxbenlake: that's a bug in ureadahead17:48
benlakethanks for the confirmation17:48
roaksoaxbenlake: as far as the proxy, it is a cashing proxy , so your ppas would still use the default proxy17:49
roaksoaxbenlake: on NTP, the commissioning environment will configure ntp17:49
benlakeneat @ proxy17:49
benlakeRe: ntp, not seeing that happen17:49
roaksoaxbenlake: go to /etc/ and grep for the expected config17:50
roaksoaxi'd need to check17:50
roaksoaxbenlake: unless it is systemd timesync that's doing those queries17:50
benlakeyeah, its systemd17:51
benlakeI’m seeing these things, which are likely not related at all, because a Release is failing (multiple tries)17:52
benlakeI’ve deployed/released this node a few times over the last few days, and now it’s hung17:52
benlakeare there any telltales in the logs that could confirm for me the booted envronment is/will attempt to erase didks?17:53
benlakealso disks17:53
roaksoaxbenlake: did the machine enter disk erasing mode and started erasing ?17:56
benlakeyes, then timed out17:56
roaksoaxbenlake: you should see progress in the events log17:56
roaksoaxbenlake: timeout when ?17:57
benlakewhile waiting for disk erase to complete17:57
benlakeit never timed out before...17:57
roaksoaxbenlake: do you have an example of how it did ?17:57
benlakeI popped into KVM to see what was up and I caught the tail end of “erasing disks complete” and then it powered off17:57
benlakeit just timed out again, so maybe. what do you mean example?17:58
benlake“Node changed status - From 'Disk erasing' to 'Failed disk erasing'"17:58
roaksoaxbenlake: do you have a full log ?18:00
benlakesure18:00
roaksoaxbenlake: also /var/log/maas/rsyslog/<machine-name>/<date>/messages18:00
benlakewould you only the latest release attempt and for me to remove ureadahead errors?18:01
* benlake notices a lot of snapd nonsense attemting to access the internet18:01
benlakethat’s annoying.18:02
roaksoaxbenlake: the ureadahead is unrelated though18:02
benlakeright, I was just going to remove it from the log so you don’t have to see it...18:03
benlakeit’s 29k entries of noise18:03
benlakeroaksoax: this is allt he runs sans ureadahead http://paste.ubuntu.com/24728711/plain/18:10
benlakeI just noticed this, which is interesting: cloud-init[3156]: request to http://10.128.1.130:5240/MAAS/metadata//2012-03-01/ failed. sleeping 32.: HTTP Error 409: CONFLICT18:10
benlakeaccording to the logs, it says it erased the disks. MAAS state for this node is “failed disk erasing”. I guess I’ll mark it as Broken, Fixed, and attempt to Deploy it18:17
roaksoaxbenlake: so, i need a full node event log18:21
roaksoaxbenlake: and the syslog18:21
roaksoaxto know what may be wrong18:21
benlakeall I did was grep -v ureadahead, you want all of that?18:21
roaksoaxbenlake: i think wiith what I have wrt to cloud-init is enough18:21
benlakethe only thing I stripped was ureadahead18:22
benlakeif that is unrelated, you have everything18:22
roaksoaxbenlake: my thinking is that this could be the culprit: May 31 17:55:52 electron systemd[1]: Failed to start Apply the settings specified in cloud-config.18:23
roaksoaxMay 31 17:55:52 electron systemd[1]: cloud-config.service: Unit entered failed state.18:23
roaksoaxMay 31 17:55:52 electron systemd[1]: cloud-config.service: Failed with result 'exit-code'.18:23
roaksoaxbenlake: do you have a node event log ? You can go to the UI and grab it from there18:23
roaksoaxspecially the "full"18:23
roaksoaxor you can grab it from the API on the 'events' endpoint18:23
benlakelemme see18:23
benlakeoh, you want the MAAS events, got it18:24
benlakeugh, between timesyncd and snapd, this thing sits around timing out for 5 minutes.18:26
roaksoaxbenlake: http://pastebin.ubuntu.com/24728895/18:27
roaksoaxthat's the issue18:27
benlakeI saw that before pasting and was about to mention it18:28
benlakehere is the entry in MASS UI, https://screencast.com/t/9ccpHGoc18:30
benlakeis something wrong with that?18:31
benlakeI went through the events exercise anyhow: http://paste.ubuntu.com/24728917/18:34
benlakehmm, it seems cloud-init might not know to use a proxy18:37
benlakeis it a project expectation deploying nodes have internet access?18:39
* benlake is just wondering18:39
roaksoaxbenlake: no. MAAS can work on completely offline environments18:45
benlakeyeah, I see it can, I’ve been using it that way18:45
roaksoaxbenlake: but my guess of what's happening here is that sudo add-apt-repository ppa:<etc> is failing behind a proxy18:45
benlakejust digging in the logs due to this PPA thing seems to show a lot of internet access attempts on these ephemeral images18:46
benlakeroaksoax: aye, that seems to be the case. It not being configured to use one18:46
benlakehttps://askubuntu.com/questions/724224/cant-add-ppa-on-ubuntu-15-10-user-or-team-does-not-exist18:46
benlakeold, but likely the same issue18:46
roaksoaxbenlake: the other thing you could do, is to add the ppa as a URL18:48
benlakeI think I tried that, but the UI said it was invalid18:49
benlakeprevented me from saving it. let me mess with it again18:49
roaksoaxbenlake: do it as 'add repository'18:53
benlakegotcha, does this look correct? https://screencast.com/t/lJy1PUpE49i18:55
pmatulisbenlake, you want to add a PPA right?19:18
benlakeyes, but see the discussion above19:18
pmatuliswell, i know i added a PPA before so i'm confused. are you using the default proxy?19:25
benlakeyes19:31
benlakeare you sure your node didn’t have internet access when being deployed?19:31
benlakecloud-init attempts to use add-apt-repository when booted into the ephemeral environment and does not honor any proxy19:32
pmatulisoh. right, of course it did19:34
pmatulisenabling a PPA requires internet access19:36
benlakenot sure MAAS devs expect that to be required.19:37
pmatulisif maas is supposed to be "offline ready" then i guess that's a bug. but i'm not sure how you can enable a PPA w/o internet19:37
benlakeif they do, another update to the docs would be a good idea :)19:38
pmatuliscan you file one?19:38
benlakeif the env vars htto_proxy and https_proxy are set, it’ll use it19:38
benlakeonly if roaksoax confirms19:38
benlake*http_proxy19:38
benlakeroaksoax: adding as non-PPA worked, thanks! Also the URL in my screenshot was completely wrong. I failed on that one.19:45
roaksoax:)19:55
roaksoaxbenlake: glad to hear it works now19:56
pmatulisbenlake, you were able to add a PPA as a non-PPA? 'splain?19:56
benlakehttps://launchpad.net/~linbit/+archive/ubuntu/linbit-drbd9-stack19:57
benlakegreen link, “Technical details about this PPA"19:57
benlakeshows the direct repo URL19:57
benlakecan use that with the add repo option instead of add ppa. basically the PPA helpers just lookup that URL and fetch the repo’s public key for you19:58
benlakeseems I have another auto IP address selection issue. The NTP server being set for deployed nodes is not the desired/functional IP20:28
benlakeI like the cascade of NTP servers, region, rack ,etc.20:28
benlakebut am I going to need to use the “force external NTP server” option here?20:29
benlakedang, but that would force the region controller to use itself as an NTP server.20:51
pmatulisbenlake, thanks (for the PPA stuff)20:57
pmatulisbenlake, what URL did you end up using? you said you made a mistake originally?22:55
benlakebad: https://launchpad.net/~linbit/+archive/ubuntu/linbit-drbd9-stack22:56
benlakegood: http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu22:56

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