<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, May 4, 2014 at 8:59 PM, brian mullan <span dir="ltr"><<a href="mailto:bmullan.mail@gmail.com" target="_blank">bmullan.mail@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div>Andrews... sorry but don't spend any more time troubleshooting this. I'm going to blow that server away and start over.<br>
</div></div></div></blockquote><div><br></div><div>Brian,</div><div><br></div><div>Sorry I wasn't able to be of timely assistance, and thanks for providing the information I requested. I could at least see that sudo was not part of the problem, as even the ssh commands not invoking sudo were causing a prompt. We explicitly disallow the password authentication method, so I'm wondering if some other method is triggering.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div></div>If I end up in the same place with the same problem I'll send another email but I've already spent way too much time trying to get this server to work via manual juju bootstrap.</div>
</div></blockquote><div><br></div><div>I would be very grateful if you're able to track down the problem, so we can prevent this in the future. If you do reproduce the issue, could you please send back the results of running:</div>
<div><br></div><div> ssh -vv ubuntu@host true</div><div>and</div><div> ssh -vv -o "StrictHostKeyChecking no" -o "PasswordAuthentication no" -i /home/bmullan/.juju/ssh/juju_id_rsa -i /home/bmullan/.ssh/id_rsa ubuntu@host true<b style="color:rgb(80,0,80)"><a href="mailto:ubuntu@173.39.236.162" target="_blank">173.39.236.162</a> bash</b></div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><span class=""><font color="#888888">brian<br>
<br></font></span></div><div class=""><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, May 4, 2014 at 7:22 AM, brian mullan <span dir="ltr"><<a href="mailto:bmullan.mail@gmail.com" target="_blank">bmullan.mail@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra">Thanks Andrew... information you asked for is inline.<br>
<br></div><div class="gmail_extra">
<br><div class="gmail_quote"><div>On Sat, May 3, 2014 at 10:12 PM, Andrew Wilkins <span dir="ltr"><<a href="mailto:andrew.wilkins@canonical.com" target="_blank">andrew.wilkins@canonical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<div>On Sat, May 3, 2014 at 2:11 PM, brian mullan <span dir="ltr"><<a href="mailto:bmullan.mail@gmail.com" target="_blank">bmullan.mail@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div>
<div><div><div><div><div><div><div><div>
<div><div><div><div>
<div>I've tried for 2 days to get this to work and I'm stumped.<br></div>using my laptop w/ubuntu 14.04 desktop<br>
</div>remote server /w ubuntu 14.04 fresh server install<br><br></div>I am the only account on both systems and I have both ssh and sudo access on both<br><br></div>I can ssh & login to server just fine<br><br></div>
I even set up passwordless ssh for me from laptop to server and doing<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div></div><div>
When you did that, did you use ~/.ssh/id_rsa or something else?</div></div></div></div></blockquote><div><b><br></b></div></div><div><b>I tried this two different ways<br><br></b><div style="margin-left:40px"><b>$ssh-keygen -t rsa</b><br>
</div><div style="margin-left:40px"><b>then<br></b></div><div style="margin-left:40px"><b>$ ssh-add</b><br><b>then</b><br><b>$ ssh-copy-id my_login_ID@<server_ip></b></div></div><div><b><br></b></div><div><b>then tried juju bootstrap each time... when that didn't work I removed those keys and used the following which<br>
didn't work either.<br></b></div><div><b><br></b></div><div style="margin-left:40px"><b>$ ssh-keygen<br></b></div><div style="margin-left:40px"><b>then<br></b></div><div><div style="margin-left:40px"><b>$ ssh-add</b><br>
<b>then</b><br><b>$ ssh-copy-id my_login_ID@<server_ip></b><br></div> <br></div><div><b>But with either of the above passwordless ssh works for me if I just ssh to the server in a terminal window<br></b></div><div>
<b>example: ssh my_login_ID@<server_ip><br></b>
</div><div><b>logs me directly into the server with no password prompt.</b><br></div><div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div class="gmail_extra"><div class="gmail_quote"><div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>
<div><div><div><div><div><div><div><div><div>
<div><div> ssh me@server logs me directly into it just fine.<br>
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div></div><div>And "ssh me@server sudo true" works, without prompting?</div><div>
<div><br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div>
<div><div><div><div><div><div><div><div>
<div></div>On laptop I've installed juju<br>
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div></div><div>Just to be clear, you're on 1.18.x?</div></div></div></div></blockquote></div>
<div>
<br><b>yes... v1.18.1</b><br><b>$ juju --version<br>1.18.1-trusty-amd64</b><br><br> </div><div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div class="gmail_extra"><div class="gmail_quote"><div><div><div><br></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div></div>Created configuration template environments.yaml with:<br><br> default: manual<br><br> manual:<br>
type: manual<br> # bootstrap-host holds the host name of the machine where the<br> # bootstrap machine agent will be started.<br> bootstrap-host: <server_ip><br> # bootstrap-user specifies the user to authenticate as when<br>
# connecting to the bootstrap machine. If defaults to<br> # the current user.<br> # bootstrap-user: <my_username_id> <br> # storage-listen-ip specifies the IP address that the<br>
# bootstrap machine's Juju storage server will listen<br> # on. By default, storage will be served on all<br> # network interfaces.<br> # storage-listen-ip: <br> # storage-port specifes the TCP port that the<br>
# bootstrap machine's Juju storage server will listen<br> # on. It defaults to 8040<br> # storage-port: 8040<br><br></div>On my laptop I execute the following<br><br></div> <b>$ juju switch manual</b><br>
<br></div>then<br><br></div> <b> $ juju bootstrap</b><br><br></div>Juju appears to connect to the Server ok but I keep getting asked for a password??<br></div></div></div></div></div></div></div></div></div></div></div>
</blockquote><div><br></div></div></div><div>Would you mind doing this again with "--debug" and replying with the output?</div></div></div></div></blockquote></div></div><div><br><div style="margin-left:40px"><b>bmullan@brians-juju:~$ juju bootstrap --debug </b><br>
<br><b>2014-05-04 11:11:00 INFO juju.cmd supercommand.go:297 running juju-1.18.1-trusty-amd64 [gc]</b><br><b>2014-05-04 11:11:00 DEBUG juju.environs.configstore disk.go:64 Making /home/bmullan/.juju/environments</b><br><b>2014-05-04 11:11:00 INFO juju.environs.manual init.go:139 initialising "173.39.236.162", user ""</b><br>
<b>2014-05-04 11:11:00 DEBUG juju.utils.ssh ssh.go:234 using OpenSSH ssh client</b><br><b>2014-05-04 11:11:00 DEBUG juju.utils.ssh ssh_openssh.go:122 running: ssh -o "StrictHostKeyChecking no" -o "PasswordAuthentication no" -i /home/bmullan/.juju/ssh/juju_id_rsa -i /home/bmullan/.ssh/id_rsa <a href="mailto:ubuntu@173.39.236.162" target="_blank">ubuntu@173.39.236.162</a> sudo -n true</b><br>
<b>Password: </b><br><b>2014-05-04 11:11:49 INFO juju.environs.manual init.go:150 ubuntu user is already initialised</b><br><b>2014-05-04 11:11:49 INFO juju.provider.manual provider.go:33 initialized ubuntu user</b><br><b>2014-05-04 11:11:50 DEBUG juju.provider.manual environ.go:194 using ssh storage at host "<a href="mailto:ubuntu@173.39.236.162" target="_blank">ubuntu@173.39.236.162</a>" dir "/var/lib/juju/storage"</b><br>
<b>2014-05-04 11:11:50 DEBUG juju.utils.ssh ssh.go:234 using OpenSSH ssh client</b><br><b>2014-05-04 11:11:50 DEBUG juju.utils.ssh ssh_openssh.go:122 running: ssh -o "StrictHostKeyChecking no" -o "PasswordAuthentication no" -i /home/bmullan/.juju/ssh/juju_id_rsa -i /home/bmullan/.ssh/id_rsa <a href="mailto:ubuntu@173.39.236.162" target="_blank">ubuntu@173.39.236.162</a> sudo -n /bin/bash</b><br>
<b>Password: </b><br></div><div style="margin-left:40px"><b>2014-05-04 11:12:39 DEBUG juju.utils.ssh ssh.go:234 using OpenSSH ssh client</b><br><b>2014-05-04 11:12:39 DEBUG juju.utils.ssh ssh_openssh.go:122 running: ssh -o "StrictHostKeyChecking no" -o "PasswordAuthentication no" -i /home/bmullan/.juju/ssh/juju_id_rsa -i /home/bmullan/.ssh/id_rsa <a href="mailto:ubuntu@173.39.236.162" target="_blank">ubuntu@173.39.236.162</a> bash</b><br>
<b>Password: </b><br></div><br></div><div><b>I enter my password and it will just keep reprompting for "a password"... I'm not sure what password though as there is only one account on both my laptop and on the server.</b><br>
</div><div><div><br><br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div><div><div><div><div><div><div><div><div><div></div>The Juju Documentation at: <a href="https://juju.ubuntu.com/docs/config-manual.html" target="_blank">https://juju.ubuntu.com/docs/config-manual.html</a><br>
</div>says...<br><p style="margin-left:40px"><i>The manual provider does not perform automatic machine provisioning like other
providers; instead, you must manually provision machines into the environment.
Provisioning machines is described in the following sections.</i></p><div style="margin-left:40px">
</div><h2 style="margin-left:40px"><i>Bootstrapping</i></h2><div style="margin-left:40px">
</div><p style="margin-left:40px"><i>To bootstrap a manual environment, you must specify the <code>bootstrap-host</code>
configuration, and optionally the <code>bootstrap-user</code> configuration. If
<code>bootstrap-user</code> is not specified, then Juju will ssh to the bootstrap host as
the current user. Once the configuration is specified, you bootstrap as usual:</i></p><div style="margin-left:40px">
</div><pre style="margin-left:40px"><i><code>juju bootstrap
</code></i></pre><div style="margin-left:40px">
</div><p style="margin-left:40px"><i>The <code>juju bootstrap</code> command will connect to <code>bootstrap-host</code> via SSH, and copy
across and install the Juju agent.</i></p><div style="margin-left:40px">
</div><p style="margin-left:40px"><i>When bootstrapping, Juju will create the "ubuntu" user if it does not already
exist. To eliminate the need for repeated password prompts, Juju will configure
password-less ssh and sudo for the ubuntu user.</i></p>I've tried with the environments.yaml "bootstrap-user" set to my User ID and i have also tried with "bootstrap-user" commented out which as the above documentation states "should" default to me as the "current user".<br>
<br></div>First... Why would the <b>juju bootstrap</b> prompt for a passworrd</div></div></div></div></div></div></div></div></blockquote><div><br></div></div><div>The only thing that springs to mind is that juju may be attempting to use an SSH key that is not loaded by the SSH agent. The debug log should help narrow this down.</div>
</div></div></div></blockquote><div><br></div></div><div><b>as I pointed out above locally on my laptop after creating the Key I used -</b> <b> ssh-add </b><br><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>
Second... What password can this be?? Its not mine on either system and I also tried just "ubuntu" in case but neither is accepted.<br>
<br></div></div>Both Ubuntu systems, my lapttop and the server, have had sudo apt-get update && sudo apt-get upgrade so they both should have had all latest package updates.<br><br></div>Anyone got any ideas?<br>
<br>
</div>Does juju manual bootstrap work in 14.04?<br></div></div></div></blockquote><div><br></div></div><div>It works well for me, and there is automated testing in place for the manual provider.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div><div></div>thanks in advance<span><font color="#888888"><br><br></font></span></div><span><font color="#888888">Brian<br> <br><div><div><div><div><div><div><div><div><div>
<div><div><div><div><div><div><div><br><div><div><div><div><div><div><br>
<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></font></span></div><span><font color="#888888">
<br>--<br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com" target="_blank">Juju@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
<br></font></span></blockquote></div><br></div></div>
</blockquote></div></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>