@f5devcentral/f5-cloud-libs
Advanced tools
Comparing version 4.18.0 to 4.19.0
@@ -437,6 +437,6 @@ /** | ||
} | ||
const shellCommand = `/bin/ps -eo pid,etime,cmd | ${grepCommand} | awk '{ print $1"-"$2 }'`; | ||
const cmd = `/bin/ps -eo pid,etime,cmd --sort=-time | ${grepCommand} | awk '{ print $1"-"$2 }'`; | ||
logger.silly(`shellCommand: ${shellCommand}`); | ||
return this.runShellCommand(shellCommand) | ||
logger.silly(`shellCommand: ${cmd}`); | ||
return this.runShellCommand(cmd) | ||
.then((response) => { | ||
@@ -470,2 +470,3 @@ return q( | ||
} | ||
logger.silly(`Autoscale Process ID to kill: ${pid}`); | ||
const shellCommand = `/bin/kill -9 ${pid}`; | ||
@@ -472,0 +473,0 @@ return this.runShellCommand(shellCommand) |
{ | ||
"name": "@f5devcentral/f5-cloud-libs", | ||
"version": "4.18.0", | ||
"version": "4.19.0", | ||
"description": "Common library code and scripts for deploying a BIG-IP in a cloud environment", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
# Release notes | ||
## Release 4.19.0 | ||
* Update autoscale script to populate lastBackup date within instance metadata when UCS generated. The lastBackup date will be shared with other hosts when they get in sync with master. | ||
* Enable logic on autoscale.js script for preventing restoring UCS file when new master elected and new master was in sync with previous master. | ||
## Release 4.18.0 | ||
@@ -4,0 +9,0 @@ * Improve availability check for BIGIP system |
@@ -36,3 +36,3 @@ /** | ||
return options | ||
.version('4.18.0') | ||
.version('4.19.0') | ||
.option( | ||
@@ -39,0 +39,0 @@ '--host <ip_address>', |
@@ -42,3 +42,3 @@ /** | ||
options | ||
.version('4.18.0') | ||
.version('4.19.0') | ||
.option( | ||
@@ -45,0 +45,0 @@ '--data-file <data_file>', |
@@ -61,3 +61,3 @@ /** | ||
options | ||
.version('4.18.0') | ||
.version('4.19.0') | ||
.option( | ||
@@ -64,0 +64,0 @@ '--background', |
@@ -36,3 +36,3 @@ /** | ||
options | ||
.version('4.18.0') | ||
.version('4.19.0') | ||
.option( | ||
@@ -39,0 +39,0 @@ '--length <password_length>', |
@@ -55,3 +55,3 @@ /** | ||
options | ||
.version('4.18.0') | ||
.version('4.19.0') | ||
.option( | ||
@@ -58,0 +58,0 @@ '--cloud <cloud_provider>', |
@@ -73,3 +73,3 @@ /** | ||
options | ||
.version('4.18.0') | ||
.version('4.19.0') | ||
.option( | ||
@@ -76,0 +76,0 @@ '--host <ip_address>', |
@@ -52,3 +52,3 @@ /** | ||
options | ||
.version('4.18.0') | ||
.version('4.19.0') | ||
.option( | ||
@@ -55,0 +55,0 @@ '--background', |
@@ -1636,6 +1636,6 @@ /** | ||
const grepCommand = 'grep autoscale.js'; | ||
const expected = `/bin/ps -eo pid,etime,cmd | ${grepCommand} | awk '{ print $1"-"$2 }'`; | ||
const cmd = `/bin/ps -eo pid,etime,cmd --sort=-time | ${grepCommand} | awk '{ print $1"-"$2 }'`; | ||
util.getProcessExecutionTimeWithPid(grepCommand) | ||
.then(() => { | ||
test.strictEqual(passedCommand, expected); | ||
test.strictEqual(passedCommand, cmd); | ||
}) | ||
@@ -1642,0 +1642,0 @@ .catch((err) => { |
@@ -163,3 +163,4 @@ /** | ||
.setPrivateIp('1.2.3.4') | ||
.setMgmtIp('1.2.3.4'); | ||
.setMgmtIp('1.2.3.4') | ||
.setLastBackup(new Date(1970, 1, 1).getTime()); | ||
const instance2 = new AutoscaleInstance() | ||
@@ -1013,3 +1014,4 @@ .setIsMaster() | ||
.setPrivateIp('1.2.3.4') | ||
.setMgmtIp('1.2.3.4'); | ||
.setMgmtIp('1.2.3.4') | ||
.setLastBackup(new Date(1970, 1, 2).getTime()); | ||
const instance2 = new AutoscaleInstance() | ||
@@ -1016,0 +1018,0 @@ .setIsMaster() |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3193556
155
33447