Posts WSO2 Update 2.0
Post
Cancel

WSO2 Update 2.0

Introducción

WSO2 ha implementado una nueva forma de actualizar los productos, y que tendrá prioridad a partir de Febrero del año 2021. Este nueva forma de actualizar, llamada Update 2.0, tendrá prioridad sobre los otros metodos de actualización que ya conocemos, como puede ser WUM (WSO2 Update Manager) o Update. WUM será reemplazado por WSO2 Updates 2.0 en un futuro cercano y la mejor opción puede ser actualizar.

Con las actualizaciones, no tiene que esperar hasta el lanzamiento de la próxima versión del producto para obtener las mejoras del producto y las correcciones de seguridad.

Productos WSO2

Instalación de WSO2 Enterprise Integrator (wso2ei-6.6.0)

Instalación de WSO2 API Manager (wso2am-3.2.0)

Comandos

Sinopsis:

1
2
3
wso2update_linux [--version | version] [--help | help]
                 [<options>]
                 <command> [<args>]

Cuando ejecutemos la herramienta nos pedirá las credenciales de acceso de WSO2, esta herramienta determina qué actualizaciones son nuevas y relevantes, luego descarga y actualiza el producto.

  • Version: Con el siguiente comando podremos ver la version en la que estamos trabajando.
1
2
3
4
5
6
devops@chakray:~/Descargas/wso2ei-6.6.0/bin$ ./wso2update_linux version

wso2updates version: 1.2.1
Release date: 2020-11-26 05:36:41 UTC
OS\Arch: linux\amd64
Go version: go1.13.15
  • Help: Con el comando help podremos ver todos los comandos disponibles.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
devops@chakray:~/Descargas/wso2ei-6.6.0/bin$ ./wso2update_linux help

wso2update tool is a simple command-line tool that connects to the  
WSO2 Update service, determines which updates are new and relevant, and 
downloads them and updates the product.

To find out the latest on WSO2 Update, visit https://wso2.com/updates

Usage:
  wso2update [flags]
  wso2update [command]

Examples:
	# Check the current version of Update tool in use on your system
  	wso2update_linux version

	# Get help on how to use the update command
  	wso2update_linux help check

	# Update the product to the latest level. You will be prompted to enter WSO2 credentials.
	  wso2update_linux
	  Username: user@wso2.com
	  Password for ‘user@wso2.com’: my_password

    # Update the product to the latest level by entering WSO2 credentials as arguments.
      wso2update_linux --username user@wso2.com --password my_password

    # Update the product up to a given level
      wso2update_linux --level 3.0.0.10

    # Simulate the update 
      wso2update_linux --dry-run


Available Commands:
  apply-hotfix  Apply an available hotfix.
  check         Check available new levels for the product
  create-docker Create Docker image of the product
  current-state Show current details of the product.
  help          Help about any command
  revert-hotfix Revert most recently applied hotfix.
  version       Print the Update tool version information.

Flags:
  -b, --backup string        Specify updates backup directory
  -c, --channel string       Channel updates should be downloaded from (default "full")
      --continue             Merge resolved conflicts
      --dry-run              Simulate the update
  -h, --help                 help for wso2update
  -l, --level string         Level in which the product should be updated to
  -p, --password string      Specify your WSO2 account password
      --revert               Revert to the previous update level
      --template string      Specify the template output
      --trial-subscription   Continue with a trial subscription
  -u, --username string      Specify your WSO2 account email
  -v, --verbose              Enable verbose mode

Use "wso2update [command] --help" for more information about a command.
  • Check: Comprobar nuevos niveles:
1
2
3
4
5
6
7
devops@chakray:~/Descargas/wso2ei-6.6.0/bin$ ./wso2update_linux check

Checking for latest update tool version
Checking updates for product wso2ei-6.6.0 from update level 2
Checking updates for 'wso2ei-6.6.0' via 'full' channel
Checking for updates
wso2ei-6.6.0.2 is the latest update level available for the product wso2ei-6.6.0
  • Current-state: Muestra los detalles del estado actual del producto.
1
2
3
4
5
devops@chakray:~/Descargas/wso2ei-6.6.0/bin$ ./wso2update_linux current-state

Checking for latest update tool version
WSO2 product: wso2ei-6.6.0.2
There are no hotfixes applied on this pack.
  • Apply-hotfix: Aplicar una revisión disponible.
1
wso2update_linux apply-hotfix [options] <path-to-hotfix>
  • Revert-hotfix: El comando Revert-hotfix revierte la revisión aplicada más recientemente a la distribución del producto.
1
wso2update_linux revert-hotfix

Informacion de las actualizaciones mediante un entorno grafico, desde aquí podremos ver que productos tenemos disponibles y las atualizaciones que ha recibido junto a las actualizaciones disponible (En mi caso, no hay actualizaciones pendientes).

This post is licensed under CC BY 4.0 by the author.