Thanks Lluis for the response. It works!

However, the error message was not very clear to me and there is no way, i would have guessed that it is related to SSH! :) In any case, it works now.

thanks a lot, again.

Kavita

On 11/04/2015 6:58 AM, Lluís Gifre wrote:
Hi Kavita,

I solved this problem by enabling no-password access from the build_host to the other nodes using ssh-keygen and ssh-copy-id. In that way you'll not be prompted for passwords, instead it'll use previously shared public-private keys.

Example:
Assumption: all hosts have root access via ssh enabled, i.e. you can do:
# ssh root@target_host
provide root password and access to the machine.

If not, you can enable root access via ssh by running the next set of commands in target_host
# sudo passwd root
provide new root password
# sudo sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config # sudo sed -i 's/^AcceptEnv LANG LC_*/#AcceptEnv LANG LC_*/' /etc/ssh/sshd_config
# sudo service ssh restart

To enable password-less access from build_host to target_host:
(root@build_host) # ssh-keygen
you'll be prompted for a ile name and path for the keys, you can leave the default one you'll be prompted for a passphrase to protect the key. is up to you to set one or leave it empty. surely setting one is recommended aiming at securing the keys this will generate in ~/.ssh a pair of files ending in .key and .key.pub; these files are your private and public keys respectively (i'll not go into public and private key details right now)

(root@build_host) # ssh-copy-id root@target_host
you'll be prompted for the keyfile passphrase if you provided one in the previous step it'll request to confirm that you want to add target_host to known_hosts file, type yes to ensure that lately the contrail_install / contrail_setup does not prompt for it again
provide target_host root user password

If everything went right, you'll see a successful confirmation message.
Try running:

(root@build_host) # ssh root@target_host
It should open an ssh terminal on target_host without typing any password

Repeat for each target host.

This should allow you to setup multiple nodes sequentially or in parallel not having to provide passwords each time.

Hope it helps!

Regards,
Lluis


El 10/04/15 a les 17:47, Kavita Jain ha escrit:
Hello

I managed to download the contrail binary and I am going through the instructions to install it.
I am at a point to run fab command to install_contrail:

fab -c fabrc install_contrail

The process comes back with:

[root <at> 127.0.0.1] Executing task 'install_contrail' Executing task 'pre_check' 2015-04-10 11:10:18:813405: [root <at> 127.0.0.1] Executing task 'verify_time_all' 2015-04-10 11:10:18:815977: [root <at> 127.0.0.1] Executing task 'get_all_time' 2015-04-10 11:10:18:818035: [root <at> 127.0.0.1] run: DATE=$( sudo date ); DATEMILLISEC=$( sudo date +%s ); echo $DATE; echo $DATEMILLISEC 2015-04-10 11:10:21:714663: Fatal error: Needed to prompt for a connection or sudo password (host: root <at> 127.0.0.1), but input would be ambiguous in parallel mode 2015-04-10 11:10:21:714663:

I would appreciate any help in this regard

Thanks

Kavita

_______________________________________________
Users mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/users_lists.opencontrail.org




_______________________________________________
Users mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/users_lists.opencontrail.org

Reply via email to