Closed miguelgila closed 3 months ago
use case 1:
The fact that manta g c -H rigi
did not return any value seems like a bug. Which version did yo use? I can't reproduce it in master branch.
Which version did you test this?
use case 2: Yes this is very useful indeed. I have q question: Do you want to use globbing or regex style to define the patterns?. I assume this functionality would need to be consistent and expanded across other entities (CFS sessions, BOS sessiontemplates, IMS images) at least for searching
This is an example:
New pattern
argument added to the get configuration
command, manta will filter CFS configuration names following glob strategy
$ manta g c --help`
Get information from Shasta CFS configuration
Usage: manta get configuration [OPTIONS]
Options:
-n, --name <CONFIGURATION_NAME>
configuration name
-p, --pattern <CONFIGURATION_NAME_PATTERN>
Glob pattern for configuration name
-m, --most-recent
Only shows the most recent (equivalent to --limit 1)
-l, --limit <VALUE>
Filter records to the <VALUE> most common number of CFS configurations created
-o, --output <FORMAT>
Output format. If missing, it will print output data in human redeable (tabular) format
[possible values: json]
-H, --hsm-group <HSM_GROUP_NAME>
hsm group name
-h, --help
Print help
Example:
$ manta g c -p 'pilatus*'
+---------------------------------------------------+----------------------+----------------------------------------------------+
| Config Name | Last updated | Layers |
+===============================================================================================================================+
| pilatus-mc-compute-config-cscs-24.3.0.r1-0.1 | 2024-05-10T12:29:18Z | Name: csm-packages-1.5.0 |
| | | Playbook: csm_packages.yml |
| | | Commit: 6423c550ea38a3b6befc4867ea7319157b48c554 |
| | | |
| | | Name: shs-cassini_install-cscs-24.3.0 |
| | | Playbook: shs_cassini_install.yml |
| | | Commit: 4dead2f7ebd1080d6a65d4b374618cf727624215 |
| | | |
| | | Name: cos-compute-cscs-24.3.0 |
| | | Playbook: cos-compute.yml |
| | | Commit: 18da1ec8ea46d38b6ad9b4c28208ef8ed2a597f6 |
| | | |
| | | Name: csm-diags-compute-1.5.26 |
| | | Playbook: csm-diags-compute.yml |
| | | Commit: 3b59bd64682b8e55c7f49c6317442b48cea6bb53 |
| | | |
| | | Name: sma-ldms-compute-1.9.14 |
| | | Playbook: sma-ldms-compute.yml |
| | | Commit: 09b922e6a608f273dd28dfbc9eaf089b355a56b8 |
| | | |
| | | Name: cscs |
| | | Playbook: site.yml |
| | | Commit: 82fb51e1393408a8c30724e68af5e97831a586f6 |
| | | |
| | | Name: cpe-pe_deploy-cscs-24.3.0 |
| | | Playbook: site-cscs.yml |
| | | Commit: 12f23283fcc0ffa52e86b92a8f70b19e5883efc8 |
| | | |
| | | Name: slurm-site-cscs-24.3.0 |
| | | Playbook: site-cscs.yml |
| | | Commit: 95bd128a247ed656d68442fb441cc0bda1921542 |
| | | |
| | | Name: cos-compute-last-cscs-24.3.0 |
| | | Playbook: cos-compute-last.yml |
| | | Commit: 18da1ec8ea46d38b6ad9b4c28208ef8ed2a597f6 |
|---------------------------------------------------+----------------------+----------------------------------------------------|
| pilatus-mc-compute-config-cscs-24.3.0.r1-0.1-temp | 2024-05-16T07:58:35Z | Name: csm-packages-1.5.0 |
| | | Playbook: csm_packages.yml |
| | | Commit: 6423c550ea38a3b6befc4867ea7319157b48c554 |
| | | |
| | | Name: shs-cassini_install-cscs-24.3.0 |
| | | Playbook: shs_cassini_install.yml |
| | | Commit: 4dead2f7ebd1080d6a65d4b374618cf727624215 |
| | | |
| | | Name: cos-compute-cscs-24.3.0 |
| | | Playbook: cos-compute.yml |
| | | Commit: 18da1ec8ea46d38b6ad9b4c28208ef8ed2a597f6 |
| | | |
| | | Name: csm-diags-compute-1.5.26 |
| | | Playbook: csm-diags-compute.yml |
| | | Commit: 3b59bd64682b8e55c7f49c6317442b48cea6bb53 |
| | | |
| | | Name: sma-ldms-compute-1.9.14 |
| | | Playbook: sma-ldms-compute.yml |
| | | Commit: 09b922e6a608f273dd28dfbc9eaf089b355a56b8 |
| | | |
| | | Name: cscs |
| | | Playbook: site.yml |
| | | Commit: b01d095766627418959dfe3382c0e39329d4c8dd |
| | | |
| | | Name: cpe-pe_deploy-cscs-24.3.0 |
| | | Playbook: site-cscs.yml |
| | | Commit: 12f23283fcc0ffa52e86b92a8f70b19e5883efc8 |
| | | |
| | | Name: slurm-site-cscs-24.3.0 |
| | | Playbook: site-cscs.yml |
| | | Commit: 95bd128a247ed656d68442fb441cc0bda1921542 |
| | | |
| | | Name: cos-compute-last-cscs-24.3.0 |
| | | Playbook: cos-compute-last.yml |
| | | Commit: 18da1ec8ea46d38b6ad9b4c28208ef8ed2a597f6 |
+---------------------------------------------------+----------------------+----------------------------------------------------+
done in v1.34.0
Description
At the moment, when we pass a CFS configuration to any of the commands in manta, it has to be a name that matches perfectly the desired configuration. I would like it to be so we can use a regex to the name to match multiple configurations; this could be useful for example when deleting configurations that are named similarly (like
image-xxxx-r0.0.1
andruntime-xxxx-r0.0.1
).Use case 1
For example, this shows no configurations named "rigi", but there are several for the cluster Rigi:
Use case 2
Imagine you want to delete the artifacts relative to the following:
Using a wildcard like
*wildhorn-*compute-config-cscs-24.3.0.r1-0.0
would make it much easier than going config per config.