Knowledge Search


×
 

[Archive] Contrail 2.2 fab install_contrail fails with error on minimum disk space

  [KB30499] Show Article Properties


Summary:

When starting Contrail 2.2, fab install_contrail fails with an error on minimum disk space.

Symptoms:

When starting Contrail 2.2, fab install_contrail fails with an error during installation if the minimum disk requirements are not met. The following is the error snippet:

root@cfgm:/opt/contrail/utils# fab install_contrail
[root@10.209.107.21] Executing task 'install_contrail'
2015-07-29 14:54:02:677029: [root@10.209.107.21] Executing task 'pre_check'
2015-07-29 14:54:02:677595: [root@10.209.107.21] Executing task 'check_disk_space'
2015-07-29 14:54:02:678181: [root@10.209.107.21] sudo: df -Pk /var/lib | grep % | awk '{print $2}'
2015-07-29 14:54:03:635963: [root@10.209.107.21] out: 34961088
2015-07-29 14:54:03:702996: [root@10.209.107.21] out:
2015-07-29 14:54:03:703456:
2015-07-29 14:54:03:703720:
2015-07-29 14:54:03:703851: ERROR: Minimum disk space(256GB) for analytics db is not met in nodes: ['root@10.209.107.21']
2015-07-29 14:54:03:703878: Please set 'minimum_diskGB' in testbed.py and continue.
2015-07-29 14:54:03:703907: Specifiy the avalilable disk space of database node in GB
2015-07-29 14:54:03:703933: However minimum disk space for database node is 256GB.
2015-07-29 14:54:03:703959: Disconnecting from 10.209.107.21... done.
Cause:

By default, a minimum of 256 GB of space is expected to be available on all database nodes. If this is not available, the installation will fail with the above error. Please note that if multiple database nodes are defined in the testbed.py file, the error gives you the IPs of all nodes. In the snippet shown above, only one node is defined as a database node.

Solution:

The minimum disk space setting is defined in the testbed.py file. The following is the snippet from the testbed.py file:

#following parameter allows to specify minimum amount of disk space in the analytics
#database partition, if configured amount of space is not present, it will fail provisioning
#minimum_diskGB = 256

Change this to a lower number depending on the space available in /opt/contrail/utils/fabfile/testbeds/testbed.py. In this example, this number is changed to 150 GB:

#following parameter allows to specify minimum amount of disk space in the analytics
#database partition, if configured amount of space is not present, it will fail provisioning
minimum_diskGB = 150

Once this is done, save and quit the testbed.py file and re-run fab install_contrail.

Modification History:
2019-09-13: Archived article. Contrail 2.2 is EOL ‚Äčas per https://support.juniper.net/support/eol/software/contrail/
Related Links: