Contrail Platform Developers
Contrail Platform Developers

Contrail 2.21 Installation Failing on Ubuntu 14.04

[ Edited ]
‎12-08-2015 04:02 AM

Hello All,

 

We are trying to install Contrail 2.21 version on Ubuntu VM running version 14.04. Ours is a multi node lab setup with 1 Config and 2 Control and Compute nodes each. 

 

The ./setup.sh runs fine on the Config node and post which once the fab install_contrail command is fired we see the following error and the session gets disconnected. 

 

root@Contrail4Config:/opt/contrail/utils# fab install_contrail
[root@172.16.2.75] Executing task 'install_contrail'
2015-12-08 17:26:32:332928: [root@172.16.2.75] Executing task 'pre_check'
2015-12-08 17:26:32:334219: [root@172.16.2.75] Executing task 'check_disk_space'
[root@172.16.2.75] Login password for 'root': 2015-12-08 17:26:32:334750:
2015-12-08 17:26:37:587839: [root@172.16.2.75] sudo: df -Pk /var/lib | grep % | awk '{print $2}'
2015-12-08 17:26:38:448809: [root@172.16.2.75] out: 90695800
2015-12-08 17:26:38:517612: [root@172.16.2.75] out:
2015-12-08 17:26:38:518166:
2015-12-08 17:26:38:518532: [root@172.16.2.76] Executing task 'check_disk_space'
[root@172.16.2.76] Login password for 'root': 2015-12-08 17:26:38:518857:
2015-12-08 17:26:41:566032: [root@172.16.2.76] sudo: df -Pk /var/lib | grep % | awk '{print $2}'
2015-12-08 17:26:42:444251: [root@172.16.2.76] out: 90695800
2015-12-08 17:26:42:544295: [root@172.16.2.76] out:
2015-12-08 17:26:42:544671:
2015-12-08 17:26:42:545323: [root@172.16.2.77] Executing task 'check_disk_space'
[root@172.16.2.77] Login password for 'root': 2015-12-08 17:26:42:545657:
2015-12-08 17:26:45:697243: [root@172.16.2.77] sudo: df -Pk /var/lib | grep % | awk '{print $2}'
2015-12-08 17:26:46:671351: [root@172.16.2.77] out: 90695800
2015-12-08 17:26:46:771380: [root@172.16.2.77] out:
2015-12-08 17:26:46:771710:
2015-12-08 17:26:46:772248: [root@172.16.2.75] Executing task 'verify_time_all'
2015-12-08 17:26:46:780489: [root@172.16.2.75] Executing task 'get_all_time'
2015-12-08 17:26:46:790098: [root@172.16.2.76] Executing task 'get_all_time'
2015-12-08 17:26:46:790583: [root@172.16.2.77] Executing task 'get_all_time'
2015-12-08 17:26:46:790814: [root@172.16.2.78] Executing task 'get_all_time'
2015-12-08 17:26:46:791041: [root@172.16.2.79] Executing task 'get_all_time'
2015-12-08 17:26:46:791246: [root@172.16.2.79] sudo: DATE=$( date ); DATEMILLISE C=$( date +%s ); echo $DATE; echo $DATEMILLISEC
[root@172.16.2.78] sudo: DATE=$( date ); DATEMILLISEC=$( date +%s ); echo $DATE; echo $DATEMILLISEC
[root@172.16.2.77] sudo: DATE=$( date ); DATEMILLISEC=$( date +%s ); echo $DATE; echo $DATEMILLISEC
[root@172.16.2.76] sudo: DATE=$( date ); DATEMILLISEC=$( date +%s ); echo $DATE; echo $DATEMILLISEC
[root@172.16.2.75] sudo: DATE=$( date ); DATEMILLISEC=$( date +%s ); echo $DATE; echo $DATEMILLISEC

2015-12-08 17:26:46:973875: Fatal error: Needed to prompt for a connection or su do password (host: root@172.16.2.79), but input would be ambiguous in parallel m ode
2015-12-08 17:26:46:973875:
2015-12-08 17:26:46:974036: Aborting.
2015-12-08 17:26:46:974036:
2015-12-08 17:26:46:982623: Fatal error: Needed to prompt for a connection or su do password (host: root@172.16.2.78), but input would be ambiguous in parallel m ode
2015-12-08 17:26:46:982623:
2015-12-08 17:26:46:982776: Aborting.
2015-12-08 17:26:46:982776: 2015-12-08 17:26:46:796308: 2015-12-08 17:26:46:7989 60: 2015-12-08 17:26:46:806399: [root@172.16.2.75] out: Tue Dec 8 17:26:47 IST 2 015
2015-12-08 17:26:46:800783: [root@172.16.2.77] out: 2015-12-08 17:26:47:520806: Tue Dec 8 17:26:47 IST 2015
2015-12-08 17:26:47:521784: [root@172.16.2.75] out: [root@172.16.2.77] out: 1449 575807
2015-12-08 17:26:47:522259: 1449575807
2015-12-08 17:26:47:522520: [root@172.16.2.75] out: [root@172.16.2.77] out:

