Skip to content

Commit

Permalink
Closes-Bug: #1571509 - SM Upgrade failed because cassandra version ch…
Browse files Browse the repository at this point in the history
…anged

New cassandra version is 2.1.13 in 3.0
This change will allow to upgrade to any version higher than or equal to 2.1.9

Change-Id: I7fb4a0059c4dac01787456e2f5cfa6f8498c30aa
  • Loading branch information
nitishkrishna committed Apr 19, 2016
1 parent 20b70c9 commit 337e83b
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -5,7 +5,8 @@ database_dir=$1; shift
contrail_package_name=$1
cassandra_version=''
cassandra_version=`dpkg -s cassandra | grep Version | awk '{print $2}'`
if [ "$cassandra_version" == "2.1.9" ] || [ "$cassandra_version" == '' ]; then
version_check=`echo -e "$cassandra_version\n2.1.9" | sort -V | head -n1`
if [ "$version_check" == "2.1.9" ] || [ "$cassandra_version" == '' ]; then
# Don't do upgrade
exit
fi
Expand Down

0 comments on commit 337e83b

Please sign in to comment.