-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathochami-boot.1.sc
More file actions
653 lines (476 loc) · 20.2 KB
/
ochami-boot.1.sc
File metadata and controls
653 lines (476 loc) · 20.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
OCHAMI-BOOT(1) "OpenCHAMI" "Manual Page for ochami-boot"
# NAME
ochami-boot - Communicate with the Boot Service
# SYNOPSIS
ochami boot bmc (add | delete | get | list | patch | set) [OPTIONS]++
ochami boot config (add | delete | get | list | patch | set) [OPTIONS]++
ochami boot node (add | delete | get | list | patch | set) [OPTIONS]
# DATA STRUCTURE
## BOOT CONFIGURATION
The data structure for sending and receiving boot configuration is detailed in
JSON form below:
```
{
"hosts":[
"item1",
"item2"
],
"macs":[
"item1",
"item2"
],
"nids":[
1,
2
],
"groups":[
"item1",
"item2"
],
"kernel":"http://s3.openchami.cluster/kernels/vmlinuz1",
"initrd":"http://s3.openchami.cluster/initrds/initramfs1.img",
"params":"console=tty0,115200n8 console=ttyS0,115200n8",
"priority": 42
}
```
## BMC SPECIFICATION
The data structure for sending and receiving BMC specifications is detailed in
JSON form below:
```
{
"xname": "x1000c0s0b0",
"description": "This node's BMC",
"interface": {
"type": "management",
"mac": "de:ca:fc:0f:fe:e1",
"ip": "172.16.0.254"
}
}
```
## NODE CONFIGURATION
The data structure for sending and receiving node specifications is detailed in
JSON form below:
```
{
"xname": "x1000c0s0b0n0",
"nid": 42,
"bootMac": "de:ca:fc:0f:fe:e1",
"role": "example-role",
"subRole": "example-subrole",
"hostname": "ex01.example.org",
"interfaces": [
{
"mac": "de:ca:fc:0f:fe:e1",
"ip": "172.16.0.1",
"type": "management"
}
],
"groups": [
"group1",
"group2"
]
}
```
# GLOBAL FLAGS
*--api-version* _version_
Version of the API to use in the request. Example values are *v1*,
*v2beta1*. The default is to use the latest stable API version.
*--timeout* _duration_
Time out duration for making requests. _duration_ is any time duration
string supported by the Go *time* library.
The default is *30s* for 30 seconds.
*--uri* _uri_
Specify either the absolute base URI for the service (e.g.
_https://foobar.openchami.cluster:8443/boot_) or a relative base path for
the service (e.g. _/boot_). If an absolute URI is specified, this
completely overrides any value set with the *--cluster-uri* flag or
*cluster.uri* in the config file for the cluster. If using an absolute URI,
it should contain the desired service's base path. If a relative path is
specified (with or without the leading forward slash), then this value
overrides the service's default base path and is appended to the cluster's
base URI (set with the *--cluster-uri* flag or the *cluster.uri* cluster
config option), which is required to be set if a relative path is used here.
The boot service has no base path by default.
See *ochami*(1) for *--cluster-uri* and *ochami-config*(5) for details on
cluster configuration options.
# COMMANDS
## bmc
Manage BMCs stored in boot-service.
Subcommands for this command are as follows:
*add* -d _data_ [-f _format_]++
*add* -d @_file_ [-f _format_]++
*add* -d @- [-f _format_] < _file_
Add one or more BMC specifications to boot-service.
In the first form of the command, raw data is passed as an argument to be
the payload.
In the second form of the command, a file containing the payload data is
passed.
In the third form of the command, the payload data is read from standard
input.
This command sends a POST request to boot-service's BMC endpoint.
This command accepts the following options:
*-d, --data* (_data_ | @_path_ | @-)
Specify raw _data_ to send, the _path_ to a file to read payload data
from, or to read the data from standard input (@-). The format of data
read in any of these forms is JSON by default unless *-f* is specified
to change it.
*-f, --format-input* _format_
Format of raw data being used by *-d* as the payload. Supported formats
are:
- _json_ (default)
- _yaml_
*delete* [--no-confirm] _uid_...
Delete one or more BMCs identified by _uid_. Unless *--no-confirm* is
passed, the user is asked to confirm deletion.
This command sends one or more DELETE requests to boot-service's BMC
endpoint.
This command accepts the following options:
*--no-confirm*
Do not ask the user to confirm deletion. Use with caution.
*get* [-F _format_] _uid_
Get BMC details for BMC identified by _uid_.
This command sends a GET to boot-service's BMC endpoint.
This command accepts the following options:
*-F, --format-output* _format_
Output response data in specified _format_. Supported values are:
- _json_ (default)
- _json-pretty_
- _yaml_
*list* [-F _format_]
List BMCs stored in boot-service.
This command sends a GET to boot-service's BMC endpoint.
This command accepts the following options:
*-F, --format-output* _format_
Output response data in specified _format_. Supported values are:
- _json_ (default)
- _json-pretty_
- _yaml_
*patch* ([--add _key_=_val_]... | [--remove _key_=_val_]... | [--set _key_=_val_]... | [--unset _key_]...) _uid_++
*patch* [ -p _patch_method_] -d @_file_ [-f _format_] _uid_++
*patch* [ -p _patch_method_] -d @- [-f _format_] _uid_ < _file_
Using various patch methods, patch the specification for an existing BMC
identified by _uid_.
*IMPORTANT:* Only the spec portion of the resource can be patched. Metadata
(name, labels, annotations) and status are managed by the API. Attempts to
patch metadata or status fields will be ignored.
In the first form of the command, at least one of *--add*, *--remove*,
*--set*, or *--unset* is passed. Each of these flags can be specified more
than once, but at least one of them must be passed in this form. This method
uses add/remove/set/unset flags to perform the patch. For _key_, dot
notation is used for subkeys (e.g. _key.subkey_).
In the second and third forms of the command, patch data is supplied along
with an optional *--patch-method* flag to specify the patch method.
This command sends a PATCH request to boot-service's BMC endpoint.
This command accepts the following options:
*--add* _key_[[._subkey_]...]=_val_
Add value to array field, creating the field if necessary. Only can be
used with _keyval_ patch method (automatic if any of
*--add*/*--remove*/*--set*/*--unset* are specified).
*-d, --data* (_data_ | @_path_ | @-)
Specify raw _data_ to send, the _path_ to a file to read payload data
from, or to read the data from standard input (@-). The format of data
read in any of these forms is JSON by default unless *-f* is specified
to change it.
*-f, --format-input* _format_
Format of raw data being used by *-d* as the payload. Supported formats
are:
- _json_ (default)
- _yaml_
*-p, --patch-method* _patch_method_
Specify patch method for patch data. Supported methods are:
- _rfc7386_ (default): RFC 7386 JSON Merge Patch
- _rfc6902_: RFC 6902 JSON Patch
- _keyval_: key=value format using dot notation for subkeys
*--remove* _key_[[._subkey_]...]=_val_
Remove value from array field. Only can be used with _keyval_ patch
method (automatic if any of
*--add*/*--remove*/*--set*/*--unset* are specified).
*--set* _key_[[._subkey_]...]=_val_
Set key with its value, overwriting any previous value and creating if the
key doesn't exist. Only can be used with _keyval_ patch method (automatic
if any of *--add*/*--remove*/*--set*/*--unset* are specified).
*--unset* _key_[[._subkey_]...]
Unset key (and its value). Only can be used with _keyval_ patch method
(automatic if any of
*--add*/*--remove*/*--set*/*--unset* are specified).
*set* -d _data_ [-f _format_] _uid_++
*set* -d @_file_ [-f _format_] _uid_++
*set* -d @- [-f _format_] _uid_ < _file_
Set the specification of a BMC identified by _uid_. The entire
specification for the BMC is replaced with the specification that is passed.
In the first form of the command, raw data is passed as an argument to be
the payload.
In the second form of the command, a file containing the payload data is
passed.
In the third form of the command, the payload data is read from standard
input.
This command sends a PUT request to boot-service's BMC endpoint.
This command accepts the following options:
*-d, --data* (_data_ | @_path_ | @-)
Specify raw _data_ to send, the _path_ to a file to read payload data
from, or to read the data from standard input (@-). The format of data
read in any of these forms is JSON by default unless *-f* is specified
to change it.
*-f, --format-input* _format_
Format of raw data being used by *-d* as the payload. Supported formats
are:
- _json_ (default)
- _yaml_
## config
Manage boot configurations stored in the boot service.
Subcommands for this command are as follows:
*add* -d _data_ [-f _format_]++
*add* -d @_file_ [-f _format_]++
*add* -d @- [-f _format_] < _file_
Add new boot configuration to be able to be used by nodes. If boot
configuration already exists for the specified components, this command will
fail.
In the first form of the command, raw data is passed as an argument to be
the payload.
In the second form of the command, a file containing the payload data is
passed.
In the third form of the command, the payload data is read from standard
input.
This command sends a POST request to boot-service's /bootconfiguration
endpoint.
This command accepts the following options:
*-d, --data* (_data_ | @_path_ | @-)
Specify raw _data_ to send, the _path_ to a file to read payload data
from, or to read the data from standard input (@-). The format of data
read in any of these forms is JSON by default unless *-f* is specified
to change it.
*-f, --format-input* _format_
Format of raw data being used by *-d* as the payload. Supported formats
are:
- _json_ (default)
- _yaml_
*delete* [--no-confirm] _uid_...
Delete one or more boot configurations identified by _uid_. Unless
*--no-confirm* is passed, the user is asked to confirm deletion.
This command sends one or more DELETE requests to boot-service's
/bootconfiguration endpoint.
This command accepts the following options:
*--no-confirm*
Do not ask the user to confirm deletion. Use with caution.
*get* [-F _format_] _uid_
Get boot configuration details for configuration identified by _uid_.
This command sends a GET to boot-service's /bootconfiguration/_uid_
endpoints.
This command accepts the following options:
*-F, --format-output* _format_
Output response data in specified _format_. Supported values are:
- _json_ (default)
- _json-pretty_
- _yaml_
*list* [-F _format_]
List boot configurations stored in boot-service.
This command sends a GET to boot-service's /bootconfiguration endpoint.
This command accepts the following options:
*-F, --format-output* _format_
Output response data in specified _format_. Supported values are:
- _json_ (default)
- _json-pretty_
- _yaml_
*patch* ([--add _key_=_val_]... | [--remove _key_=_val_]... | [--set _key_=_val_]... | [--unset _key_]...) _uid_++
*patch* [ -p _patch_method_] -d @_file_ [-f _format_] _uid_++
*patch* [ -p _patch_method_] -d @- [-f _format_] _uid_ < _file_
Using various patch methods, patch specification for an existing boot
configuration identified by _uid_.
*IMPORTANT:* Only the spec portion of the resource can be patched. Metadata
(name, labels, annotations) and status are managed by the API. Attempts to
patch metadata or status fields will be ignored.
In the first form of the command, at least one of *--add*, *--remove*,
*--set*, or *--unset* is passed. Each of these flags can be specified more
than once, but at least one of them must be passed in this form. This method
uses add/remove/set/unset flags to perform the patch. For _key_, dot
notation is used for subkeys (e.g. _key.subkey_).
In the second and third forms of the command, patch data is supplied along
with an optional *--patch-method* flag to specify the patch method.
This command sends a PATCH request to boot-service's
/bootconfiguration/_uid_ endpoint.
This command accepts the following options:
*--add* _key_[[._subkey_]...]=_val_
Add value to array field, creating the field if necessary. Only can be
used with _keyval_ patch method (automatic if any of
*--add*/*--remove*/*--set*/*--unset* are specified).
*-d, --data* (_data_ | @_path_ | @-)
Specify raw _data_ to send, the _path_ to a file to read payload data
from, or to read the data from standard input (@-). The format of data
read in any of these forms is JSON by default unless *-f* is specified
to change it.
*-f, --format-input* _format_
Format of raw data being used by *-d* as the payload. Supported formats
are:
- _json_ (default)
- _yaml_
*-p, --patch-method* _patch_method_
Specify patch method for patch data. Supported methods are:
- _rfc7386_ (default): RFC 7386 JSON Merge Patch
- _rfc6902_: RFC 6902 JSON Patch
- _keyval_: key=value format using dot notation for subkeys
*--remove* _key_[[._subkey_]...]=_val_
Remove value from array field. Only can be used with _keyval_ patch
method (automatic if any of
*--add*/*--remove*/*--set*/*--unset* are specified).
*--set* _key_[[._subkey_]...]=_val_
Set key with its value, overwriting any previous value and creating if the
key doesn't exist. Only can be used with _keyval_ patch method (automatic
if any of *--add*/*--remove*/*--set*/*--unset* are specified).
*--unset* _key_[[._subkey_]...]
Unset key (and its value). Only can be used with _keyval_ patch method
(automatic if any of
*--add*/*--remove*/*--set*/*--unset* are specified).
*set* -d _data_ [-f _format_] _uid_++
*set* -d @_file_ [-f _format_] _uid_++
*set* -d @- [-f _format_] _uid_ < _file_
Set the specification of a boot configuration identified by _uid_. The
entire specification for the boot configuration gets replaced with the
specification that is passed.
In the first form of the command, raw data is passed as an argument to be
the payload.
In the second form of the command, a file containing the payload data is
passed.
In the third form of the command, the payload data is read from standard
input.
This command sends a PUT request to boot-service's /bootconfiguration/_uid_
endpoint.
This command accepts the following options:
*-d, --data* (_data_ | @_path_ | @-)
Specify raw _data_ to send, the _path_ to a file to read payload data
from, or to read the data from standard input (@-). The format of data
read in any of these forms is JSON by default unless *-f* is specified
to change it.
*-f, --format-input* _format_
Format of raw data being used by *-d* as the payload. Supported formats
are:
- _json_ (default)
- _yaml_
## node
Manage nodes stored in boot-service.
Subcommands for this command are as follows:
*add* -d _data_ [-f _format_]++
*add* -d @_file_ [-f _format_]++
*add* -d @- [-f _format_] < _file_
Add one or more nodes to boot-service.
In the first form of the command, raw data is passed as an argument to be
the payload.
In the second form of the command, a file containing the payload data is
passed.
In the third form of the command, the payload data is read from standard
input.
This command sends a POST request to boot-service's node endpoint.
This command accepts the following options:
*-d, --data* (_data_ | @_path_ | @-)
Specify raw _data_ to send, the _path_ to a file to read payload data
from, or to read the data from standard input (@-). The format of data
read in any of these forms is JSON by default unless *-f* is specified
to change it.
*-f, --format-input* _format_
Format of raw data being used by *-d* as the payload. Supported formats
are:
- _json_ (default)
- _yaml_
*delete* [--no-confirm] _uid_...
Delete one or more nodes identified by _uid_. Unless *--no-confirm* is
passed, the user is asked to confirm deletion.
This command sends one or more DELETE requests to boot-service's node
endpoint.
This command accepts the following options:
*--no-confirm*
Do not ask the user to confirm deletion. Use with caution.
*get* [-F _format_] _uid_
Get node details for node identified by _uid_.
This command sends a GET to boot-service's node endpoint.
This command accepts the following options:
*-F, --format-output* _format_
Output response data in specified _format_. Supported values are:
- _json_ (default)
- _json-pretty_
- _yaml_
*list* [-F _format_]
List nodes stored in boot-service.
This command sends a GET to boot-service's node endpoint.
This command accepts the following options:
*-F, --format-output* _format_
Output response data in specified _format_. Supported values are:
- _json_ (default)
- _json-pretty_
- _yaml_
*patch* ([--add _key_=_val_]... | [--remove _key_=_val_]... | [--set _key_=_val_]... | [--unset _key_]...) _uid_++
*patch* [ -p _patch_method_] -d @_file_ [-f _format_] _uid_++
*patch* [ -p _patch_method_] -d @- [-f _format_] _uid_ < _file_
Using various patch methods, patch the specification for an existing node
identified by _uid_.
*IMPORTANT:* Only the spec portion of the resource can be patched. Metadata
(name, labels, annotations) and status are managed by the API. Attempts to
patch metadata or status fields will be ignored.
In the first form of the command, at least one of *--add*, *--remove*,
*--set*, or *--unset* is passed. Each of these flags can be specified more
than once, but at least one of them must be passed in this form. This method
uses add/remove/set/unset flags to perform the patch. For _key_, dot
notation is used for subkeys (e.g. _key.subkey_).
In the second and third forms of the command, patch data is supplied along
with an optional *--patch-method* flag to specify the patch method.
This command sends a PATCH request to boot-service's node endpoint.
This command accepts the following options:
*--add* _key_[[._subkey_]...]=_val_
Add value to array field, creating the field if necessary. Only can be
used with _keyval_ patch method (automatic if any of
*--add*/*--remove*/*--set*/*--unset* are specified).
*-d, --data* (_data_ | @_path_ | @-)
Specify raw _data_ to send, the _path_ to a file to read payload data
from, or to read the data from standard input (@-). The format of data
read in any of these forms is JSON by default unless *-f* is specified
to change it.
*-f, --format-input* _format_
Format of raw data being used by *-d* as the payload. Supported formats
are:
- _json_ (default)
- _yaml_
*-p, --patch-method* _patch_method_
Specify patch method for patch data. Supported methods are:
- _rfc7386_ (default): RFC 7386 JSON Merge Patch
- _rfc6902_: RFC 6902 JSON Patch
- _keyval_: key=value format using dot notation for subkeys
*--remove* _key_[[._subkey_]...]=_val_
Remove value from array field. Only can be used with _keyval_ patch
method (automatic if any of
*--add*/*--remove*/*--set*/*--unset* are specified).
*--set* _key_[[._subkey_]...]=_val_
Set key with its value, overwriting any previous value and creating if the
key doesn't exist. Only can be used with _keyval_ patch method (automatic
if any of *--add*/*--remove*/*--set*/*--unset* are specified).
*--unset* _key_[[._subkey_]...]
Unset key (and its value). Only can be used with _keyval_ patch method
(automatic if any of
*--add*/*--remove*/*--set*/*--unset* are specified).
*set* -d _data_ [-f _format_] _uid_++
*set* -d @_file_ [-f _format_] _uid_++
*set* -d @- [-f _format_] _uid_ < _file_
Set the specification of a node identified by _uid_. The entire
specification for the node is replaced with the specification that is
passed.
In the first form of the command, raw data is passed as an argument to be
the payload.
In the second form of the command, a file containing the payload data is
passed.
In the third form of the command, the payload data is read from standard
input.
This command sends a PUT request to boot-service's node endpoint.
This command accepts the following options:
*-d, --data* (_data_ | @_path_ | @-)
Specify raw _data_ to send, the _path_ to a file to read payload data
from, or to read the data from standard input (@-). The format of data
read in any of these forms is JSON by default unless *-f* is specified
to change it.
*-f, --format-input* _format_
Format of raw data being used by *-d* as the payload. Supported formats
are:
- _json_ (default)
- _yaml_
# AUTHOR
Written by Devon T. Bautista and maintained by the OpenCHAMI developers.
# SEE ALSO
*ochami*(1)
; Vim modeline settings
; vim: set tw=80 noet sts=4 ts=4 sw=4 syntax=scdoc: