Skip to content

FISH-12828 create node version command#7944

Open
NotedSalmon wants to merge 1 commit intopayara:mainfrom
NotedSalmon:FISH-12828-create-node-version-command
Open

FISH-12828 create node version command#7944
NotedSalmon wants to merge 1 commit intopayara:mainfrom
NotedSalmon:FISH-12828-create-node-version-command

Conversation

@NotedSalmon
Copy link
Contributor

FISH-12828 Implement remote node version feature

Description

Created a new ListNodeVersionCommand + Helper. It gets the list of nodes and checks the installDir for each one. Checks the glassfish-version.properties and builds a version using the major, minor and update version.

The command then tries to find for a config.old or config.new folder which would be created if an upgrade was staged.

If the node is remote, it will first download the properties file into a temporary directory and then read it. It would then safely delete the directory after it has been used.

The command outputs a table similarly to how list-nodes --long command does, showing each nodes version.

Important Info

Testing

Testing Performed

  • Created 3 nodes, local with 7.0.0, SSH with 7.0.0 and SSH with 6.3.3

  • Ran list-node-versions which will display each version of each node.

  • "Upgraded" Local and SSH with 6.3.3 to version 7.1.0 (I just changed the version to 7.1.0 to test the upgrade) with stage.

  • Another way is, just copy + paste config folders and rename to .new/.old and change the glassfish-version.properties versions manually

Documentation

Notes for Reviewers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant