eclecticiq / OpenTAXII

TAXII server implementation in Python from EclecticIQ
BSD 3-Clause "New" or "Revised" License
193 stars 92 forks source link

Update Python versions, pin Ubuntu and service database images #256

Closed saaj closed 1 year ago

saaj commented 1 year ago

Summary

Motivation

On #255 CI broken because one of service containers (mariadb) failed to start. Exact reason isn't clear from the messages.

Log ``` 2023-08-23 13:12:50 0 [Note] Starting MariaDB 11.0.3-MariaDB-1:11.0.3+maria~ubu2204 source revision 70905bcb9059dcc40db3b73bc46a36c7d40f1e10 as process 96 2023-08-23 13:12:48+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:11.0.3+maria~ubu2204 started. 2023-08-23 13:12:50 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2023-08-23 13:12:49+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' 2023-08-23 13:12:50 0 [Note] InnoDB: Using transactional memory 2023-08-23 13:12:50 0 [Note] InnoDB: Number of transaction pools: 1 2023-08-23 13:12:50 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2023-08-23 13:12:50 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts) 2023-08-23 13:12:50 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB 2023-08-23 13:12:50 0 [Note] InnoDB: Completed initialization of buffer pool 2023-08-23 13:12:50 0 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes) 2023-08-23 13:12:50 0 [Note] InnoDB: End of log at LSN=46125 2023-08-23 13:12:50 0 [Note] InnoDB: Opened 3 undo tablespaces 2023-08-23 13:12:50 0 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active. 2023-08-23 13:12:49+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:11.0.3+maria~ubu2204 started. 2023-08-23 13:12:50 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ... 2023-08-23 13:12:50 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB. 2023-08-23 13:12:49+00:00 [Note] [Entrypoint]: Initializing database files PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER ! To do so, start the server, then issue the following command: '/usr/bin/mariadb-secure-installation' which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the MariaDB Knowledgebase at https://mariadb.com/kb Please report any problems at https://mariadb.org/jira The latest information about MariaDB is available at [https://mariadb.org/.](https://mariadb.org/) Consider joining MariaDB's strong and vibrant community: https://mariadb.org/get-involved/ 2023-08-23 13:12:50+00:00 [Note] [Entrypoint]: Database files initialized 2023-08-23 13:12:50 0 [Note] InnoDB: log sequence number 46125; transaction id 14 2023-08-23 13:12:50 0 [Note] Plugin 'FEEDBACK' is disabled. 2023-08-23 13:12:50 0 [Note] Plugin 'wsrep-provider' is disabled. Warning: 23 13:12:50 0 [Warning] 'user' entry 'root@6fe2b5d613e9' ignored in --skip-name-resolve mode. Warning: 23 13:12:50 0 [Warning] 'proxies_priv' entry '@% root@6fe2b5d613e9' ignored in --skip-name-resolve mode. 2023-08-23 13:12:50 0 [Note] mariadbd: ready for connections. Version: '11.0.3-MariaDB-1:11.0.3+maria~ubu2204' socket: '/run/mysqld/mysqld.sock' port: 0 mariadb.org binary distribution 2023-08-23 13:12:52 0 [Note] mariadbd (initiated by: unknown): Normal shutdown 2023-08-23 13:12:52 0 [Note] InnoDB: FTS optimize thread exiting. 2023-08-23 13:12:52 0 [Note] InnoDB: Starting shutdown... 2023-08-23 13:12:52 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool 2023-08-23 13:12:52 0 [Note] InnoDB: Buffer pool(s) dump completed at 230823 13:12:52 2023-08-23 13:12:52 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1" 2023-08-23 13:12:50+00:00 [Note] [Entrypoint]: Starting temporary server 2023-08-23 13:12:50+00:00 [Note] [Entrypoint]: Waiting for server startup 2023-08-23 13:12:52 0 [Note] InnoDB: Shutdown completed; log sequence number 47375; transaction id 15 2023-08-23 13:12:52 0 [Note] mariadbd: Shutdown complete 2023-08-23 13:12:51+00:00 [Note] [Entrypoint]: Temporary server started. 2023-08-23 13:12:52+00:00 [Note] [Entrypoint]: Creating database test 2023-08-23 13:12:52+00:00 [Note] [Entrypoint]: Securing system users (equivalent to running mysql_secure_installation) 2023-08-23 13:12:52+00:00 [Note] [Entrypoint]: Stopping temporary server 2023-08-23 13:12:52+00:00 [Note] [Entrypoint]: Temporary server stopped 2023-08-23 13:12:52+00:00 [Note] [Entrypoint]: MariaDB init process done. Ready for start up. 2023-08-23 13:12:53 0 [Note] Starting MariaDB 11.0.3-MariaDB-1:11.0.3+maria~ubu2204 source revision 70905bcb9059dcc40db3b73bc46a36c7d40f1e10 as process 1 2023-08-23 13:12:53 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2023-08-23 13:12:53 0 [Note] InnoDB: Using transactional memory 2023-08-23 13:12:53 0 [Note] InnoDB: Number of transaction pools: 1 2023-08-23 13:12:53 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2023-08-23 13:12:53 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts) 2023-08-23 13:12:53 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB 2023-08-23 13:12:53 0 [Note] InnoDB: Completed initialization of buffer pool 2023-08-23 13:12:53 0 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes) 2023-08-23 13:12:53 0 [Note] InnoDB: End of log at LSN=47375 2023-08-23 13:12:53 0 [Note] InnoDB: Opened 3 undo tablespaces 2023-08-23 13:12:53 0 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active. 2023-08-23 13:12:53 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ... 2023-08-23 13:12:53 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB. 2023-08-23 13:12:53 0 [Note] InnoDB: log sequence number 47375; transaction id 14 2023-08-23 13:12:53 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool 2023-08-23 13:12:53 0 [Note] Plugin 'FEEDBACK' is disabled. 2023-08-23 13:12:53 0 [Note] Plugin 'wsrep-provider' is disabled. 2023-08-23 13:12:53 0 [Note] Server socket created on IP: '0.0.0.0'. 2023-08-23 13:12:53 0 [Note] Server socket created on IP: '::'. 2023-08-23 13:12:53 0 [Note] InnoDB: Buffer pool(s) load completed at 230823 13:12:53 2023-08-23 13:12:53 0 [Note] mariadbd: ready for connections. Version: '11.0.3-MariaDB-1:11.0.3+maria~ubu2204' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution Error: Failed to initialize container mariadb ```

But because tests databases aren't pinned that likely has happened due to the image update.