Squirro can be upgraded using the YUM package manager.

Table of Contents

 

 

Perquisites

Before you start the upgrade, you must ensure that the Elasticsearch cluster is in a 'green' state.
To validate the state, log into one of the hosts that have the squirro-storage-node package installed and run the following command:

curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'

The output looks like this:

{
  "cluster_name" : "squirro-26aa394e-56ee-4274-b094-5075bb94d892",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 1,
  "number_of_data_nodes" : 1,
  "active_primary_shards" : 14,
  "active_shards" : 14,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0,
  "task_max_waiting_in_queue_millis" : 0,
  "active_shards_percent_as_number" : 100.0
}

Check for the status on line 3. e.g. in this case:

"status": "green"

Do not proceed with the upgrade if the state is yellow or red.

Upgrade

If you haven't already done an update, please contact squirro support to obtain a new, unique user and password to enable you to upgrade. You only need to do the following once for your Squirro Box:

sudo su
USER=<user you received from Squirro Support>
PASSWORD=<password you received from Squirro Support>
sed -e "s/squirro::yum_repo_user : contact-squirro-support/squirro::yum_repo_user : $USER/" -i /etc/puppet/hieradata/local.yaml
sed -e "s/squirro::yum_repo_password: contact-squirro-support/squirro::yum_repo_password: $PASSWORD/" -i /etc/puppet/hieradata/local.yaml
. /etc/puppet/modules/puppet/files/puppetrun

To upgrade Squirro, use the yum update command:

[root@localhost ~]# yum update
  • Always take a snapshot before you upgrade.
  • The upgrade will not update the embedded puppet manifest. Contact support to get an updated version.