[00:46] Bug #1626334 opened: [2.0] Failures to release ESXi 6.0 VMs - Failed talking to node's BMC: :443 is not a VIM server [01:46] hey guys, I'm using maas 2.0 stable version (latest) and when issuesing GET /api/2.0/machines/{system_id}/ I am receiving different return types [01:46] sometimes I call it and receive a JSON return [01:46] and sometimes I receive a pickle file === valeech_ is now known as valeech === frankban|afk is now known as frankban [08:45] Hi all, having trouble with MAAS API in python script, MAAS version 2.0.0+bzr5189-0ubuntu1 / 16.04.1 [08:46] can do GET without problems, e.g. >> 'GET /machines/?mac_address=52:54:00:2e:77:93' returned status '200' [08:46] And getting everything even with that filter fine [08:46] But seems that I'm too dumb to get PUT working to change a hostname [08:47] Docs say to use PUT /machines// [08:48] And then parameters and values can be passed... But either I get errors, or Code 200 but my input is ignored [08:48] Anybody who can provide a simple example on how to pass parameters correctly for the request? [08:50] herb64, puts are a bit tricky, can i see your code? [08:51] herb64, this is relevant to you: http://maas.ubuntu.com/docs/api.html?_ga=1.243576581.1468356320.1463157245#http-methods-and-parameter-passing [08:52] I tried many combinations. some here [08:52] response = perform_API_request(MAAS_URL, 'PUT', u'/machines/%s/?{"hostname": "%s"}' % (sysid, newname), #'/machines/%s/?power_type=ipmi' % (sysid), APIKEY) [08:52] oops, not readable [08:52] '/machines/%s/?{"hostname": "%s"}' % (sysid, newname) [08:52] that won't work [08:53] Tried many combinations, but nothing did work [08:54] I checked that link already, but there's on syntax example.. I also did POST for commissioning successfully, it's just that PUT, I have problems with [08:56] herb64, how did you do the post? [08:57] The string for commissioning was 'POST','/machines/%s/?op=commission' % sysid, [08:57] herb64, did you pass it any paramaters though? [08:57] parameters [08:58] that's the trick i think [08:58] no, just as shown [08:58] ah ok [08:58] trying to change hostname again, now using simple string like this [08:58] >> 'PUT /machines/4y3hby/?hostname=herbert' returned status '200' [08:58] the documentation is not great unfortunately, it kind of assumes you have an in-depth knowledge of http apis [08:59] Getting 200, but hostname part just ignored as it seems [09:00] i am writing all my api code with pythons requests library, so i haven't tested this, but what should work is: [09:00] Could not find any example string showing how to pass the parameters unfortunately [09:01] params = {'param1': 'value1', ...} [09:02] headers['Content-Type'] = 'multipart/form-data' [09:02] http.request(uri=url, method='PUT', body=params, headers=headers) [09:03] i.e. put the parameters in a dictionary and pass that in the 'body' argument [09:03] and make sure to add 'Content-Type' = 'multipart/form-data' to the headers [09:04] Ah, ok. I'll try to check that and the python requests library. Currently, I'm using the code as shown in https://maas.ubuntu.com/docs2.0/api_authentication.html [09:05] Thanks, Brendan, for the hints, I'll go ahead with that [09:05] i'll paste something using requests that i know for sure works [09:09] http://paste.ubuntu.com/23215001/ [09:10] that's the same code i'm using so i'll be flabbergasted if it doesn't work :) [09:10] except i forgot to import requests, so make sure to do that :) [09:11] and oauth.oauth :P [09:22] great, thanks for your help, I'll go for that [09:32] Brendan, hostname change now works perfectly, thanks so much for your kind help [09:38] herb64, delighted i could be of service :) === mup_ is now known as mup [10:56] Bug #1626334 changed: [2.0] Failures to release ESXi 6.0 VMs - Failed talking to node's BMC: :443 is not a VIM server [11:46] when i download any image from internet for maas /pxe boot where that image is store on hardisk ? [11:47] i am trying to configure 1st maas server on ubuntu 16.04.1 with maas version 2 [12:30] where is maas logs are store ? [12:31] samba35, /var/log/maas [12:31] ok ,thanks [12:31] can you please help me to understand maas boot ? [12:32] samba35, if i can, sure [12:32] this is my 1st maas server setup and i am trying to boot with pxe using kvm [12:32] samba35, that's a common configuration :) [12:33] samba35, so you installed maas on a kvm instance? [12:33] i am getting noting to boot no such file or configuration [12:33] samba35, probably you've missed some steps [12:34] may be i am doing something wrong [12:34] samba35, did you download the images and enable dhcp? [12:34] i think i have download image as per gui [12:35] can you please tell me how do i check that image is download and where it is store ? [12:35] samba35, that's automatic so indeed it should be downloaded [12:35] samba35, don't worry about that for now, if the ui is saying they are downloaded they probably are [12:35] but you must enable dhcp [12:35] yes dhcp is enable [12:36] and is the node booting on the same subnet as the maas server? [12:37] yes [12:37] 192.168.50.129 is server which is client in a network but this is ubuntu server with maas [12:38] samba35, in which network? [12:38] when i start kvm pxe guest i am getting ip address but it say it could not get image or file [12:39] is the maas installed also in a vm or on hardware? [12:40] hardware [12:40] please correct me i have installed ubuntu server and on top of ubuntu server i have install/configure maas is that correct ? [12:43] roaksoax, should that configuration work? maas installed on the hw and vms pxe booting on the same hardware? usually i run my maas in another vm so as not to pollute my laptop [12:43] so i haven't tried this way, at least in a while [12:43] ok [12:43] can i send you pm ? [12:44] hold on [13:01] brendand: do you have image store in it is /var/www/html/maas/images/ephemeral-v2/daily location ? [13:26] brendand: i run MAAS on the hardware [13:26] brendand: on a libvirt bridge [13:26] brendand: maas being the gw for the machines [13:27] brendand: libvirt configured NAT [13:27] brendand: but disable dhcp on the libvirt network [13:28] ok [13:28] roaksoax, i guess that's it. i do have dhcp on my libvirt network, so i guess that only matters if you're running maas on the host [13:29] brendand: even if you create MAAS on a VM, you still have to disable libvirt's DHCP [13:29] brendand: to not badly interact with MAAS [13:29] my ubuntu server is client on network , my ubuntu get ip address from dhcp server still maas will work [13:30] static ip assign to ubuntu [13:30] samba35, i think that is fine [13:31] ok ,thanks [13:33] when gui say it has download images but i could not see any image on actual location you mention ,in that case what mistake i must be doing ? [13:43] KIKO/ROAKSOAX: Finally, I did juju bootstrap of MAAS cloud on one of MAAS node successfully. ubuntu mirror issue gone. Thank you guys. [13:49] kiko/roaksoax: When I was doing MAAS on KVM machines, I used maas 2.0 and then also MAAS not able to detect harddisks of KVM virtual machines. I have taken KVM VMs disk type as VirtIO. === saibarspeis is now known as saibarAuei [14:03] rock___, what was the issue? [14:13] kiko: xenial repo issue. we tried again and again .It worked. [14:18] rock___, broken mirror [14:19] kiko: Yes [14:19] woot! [14:25] * kiko high 5s baldpope [14:45] images are downloaded but still same error [14:46] i am using openvswitch is that a problem ? [14:53] samba35, I'm lacking some context. what are you doing? [14:54] i am trying to boot from pxe with kvm [14:54] virt-manger using [14:56] can you please tell me which type of network i have to select ? [14:56] my ubuntu is 16.04.1 ,using maas version 2 (default come with apt) [15:25] kiko: the openstack-installer un multi mode is not subject to license , right? [15:25] kiko: does it provides a ceph installer? [15:28] neith, yes, it installs our standard openstack [15:28] neith, so conjure-up just drives charms, no licensing [15:28] neith, openstack-install a) should not be used and b) deploys landscape, which comes with a free 10-node license [15:28] our standard openstack includes ceph ftr [15:47] kiko: really? conjure-up is free and comes with ceph? [15:48] neith, yes [15:49] kiko: great [15:49] https://github.com/conjure-up/conjure-up/blob/master/LICENSE [15:49] https://github.com/conjure-up/conjure-up/blob/6e43be2a2bb2b66bc74051fe20f5fb8204b865e7/docs/wireframes.txt [15:49] neith, ^^ [15:49] if you need help just ask mmcc and stokachu [15:50] kiko: i'll try tomorrow, whats your timezone? [15:51] neith, I'm in brazil so anything non-asia is fine [15:56] /win/win 6 [16:12] kiko: does Maas is required? [16:12] kiko: prefered? [16:13] with conjure up [16:21] neith, well.. what are you deploying onto? if it's hardware, MAAS is required [16:28] "network selection does not support pxe" how do i fix it ? i am getting this message with virt-manger while create pxe boot guest [16:28] Is there anything that integrates something like ansible with maas? l [16:29] or is this a scenario where i'm writing a script that interacts with maas to provision machines, then runs ansible to set them up? [16:31] kiko: bare metal yes [16:38] neith, then you want MAAS for sure, and luckily you're in the right place [16:38] smgoller, yes, there's something called maansible [16:38] kiko: haha, awesome :) [16:39] smgoller, I have never used it, it was built by a team in the philippines so YMMV but it's at least something to look at [16:39] kiko, thanks! [16:39] it's a great name [16:41] Maasible only seems to be a dynamic inventory tool for ansible [16:41] ah [16:42] I'm sure I can hook ansible as a provisioner once a node is bootstrapped by maaq [16:42] Maas [16:44] yes, that's easy [16:53] hi there, need help troubleshooting maas 2.0, nodes are failing to commission [16:53] lucio_, okay, enable the "keep node running" checkbox and check /var/log for fun entries [16:55] hi kiko thanks, where can i find this keep node running checkbox? === frankban is now known as frankban|afk [16:55] lucio_, when you click on "commission" on the UI? [16:56] you mean "Allow SSH access and prevent machine from powering off" [16:56] ? [16:56] lucio_, yep [16:57] ok thank you it is running, how do I ssh into the node? [16:58] lucio_, umm. I don't know how to answer that question :) [16:58] you ssh into the node? :) [16:59] to ssh I would need a key and and ip address... [17:00] lucio_, the ip address is on the node details page [17:02] ok [17:04] Hi Kiko, I think it is not booting up, I do not see any ip address in the node details, DHCP has not assigned one [17:05] lucio_, see the console [17:08] server is far away, I do not have a way to see the console of the node, is it possible to see the console in the maas ui ? [17:09] in the log it says: powering on ... [17:12] Bug #1626654 opened: [2.0] 'Failed deployment: bootx64.efi' - rackd — Missing connections to 1 region controller(s). [17:17] the bug says only EFI nodes affected, mine have the BIOS in legacy mode, so this bug would not be the reason, I think [17:19] hi Kiko, ok so the node has failed to commission again, it does not have an ip address assigned, power is on, but it did not get the hardware details from the node [17:20] lucio_, no PXE boot [17:21] how can I check if DHCP is working ok? [17:22] in the ui I see dhcpd is running under controller services [17:22] green checkbox on dhcpd [17:22] images are downloaded [17:42] Bug #1626669 opened: [2.1] Can't logout, create users and do other actions [17:54] thanks for the suggestions, will come back later [18:12] Bug #1626680 opened: MAAS forces IPv6 address [19:48] Bug #1581730 changed: [2.0b5] Commissioning / enlistment templates in /etc/maas/templates [20:03] Bug #1593856 changed: Need a way to surface a name for an api-key in logs [20:09] Bug #1593856 opened: Need a way to surface a name for an api-key in logs [20:18] Bug #1593856 changed: Need a way to surface a name for an api-key in logs [20:32] hey guys, I'm using maas 2.0 stable version (latest) and when issuesing GET /api/2.0/machines/{system_id}/ I am receiving different return types at what seems to be random. Most of the times its JSON but sometimes this returns a pickle file [20:32] It's the same exact API call, but it doesn't always return the same format of response [20:33] jwitko, sounds like a bug [20:33] Bug #1626722 opened: DHPv6 addresses do not have netmasks: do not create /128 subnets for them [20:33] Bug #1626727 opened: [2.1] You can define distribution or component for 'ubuntu archive' or 'ubuntu extra architectures' [20:33] roaksoax, have we heard of this? [20:34] jwitko, could we get a bug on https://launchpad.net/maas/+filebug [20:37] jwitko: it should always return json [20:37] jwitko: but if it returns pickle, yeah that's a bug [20:38] jwitko: it may not always be sorted the same though [20:38] I'm creating a bug now [20:38] here is an example I just got [20:38] http://paste.ubuntu.com/23217500/plain/ [20:39] that was the return from a GET to http://maas1.lab/MAAS/api/2.0/machines/4y3h7q/ [20:46] hm, i am seeing errors in the MaaS logs... maybe this is something on my end [20:48] jwitko: yeah that might as well be the case [20:48] Bug #1626734 opened: identical API calls returning different formatted responses [20:49] flushed the logs, going to see the errrors that happen now [20:51] jwitko: blake resinded to your bug [20:54] roaksoax, so the request, when it returns a pickle object, is also returning "No JSON object could be decoded" [20:54] Bug #1626734 changed: identical API calls returning different formatted responses [20:54] ugh, nevermind the above, thats formatting [20:55] in my python script [21:03] Bug #1626734 opened: identical API calls returning different formatted responses [21:18] Bug #1626734 changed: identical API calls returning different formatted responses [21:33] Bug #1626748 opened: [2.1] maas admin discoveries scan API output shows rack controller ids instead of names === zz_CyberJacob is now known as CyberJacob === CyberJacob is now known as Guest3251