/srv/irclogs.ubuntu.com/2016/08/26/#maas.txt

shewlessanyone still around?02:13
shewlessfor some reason I can't get the DNS forwarder to work in maas.02:13
shewlessI have it working on my old maas server but the new one just doesn't seem to want to forward .. not sure how to debug02:14
shewlessfigured it out.. /var/log/syslog was spewing "bind broken trust chain resolving"02:21
shewlessfixed it02:21
sujeet_Hi kiko04:17
sujeet_kiko: where can i get the document of uploading the commission script on MAAS 2.0?04:18
=== frankban|afk is now known as frankban
sujeet_Hi07:34
sujeet_where can i get the document of uploading the commission script on MAAS 2.0?07:35
roaksoaxsujeet_: API docs: http://maas.ubuntu.com/docs2.0/api.html#commissioning-script07:37
sujeet_i mean , where can i get the document for writing commission script and its step07:38
roaksoaxsujeet_: there's no document. it is just a script07:39
roaksoaxsujeet_: it it, literally, any script that you can run on a system with root priviliges07:39
sujeet_we need to upload the script and then commission it?07:39
sujeet_if we upload one script, and want to delete that script then?07:41
roaksoaxsujeet_: the commissioning scripts are run in commissioning07:42
roaksoaxso yes, you upload an script07:42
roaksoaxyou commissioning your machine07:42
roaksoaxthe script will run07:42
sujeet_if we want to delete script then?07:42
roaksoaxand you can delete your script later if you dont want any subsequent commissioning to run your script07:42
roaksoaxsujeet_: see the Settings page, under the commissioning scripts section07:43
roaksoaxif you upload one, it will be used07:43
roaksoaxand you can remove it07:43
sujeet_i dont see remove option in it07:43
sujeet_there is only one button to "upload script" and i cant find delete07:44
roaksoaxsujeet_: there's an X icon on the right side07:53
roaksoaxsujeet_: where you can delete it07:53
sujeet_MAAS2.0?07:54
roaksoaxsujeet_: yup07:55
roaksoaxsujeet_: i just did it here07:55
roaksoaxin chorme07:56
roaksoaxchrome browser07:56
sujeet_i can't see that option08:00
sujeet_i checked in IE, Firefox and chrome08:01
sujeet_the script is getting overlapped with other sections08:02
mupBug #1617195 opened: Cannot collapse commissioning script <MAAS:New> <MAAS 2.0:New> <MAAS trunk:New> <https://launchpad.net/bugs/1617195>08:03
sujeet_roaksoax : is there any other way to delete the script?08:03
roaksoaxsujeet_: via the API08:04
roaksoaxsujeet_: yeah I just filed a bug for the overlapping08:04
roaksoaxsujeet_: but click on the title of the script08:04
roaksoaxsujeet_: it will "expand" and stop the overlapping08:04
sujeet_yes i know that, but delete "X" option i cant see08:05
sujeet_i saw your screenshot and i can see "X" option on it, but in my setup i cant see it08:06
sujeet_using API i am getting "The requested URL /MAAS/DELETE /api/2.0/commissioning-scripts/abc.sh was not found on this server."08:14
sujeet_roaksoax: i think i got the "x" icon where it was hidden behind the <pre> tag after reducing the width i got it08:27
neithHello, I'm deploying maas and I'm facing an issue, I'm booting an enlinsting node via PXE. Everything works fine until it runs the cloud init script called modules:final at this point the node brutally shuts down08:46
neithHow I can retreive the log to analyze whats going on?08:46
neithIf I try to reboot the same node it fails at PXE. I have to delete it from maas ans try angin08:47
neithok well It just send a power down09:08
neithseems normal09:09
neithbut the next reboot is failing at pxe boot09:09
neithhttp://imgur.com/a/ech4F09:15
sujeet_roaksoax : How to upload two or more script files which is dependent on each other? For instance call the python file from shell script09:29
roaksoaxsujeet_: we dont support dependency like that, but typucally, if you name them like 01_xyz, 02_xyz it should do the right thing09:54
roaksoaxneith: enlistment processes registers the machine into MAAS and it then shutdowns09:55
roaksoaxneith: after the enlistment, do you see your machines registered in MAAS ?09:55
sujeet_yes09:55
sujeet_added simple sh with echo, i am able to see the prints09:56
sujeet_for instacne i have sample sh file in which it execute the python file(or call python class or function) can i do like this by using 01_xyz.sh, 02_abc.py?09:58
roaksoaxsujeet_: if the sh file executes the python one, try 01_xyz.py 02_ab.py09:59
roaksoaxsujeet_: if the sh file executes the python one, try 01_xyz.py 02_ab.sh09:59
roaksoaxi think that would render the python script before the shell09:59
sujeet_ok10:02
neithroaksoax: It is enlisted, but boot fails10:50
neithroaksoax: I found a workaround by forcing the use of xenial kernel for commisionning10:50
neithusing Trusty always displays file not found10:51
neithroaksoax: The weird thing is that I switched back to Trusty kernel and now it works11:18
neithI really dont't get it11:18
roaksoaxneith: strange11:43
roaksoaxneith: if you can get console logs11:43
roaksoaxthat'd be great11:43
neithroaksoax: I'm struggling extracting console logs from iLo remote console11:43
sujeet_Hi roaksoax12:10
sujeet_i added the print("Hello") in python file and uploaded the script and tried to commission, in Commissioning Output i get the following error "Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%{ <-- HERE (.*?)}/ at /usr/bin/print line 528. Error: no such file "Hello""12:13
roaksoaxsujeet_: if you can pastebin your scripts i can give it a try locally12:19
sujeet_And for adding our storage raid controller on MAAS gui, what need to be done?12:22
roaksoaxsujeet_: what is your storage raid controoller ?12:26
sujeet_using our controller we can create volumes, secure erase, firmware upgrade, and so on12:29
roaksoaxsujeet_: right, but what do you mean by adding your storage raid controller to MAAS gui ?12:31
kikoroaksoax, he's talking about an actual UI feature to support hardware raid controllers12:33
sujeet_we need to add the controller storage section below the "Used disks and partitions" with button like "Create volume", "Secure Erase"12:36
sujeet_yes kiko is right12:37
sujeet_during commissioning python script i get the following error "/tmp/user_data.sh.UdvSZP/commissioning.d/02_xyz.py: 1: /tmp/user_data.sh.UdvSZP/commissioning.d/02_xyz.py: name: not found"12:38
kikosujeet_, put your script in a pastebin please so we can look at it12:41
kikoroaksoax, for the moment, I've advised him to just do this as a commissioning script12:42
sujeet_ok12:42
sujeet_Its just a simple script like12:43
sujeet_print("Hello")12:43
sujeet_in xyz.py file i wrote print("hello") thats it12:45
kikosujeet_, can you put it in a pastebin?12:51
sujeet_i didnt get pastebin12:52
kikosujeet_, paste.ubuntu.com12:52
sujeet_i did did you get it?12:53
kikosujeet_, you need to give me the resulting URL12:54
sujeet_http://paste.ubuntu.com/23093114/12:54
kikosujeet_, I don't think python is available in the commissioning environment unless you install it12:55
kikosujeet_, if it is available, then you probably need to put a #!/usr/bin/python at the beginning of the file?12:55
sujeet_ok12:55
sujeet_python should be install where maas is installed?12:58
sujeet_i am able to execute on putty12:59
kikosujeet_, sure, apt-get install python-minimal13:01
kikoor just use shell script, i.e. 02_xyz.sh?13:02
sujeet_ok13:03
roaksoaxsujeet_: /win 413:08
roaksoaxerr13:08
sujeet_we need to save in unix file format?13:09
sujeet_currently its in windows file format13:10
sujeet_i have the client which is written in python ,so i need to use python file to get the data, if i use shell script, then i need to rewrite the code13:17
roaksoaxsujeet_: the commissioning process happens in linux13:17
roaksoaxsujeet_: so if yout script is a windows python script13:17
roaksoaxthen you may need to do some porting13:17
sujeet_ok13:18
sujeet_so i created python file on ubuntu with same statement, this can work?13:27
sujeet_i written mock.py on putty and uploaded it but i got "/var/lib/cloud/instance/scripts/user_data.sh: 177: /var/lib/cloud/instance/scripts/user_data.sh: /tmp/user_data.sh.RLbmqr/commissioning.d/mock.py: not found"13:37
roaksoaxsujeet_: http://paste.ubuntu.com/23093247/13:41
roaksoaxsujeet_: i created that script13:41
roaksoaxsujeet_: and uploaded it to maas13:41
roaksoaxand it just worked13:41
sujeet_can you send that script?13:41
roaksoax"script.py.outFri, 26 Aug. 2016 21:38:101 lines"13:41
roaksoaxsujeet_: copy paste the contents of that pastebin into a file like "test.py"13:42
roaksoaxsujeet_: upload test.py as a commissioning script in the settings page13:42
roaksoaxsujeet_: and commission your machine13:42
sujeet_ok, can you send that script ?13:43
kikosujeet_, it's in the pastebin URL roaksoax gave you earlier13:43
roaksoaxsujeet_: the script is here : http://paste.ubuntu.com/23093247/13:44
sujeet_ok13:45
sujeet_Hi rasksoax and kiko, you guys are awesome, thanks it worked13:56
kikosujeet_, woot13:56
kikosujeet_, you really need to get off Windows now.. I'll give you a free Ubuntu license :)13:56
sujeet_sure13:57
sujeet_and i need the overview of what need to be done for adding the Raid controller section on MAAS gui?13:57
kikosujeet_, that's much more complex, and requires some design input. I suggest for the moment getting the controller management done via scripts, possibly by driving the API14:05
sujeet_but this stuff can only be seen in commission output14:10
sujeet_can you guys help in that or it follow different procedure to develop?14:12
neithDo you know how long is bootstrapping juu in the openstack install?14:27
neithi'm at 1200sec14:27
neithans still running14:27
neithwhere are the logs?14:27
kikoneith, do a juju bootstrap --debug14:43
kikothat will give you output to stdout14:43
neiththks14:43
neithkiko: I have to run it on the maas node?14:44
neithor enlisted node?14:44
kikoneith, on the node issuing the juju bootstrap14:44
kikoneith, or are you using conjure-up or autopilot?14:44
neithautopilot14:44
kikoneith, are you able to manually deploy nodes into your maas successfully?14:45
neithkiko yes14:45
kikoneith, all of the nodes?14:57
kikoneith, is there any proxy in the way?14:57
neithkiko: yes all nodes and no proxy14:57
kikoneith, it's odd that a bootstrap would take very long, tbh14:58
kikoneith, can you test a bootstrap independently?14:58
neithkiko: yes how?14:58
kikoneith, apt-get install juju-core, set up the maas provider and juju bootstrap --debug14:59
kikoobserving the correct version as MAAS 2 only works with Juju 214:59
kikocheck out jujucharms.com for the low-down14:59
kikoneed to go otp for a bit but keep asking14:59
neithI'll try15:00
neithkiko: I assume I have to run these commands from the commisionned node?15:07
kikoneith, from any node that can talk to MAAS15:08
kikoneith, including a node deployed by MAAS itself15:08
pravI am unable to login to ubuntu cloud-init image using the ssh keys that I created. Am I doing something wrong?15:35
kikoprav, probably. MAAS 2.0 final?15:40
pravyea...MAAS Version 2.0.0 (rc2+bzr5156)15:50
kikoprav, and you put your SSH key into your account, deploy a node, and can't SSH ubuntu@node into it?15:51
pravcorrect..15:51
kikoprav, something's wrong with your key? or operator error?15:51
kikoI mean, that absolutely works!15:51
pravcan I login from any box or only from the maas server?15:53
kikoprav, from any box where the private key is right? I mean.. it's ssh right15:55
pravright15:55
kikossh -v will tell you more15:56
pravlet me create another user and keygen once again15:56
pravkiko, do you work for Canonical?15:59
pravhow can I get support for maas?16:00
kikoprav, yes, I'm the product owner, and absolutely yes16:00
pravwe want to use maas for bare metal deployments, but our infra is mostly Centos. Does support work for such deployments?16:04
kikoyes16:04
kikoprav, it works for centos, windows, rhel, sles16:04
kikoprav, I just privmsgd you with contact info16:04
pravcool16:05
=== mup_ is now known as mup
x58What would cause bugs that used to be public (for over a year) to suddenly be set to Proprietary?16:15
x58Specifically these are bugs that I have reported...16:15
x58(Also, logging in to Ubuntu One to login to Launchpad doesn't work on iOS Safari)16:16
x58Specifically, this is related to maas-image-builder16:17
kikoprav, what does your ssh -v look like?16:20
=== frankban is now known as frankban|afk
pravInitially it was giving me public key denied..after I assingned the nodes static IP, it says no route to host.. even though the gateway is the same16:30
roaksoaxx58: do you have links  to these bugs ?16:30
roaksoaxx58: maas-image-builder used to be available for centos image generation, and now it is not anymore, as we provide centos images, and maas-image-builder does no longer provide that support to create centos images16:31
x58roaksoax: Sure, bug ID: 149518 and 147770416:32
x58roaksoax: That's fine, I had bzr branches though, it used to be open source. I submitted patches because it was open soruce.16:32
x58roaksoax: My bzr branches are now missing, my code that I submitted is now no longer available, nor are my bug reports (even to me).16:32
x58147951816:33
kikoprav, you no longer can ping?16:34
roaksoaxx58: try now ?16:35
x58roaksoax: No permission.16:36
x58https://bugs.launchpad.net/maas-image-builder/+bug/1479518 (not allowed here)16:36
x58Still can't access my branches in bzr either.16:38
roaksoaxx58: let me dig into it16:39
x58roaksoax: ok.16:39
mupBug #1617082 opened: Curtin not able to write MAAS official images that are inserted as "Custom" images <hwcert-server> <curtin:New> <MAAS:New> <https://launchpad.net/bugs/1617082>16:41
roaksoaxx58: try now ?16:41
x58Still no go on both.16:42
x58roaksoax: ^16:42
x58I've gotta run to a meeting. Will be back later.16:42
roaksoaxx58: strange, it is telling me that your branches and bugs are public "This branch contains Public information Edit16:45
roaksoaxEveryone can see this information."16:45
x58https://code.launchpad.net/%7Ebertjwregeer/maas-image-builder/update-centos-7/ fails hard.16:46
x58https://bugs.launchpad.net/maas-image-builder/+bug/1477704 (The information on this page is private._16:47
roaksoaxx58: now ?16:50
pravnope. I cant ping.. but when I change it to DHCP, it gets another IP in the same subnet , but it starts pinging16:52
kikoprav, looks like deployment is failing with a static IP?16:52
kikoyou cant ssh -v the dhcp IP?16:52
mupBug #1617082 changed: Curtin not able to write MAAS official images that are inserted as "Custom" images <hwcert-server> <curtin:New> <MAAS:New> <https://launchpad.net/bugs/1617082>16:53
pravyes I can16:53
kikoprav, this is centos or ubuntu?16:54
pravubuntu..16:57
roaksoaxprav: can you upgrade to 2.0 GA ?17:14
roaksoaxprav: you can find it in ppa:maas/stable17:14
=== zeestrat_ is now known as zeestrat

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