/srv/irclogs.ubuntu.com/2016/09/22/#maas.txt

mupBug #1626334 opened: [2.0] Failures to release ESXi 6.0 VMs - Failed talking to node's BMC: <vCenter IP Address>:443 is not a VIM server <oil> <MAAS:New> <https://launchpad.net/bugs/1626334>00:46
jwitkohey 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 types01:46
jwitkosometimes I call it and receive a JSON return01:46
jwitkoand sometimes I receive a pickle file01:46
=== valeech_ is now known as valeech
=== frankban|afk is now known as frankban
herb64Hi all, having trouble with MAAS API in python script, MAAS version 2.0.0+bzr5189-0ubuntu1 / 16.04.108:45
herb64can do GET without problems, e.g. >> 'GET /machines/?mac_address=52:54:00:2e:77:93' returned status '200'08:46
herb64And getting everything even with that filter fine08:46
herb64But seems that I'm too dumb to get PUT working to change a hostname08:46
herb64Docs say to use PUT /machines/<system_id>/08:47
herb64And then parameters and values can be passed... But either I get errors, or Code 200 but my input is ignored08:48
herb64Anybody who can provide a simple example on how to pass parameters correctly for the request?08:48
brendandherb64, puts are a bit tricky, can i see your code?08:50
brendandherb64, this is relevant to you: http://maas.ubuntu.com/docs/api.html?_ga=1.243576581.1468356320.1463157245#http-methods-and-parameter-passing08:51
herb64I tried many combinations. some here08:52
herb64    response = perform_API_request(MAAS_URL,                                    'PUT',                                    u'/machines/%s/?{"hostname": "%s"}' % (sysid, newname),                                    #'/machines/%s/?power_type=ipmi' % (sysid),                                    APIKEY)08:52
herb64oops, not readable08:52
herb64'/machines/%s/?{"hostname": "%s"}' % (sysid, newname)08:52
brendandthat won't work08:52
herb64Tried many combinations, but nothing did work08:53
herb64I 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 with08:54
brendandherb64, how did you do the post?08:56
herb64The string for commissioning was 'POST','/machines/%s/?op=commission' % sysid,08:57
brendandherb64, did you pass it any paramaters though?08:57
brendandparameters08:57
brendandthat's the trick i think08:58
herb64no, just as shown08:58
brendandah ok08:58
herb64trying to change hostname again, now using simple string like this08:58
herb64>> 'PUT /machines/4y3hby/?hostname=herbert' returned status '200'08:58
brendandthe documentation is not great unfortunately, it kind of assumes you have an in-depth knowledge of http apis08:58
herb64Getting 200, but hostname part just ignored as it seems08:59
brendandi am writing all my api code with pythons requests library, so i haven't tested this, but what should work is:09:00
herb64Could not find any example string showing how to pass the parameters unfortunately09:00
brendandparams = {'param1': 'value1', ...}09:01
brendandheaders['Content-Type'] = 'multipart/form-data'09:02
brendandhttp.request(uri=url, method='PUT', body=params, headers=headers)09:02
brendandi.e. put the parameters in a dictionary and pass that in the 'body' argument09:03
brendandand make sure to add 'Content-Type' = 'multipart/form-data' to the headers09:03
herb64Ah, 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.html09:04
herb64Thanks, Brendan, for the hints, I'll go ahead with that09:05
brendandi'll paste something using requests that i know for sure works09:05
brendandhttp://paste.ubuntu.com/23215001/09:09
brendandthat's the same code i'm using so i'll be flabbergasted if it doesn't work :)09:10
brendandexcept i forgot to import requests, so make sure to do that :)09:10
brendandand oauth.oauth :P09:11
herb64great, thanks for your help, I'll go for that09:22
herb64Brendan, hostname change now works perfectly, thanks so much for your kind help09:32
brendandherb64, delighted i could be of service :)09:38
=== mup_ is now known as mup
mupBug #1626334 changed: [2.0] Failures to release ESXi 6.0 VMs - Failed talking to node's BMC: <vCenter IP Address>:443 is not a VIM server <oil> <MAAS:Invalid> <MAAS 2.0:Invalid> <MAAS trunk:Invalid> <https://launchpad.net/bugs/1626334>10:56
samba35when i download any image from internet for maas  /pxe boot where that image is store on hardisk ?11:46
samba35i am trying to configure 1st maas server on ubuntu 16.04.1 with  maas version 211:47
samba35where is maas logs are store ?12:30
brendandsamba35, /var/log/maas12:31
samba35ok ,thanks12:31
samba35can you please help me to understand maas boot ?12:31
brendandsamba35, if i can, sure12:32
samba35this is my 1st maas server setup and i am trying to boot with pxe using kvm12:32
brendandsamba35, that's a common configuration :)12:32
brendandsamba35, so you installed maas on a kvm instance?12:33
samba35i am getting noting to boot no such file or configuration12:33
brendandsamba35, probably you've missed some steps12:33
samba35may be i am doing something wrong12:34
brendandsamba35, did you download the images and enable dhcp?12:34
samba35i think i have download image as per gui12:34
samba35can you please tell me how do i check that image is download and where it is store ?12:35
brendandsamba35, that's automatic so indeed it should be downloaded12:35
brendandsamba35, don't worry about that for now, if the ui is saying they are downloaded they probably are12:35
brendandbut you must enable dhcp12:35
samba35yes dhcp is enable12:35
brendandand is the node booting on the same subnet as the maas server?12:36
samba35yes12:37
samba35192.168.50.129 is server which is client in a network but this is ubuntu server with maas12:37
brendandsamba35, in which network?12:38
samba35when i start kvm pxe guest i am getting ip address but it say it could not get image or file12:38
brendandis the maas installed also in a vm or on hardware?12:39
samba35hardware12:40
samba35please correct me i have installed ubuntu server and on top of ubuntu server i have install/configure maas is that correct ?12:40
brendandroaksoax, 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 laptop12:43
brendandso i haven't tried this way, at least in a while12:43
samba35ok12:43
samba35can i send you pm ?12:43
brendandhold on12:44
samba35brendand: do you have image store in it is /var/www/html/maas/images/ephemeral-v2/daily location ?13:01
roaksoaxbrendand: i run MAAS on the hardware13:26
roaksoaxbrendand: on a libvirt bridge13:26
roaksoaxbrendand: maas being the gw for the machines13:26
roaksoaxbrendand: libvirt configured NAT13:27
roaksoaxbrendand: but disable dhcp on the libvirt network13:27
samba35ok13:28
brendandroaksoax, 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 host13:28
roaksoaxbrendand: even if you create MAAS on a VM, you still have to disable libvirt's DHCP13:29
roaksoaxbrendand: to not badly interact with MAAS13:29
samba35my ubuntu server is client on network , my ubuntu get ip address from dhcp server  still maas will work13:29
samba35static ip assign to ubuntu13:30
brendandsamba35, i think that is fine13:30
samba35ok ,thanks13:31
samba35when 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:33
rock___KIKO/ROAKSOAX:  Finally, I did juju bootstrap of MAAS cloud on one of MAAS node successfully. ubuntu mirror issue gone. Thank you guys.13:43
rock___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.13:49
=== saibarspeis is now known as saibarAuei
kikorock___, what was the issue?14:03
rock___kiko: xenial repo issue. we tried again and again .It worked.14:13
kikorock___, broken mirror14:18
rock___kiko: Yes14:19
kikowoot!14:19
* kiko high 5s baldpope14:25
samba35images are downloaded but still same error14:45
samba35i am using openvswitch is that a problem ?14:46
kikosamba35, I'm lacking some context. what are you doing?14:53
samba35i am trying to boot from pxe with kvm14:54
samba35virt-manger using14:54
samba35can you please tell me which type of network i have to select ?14:56
samba35my ubuntu is 16.04.1 ,using maas version 2 (default come with apt)14:56
neithkiko: the openstack-installer un multi mode is not subject to license , right?15:25
neithkiko: does it provides a ceph installer?15:25
kikoneith, yes, it installs our standard openstack15:28
kikoneith, so conjure-up just drives charms, no licensing15:28
kikoneith, openstack-install a) should not be used and b) deploys landscape, which comes with a free 10-node license15:28
kikoour standard openstack includes ceph ftr15:28
neithkiko: really? conjure-up is free and comes with ceph?15:47
kikoneith, yes15:48
neithkiko: great15:49
kikohttps://github.com/conjure-up/conjure-up/blob/master/LICENSE15:49
kikohttps://github.com/conjure-up/conjure-up/blob/6e43be2a2bb2b66bc74051fe20f5fb8204b865e7/docs/wireframes.txt15:49
kikoneith, ^^15:49
kikoif you need help just ask mmcc and stokachu15:49
neithkiko: i'll try tomorrow, whats your timezone?15:50
kikoneith, I'm in brazil so anything non-asia is fine15:51
roaksoax/win/win 615:56
neithkiko: does Maas is required?16:12
neithkiko: prefered?16:12
neithwith conjure up16:13
kikoneith, well.. what are you deploying onto? if it's hardware, MAAS is required16:21
samba35"network selection does not support pxe" how do i fix it ? i am getting this message with virt-manger while create pxe boot guest16:28
smgollerIs there anything that integrates something like ansible with maas? l16:28
smgolleror 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:29
neithkiko: bare metal yes16:31
kikoneith, then you want MAAS for sure, and luckily you're in the right place16:38
kikosmgoller, yes, there's something called maansible16:38
smgollerkiko: haha, awesome :)16:38
kikosmgoller, I have never used it, it was built by a team in the philippines so YMMV but it's at least something to look at16:39
smgollerkiko, thanks!16:39
kikoit's a great name16:39
neithMaasible only seems to be a dynamic inventory tool for ansible16:41
kikoah16:41
neithI'm sure I can hook ansible as a provisioner once a node is bootstrapped by maaq16:42
neithMaas16:42
kikoyes, that's easy16:44
lucio_hi there, need help troubleshooting maas 2.0, nodes are failing to commission16:53
kikolucio_, okay, enable the "keep node running" checkbox and check /var/log for fun entries16:53
lucio_hi kiko thanks, where can i find this keep node running checkbox?16:55
=== frankban is now known as frankban|afk
kikolucio_, when you click on "commission" on the UI?16:55
lucio_you mean "Allow SSH access and prevent machine from powering off"16:56
lucio_?16:56
kikolucio_, yep16:56
lucio_ok thank you it is running, how do I ssh into the node?16:57
kikolucio_, umm. I don't know how to answer that question :)16:58
kikoyou ssh into the node? :)16:58
lucio_to ssh I would need a key and and ip address...16:59
brendandlucio_, the ip address is on the node details page17:00
lucio_ok17:02
lucio_Hi Kiko, I think it is not booting up, I do not see any ip address in the node details, DHCP has not assigned one17:04
kikolucio_, see the console17:05
lucio_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:08
lucio_in the log it says: powering on ...17:09
mupBug #1626654 opened: [2.0]  'Failed deployment: bootx64.efi' - rackd — Missing connections to 1 region controller(s). <oil> <MAAS:New> <https://launchpad.net/bugs/1626654>17:12
lucio_the bug says only EFI nodes affected, mine have the BIOS in legacy mode, so this bug would not be the reason, I think17:17
lucio_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 node17:19
kikolucio_, no PXE boot17:20
lucio_how can I check if DHCP is working ok?17:21
lucio_in the ui I see dhcpd is running under controller services17:22
lucio_green checkbox on dhcpd17:22
lucio_images are downloaded17:22
mupBug #1626669 opened: [2.1] Can't logout, create users and do other actions <MAAS:Triaged> <https://launchpad.net/bugs/1626669>17:42
lucio_thanks for the suggestions, will come back later17:54
mupBug #1626680 opened: MAAS forces IPv6 address <canonical-is> <MAAS:New> <https://launchpad.net/bugs/1626680>18:12
mupBug #1581730 changed: [2.0b5] Commissioning / enlistment templates in /etc/maas/templates <MAAS:Fix Released> <https://launchpad.net/bugs/1581730>19:48
mupBug #1593856 changed: Need a way to surface a name for an api-key in logs <oil> <MAAS:Triaged> <https://launchpad.net/bugs/1593856>20:03
mupBug #1593856 opened: Need a way to surface a name for an api-key in logs <oil> <MAAS:Triaged> <https://launchpad.net/bugs/1593856>20:09
mupBug #1593856 changed: Need a way to surface a name for an api-key in logs <oil> <MAAS:Triaged> <https://launchpad.net/bugs/1593856>20:18
jwitkohey 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 file20:32
jwitkoIt's the same exact API call, but it doesn't always return the same format of response20:32
kikojwitko, sounds like a bug20:33
mupBug #1626722 opened: DHPv6 addresses do not have netmasks: do not create /128 subnets for them <maas-ipv6> <MAAS:New> <https://launchpad.net/bugs/1626722>20:33
mupBug #1626727 opened: [2.1] You can define distribution or component for 'ubuntu archive' or 'ubuntu extra architectures' <MAAS:New> <https://launchpad.net/bugs/1626727>20:33
kikoroaksoax, have we heard of this?20:33
kikojwitko, could we get a bug on https://launchpad.net/maas/+filebug20:34
roaksoaxjwitko: it should always return json20:37
roaksoaxjwitko: but if it returns pickle, yeah that's a bug20:37
roaksoaxjwitko: it may not always be sorted the same though20:38
jwitkoI'm creating a bug now20:38
jwitkohere is an example I just got20:38
jwitkohttp://paste.ubuntu.com/23217500/plain/20:38
jwitkothat was the return from a GET to http://maas1.lab/MAAS/api/2.0/machines/4y3h7q/20:39
jwitkohm, i am seeing errors in the MaaS logs... maybe this is something on my end20:46
roaksoaxjwitko: yeah that might as well be the case20:48
mupBug #1626734 opened: identical API calls returning different formatted responses <MAAS:New> <https://launchpad.net/bugs/1626734>20:48
jwitkoflushed the logs, going to see the errrors that happen now20:49
roaksoaxjwitko: blake resinded to your bug20:51
jwitkoroaksoax, so the request, when it returns a pickle object, is also returning "No JSON object could be decoded"20:54
mupBug #1626734 changed: identical API calls returning different formatted responses <MAAS:New> <https://launchpad.net/bugs/1626734>20:54
jwitkough, nevermind the above, thats formatting20:54
jwitkoin my python script20:55
mupBug #1626734 opened: identical API calls returning different formatted responses <MAAS:New> <https://launchpad.net/bugs/1626734>21:03
mupBug #1626734 changed: identical API calls returning different formatted responses <MAAS:New> <https://launchpad.net/bugs/1626734>21:18
mupBug #1626748 opened: [2.1] maas admin discoveries scan API output shows rack controller ids instead of names <MAAS:New> <https://launchpad.net/bugs/1626748>21:33
=== zz_CyberJacob is now known as CyberJacob
=== CyberJacob is now known as Guest3251

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