Comments (3)
Build the pull requested and tested. Looks good.
# /opt/ibm/csm/bin/csm_allocation_create -h
_____CSM_ALLOCATION_CREATE_CMD_HELP_____
USAGE:
csm_allocation_create ARGUMENTS [OPTIONS]
csm_allocation_create -j primary_job_id -n "node01,node02" [-J secondary_job_id] [-s state] [-t type] [-u user_name] [-U user_id] [-h] [-v verbose_level] [--create_cgroup] [-l launch_node_name]
SUMMARY: Used to create an allocation.
EXIT STATUS:
0 if OK,
1 if ERROR.
ARGUMENTS:
MANDATORY:
csm_allocation_create expects 2 mandatory arguments
Argument | Example value | Description
------------------------|--------------------|--------------
-j, --primary_job_id | 1 | (LONG INTEGER) Primary job id [>0] (for lsf this will be the lsf job id).
| |
-n, --node_range | "node01,node02" | (STRING) The node_names to be allocated. Separated by comma.
| | (at least 1 node (node01,node02,...) is required)
| |
OPTIONAL:
csm_allocation_create can have 5 optional arguments
Argument | Example value | Description
-----------------------|-----------------|--------------
-J, --secondary_job_id | 0 | (INTEGER) Secondary job id (for lsf this will be the lsf job index for job arrays) [>=0].
| | (default = '0')
| |
-s, --state | "running" | (STRING) The state of the allocation.
| | (default = "running")
| | Valid values: "staging-in", "running"
| |
-t, --type | "user-managed" | (STRING) The type of allocation.
| | (default = "user-managed")
| | Valid values: "user-managed","jsm","jsm-cgroup-step", or "diagnostics"
| |
-u, --user_name | | (STRING) The owner of this allocation's Linux user name.
| | (default is invoking user)
| |
-l, --launch_node_name | "some_host" | (STRING) The hostname of the launch node for the allocation.
-U, --user_id | 0 | (INTEGER) The owner of this allocation's Linux user id.
| |
--isolated_cores | 0 | (INTEGER) Specifies the number of cores ot isolate in the system cgroup ( if 0 the system cgroup will not be created ).
| | Valid values: [0 - 4]
GENERAL OPTIONS:
[-h, --help] | Help.
[-v, --verbose verbose_level] | Set verbose level. Valid verbose levels: {off, trace, debug, info, warning, error, critical, always, disable}
EXAMPLE OF USING THIS COMMAND:
csm_allocation_create -j 1 -n "node01"
____________________
#
# /opt/ibm/csm/bin/csm_allocation_create -j 1 -u pizzano -l c650f07p09 -n c650f08p25
---
allocation_id: 1
num_nodes: 1
- compute_nodes: c650f08p25
user_name: pizzano
user_id: 378481
state: running
type: user-managed
job_submit_time: 2018-05-10 14:41:02
...
#
# /opt/ibm/csm/bin/csm_allocation_query -a 1
---
allocation_id: 1
primary_job_id: 1
secondary_job_id: 0
num_nodes: 1
compute_nodes:
- c650f08p25
ssd_file_system_name:
launch_node_name: c650f07p09
user_flags:
system_flags:
ssd_min: 0
ssd_max: 0
num_processors: 0
num_gpus: 0
projected_memory: 0
state: running
type: user-managed
job_type: batch
user_name: pizzano
user_id: 378481
user_group_id: 100
user_script:
begin_time: 2018-05-10 14:38:53.752507
account:
comment:
job_name:
job_submit_time: 2018-05-10 14:41:02
queue:
requeue:
time_limit: 0
wc_key:
isolated_cores: 0
...
#
from cast.
@mew2057 @fpizzano are we ok to close this?
from cast.
Looks good. Running with:
# rpm -qa | grep ibm-csm
ibm-csm-hcdiag-1.1.0-114.noarch
ibm-csm-core-1.1.0-114.ppc64le
ibm-csm-api-1.1.0-114.ppc64le
# /opt/ibm/csm/bin/csm_allocation_create -j 1 -u pizzano -l c650f07p09 -n c650f07p15,c650f07p17,c650f07p19,c650f07p21,c650f08p09,c650f08p11,c650f08p13,c650f08p15,c650f08p17,c650f08p19,c650f08p21,c650f08p23,c650f08p25,c650f08p27
---
allocation_id: 1
num_nodes: 14
- compute_nodes: c650f07p15
- compute_nodes: c650f07p17
- compute_nodes: c650f07p19
- compute_nodes: c650f07p21
- compute_nodes: c650f08p09
- compute_nodes: c650f08p11
- compute_nodes: c650f08p13
- compute_nodes: c650f08p15
- compute_nodes: c650f08p17
- compute_nodes: c650f08p19
- compute_nodes: c650f08p21
- compute_nodes: c650f08p23
- compute_nodes: c650f08p25
- compute_nodes: c650f08p27
user_name: pizzano
user_id: 378481
state: running
type: user-managed
job_submit_time: 2018-05-15 10:34:17
...
#
# /opt/ibm/csm/bin/csm_allocation_query_active_all
---
num_allocations: 1
allocations:
allocation_id: 1
primary_job_id: 1
begin_time: 2018-05-15 10:31:50.259812
state: running
user_name: pizzano
num_nodes: 14
launch_node_name: c650f07p09
...
#
from cast.
Related Issues (20)
- 'bbcmd' with no args segfaults HOT 3
- Can't connect to bbproxy when calling BB_InitLibrary() in post-stage HOT 7
- Duplicate transfer request within the same job prevents cleanup of the job's logical volume HOT 1
- HCDiag: `chk-ib-pcispeed` Test Fails to Detect Mellanox HCAs Speed / Width Values on RHEL 8.4 Node HOT 1
- How to build a new copy of BBAPI using a newer version of BOOST HOT 2
- CAST 1.8.4 Release Tasks HOT 1
- What happens if a job is killed while calling BB_StartTransfer()? HOT 2
- CAST 1.8.x branch HOT 2
- csmd error "Could not determine size [of SSD]" in csm_compute.log HOT 8
- CSM RHEL 8: user tasks are not assigned to the correct set of CPUs when requesting an allocation with core isolation HOT 4
- CSM RHEL 8: new warning messages in CSM log files when with DCGM 2.X compared to DCGM 1.X HOT 1
- CSM RHEL 8: ibm-csm-tools rpm dependency on numpy needs updating HOT 2
- Should BB API preserve permissions & xattrs to destination file HOT 9
- Incorrect pam.d configuration on non-compute nodes causes "Cannot find a registered handler." messages to be logged in csm_master.log HOT 1
- CSM BDS: python scripts TypeError with --state reverted HOT 7
- elastic search returns total_hits as dict object not integer HOT 2
- CSM BDS python scripts don't work with --starttime or --endtime HOT 11
- CSM BDS: Change allocation index mapping of text field to date type HOT 2
- CSM BDS: findJobTimeRange.py is dependent on date+time format HOT 3
- How do you actually copy a file with `bbcmd copy`?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cast.