2015-12-08 17:26:47:523111: 2015-12-08 17:26:47:523025: 2015-12-08 17:26:46:8037 04: [root@172.16.2.76] out: Tue Dec 8 17:26:47 IST 2015
2015-12-08 17:26:47:532186: [root@172.16.2.76] out: 1449575807
2015-12-08 17:26:47:532482: [root@172.16.2.76] out:
2015-12-08 17:26:47:533065:
2015-12-08 17:26:47:533417:

2015-12-08 17:26:47:553124: 2015-12-08 17:26:47:553153:
2015-12-08 17:26:47:580413: Fatal error: One or more hosts failed while executin g task 'get_all_time'
2015-12-08 17:26:47:580413:
2015-12-08 17:26:47:580633: Aborting.
2015-12-08 17:26:47:580633:
2015-12-08 17:26:47:599180: Fatal error: One or more hosts failed while executin g task 'verify_time_all'
2015-12-08 17:26:47:599180:
2015-12-08 17:26:47:599461: Aborting.
2015-12-08 17:26:47:599461: Disconnecting from 172.16.2.77... done.
2015-12-08 17:26:47:829685: Disconnecting from 172.16.2.75... done.
2015-12-08 17:26:48:008441: Disconnecting from 172.16.2.76... done.
2015-12-08 17:26:48:136951: root@Contrail4Config:/opt/contrail/utils#

 

Attached is the output of both  testbed and logs. 

 

Pls. help in identifying the issue and help us setup the same. 

 

Regards,

Lalit 

 

 

 

 

Attachments

2 REPLIES 2
Contrail Platform Developers

Re: Contrail 2.21 Installation Failing on Ubuntu 14.04

‎12-08-2015 04:32 AM

Hi All,

 

I figured out that the password mentioned wasnt matching in the testbed.py post changing the same the install started working fine however the same now is stuck at 

 

2015-12-08 18:01:51:841568: [root@172.16.2.76] out: E: Unable to locate package contrail-openstack-database
2015-12-08 18:01:51:906010: [root@172.16.2.76] out:
2015-12-08 18:01:51:906696:

2015-12-08 18:01:51:907547: Fatal error: sudo() received nonzero return code 100 while executing!
2015-12-08 18:01:51:907547:
2015-12-08 18:01:51:907547: Requested: DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes --allow-unauthenticated install contrail-openstack-database
2015-12-08 18:01:51:907547: Executed: sudo -S -p 'sudo password:' /bin/bash -l -c "DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes --allow-unauthenticated install contrail-openstack-database"
2015-12-08 18:01:51:907547:
2015-12-08 18:01:51:907718: Aborting.
2015-12-08 18:01:51:907718: 2015-12-08 18:01:51:907250: Disconnecting from 172.16.2.77... done.
2015-12-08 18:01:52:022857: Disconnecting from 172.16.2.78... done.
2015-12-08 18:01:52:087347: Disconnecting from 172.16.2.75... done.
2015-12-08 18:01:52:095347: Disconnecting from 172.16.2.76... done.
2015-12-08 18:01:52:210051: Disconnecting from 172.16.2.79... done.

 

Regards,

Lalit 

 

 

Contrail Platform Developers

Re: Contrail 2.21 Installation Failing on Ubuntu 14.04

‎01-21-2016 10:33 PM

Hi Lalit,

 

Have you run /opt/contrail/contrail_packages/setup.sh prior to install ?

 

Also can you run fab upgrade_kernel_all command and re-ran the standard installation steps

fab upgrade_kernel would install our recommended kernel version


But you’d need to do below more steps if you’ve kernel of higher version.

1. In /etc/default/grub, set GRUB_DEFAULT='Advanced options for Ubuntu>Ubuntu, with Linux 3.13.0-40-generic’
2. update grub
3. reboot


Also ensure that there is no mistake in testbed.py before installing

 

Regards,
Kannan