You've already forked mariadb-columnstore-engine
							
							
				mirror of
				https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
				synced 2025-11-03 17:13:17 +03:00 
			
		
		
		
	Implements the initial upgrade capability across CMAPI and the CLI, including
repository setup, package operations, environment prechecks, and coordinated
cluster steps with progress reporting.
Details:
- CMAPI upgrade manager:
  - Add `cmapi/cmapi_server/managers/upgrade/` modules:
    - `repo.py`, `packages.py`, `preinstall.py`, `upgrade.py`, `utils.py` and `__init__.py`
  - Extend endpoints and routing to expose upgrade operations and status:
    - `cmapi_server/controllers/{endpoints.py, dispatcher.py, api_clients.py}`
    - `cmapi_server/managers/{application.py, process.py}`
    - Add improved constants and helpers for upgrade flow
- Backup/restore and safety:
  - Add `cmapi_server/managers/backup_restore.py`
  - Fix pre-upgrade backup regressions (due to `mcs_backup_manager.sh 3.17 changes`)
  - Improve cluster version validation; add `ignore_missmatch` override
- CLI enhancements:
  - Progress UI and richer feedback (`mcs_cluster_tool/tools_commands.py`, `README.md`, `mcs.1`)
  - Add steps to start MDB and start MCS during/after upgrade
  - Improved error surfacing for version validation
- Platform and packaging:
  - Ubuntu and Rocky Linux support
  - RHEL/DNF dry-run support
  - Distro detection and platform-dependent logic hardened
  - Logging improvements
- Updater service:
  - Add `cmapi/updater/cmapi_updater.service.template` and `cmapi_updater.sh` to make CMAPI update itself
- Docs:
  - Update mcs cli README and mcs.1 man file
  - Add `cmapi/updater/README.md`
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			811 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			811 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
{
 | 
						|
    "version": 1,
 | 
						|
    "disable_existing_loggers": true,
 | 
						|
    "formatters": {
 | 
						|
        "default": {
 | 
						|
            "format": "%(asctime)s [%(levelname)s] (%(name)s) %(message)s",
 | 
						|
            "datefmt": "%d/%b/%Y %H:%M:%S"
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "handlers": {
 | 
						|
        "file": {
 | 
						|
            "level": "DEBUG",
 | 
						|
            "class" : "logging.handlers.RotatingFileHandler",
 | 
						|
            "formatter": "default",
 | 
						|
            "filename": "/var/log/mariadb/columnstore/mcs_cli.log",
 | 
						|
            "mode": "a",
 | 
						|
            "maxBytes": 1048576,
 | 
						|
            "backupCount": 10
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "loggers": {
 | 
						|
        "": {
 | 
						|
            "level": "DEBUG",
 | 
						|
            "handlers": ["file"]
 | 
						|
        },
 | 
						|
        "mcs_cli": {
 | 
						|
            "level": "DEBUG",
 | 
						|
            "handlers": ["file"],
 | 
						|
            "propagate": false
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |