platinasystems / go

Other
9 stars 68 forks source link

GoES upgrade command should display actual GoES version on server #127

Open jignesh045 opened 6 years ago

jignesh045 commented 6 years ago

Issue Description: GoES upgrade command should display actual GoES version on server

Steps:

Execute below commands for GoES upgrade and observe the "Goes version on server" displaying when executing command and compare it with goes version after upgrading/downgrading completes.

Commands to upgrade/downgrade the GOES version.

(1) Case with downgrade goes Version

root@invader45:/home/jignesh# sudo goes upgrade -g -v 20180624 -s 172.17.2.28/downloads

Update Goes
    Goes version currently:  v0.41-235-g0a9b64fb
    Goes version on server:  v0.2-520-g85494c1

ACTIVATING GOES, WILL EXIT... type reset, goes
root@invader45:/home/jignesh#
root@invader45:/home/jignesh#
root@invader45:/home/jignesh# goes version
github.com/platinasystems/go: v0.41-214-g7bc026cd
github.com/platinasystems/fe1: v0.2-520-g85494c1
github.com/platinasystems/firmware-fe1a: v0.2
root@invader45:/home/jignesh#

Goes version on server: v0.2-520-g85494c1 which is not matching with actual goes version v0.41-214-g7bc026cd after downgrading GoES

root@invader45:/home/jignesh# goes status
GOES status
======================
  Mode            - SRIOV
  PCI             - OK
  Check daemons   - OK
  Check Redis     - OK
  Check vnet      - OK
root@invader45:/home/jignesh#

(2) Case with upgrade goes version

root@invader45:/home/jignesh# sudo goes upgrade -g -v goes -s 172.17.2.28/downloads

Update Goes
    Goes version currently:  v0.41-214-g7bc026cd
    Goes version on server:  v0.2-520-g85494c1

ACTIVATING GOES, WILL EXIT... type reset, goes
root@invader45:/home/jignesh#
root@invader45:/home/jignesh# goes version
github.com/platinasystems/go: v0.41-235-g0a9b64fb
github.com/platinasystems/fe1: v0.2-520-g85494c1
github.com/platinasystems/firmware-fe1a: v0.2
root@invader45:/home/jignesh#

Goes version on server: v0.2-520-g85494c1 which is not matching with actual goes version v0.41-235-g0a9b64fb after upgrading GoES

root@invader45:/home/jignesh# goes status
GOES status
======================
  Mode            - SRIOV
  PCI             - OK
  Check daemons   - OK
  Check Redis     - OK
  Check vnet      - OK
root@invader45:/home/jignesh#