Upgrade to Atomix 3.0.5

Change-Id: I683d11639520f3dbff455c8fa294684acb5b0217
diff --git a/core/store/primitives/pom.xml b/core/store/primitives/pom.xml
index 12a31cd..d99fdff 100644
--- a/core/store/primitives/pom.xml
+++ b/core/store/primitives/pom.xml
@@ -75,7 +75,7 @@
         <dependency>
             <groupId>io.atomix</groupId>
             <artifactId>atomix-raft</artifactId>
-            <version>3.0.3</version>
+            <version>3.0.5</version>
         </dependency>
 
         <dependency>
diff --git a/lib/BUCK b/lib/BUCK
index 54ca1a9..6de30cf 100644
--- a/lib/BUCK
+++ b/lib/BUCK
@@ -1,4 +1,4 @@
-# ***** This file was auto-generated at Wed, 5 Sep 2018 05:26:42 GMT. Do not edit this file manually. *****
+# ***** This file was auto-generated at Thu, 6 Sep 2018 17:33:53 GMT. Do not edit this file manually. *****
 # ***** Use onos-lib-gen *****
 
 pass_thru_pom(
@@ -242,73 +242,73 @@
 
 remote_jar (
   name = 'atomix',
-  out = 'atomix-3.0.3.jar',
-  url = 'mvn:io.atomix:atomix:jar:3.0.3',
-  sha1 = '708ee66373ff86369d1699f8246661a757b61726',
-  maven_coords = 'io.atomix:atomix:3.0.3',
+  out = 'atomix-3.0.5.jar',
+  url = 'mvn:io.atomix:atomix:jar:3.0.5',
+  sha1 = '758df25aed743d625930654d2e589cc0084efdbc',
+  maven_coords = 'io.atomix:atomix:3.0.5',
   visibility = [ 'PUBLIC' ],
 )
 
 remote_jar (
   name = 'atomix-cluster',
-  out = 'atomix-cluster-3.0.3.jar',
-  url = 'mvn:io.atomix:atomix-cluster:jar:3.0.3',
-  sha1 = 'f7ba29d9725d4acac7db806cb05fe77435f7cb1c',
-  maven_coords = 'io.atomix:atomix-cluster:3.0.3',
+  out = 'atomix-cluster-3.0.5.jar',
+  url = 'mvn:io.atomix:atomix-cluster:jar:3.0.5',
+  sha1 = '3ac50436eaf47fa5ba7553b37628aea7fa8b8deb',
+  maven_coords = 'io.atomix:atomix-cluster:3.0.5',
   visibility = [ 'PUBLIC' ],
 )
 
 remote_jar (
   name = 'atomix-gossip',
-  out = 'atomix-gossip-3.0.3.jar',
-  url = 'mvn:io.atomix:atomix-gossip:jar:3.0.3',
-  sha1 = '93ca54c1ba6619b5820d5b898ce0410ac55ad9e3',
-  maven_coords = 'io.atomix:atomix-gossip:3.0.3',
+  out = 'atomix-gossip-3.0.5.jar',
+  url = 'mvn:io.atomix:atomix-gossip:jar:3.0.5',
+  sha1 = '63c365b00b0164aa067e55febca9a4df253e8ab2',
+  maven_coords = 'io.atomix:atomix-gossip:3.0.5',
   visibility = [ 'PUBLIC' ],
 )
 
 remote_jar (
   name = 'atomix-primary-backup',
-  out = 'atomix-primary-backup-3.0.3.jar',
-  url = 'mvn:io.atomix:atomix-primary-backup:jar:3.0.3',
-  sha1 = '95f44706477348b45c502752bae0aa5b8cd6670a',
-  maven_coords = 'io.atomix:atomix-primary-backup:3.0.3',
+  out = 'atomix-primary-backup-3.0.5.jar',
+  url = 'mvn:io.atomix:atomix-primary-backup:jar:3.0.5',
+  sha1 = 'f444f8f733457182a096786dd2b6a4369d1feebc',
+  maven_coords = 'io.atomix:atomix-primary-backup:3.0.5',
   visibility = [ 'PUBLIC' ],
 )
 
 remote_jar (
   name = 'atomix-primitive',
-  out = 'atomix-primitive-3.0.3.jar',
-  url = 'mvn:io.atomix:atomix-primitive:jar:3.0.3',
-  sha1 = '3e97f76ee148a8451090b50fb8edd174699962de',
-  maven_coords = 'io.atomix:atomix-primitive:3.0.3',
+  out = 'atomix-primitive-3.0.5.jar',
+  url = 'mvn:io.atomix:atomix-primitive:jar:3.0.5',
+  sha1 = 'e383b171c202df84af7e8510034714bc52831115',
+  maven_coords = 'io.atomix:atomix-primitive:3.0.5',
   visibility = [ 'PUBLIC' ],
 )
 
 remote_jar (
   name = 'atomix-raft',
-  out = 'atomix-raft-3.0.3.jar',
-  url = 'mvn:io.atomix:atomix-raft:jar:3.0.3',
-  sha1 = '0c3b4bb68512de7fdef8e7c9af77830478b82e32',
-  maven_coords = 'io.atomix:atomix-raft:3.0.3',
+  out = 'atomix-raft-3.0.5.jar',
+  url = 'mvn:io.atomix:atomix-raft:jar:3.0.5',
+  sha1 = '0e7345cd475adb6e1f5af8ec48fd6faeb1261f84',
+  maven_coords = 'io.atomix:atomix-raft:3.0.5',
   visibility = [ 'PUBLIC' ],
 )
 
 remote_jar (
   name = 'atomix-storage',
-  out = 'atomix-storage-3.0.3.jar',
-  url = 'mvn:io.atomix:atomix-storage:jar:3.0.3',
-  sha1 = '75b682d4c16555912b98159b9d1f055bfe12cfb4',
-  maven_coords = 'io.atomix:atomix-storage:3.0.3',
+  out = 'atomix-storage-3.0.5.jar',
+  url = 'mvn:io.atomix:atomix-storage:jar:3.0.5',
+  sha1 = '2967037f437ce85c191795baeb65535d76b027fe',
+  maven_coords = 'io.atomix:atomix-storage:3.0.5',
   visibility = [ 'PUBLIC' ],
 )
 
 remote_jar (
   name = 'atomix-utils',
-  out = 'atomix-utils-3.0.3.jar',
-  url = 'mvn:io.atomix:atomix-utils:jar:3.0.3',
-  sha1 = '6a52f4f92d65ffad8cecb2577b1f2603bf446446',
-  maven_coords = 'io.atomix:atomix-utils:3.0.3',
+  out = 'atomix-utils-3.0.5.jar',
+  url = 'mvn:io.atomix:atomix-utils:jar:3.0.5',
+  sha1 = '63afb65deccb9631b8017d6aa779b337f920cef0',
+  maven_coords = 'io.atomix:atomix-utils:3.0.5',
   visibility = [ 'PUBLIC' ],
 )
 
diff --git a/lib/deps.json b/lib/deps.json
index dee485d..23617a3 100644
--- a/lib/deps.json
+++ b/lib/deps.json
@@ -138,14 +138,14 @@
     "aopalliance-repackaged": "mvn:org.glassfish.hk2.external:aopalliance-repackaged:2.5.0-b42",
     "amqp-client": "mvn:com.rabbitmq:amqp-client:jar:3.6.1",
     "asm": "mvn:org.ow2.asm:asm:5.0.4",
-    "atomix": "mvn:io.atomix:atomix:3.0.3",
-    "atomix-cluster": "mvn:io.atomix:atomix-cluster:3.0.3",
-    "atomix-gossip": "mvn:io.atomix:atomix-gossip:3.0.3",
-    "atomix-primary-backup": "mvn:io.atomix:atomix-primary-backup:3.0.3",
-    "atomix-primitive": "mvn:io.atomix:atomix-primitive:3.0.3",
-    "atomix-raft": "mvn:io.atomix:atomix-raft:3.0.3",
-    "atomix-storage": "mvn:io.atomix:atomix-storage:3.0.3",
-    "atomix-utils": "mvn:io.atomix:atomix-utils:3.0.3",
+    "atomix": "mvn:io.atomix:atomix:3.0.5",
+    "atomix-cluster": "mvn:io.atomix:atomix-cluster:3.0.5",
+    "atomix-gossip": "mvn:io.atomix:atomix-gossip:3.0.5",
+    "atomix-primary-backup": "mvn:io.atomix:atomix-primary-backup:3.0.5",
+    "atomix-primitive": "mvn:io.atomix:atomix-primitive:3.0.5",
+    "atomix-raft": "mvn:io.atomix:atomix-raft:3.0.5",
+    "atomix-storage": "mvn:io.atomix:atomix-storage:3.0.5",
+    "atomix-utils": "mvn:io.atomix:atomix-utils:3.0.5",
     "classgraph": "mvn:io.github.classgraph:classgraph:4.0.6",
     "commons-codec": "mvn:commons-codec:commons-codec:1.10",
     "commons-cli": "mvn:commons-cli:commons-cli:1.3",
diff --git a/tools/build/bazel/generate_workspace.bzl b/tools/build/bazel/generate_workspace.bzl
index 5df2a56..af575dc 100644
--- a/tools/build/bazel/generate_workspace.bzl
+++ b/tools/build/bazel/generate_workspace.bzl
@@ -1,4 +1,4 @@
-# ***** This file was auto-generated at Wed, 5 Sep 2018 05:26:36 GMT. Do not edit this file manually. *****
+# ***** This file was auto-generated at Thu, 6 Sep 2018 17:33:51 GMT. Do not edit this file manually. *****
 # ***** Use onos-lib-gen *****
 
 load("//tools/build/bazel:variables.bzl", "ONOS_GROUP_ID", "ONOS_VERSION")
@@ -152,50 +152,50 @@
 
     native.maven_jar(
         name = "atomix",
-        artifact = "io.atomix:atomix:3.0.3",
-        sha1 = "708ee66373ff86369d1699f8246661a757b61726",
+        artifact = "io.atomix:atomix:3.0.5",
+        sha1 = "758df25aed743d625930654d2e589cc0084efdbc",
     )
 
     native.maven_jar(
         name = "atomix_cluster",
-        artifact = "io.atomix:atomix-cluster:3.0.3",
-        sha1 = "f7ba29d9725d4acac7db806cb05fe77435f7cb1c",
+        artifact = "io.atomix:atomix-cluster:3.0.5",
+        sha1 = "3ac50436eaf47fa5ba7553b37628aea7fa8b8deb",
     )
 
     native.maven_jar(
         name = "atomix_gossip",
-        artifact = "io.atomix:atomix-gossip:3.0.3",
-        sha1 = "93ca54c1ba6619b5820d5b898ce0410ac55ad9e3",
+        artifact = "io.atomix:atomix-gossip:3.0.5",
+        sha1 = "63c365b00b0164aa067e55febca9a4df253e8ab2",
     )
 
     native.maven_jar(
         name = "atomix_primary_backup",
-        artifact = "io.atomix:atomix-primary-backup:3.0.3",
-        sha1 = "95f44706477348b45c502752bae0aa5b8cd6670a",
+        artifact = "io.atomix:atomix-primary-backup:3.0.5",
+        sha1 = "f444f8f733457182a096786dd2b6a4369d1feebc",
     )
 
     native.maven_jar(
         name = "atomix_primitive",
-        artifact = "io.atomix:atomix-primitive:3.0.3",
-        sha1 = "3e97f76ee148a8451090b50fb8edd174699962de",
+        artifact = "io.atomix:atomix-primitive:3.0.5",
+        sha1 = "e383b171c202df84af7e8510034714bc52831115",
     )
 
     native.maven_jar(
         name = "atomix_raft",
-        artifact = "io.atomix:atomix-raft:3.0.3",
-        sha1 = "0c3b4bb68512de7fdef8e7c9af77830478b82e32",
+        artifact = "io.atomix:atomix-raft:3.0.5",
+        sha1 = "0e7345cd475adb6e1f5af8ec48fd6faeb1261f84",
     )
 
     native.maven_jar(
         name = "atomix_storage",
-        artifact = "io.atomix:atomix-storage:3.0.3",
-        sha1 = "75b682d4c16555912b98159b9d1f055bfe12cfb4",
+        artifact = "io.atomix:atomix-storage:3.0.5",
+        sha1 = "2967037f437ce85c191795baeb65535d76b027fe",
     )
 
     native.maven_jar(
         name = "atomix_utils",
-        artifact = "io.atomix:atomix-utils:3.0.3",
-        sha1 = "6a52f4f92d65ffad8cecb2577b1f2603bf446446",
+        artifact = "io.atomix:atomix-utils:3.0.5",
+        sha1 = "63afb65deccb9631b8017d6aa779b337f920cef0",
     )
 
     native.maven_jar(
@@ -2502,14 +2502,14 @@
 artifact_map["@aopalliance_repackaged//jar"] = "mvn:org.glassfish.hk2.external:aopalliance-repackaged:jar:2.5.0-b42"
 artifact_map["@amqp_client//jar"] = "mvn:com.rabbitmq:amqp-client:jar:3.6.1"
 artifact_map["@asm//jar"] = "mvn:org.ow2.asm:asm:jar:5.0.4"
-artifact_map["@atomix//jar"] = "mvn:io.atomix:atomix:jar:3.0.3"
-artifact_map["@atomix_cluster//jar"] = "mvn:io.atomix:atomix-cluster:jar:3.0.3"
-artifact_map["@atomix_gossip//jar"] = "mvn:io.atomix:atomix-gossip:jar:3.0.3"
-artifact_map["@atomix_primary_backup//jar"] = "mvn:io.atomix:atomix-primary-backup:jar:3.0.3"
-artifact_map["@atomix_primitive//jar"] = "mvn:io.atomix:atomix-primitive:jar:3.0.3"
-artifact_map["@atomix_raft//jar"] = "mvn:io.atomix:atomix-raft:jar:3.0.3"
-artifact_map["@atomix_storage//jar"] = "mvn:io.atomix:atomix-storage:jar:3.0.3"
-artifact_map["@atomix_utils//jar"] = "mvn:io.atomix:atomix-utils:jar:3.0.3"
+artifact_map["@atomix//jar"] = "mvn:io.atomix:atomix:jar:3.0.5"
+artifact_map["@atomix_cluster//jar"] = "mvn:io.atomix:atomix-cluster:jar:3.0.5"
+artifact_map["@atomix_gossip//jar"] = "mvn:io.atomix:atomix-gossip:jar:3.0.5"
+artifact_map["@atomix_primary_backup//jar"] = "mvn:io.atomix:atomix-primary-backup:jar:3.0.5"
+artifact_map["@atomix_primitive//jar"] = "mvn:io.atomix:atomix-primitive:jar:3.0.5"
+artifact_map["@atomix_raft//jar"] = "mvn:io.atomix:atomix-raft:jar:3.0.5"
+artifact_map["@atomix_storage//jar"] = "mvn:io.atomix:atomix-storage:jar:3.0.5"
+artifact_map["@atomix_utils//jar"] = "mvn:io.atomix:atomix-utils:jar:3.0.5"
 artifact_map["@classgraph//jar"] = "mvn:io.github.classgraph:classgraph:jar:4.0.6"
 artifact_map["@commons_codec//jar"] = "mvn:commons-codec:commons-codec:jar:1.10"
 artifact_map["@commons_cli//jar"] = "mvn:commons-cli:commons-cli:jar:1.3"
diff --git a/tools/test/bin/atomix-install b/tools/test/bin/atomix-install
index f0a46a3..f6a04bf 100755
--- a/tools/test/bin/atomix-install
+++ b/tools/test/bin/atomix-install
@@ -47,7 +47,7 @@
     [ -f $ATOMIX_INSTALL_DIR/bin/atomix-agent ] && echo \"Atomix is already installed\" && exit 1
 
     sudo mkdir -p $ATOMIX_INSTALL_DIR && sudo chown ${ONOS_USER}:${ONOS_GROUP} $ATOMIX_INSTALL_DIR
-    sudo wget -O $ATOMIX_INSTALL_DIR/atomix-dist.tar.gz https://oss.sonatype.org/content/repositories/releases/io/atomix/atomix-dist/3.0.3/atomix-dist-3.0.3.tar.gz
+    sudo wget -O $ATOMIX_INSTALL_DIR/atomix-dist.tar.gz https://oss.sonatype.org/content/repositories/releases/io/atomix/atomix-dist/3.0.5/atomix-dist-3.0.5.tar.gz
     tar -xvf $ATOMIX_INSTALL_DIR/atomix-dist.tar.gz -C $ATOMIX_INSTALL_DIR
 "