mup | Bug #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 |
---|---|---|
jwitko | 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 |
jwitko | sometimes I call it and receive a JSON return | 01:46 |
jwitko | and sometimes I receive a pickle file | 01:46 |
=== valeech_ is now known as valeech | ||
=== frankban|afk is now known as frankban | ||
herb64 | Hi all, having trouble with MAAS API in python script, MAAS version 2.0.0+bzr5189-0ubuntu1 / 16.04.1 | 08:45 |
herb64 | can do GET without problems, e.g. >> 'GET /machines/?mac_address=52:54:00:2e:77:93' returned status '200' | 08:46 |
herb64 | And getting everything even with that filter fine | 08:46 |
herb64 | But seems that I'm too dumb to get PUT working to change a hostname | 08:46 |
herb64 | Docs say to use PUT /machines/<system_id>/ | 08:47 |
herb64 | And then parameters and values can be passed... But either I get errors, or Code 200 but my input is ignored | 08:48 |
herb64 | Anybody who can provide a simple example on how to pass parameters correctly for the request? | 08:48 |
brendand | herb64, puts are a bit tricky, can i see your code? | 08:50 |
brendand | herb64, this is relevant to you: http://maas.ubuntu.com/docs/api.html?_ga=1.243576581.1468356320.1463157245#http-methods-and-parameter-passing | 08:51 |
herb64 | I tried many combinations. some here | 08: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 |
herb64 | oops, not readable | 08:52 |
herb64 | '/machines/%s/?{"hostname": "%s"}' % (sysid, newname) | 08:52 |
brendand | that won't work | 08:52 |
herb64 | Tried many combinations, but nothing did work | 08:53 |
herb64 | 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:54 |
brendand | herb64, how did you do the post? | 08:56 |
herb64 | The string for commissioning was 'POST','/machines/%s/?op=commission' % sysid, | 08:57 |
brendand | herb64, did you pass it any paramaters though? | 08:57 |
brendand | parameters | 08:57 |
brendand | that's the trick i think | 08:58 |
herb64 | no, just as shown | 08:58 |
brendand | ah ok | 08:58 |
herb64 | trying to change hostname again, now using simple string like this | 08:58 |
herb64 | >> 'PUT /machines/4y3hby/?hostname=herbert' returned status '200' | 08:58 |
brendand | the documentation is not great unfortunately, it kind of assumes you have an in-depth knowledge of http apis | 08:58 |
herb64 | Getting 200, but hostname part just ignored as it seems | 08:59 |
brendand | i am writing all my api code with pythons requests library, so i haven't tested this, but what should work is: | 09:00 |
herb64 | Could not find any example string showing how to pass the parameters unfortunately | 09:00 |
brendand | params = {'param1': 'value1', ...} | 09:01 |
brendand | headers['Content-Type'] = 'multipart/form-data' | 09:02 |
brendand | http.request(uri=url, method='PUT', body=params, headers=headers) | 09:02 |
brendand | i.e. put the parameters in a dictionary and pass that in the 'body' argument | 09:03 |
brendand | and make sure to add 'Content-Type' = 'multipart/form-data' to the headers | 09:03 |
herb64 | 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:04 |
herb64 | Thanks, Brendan, for the hints, I'll go ahead with that | 09:05 |
brendand | i'll paste something using requests that i know for sure works | 09:05 |
brendand | http://paste.ubuntu.com/23215001/ | 09:09 |
brendand | that's the same code i'm using so i'll be flabbergasted if it doesn't work :) | 09:10 |
brendand | except i forgot to import requests, so make sure to do that :) | 09:10 |
brendand | and oauth.oauth :P | 09:11 |
herb64 | great, thanks for your help, I'll go for that | 09:22 |
herb64 | Brendan, hostname change now works perfectly, thanks so much for your kind help | 09:32 |
brendand | herb64, delighted i could be of service :) | 09:38 |
=== mup_ is now known as mup | ||
mup | Bug #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 |
samba35 | when i download any image from internet for maas /pxe boot where that image is store on hardisk ? | 11:46 |
samba35 | i am trying to configure 1st maas server on ubuntu 16.04.1 with maas version 2 | 11:47 |
samba35 | where is maas logs are store ? | 12:30 |
brendand | samba35, /var/log/maas | 12:31 |
samba35 | ok ,thanks | 12:31 |
samba35 | can you please help me to understand maas boot ? | 12:31 |
brendand | samba35, if i can, sure | 12:32 |
samba35 | this is my 1st maas server setup and i am trying to boot with pxe using kvm | 12:32 |
brendand | samba35, that's a common configuration :) | 12:32 |
brendand | samba35, so you installed maas on a kvm instance? | 12:33 |
samba35 | i am getting noting to boot no such file or configuration | 12:33 |
brendand | samba35, probably you've missed some steps | 12:33 |
samba35 | may be i am doing something wrong | 12:34 |
brendand | samba35, did you download the images and enable dhcp? | 12:34 |
samba35 | i think i have download image as per gui | 12:34 |
samba35 | can you please tell me how do i check that image is download and where it is store ? | 12:35 |
brendand | samba35, that's automatic so indeed it should be downloaded | 12:35 |
brendand | samba35, don't worry about that for now, if the ui is saying they are downloaded they probably are | 12:35 |
brendand | but you must enable dhcp | 12:35 |
samba35 | yes dhcp is enable | 12:35 |
brendand | and is the node booting on the same subnet as the maas server? | 12:36 |
samba35 | yes | 12:37 |
samba35 | 192.168.50.129 is server which is client in a network but this is ubuntu server with maas | 12:37 |
brendand | samba35, in which network? | 12:38 |
samba35 | when i start kvm pxe guest i am getting ip address but it say it could not get image or file | 12:38 |
brendand | is the maas installed also in a vm or on hardware? | 12:39 |
samba35 | hardware | 12:40 |
samba35 | please correct me i have installed ubuntu server and on top of ubuntu server i have install/configure maas is that correct ? | 12:40 |
brendand | 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 |
brendand | so i haven't tried this way, at least in a while | 12:43 |
samba35 | ok | 12:43 |
samba35 | can i send you pm ? | 12:43 |
brendand | hold on | 12:44 |
samba35 | brendand: do you have image store in it is /var/www/html/maas/images/ephemeral-v2/daily location ? | 13:01 |
roaksoax | brendand: i run MAAS on the hardware | 13:26 |
roaksoax | brendand: on a libvirt bridge | 13:26 |
roaksoax | brendand: maas being the gw for the machines | 13:26 |
roaksoax | brendand: libvirt configured NAT | 13:27 |
roaksoax | brendand: but disable dhcp on the libvirt network | 13:27 |
samba35 | ok | 13:28 |
brendand | 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:28 |
roaksoax | brendand: even if you create MAAS on a VM, you still have to disable libvirt's DHCP | 13:29 |
roaksoax | brendand: to not badly interact with MAAS | 13:29 |
samba35 | my ubuntu server is client on network , my ubuntu get ip address from dhcp server still maas will work | 13:29 |
samba35 | static ip assign to ubuntu | 13:30 |
brendand | samba35, i think that is fine | 13:30 |
samba35 | ok ,thanks | 13:31 |
samba35 | 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: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 | ||
kiko | rock___, what was the issue? | 14:03 |
rock___ | kiko: xenial repo issue. we tried again and again .It worked. | 14:13 |
kiko | rock___, broken mirror | 14:18 |
rock___ | kiko: Yes | 14:19 |
kiko | woot! | 14:19 |
* kiko high 5s baldpope | 14:25 | |
samba35 | images are downloaded but still same error | 14:45 |
samba35 | i am using openvswitch is that a problem ? | 14:46 |
kiko | samba35, I'm lacking some context. what are you doing? | 14:53 |
samba35 | i am trying to boot from pxe with kvm | 14:54 |
samba35 | virt-manger using | 14:54 |
samba35 | can you please tell me which type of network i have to select ? | 14:56 |
samba35 | my ubuntu is 16.04.1 ,using maas version 2 (default come with apt) | 14:56 |
neith | kiko: the openstack-installer un multi mode is not subject to license , right? | 15:25 |
neith | kiko: does it provides a ceph installer? | 15:25 |
kiko | neith, yes, it installs our standard openstack | 15:28 |
kiko | neith, so conjure-up just drives charms, no licensing | 15:28 |
kiko | neith, openstack-install a) should not be used and b) deploys landscape, which comes with a free 10-node license | 15:28 |
kiko | our standard openstack includes ceph ftr | 15:28 |
neith | kiko: really? conjure-up is free and comes with ceph? | 15:47 |
kiko | neith, yes | 15:48 |
neith | kiko: great | 15:49 |
kiko | https://github.com/conjure-up/conjure-up/blob/master/LICENSE | 15:49 |
kiko | https://github.com/conjure-up/conjure-up/blob/6e43be2a2bb2b66bc74051fe20f5fb8204b865e7/docs/wireframes.txt | 15:49 |
kiko | neith, ^^ | 15:49 |
kiko | if you need help just ask mmcc and stokachu | 15:49 |
neith | kiko: i'll try tomorrow, whats your timezone? | 15:50 |
kiko | neith, I'm in brazil so anything non-asia is fine | 15:51 |
roaksoax | /win/win 6 | 15:56 |
neith | kiko: does Maas is required? | 16:12 |
neith | kiko: prefered? | 16:12 |
neith | with conjure up | 16:13 |
kiko | neith, well.. what are you deploying onto? if it's hardware, MAAS is required | 16: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 guest | 16:28 |
smgoller | Is there anything that integrates something like ansible with maas? l | 16:28 |
smgoller | 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:29 |
neith | kiko: bare metal yes | 16:31 |
kiko | neith, then you want MAAS for sure, and luckily you're in the right place | 16:38 |
kiko | smgoller, yes, there's something called maansible | 16:38 |
smgoller | kiko: haha, awesome :) | 16:38 |
kiko | 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 |
smgoller | kiko, thanks! | 16:39 |
kiko | it's a great name | 16:39 |
neith | Maasible only seems to be a dynamic inventory tool for ansible | 16:41 |
kiko | ah | 16:41 |
neith | I'm sure I can hook ansible as a provisioner once a node is bootstrapped by maaq | 16:42 |
neith | Maas | 16:42 |
kiko | yes, that's easy | 16:44 |
lucio_ | hi there, need help troubleshooting maas 2.0, nodes are failing to commission | 16:53 |
kiko | lucio_, okay, enable the "keep node running" checkbox and check /var/log for fun entries | 16:53 |
lucio_ | hi kiko thanks, where can i find this keep node running checkbox? | 16:55 |
=== frankban is now known as frankban|afk | ||
kiko | lucio_, 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 |
kiko | lucio_, yep | 16:56 |
lucio_ | ok thank you it is running, how do I ssh into the node? | 16:57 |
kiko | lucio_, umm. I don't know how to answer that question :) | 16:58 |
kiko | you ssh into the node? :) | 16:58 |
lucio_ | to ssh I would need a key and and ip address... | 16:59 |
brendand | lucio_, the ip address is on the node details page | 17:00 |
lucio_ | ok | 17: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 one | 17:04 |
kiko | lucio_, see the console | 17: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 |
mup | Bug #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 think | 17: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 node | 17:19 |
kiko | lucio_, no PXE boot | 17:20 |
lucio_ | how can I check if DHCP is working ok? | 17:21 |
lucio_ | in the ui I see dhcpd is running under controller services | 17:22 |
lucio_ | green checkbox on dhcpd | 17:22 |
lucio_ | images are downloaded | 17:22 |
mup | Bug #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 later | 17:54 |
mup | Bug #1626680 opened: MAAS forces IPv6 address <canonical-is> <MAAS:New> <https://launchpad.net/bugs/1626680> | 18:12 |
mup | Bug #1581730 changed: [2.0b5] Commissioning / enlistment templates in /etc/maas/templates <MAAS:Fix Released> <https://launchpad.net/bugs/1581730> | 19:48 |
mup | Bug #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 |
mup | Bug #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 |
mup | Bug #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 |
jwitko | 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 |
jwitko | It's the same exact API call, but it doesn't always return the same format of response | 20:32 |
kiko | jwitko, sounds like a bug | 20:33 |
mup | Bug #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 |
mup | Bug #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 |
kiko | roaksoax, have we heard of this? | 20:33 |
kiko | jwitko, could we get a bug on https://launchpad.net/maas/+filebug | 20:34 |
roaksoax | jwitko: it should always return json | 20:37 |
roaksoax | jwitko: but if it returns pickle, yeah that's a bug | 20:37 |
roaksoax | jwitko: it may not always be sorted the same though | 20:38 |
jwitko | I'm creating a bug now | 20:38 |
jwitko | here is an example I just got | 20:38 |
jwitko | http://paste.ubuntu.com/23217500/plain/ | 20:38 |
jwitko | that was the return from a GET to http://maas1.lab/MAAS/api/2.0/machines/4y3h7q/ | 20:39 |
jwitko | hm, i am seeing errors in the MaaS logs... maybe this is something on my end | 20:46 |
roaksoax | jwitko: yeah that might as well be the case | 20:48 |
mup | Bug #1626734 opened: identical API calls returning different formatted responses <MAAS:New> <https://launchpad.net/bugs/1626734> | 20:48 |
jwitko | flushed the logs, going to see the errrors that happen now | 20:49 |
roaksoax | jwitko: blake resinded to your bug | 20:51 |
jwitko | roaksoax, so the request, when it returns a pickle object, is also returning "No JSON object could be decoded" | 20:54 |
mup | Bug #1626734 changed: identical API calls returning different formatted responses <MAAS:New> <https://launchpad.net/bugs/1626734> | 20:54 |
jwitko | ugh, nevermind the above, thats formatting | 20:54 |
jwitko | in my python script | 20:55 |
mup | Bug #1626734 opened: identical API calls returning different formatted responses <MAAS:New> <https://launchpad.net/bugs/1626734> | 21:03 |
mup | Bug #1626734 changed: identical API calls returning different formatted responses <MAAS:New> <https://launchpad.net/bugs/1626734> | 21:18 |
mup | Bug #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!