Skip to content

Conversation

jpwhite4
Copy link
Member

The xdmod-supremm-admin mongo code was expecting an array result (which is what the deprecated mongo driver returned). Since the old mongo driver is deprecated and not available I also removed the legacy code that was trying to use it.

The xdmod-supremm-admin mongo code was expecting an array result (which
is what the deprecated mongo driver returned). Since the old mongo
driver is deprecated and not available I also removed the legacy
code that was trying to use it.
@jpwhite4 jpwhite4 added the bug label Mar 12, 2025
@jpwhite4 jpwhite4 added this to the 11.5.0 milestone Mar 12, 2025
@jpwhite4
Copy link
Member Author

Manually tested in the hpc-toolset docker

[root@xdmod ~]# sudo -u xdmod /usr/lib64/xdmod/xdmod-supremm-admin --action=truncate --resource='hpc'
Truncate all job data for resource hpc? (yes/no): [no] yes
2025-03-12 22:20:37 [notice] Reset job ingest status for job summaries in mongo for resource_id 1
2025-03-12 22:20:37 [notice] Job summary documents status reset for 1 jobs
2025-03-12 22:20:37 [notice] Removing job data from sql database for resource_id 1
2025-03-12 22:20:37 [notice] Deleted 1 rows from executable
2025-03-12 22:20:37 [notice] Deleted 1 rows from cwd
2025-03-12 22:20:37 [notice] Deleted 2 rows from host
2025-03-12 22:20:37 [notice] Deleted 97 rows from jobhost
2025-03-12 22:20:37 [notice] Deleted 69 rows from job_errors
2025-03-12 22:20:37 [notice] Deleted 2 rows from job_name and job_peers tables.

@jpwhite4 jpwhite4 requested review from connersaeli and removed request for connersaeli April 3, 2025 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants