Skip to content

Commit

Permalink
Merge pull request #210 from Cray-HPE/CASMCMS-8797
Browse files Browse the repository at this point in the history
CASMCMS-8797: Update BOS session template templates
  • Loading branch information
mharding-hpe authored Sep 12, 2023
2 parents 66ca16d + 30c4c7c commit b514f8d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
### Changed
- Removed non-v2 fields from v1 session template template
- Provide more useful example values in v1 and v2 session template templates

## [2.6.3] - 08-22-2023
### Changed
Expand Down
13 changes: 5 additions & 8 deletions src/bos/server/controllers/v1/sessiontemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,15 @@
LOGGER = logging.getLogger('bos.server.controllers.v1.sessiontemplate')
DB = dbutils.get_wrapper(db='session_templates')


EXAMPLE_BOOT_SET = {
"type": "your-boot-type",
"boot_ordinal": 1,
"etag": "your_boot_image_etag",
"type": "s3",
"etag": "boot-image-s3-etag",
"kernel_parameters": "your-kernel-parameters",
"network": "nmn",
"node_list": [
"xname1", "xname2", "xname3"],
"path": "your-boot-path",
"rootfs_provider": "your-rootfs-provider",
"rootfs_provider_passthrough": "your-rootfs-provider-passthrough"}
"path": "s3://boot-images/boot-image-ims-id/manifest.json",
"rootfs_provider": "cpss3",
"rootfs_provider_passthrough": "dvs:api-gw-service-nmn.local:300:hsn0,nmn0:0"}

EXAMPLE_SESSION_TEMPLATE = {
"boot_sets": {
Expand Down
10 changes: 5 additions & 5 deletions src/bos/server/controllers/v2/sessiontemplates.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
BASEKEY = "/sessionTemplates"

EXAMPLE_BOOT_SET = {
"type": "your-boot-type",
"etag": "your_boot_image_etag",
"type": "s3",
"etag": "boot-image-s3-etag",
"kernel_parameters": "your-kernel-parameters",
"cfs": {"configuration": "bootset-specific-cfs-override"},
"node_list": [
"xname1", "xname2", "xname3"],
"path": "your-boot-path",
"rootfs_provider": "your-rootfs-provider",
"rootfs_provider_passthrough": "your-rootfs-provider-passthrough"}
"path": "s3://boot-images/boot-image-ims-id/manifest.json",
"rootfs_provider": "cpss3",
"rootfs_provider_passthrough": "dvs:api-gw-service-nmn.local:300:hsn0,nmn0:0"}

EXAMPLE_SESSION_TEMPLATE = {
"boot_sets": {
Expand Down

0 comments on commit b514f8d

Please sign in to comment.