Browse Source

StarlingX open source release updates

Signed-off-by: Dean Troyer <dtroyer@gmail.com>
changes/89/574489/1
Dean Troyer 3 years ago
parent
commit
18922761a6
417 changed files with 131695 additions and 0 deletions
  1. +8
    -0
      CONTRIBUTORS.wrs
  2. +202
    -0
      LICENSE
  3. +5
    -0
      README.rst
  4. +297
    -0
      bsp-files/centos-ks-gen.pl
  5. +188
    -0
      bsp-files/centos.syslinux.cfg
  6. +263
    -0
      bsp-files/filter_out_from_compute
  7. +265
    -0
      bsp-files/filter_out_from_compute_lowlatency
  8. +52
    -0
      bsp-files/filter_out_from_controller
  9. +24
    -0
      bsp-files/filter_out_from_smallsystem
  10. +23
    -0
      bsp-files/filter_out_from_smallsystem_lowlatency
  11. +303
    -0
      bsp-files/filter_out_from_storage
  12. +155
    -0
      bsp-files/grub.cfg
  13. +72
    -0
      bsp-files/kickstarts/functions.sh
  14. +41
    -0
      bsp-files/kickstarts/post_clone_iso_ks.cfg
  15. +104
    -0
      bsp-files/kickstarts/post_common.cfg
  16. +98
    -0
      bsp-files/kickstarts/post_kernel_aio_and_compute.cfg
  17. +38
    -0
      bsp-files/kickstarts/post_kernel_controller.cfg
  18. +32
    -0
      bsp-files/kickstarts/post_kernel_storage.cfg
  19. +12
    -0
      bsp-files/kickstarts/post_lvm_no_pv_on_rootfs.cfg
  20. +17
    -0
      bsp-files/kickstarts/post_lvm_pv_on_rootfs.cfg
  21. +127
    -0
      bsp-files/kickstarts/post_net_common.cfg
  22. +79
    -0
      bsp-files/kickstarts/post_net_controller.cfg
  23. +22
    -0
      bsp-files/kickstarts/post_platform_conf_aio.cfg
  24. +22
    -0
      bsp-files/kickstarts/post_platform_conf_aio_lowlatency.cfg
  25. +34
    -0
      bsp-files/kickstarts/post_platform_conf_compute.cfg
  26. +34
    -0
      bsp-files/kickstarts/post_platform_conf_compute_lowlatency.cfg
  27. +22
    -0
      bsp-files/kickstarts/post_platform_conf_controller.cfg
  28. +29
    -0
      bsp-files/kickstarts/post_platform_conf_storage.cfg
  29. +114
    -0
      bsp-files/kickstarts/post_pxeboot_controller.cfg
  30. +35
    -0
      bsp-files/kickstarts/post_system_aio.cfg
  31. +80
    -0
      bsp-files/kickstarts/post_usb_controller.cfg
  32. +115
    -0
      bsp-files/kickstarts/post_yow_controller.cfg
  33. +72
    -0
      bsp-files/kickstarts/pre_common_head.cfg
  34. +102
    -0
      bsp-files/kickstarts/pre_disk_aio.cfg
  35. +31
    -0
      bsp-files/kickstarts/pre_disk_compute.cfg
  36. +34
    -0
      bsp-files/kickstarts/pre_disk_controller.cfg
  37. +154
    -0
      bsp-files/kickstarts/pre_disk_setup_common.cfg
  38. +31
    -0
      bsp-files/kickstarts/pre_disk_storage.cfg
  39. +6
    -0
      bsp-files/kickstarts/pre_pkglist.cfg
  40. +8
    -0
      bsp-files/kickstarts/pre_pkglist_lowlatency.cfg
  41. +34
    -0
      bsp-files/pkg-list.pl
  42. +137
    -0
      bsp-files/platform_comps.py
  43. +180
    -0
      bsp-files/pxeboot.cfg
  44. +104
    -0
      bsp-files/pxeboot_grub.cfg
  45. +111
    -0
      bsp-files/pxeboot_setup.sh
  46. +64
    -0
      bsp-files/upgrades/import.sh
  47. +24
    -0
      bsp-files/upgrades/metadata.xml
  48. +254
    -0
      installer/initrd/README
  49. +12
    -0
      installer/pxe-network-installer/centos/build_srpm.data
  50. +155
    -0
      installer/pxe-network-installer/centos/pxe-network-installer.spec
  51. +202
    -0
      installer/pxe-network-installer/pxe-network-installer/LICENSE
  52. +27
    -0
      installer/pxe-network-installer/pxe-network-installer/centos-pxe-compute-install
  53. +27
    -0
      installer/pxe-network-installer/pxe-network-installer/centos-pxe-compute_lowlatency-install
  54. +27
    -0
      installer/pxe-network-installer/pxe-network-installer/centos-pxe-controller-install
  55. +27
    -0
      installer/pxe-network-installer/pxe-network-installer/centos-pxe-smallsystem-install
  56. +27
    -0
      installer/pxe-network-installer/pxe-network-installer/centos-pxe-smallsystem_lowlatency-install
  57. +27
    -0
      installer/pxe-network-installer/pxe-network-installer/centos-pxe-storage-install
  58. +38
    -0
      installer/pxe-network-installer/pxe-network-installer/default
  59. +47
    -0
      installer/pxe-network-installer/pxe-network-installer/default.static
  60. +9
    -0
      installer/pxe-network-installer/pxe-network-installer/efi-centos-pxe-compute-install
  61. +9
    -0
      installer/pxe-network-installer/pxe-network-installer/efi-centos-pxe-compute_lowlatency-install
  62. +9
    -0
      installer/pxe-network-installer/pxe-network-installer/efi-centos-pxe-controller-install
  63. +9
    -0
      installer/pxe-network-installer/pxe-network-installer/efi-centos-pxe-smallsystem-install
  64. +9
    -0
      installer/pxe-network-installer/pxe-network-installer/efi-centos-pxe-smallsystem_lowlatency-install
  65. +9
    -0
      installer/pxe-network-installer/pxe-network-installer/efi-centos-pxe-storage-install
  66. +56
    -0
      installer/pxe-network-installer/pxe-network-installer/pxe-grub.cfg
  67. +70
    -0
      installer/pxe-network-installer/pxe-network-installer/pxe-grub.cfg.static
  68. +172
    -0
      installer/pxe-network-installer/pxe-network-installer/pxeboot-update.sh
  69. +202
    -0
      kickstart/LICENSE
  70. +3
    -0
      kickstart/centos/build_srpm.data
  71. +64
    -0
      kickstart/centos/platform-kickstarts.spec
  72. +202
    -0
      mtce-common/LICENSE
  73. +16
    -0
      mtce-common/PKG-INFO
  74. +3
    -0
      mtce-common/centos/build_srpm.data
  75. +768
    -0
      mtce-common/centos/cgts-mtce-common.spec
  76. +4
    -0
      mtce-common/cgts-mtce-common-1.0/.gitignore
  77. +202
    -0
      mtce-common/cgts-mtce-common-1.0/LICENSE
  78. +47
    -0
      mtce-common/cgts-mtce-common-1.0/Makefile
  79. +44
    -0
      mtce-common/cgts-mtce-common-1.0/alarm/Makefile
  80. +189
    -0
      mtce-common/cgts-mtce-common-1.0/alarm/alarm.cpp
  81. +166
    -0
      mtce-common/cgts-mtce-common-1.0/alarm/alarm.h
  82. +195
    -0
      mtce-common/cgts-mtce-common-1.0/alarm/alarmData.cpp
  83. +134
    -0
      mtce-common/cgts-mtce-common-1.0/alarm/alarmHdlr.cpp
  84. +305
    -0
      mtce-common/cgts-mtce-common-1.0/alarm/alarmInit.cpp
  85. +106
    -0
      mtce-common/cgts-mtce-common-1.0/alarm/alarmMgr.cpp
  86. +500
    -0
      mtce-common/cgts-mtce-common-1.0/alarm/alarmUtil.cpp
  87. +108
    -0
      mtce-common/cgts-mtce-common-1.0/alarm/scripts/mtcalarm.init
  88. +17
    -0
      mtce-common/cgts-mtce-common-1.0/alarm/scripts/mtcalarm.logrotate
  89. +17
    -0
      mtce-common/cgts-mtce-common-1.0/alarm/scripts/mtcalarm.pmon.conf
  90. +14
    -0
      mtce-common/cgts-mtce-common-1.0/alarm/scripts/mtcalarm.service
  91. +91
    -0
      mtce-common/cgts-mtce-common-1.0/common/Makefile
  92. +422
    -0
      mtce-common/cgts-mtce-common-1.0/common/alarmUtil.cpp
  93. +142
    -0
      mtce-common/cgts-mtce-common-1.0/common/alarmUtil.h
  94. +170
    -0
      mtce-common/cgts-mtce-common-1.0/common/fitCodes.h
  95. +41
    -0
      mtce-common/cgts-mtce-common-1.0/common/fsync.c
  96. +454
    -0
      mtce-common/cgts-mtce-common-1.0/common/hostClass.cpp
  97. +221
    -0
      mtce-common/cgts-mtce-common-1.0/common/hostClass.h
  98. +209
    -0
      mtce-common/cgts-mtce-common-1.0/common/hostUtil.cpp
  99. +85
    -0
      mtce-common/cgts-mtce-common-1.0/common/hostUtil.h
  100. +1065
    -0
      mtce-common/cgts-mtce-common-1.0/common/httpUtil.cpp

+ 8
- 0
CONTRIBUTORS.wrs View File

@ -0,0 +1,8 @@
The following contributors from Wind River have developed the seed code in this
repository. We look forward to community collaboration and contributions for
additional features, enhancements and refactoring.
Contributors:
=============
Eric Macdonald <Eric.MacDonald@windriver.com>
Don Penney <Don.Penney@windriver.com>

+ 202
- 0
LICENSE View File

@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

+ 5
- 0
README.rst View File

@ -0,0 +1,5 @@
=========
stx-metal
=========
StarlingX Bare Metal Management

+ 297
- 0
bsp-files/centos-ks-gen.pl View File

@ -0,0 +1,297 @@
#!/usr/bin/perl
#
# Copyright (c) 2017 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
use strict;
use Getopt::Long;
use POSIX qw(strftime);
# Defines the current list of YOW boot servers
my %boot_servers = ("yow-tuxlab", "128.224.150.9",
"yow-tuxlab2", "128.224.151.254",
"yow", "128.224.150.9"); # obsolete; kept for backwards compatibility
my $PLATFORM_RELEASE;
my $files_dir;
my $output_dir = 'generated';
my $pxeboot_output_dir = 'pxeboot';
my $extra_output_dir = 'extra_cfgs';
GetOptions("release=s" => \$PLATFORM_RELEASE,
"basedir=s" => \$files_dir);
die "Please specify release with --release" if (!$PLATFORM_RELEASE);
if (!$files_dir)
{
$files_dir = '.';
}
my $BOOT_SERVER = "none";
my $template_dir = "$files_dir/kickstarts";
system("mkdir -p ${output_dir}");
# Write USB image files
write_config_file("controller",
"${output_dir}/controller_ks.cfg", "filter_out_from_controller",
"pre_common_head.cfg",
"pre_pkglist.cfg",
"pre_disk_setup_common.cfg",
"pre_disk_controller.cfg",
"post_platform_conf_controller.cfg",
"post_common.cfg",
"post_kernel_controller.cfg",
"post_lvm_pv_on_rootfs.cfg",
"post_usb_controller.cfg");
write_config_file("controller-compute",
"${output_dir}/smallsystem_ks.cfg", "filter_out_from_smallsystem",
"pre_common_head.cfg",
"pre_pkglist.cfg",
"pre_disk_setup_common.cfg",
"pre_disk_aio.cfg",
"post_platform_conf_aio.cfg",
"post_common.cfg",
"post_kernel_aio_and_compute.cfg",
"post_lvm_pv_on_rootfs.cfg",
"post_system_aio.cfg",
"post_usb_controller.cfg");
write_config_file("controller-compute-lowlatency",
"${output_dir}/smallsystem_lowlatency_ks.cfg", "filter_out_from_smallsystem_lowlatency",
"pre_common_head.cfg",
"pre_pkglist_lowlatency.cfg",
"pre_disk_setup_common.cfg",
"pre_disk_aio.cfg",
"post_platform_conf_aio_lowlatency.cfg",
"post_common.cfg",
"post_kernel_aio_and_compute.cfg",
"post_lvm_pv_on_rootfs.cfg",
"post_system_aio.cfg",
"post_usb_controller.cfg");
system("mkdir -p ${pxeboot_output_dir}");
# Write PXE boot files
write_config_file("controller",
"${pxeboot_output_dir}/pxeboot_controller.cfg", "filter_out_from_controller",
"pre_common_head.cfg",
"pre_pkglist.cfg",
"pre_disk_setup_common.cfg",
"pre_disk_controller.cfg",
"post_platform_conf_controller.cfg",
"post_common.cfg",
"post_kernel_controller.cfg",
"post_lvm_pv_on_rootfs.cfg",
"post_pxeboot_controller.cfg");
write_config_file("controller-compute",
"${pxeboot_output_dir}/pxeboot_smallsystem.cfg", "filter_out_from_smallsystem",
"pre_common_head.cfg",
"pre_pkglist.cfg",
"pre_disk_setup_common.cfg",
"pre_disk_aio.cfg",
"post_platform_conf_aio.cfg",
"post_common.cfg",
"post_kernel_aio_and_compute.cfg",
"post_lvm_pv_on_rootfs.cfg",
"post_system_aio.cfg",
"post_pxeboot_controller.cfg");
write_config_file("controller-compute-lowlatency",
"${pxeboot_output_dir}/pxeboot_smallsystem_lowlatency.cfg", "filter_out_from_smallsystem_lowlatency",
"pre_common_head.cfg",
"pre_pkglist_lowlatency.cfg",
"pre_disk_setup_common.cfg",
"pre_disk_aio.cfg",
"post_platform_conf_aio_lowlatency.cfg",
"post_common.cfg",
"post_kernel_aio_and_compute.cfg",
"post_lvm_pv_on_rootfs.cfg",
"post_system_aio.cfg",
"post_pxeboot_controller.cfg");
# Write same net files
write_config_file("controller",
"${output_dir}/net_controller_ks.cfg", "filter_out_from_controller",
"pre_common_head.cfg",
"pre_pkglist.cfg",
"pre_disk_setup_common.cfg",
"pre_disk_controller.cfg",
"post_platform_conf_controller.cfg",
"post_common.cfg",
"post_kernel_controller.cfg",
"post_lvm_pv_on_rootfs.cfg",
"post_net_controller.cfg",
"post_net_common.cfg");
write_config_file("controller-compute",
"${output_dir}/net_smallsystem_ks.cfg", "filter_out_from_smallsystem",
"pre_common_head.cfg",
"pre_pkglist.cfg",
"pre_disk_setup_common.cfg",
"pre_disk_aio.cfg",
"post_platform_conf_aio.cfg",
"post_common.cfg",
"post_kernel_aio_and_compute.cfg",
"post_lvm_pv_on_rootfs.cfg",
"post_system_aio.cfg",
"post_net_controller.cfg",
"post_net_common.cfg");
write_config_file("controller-compute-lowlatency",
"${output_dir}/net_smallsystem_lowlatency_ks.cfg", "filter_out_from_smallsystem_lowlatency",
"pre_common_head.cfg",
"pre_pkglist_lowlatency.cfg",
"pre_disk_setup_common.cfg",
"pre_disk_aio.cfg",
"post_platform_conf_aio_lowlatency.cfg",
"post_common.cfg",
"post_kernel_aio_and_compute.cfg",
"post_lvm_pv_on_rootfs.cfg",
"post_system_aio.cfg",
"post_net_controller.cfg",
"post_net_common.cfg");
write_config_file("compute",
"${output_dir}/net_compute_ks.cfg", "filter_out_from_compute",
"pre_common_head.cfg",
"pre_pkglist.cfg",
"pre_disk_setup_common.cfg",
"pre_disk_compute.cfg",
"post_platform_conf_compute.cfg",
"post_common.cfg",
"post_kernel_aio_and_compute.cfg",
"post_lvm_no_pv_on_rootfs.cfg",
"post_net_common.cfg");
write_config_file("compute-lowlatency",
"${output_dir}/net_compute_lowlatency_ks.cfg", "filter_out_from_compute_lowlatency",
"pre_common_head.cfg",
"pre_pkglist_lowlatency.cfg",
"pre_disk_setup_common.cfg",
"pre_disk_compute.cfg",
"post_platform_conf_compute_lowlatency.cfg",
"post_common.cfg",
"post_kernel_aio_and_compute.cfg",
"post_lvm_no_pv_on_rootfs.cfg",
"post_net_common.cfg");
write_config_file("storage",
"${output_dir}/net_storage_ks.cfg", "filter_out_from_storage",
"pre_common_head.cfg",
"pre_pkglist.cfg",
"pre_disk_setup_common.cfg",
"pre_disk_storage.cfg",
"post_platform_conf_storage.cfg",
"post_common.cfg",
"post_kernel_storage.cfg",
"post_lvm_pv_on_rootfs.cfg",
"post_net_common.cfg");
system("mkdir -p ${extra_output_dir}");
# write Ottawa Lab files
my $server;
foreach $server (keys %boot_servers)
{
$BOOT_SERVER = $boot_servers{$server};
write_config_file("controller",
"${extra_output_dir}/${server}_controller.cfg", "filter_out_from_controller",
"pre_common_head.cfg",
"pre_pkglist.cfg",
"pre_disk_setup_common.cfg",
"pre_disk_controller.cfg",
"post_platform_conf_controller.cfg",
"post_common.cfg",
"post_kernel_controller.cfg",
"post_lvm_pv_on_rootfs.cfg",
"post_yow_controller.cfg");
write_config_file("controller-compute",
"${extra_output_dir}/${server}_smallsystem.cfg", "filter_out_from_smallsystem",
"pre_common_head.cfg",
"pre_pkglist.cfg",
"pre_disk_setup_common.cfg",
"pre_disk_aio.cfg",
"post_platform_conf_aio.cfg",
"post_common.cfg",
"post_kernel_aio_and_compute.cfg",
"post_lvm_pv_on_rootfs.cfg",
"post_system_aio.cfg",
"post_yow_controller.cfg");
write_config_file("controller-compute-lowlatency",
"${extra_output_dir}/${server}_smallsystem_lowlatency.cfg", "filter_out_from_smallsystem_lowlatency",
"pre_common_head.cfg",
"pre_pkglist_lowlatency.cfg",
"pre_disk_setup_common.cfg",
"pre_disk_aio.cfg",
"post_platform_conf_aio_lowlatency.cfg",
"post_common.cfg",
"post_kernel_aio_and_compute.cfg",
"post_lvm_pv_on_rootfs.cfg",
"post_system_aio.cfg",
"post_yow_controller.cfg");
}
exit 0;
#------------------------#
sub write_config_file {
my ($personality, $ksout, $filter_file, @templates) = @_;
my %filter;
if ($filter_file ne "") {
if (!(open(FILTER, "$files_dir/$filter_file"))) {
die "Could not open template $files_dir/$filter_file";
}
while (<FILTER>) {
chop();
next if ($_ =~ /^#/);
$filter{$_} = 1;
}
close(FILTER);
}
print "Writing: $ksout\n";
open(OUT, ">$ksout") || die "Could not write $ksout";
my $year = strftime "%Y", localtime;
print OUT "#\n";
print OUT "# Copyright (c) $year Wind River Systems, Inc.\n";
print OUT "# SPDX-License-Identifier: Apache-2.0\n";
print OUT "#\n";
print OUT "\n";
# Add functions header
foreach my $block ("\%pre", "\%post") {
if (!(open(FUNCTIONS, "$template_dir/functions.sh"))) {
die "Could not open functions.sh";
}
print OUT "$block\n";
while (<FUNCTIONS>) {
s/xxxPLATFORM_RELEASExxx/$PLATFORM_RELEASE/g;
s/xxxBOOT_SERVERxxx/$BOOT_SERVER/g;
s/xxxYEARxxx/$year/g;
print OUT $_;
}
print OUT "\%end\n\n";
close FUNCTIONS;
}
my $template;
foreach $template (@templates) {
if (!(open(TEMPLATE_IN, "$template_dir/$template"))) {
die "Could not open template $template_dir/$template";
}
print OUT "\n# Template from: $template\n";
while (<TEMPLATE_IN>) {
$_ =~ s/\n$//;
s/xxxPLATFORM_RELEASExxx/$PLATFORM_RELEASE/g;
s/xxxBOOT_SERVERxxx/$BOOT_SERVER/g;
s/xxxYEARxxx/$year/g;
s/xxxPACKAGE_LISTxxx/\@platform-$personality\n\@updates-$personality/;
print OUT "$_\n";
}
close(TEMPLATE_IN);
}
close(OUT);
}

+ 188
- 0
bsp-files/centos.syslinux.cfg View File

@ -0,0 +1,188 @@
display splash.cfg
timeout 0
F1 help.txt
F2 devices.txt
F3 splash.cfg
serial 0 115200
# Pull in the menu User Interface
ui vesamenu.c32
menu title Select kernel options and boot kernel
menu tabmsg Press [Tab] to edit, [Return] to select, [ESC] to return to previous menu
# Dark grey
menu background #ff555555
# ----------------- NOTE -----------------
# If you are updating label numbers, make sure that controllerconfig/clone.py
# is in sync with your changes (only serial console entries).
# STANDARD_STANDARD = '0'
# STANDARD_EXTENDED = 'S0'
# AIO_STANDARD = '2'
# AIO_EXTENDED = 'S2'
# AIO_LL_STANDARD = '4'
# AIO_LL_EXTENDED = 'S4'
# ----------------------------------------
# Standard Controller menu
menu begin
menu title Standard Controller Configuration
# Serial Console submenu
menu begin
menu title Serial Console
label 0
menu label STANDARD Security Boot Profile
text help
Standard Controller, console=ttyS0
Standard Security Profile Enabled (default setting)
endtext
kernel vmlinuz
initrd initrd.img
append rootwait console=ttyS0,115200 inst.text serial inst.stage2=hd:LABEL=oe_iso_boot inst.ks=hd:LABEL=oe_iso_boot:/ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 inst.gpt security_profile=standard
label S0
menu label EXTENDED Security Boot Profile
text help
Standard Controller, console=ttyS0
Extended Security Profile Enabled (will impact performance)
endtext
kernel vmlinuz
initrd initrd.img
append rootwait console=ttyS0,115200 inst.text serial inst.stage2=hd:LABEL=oe_iso_boot inst.ks=hd:LABEL=oe_iso_boot:/ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 inst.gpt security_profile=extended
menu end
# Graphical Console submenu
menu begin
menu title Graphical Console
label 1
menu label STANDARD Security Boot Profile
text help
Standard Controller, console=tty0
Standard Security Profile Enabled (default setting)
endtext
kernel vmlinuz
initrd initrd.img
append rootwait console=tty0 inst.text inst.stage2=hd:LABEL=oe_iso_boot inst.ks=hd:LABEL=oe_iso_boot:/ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 inst.gpt security_profile=standard
label S1
menu label EXTENDED Security Boot Profile
text help
Standard Controller, console=tty0
Extended Security Profile Enabled (will impact performance)
endtext
kernel vmlinuz
initrd initrd.img
append rootwait console=tty0 inst.text inst.stage2=hd:LABEL=oe_iso_boot inst.ks=hd:LABEL=oe_iso_boot:/ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 inst.gpt security_profile=extended
menu end
menu end
menu SEPARATOR
# AIO Controller menu
menu begin
menu title All-in-one Controller Configuration
# Serial Console submenu
menu begin
menu title Serial Console
label 2
menu label STANDARD Security Boot Profile
text help
All-in-one Controller, console=ttyS0
Standard Security Profile Enabled (default setting)
endtext
kernel vmlinuz
initrd initrd.img
append rootwait console=ttyS0,115200 inst.text serial inst.stage2=hd:LABEL=oe_iso_boot inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 inst.gpt security_profile=standard
label S2
menu label EXTENDED Security Boot Profile
text help
All-in-one Controller, console=ttyS0
Extended Security Profile Enabled (will impact performance)
endtext
kernel vmlinuz
initrd initrd.img
# Security profile option
append rootwait console=ttyS0,115200 inst.text serial inst.stage2=hd:LABEL=oe_iso_boot inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 inst.gpt security_profile=extended
menu end
# Graphical Console submenu
menu begin
menu title Graphical Console
label 3
menu label STANDARD Security Boot Profile
text help
All-in-one Controller, console=tty0
Standard Security Profile Enabled (default setting)
endtext
kernel vmlinuz
initrd initrd.img
append rootwait console=tty0 inst.text inst.stage2=hd:LABEL=oe_iso_boot inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 inst.gpt security_profile=standard
label S3
menu label EXTENDED Security Boot Profile
text help
All-in-one Controller, console=tty0
Extended Security Profile Enabled (will impact performance)
endtext
kernel vmlinuz
initrd initrd.img
append rootwait console=tty0 inst.text inst.stage2=hd:LABEL=oe_iso_boot inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 inst.gpt security_profile=extended
menu end
menu end
menu SEPARATOR
# AIO (Low Latency) Controller menu
menu begin
menu title All-in-one (lowlatency) Controller Configuration
# Serial Console submenu
menu begin
menu title Serial Console
label 4
menu label STANDARD Security Boot Profile
text help
All-in-one (lowlatency) Controller, console=ttyS0
Standard Security Profile Enabled (default setting)
endtext
kernel vmlinuz
initrd initrd.img
append rootwait console=ttyS0,115200 inst.text serial inst.stage2=hd:LABEL=oe_iso_boot inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_lowlatency_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 inst.gpt security_profile=standard
label S4
menu label EXTENDED Security Boot Profile
text help
All-in-one (lowlatency) Controller, console=ttyS0
Extended Security Profile Enabled (will impact performance)
endtext
kernel vmlinuz
initrd initrd.img
append rootwait console=ttyS0,115200 inst.text serial inst.stage2=hd:LABEL=oe_iso_boot inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_lowlatency_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 inst.gpt security_profile=extended
menu end
# Graphical Console submenu
menu begin
menu title Graphical Console
label 5
menu label STANDARD Security Boot Profile
text help
All-in-one (lowlatency) Controller, console=tty0
Standard Security Profile Enabled (default setting)
endtext
kernel vmlinuz
initrd initrd.img
append rootwait console=tty0 inst.text inst.stage2=hd:LABEL=oe_iso_boot inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_lowlatency_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 inst.gpt security_profile=standard
label S5
menu label EXTENDED Security Boot Profile
text help
All-in-one (lowlatency) Controller, console=tty0
Extended Security Profile Enabled (will impact performance)
endtext
kernel vmlinuz
initrd initrd.img
append rootwait console=tty0 inst.text inst.stage2=hd:LABEL=oe_iso_boot inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_lowlatency_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 inst.gpt security_profile=extended
menu end
menu end

+ 263
- 0
bsp-files/filter_out_from_compute View File

@ -0,0 +1,263 @@
ceilometer-api
ceilometer-alarm-evaluator
ceilometer-alarm-notifier
ceilometer-collector
ceilometer-tests
ceph-manager
cgcs-dpdk-rt
cgcs-dpdk-rt-dev
cgcs-dpdk-rt-staticdev
cgcs-dpdk-rt-apps
cgts-client
cgts-client-bash-completion
cgcs-patch-controller
cgts-mtce-control
cgts-mtce-storage
cgts-mtce-common-guestAgent
cgtssys
cinder
cinder-api
cinder-scheduler
cinder-tests
cinder-volume
computeconfig-subfunction
configvalidator
controllerconfig
corosync
createrepo
d2to1
distributedcloud-dcmanager
distributedcloud-client-dcmanagerclient
distributedcloud-dcorch
drbd-tools
fm-doc
glance
glance-api
glance-registry
glance-tests
horizon
horizon-standalone
horizon-tests
heat-api-cfn
heat-api
heat-cfn
heat-common
heat-contrib-nova-flavor
heat-engine
heat-templates
heat-tests
io-monitor
isomd5sum
kernel-module-openvswitch
keystone
keystone-tests
ldapscripts
libconfig-general-perl
libssh2
lighttpd-module-access
lighttpd-module-accesslog
lighttpd-module-dirlisting
lighttpd-module-indexfile
lighttpd-module-proxy
lighttpd-module-staticfile
lighttpd
nodejs
nova-api
nova-conductor
nova-consoleauth
nova-controller
nova-network
nova-novncproxy
nova-scheduler
nova-spicehtml5proxy
nova-tests
nova-api-proxy
nova-placement-api
novnc
net-snmp
openldap-backend-bdb
openldap-backend-dnssrv
openldap-backend-hdb
openldap-backend-ldap
openldap-backend-mdb
openldap-backend-meta
openldap-backend-monitor
openldap-backend-null
openldap-backend-passwd
openldap-backend-shell
openldap-backends
openldap-dbg
openldap-doc
openldap-overlay-proxycache
openldap-overlay-syncprov
openldap-servers
openldap-slapd
openstack-ras
pacemaker
pacemaker-cli
pacemaker-cluster-libs
pacemaker-libs
patch-alarm
patching-controller
pbr
pecan
postgresql-client
postgresql-contrib
postgresql-timezone
postgresql
pxe-network-installer
python-cephclient
python-cinder
python-django
python-django-appconf
python-django-compressor
python-django-openstack-auth
python-glance
python2-gunicorn
python-heatclient
python-heatclient-bash-completion
python-heat
python-horizon
python-keystone
python-lockfile
python-novnc
python-pam
python-passlib
python-pytz
python-swiftclient
python-wsme
fm-mgr
snmp-ext
sm
sm-api
sm-client
sm-common
sm-db
sm-tools
storageconfig
storage-topology
task-cloud-controller
tgt
nfv-plugins
nfv-vim
vm-topology
remote-clients
lighttpd-fastcgi
lighttpd-mod_geoip
lighttpd-mod_mysql_vhost
openstack-aodh-api
openstack-aodh-commmon
openstack-aodh-compat
openstack-aodh-evaluator
openstack-aodh-expirer
openstack-aodh-listener
openstack-aodh-notifier
openstack-cinder
openstack-cinder-doc
openstack-dashboard
openstack-glance
openstack-glance-doc
openstack-heat-api
openstack-heat-api-cfn
openstack-heat-api-cloudwatch
openstack-heat-common
openstack-heat-engine
openstack-ironic-api
openstack-ironic-common
openstack-ironic-conductor
python-ironic-tests
python-ironic-inspector-client
python-ironic-lib
python2-ironicclient
openstack-keystone
openstack-keystone-doc
openstack-murano-api
openstack-murano-cf-api
openstack-murano-common
openstack-murano-doc
openstack-murano-engine
openstack-murano-ui
openstack-murano-ui-doc
python2-muranoclient
python-muranoclient-doc
openstack-magnum-api
openstack-magnum-common
openstack-magnum-conductor
openstack-magnum-doc
openstack-magnum-ui
python2-magnumclient
python-magnum
python-magnumclient-doc
python-magnumclient-tests
python-magnum-tests
python-magnum-ui-doc
openstack-neutron-common
openstack-neutron-ml2
openstack-nova-api
openstack-nova-cells
openstack-nova-conductor
openstack-nova-console
openstack-nova-doc
openstack-nova-network
openstack-nova-novncproxy
openstack-nova-objectstore
openstack-nova-scheduler
openstack-nova-serialproxy
openstack-nova-spicehtml5proxy
openstack-nova-placement-api
openstack-panko-api
openstack-panko-common
openstack-panko-doc
python-aodh
python-aodhclient
python-ceilometerclient-doc
python-cinder
python-cinderclient-doc
python-glance
python-heatclient
python-keystone
python-novaclient-doc
python-panko
python2-pankoclient
configutilities
drbd-bash-completion
drbd-udev
drbd-utils
drbd-heartbeat
drbd-pacemaker
drbd
kmod-drbd
python-networking-odl
tis-extensions-controller
wrs-heat-templates
python-django-horizon
kernel-rt
kernel-module-igb-uio-rt
kernel-rt-kvm
kmod-e1000e-rt
kmod-i40e-rt
kmod-ixgbe-rt
kmod-tpm-rt
kmod-integrity-rt
mlnx-ofa_kernel-rt-modules
rtctl
rt-setup
qat17-rt
kernel-rt-tools
kernel-rt-tools-libs
NaviCLI-Linux-64-x86-en_US
kmod-drbd-rt
snmp-audittrail
wrs-ssl
tpm2-tools
tss2
tpm2-openssl-engine
python2-networking-bgpvpn
python-networking-bgpvpn-dashboard
python-networking-bgpvpn-heat
python2-neutron-dynamic-routing
python2-ryu
python-ryu-common
platform-kickstarts
python-3parclient
python-lefthandclient

+ 265
- 0
bsp-files/filter_out_from_compute_lowlatency View File

@ -0,0 +1,265 @@
ceilometer-api
ceilometer-alarm-evaluator
ceilometer-alarm-notifier
ceilometer-collector
ceilometer-tests
ceph-manager
cgcs-dpdk
cgcs-dpdk-dev
cgcs-dpdk-staticdev
cgcs-dpdk-apps
cgts-client
cgts-client-bash-completion
cgcs-patch-controller
cgts-mtce-control
cgts-mtce-storage
cgts-mtce-common-guestAgent
cgtssys
cinder
cinder-api
cinder-scheduler
cinder-tests
cinder-volume
computeconfig-subfunction
configvalidator
controllerconfig
corosync
createrepo
d2to1
distributedcloud-dcmanager
distributedcloud-client-dcmanagerclient
distributedcloud-dcorch
drbd-tools
fm-doc
glance
glance-api
glance-registry
glance-tests
horizon
horizon-standalone
horizon-tests
heat-api-cfn
heat-api
heat-cfn
heat-common
heat-contrib-nova-flavor
heat-engine
heat-templates
heat-tests
io-monitor
isomd5sum
kernel-module-openvswitch
keystone
keystone-tests
ldapscripts
libconfig-general-perl
libssh2
lighttpd-module-access
lighttpd-module-accesslog
lighttpd-module-dirlisting
lighttpd-module-indexfile
lighttpd-module-proxy
lighttpd-module-staticfile
lighttpd
nodejs
nova-api
nova-conductor
nova-consoleauth
nova-controller
nova-network
nova-novncproxy
nova-scheduler
nova-spicehtml5proxy
nova-tests
nova-api-proxy
nova-placement-api
novnc
net-snmp
neutron-plugin-ml2
neutron-server
neutron-tests
openldap-backend-bdb
openldap-backend-dnssrv
openldap-backend-hdb
openldap-backend-ldap
openldap-backend-mdb
openldap-backend-meta
openldap-backend-monitor
openldap-backend-null
openldap-backend-passwd
openldap-backend-shell
openldap-backends
openldap-dbg
openldap-doc
openldap-overlay-proxycache
openldap-overlay-syncprov
openldap-servers
openldap-slapd
openstack-ras
pacemaker
pacemaker-cli
pacemaker-cluster-libs
pacemaker-libs
patch-alarm
patching-controller
pbr
pecan
postgresql-client
postgresql-contrib
postgresql-timezone
postgresql
pxe-network-installer
python-cephclient
python-cinder
python-django
python-django-appconf
python-django-compressor
python-django-openstack-auth
python-glance
python2-gunicorn
python-heatclient
python-heatclient-bash-completion
python-heat
python-horizon
python-keystone
python-lockfile
python-novnc
python-pam
python-passlib
python-pytz
python-swiftclient
python-wsme
fm-mgr
snmp-ext
sm
sm-api
sm-client
sm-common
sm-db
sm-tools
storageconfig
storage-topology
task-cloud-controller
tgt
nfv-plugins
nfv-vim
vm-topology
remote-clients
lighttpd-fastcgi
lighttpd-mod_geoip
lighttpd-mod_mysql_vhost
openstack-aodh-api
openstack-aodh-commmon
openstack-aodh-compat
openstack-aodh-evaluator
openstack-aodh-expirer
openstack-aodh-listener
openstack-aodh-notifier
openstack-cinder
openstack-cinder-doc
openstack-dashboard
openstack-glance
openstack-glance-doc
openstack-heat-api
openstack-heat-api-cfn
openstack-heat-api-cloudwatch
openstack-heat-common
openstack-heat-engine
openstack-ironic-api
openstack-ironic-common
openstack-ironic-conductor
python-ironic-tests
python-ironic-inspector-client
python-ironic-lib
python2-ironicclient
openstack-keystone
openstack-keystone-doc
openstack-murano-api
openstack-murano-cf-api
openstack-murano-common
openstack-murano-doc
openstack-murano-engine
openstack-murano-ui
openstack-murano-ui-doc
python2-muranoclient
python-muranoclient-doc
openstack-magnum-api
openstack-magnum-common
openstack-magnum-conductor
openstack-magnum-doc
openstack-magnum-ui
python2-magnumclient
python-magnum
python-magnumclient-doc
python-magnumclient-tests
python-magnum-tests
python-magnum-ui-doc
openstack-neutron-common
openstack-neutron-plugin-ml2
openstack-neutron-server
openstack-nova-api
openstack-nova-cells
openstack-nova-conductor
openstack-nova-console
openstack-nova-doc
openstack-nova-network
openstack-nova-novncproxy
openstack-nova-objectstore
openstack-nova-scheduler
openstack-nova-serialproxy
openstack-nova-spicehtml5proxy
openstack-nova-placement-api
openstack-panko-api
openstack-panko-common
openstack-panko-doc
python-aodh
python-aodhclient
python-ceilometerclient-doc
python-cinder
python-cinderclient-doc
python-glance
python-heatclient
python-keystone
python-novaclient-doc
python-panko
python2-pankoclient
configutilities
drbd-bash-completion
drbd-udev
drbd-utils
drbd-heartbeat
drbd-pacemaker
drbd
kmod-drbd
python-networking-odl
tis-extensions-controller
wrs-heat-templates
python-django-horizon
kernel
kernel-module-igb-uio
kmod-e1000e
kmod-i40e
kmod-i40evf
kmod-ixgbe
kmod-ixgbevf
kmod-tpm
kmod-integrity
mlnx-ofa_kernel-modules
qat17
kernel-tools
kernel-tools-libs
NaviCLI-Linux-64-x86-en_US
kmod-drbd-rt
snmp-audittrail
wrs-ssl
tpm2-tools
tss2
python2-networking-bgpvpn
python-networking-bgpvpn-dashboard
python-networking-bgpvpn-heat
python2-neutron-dynamic-routing
python2-ryu
python-ryu-common
platform-kickstarts
python-3parclient
python-lefthandclient

+ 52
- 0
bsp-files/filter_out_from_controller View File

@ -0,0 +1,52 @@
task-cloud-compute
compute-huge
computeconfig
computeconfig-standalone
computeconfig-subfunction
guest-scale-helper
heartbeat
storageconfig
kernel-module-openvswitch
openstack-neutron-sriov-nic-agent
platform-util-noncontroller
ceilometer-compute
openstack-ceilometer-compute
cgcs-dpdk
cgcs-dpdk-rt
cgcs-dpdk-dev
cgcs-dpdk-rt-dev
cgcs-dpdk-staticdev
cgcs-dpdk-rt-staticdev
cgcs-dpdk-rt-apps
cgts-mtce-compute
cgts-mtce-storage
cgts-mtce-common-guestServer
host-guest-comm
host-guest-comm-dev
nfscheck
radvd
remote-clients
config-gate-compute
kernel-rt
kernel-module-igb-uio
kernel-module-igb-uio-rt
kernel-rt-kvm
kmod-e1000e-rt
kmod-i40e-rt
kmod-ixgbe-rt
kmod-tpm-rt
kmod-integrity-rt
mlnx-ofa_kernel-rt-modules
rtctl
rt-setup
qat17-rt
kernel-rt-tools
kernel-rt-tools-libs
kmod-drbd-rt
libtpms
swtpm
swtpm-tools
swtpm-cuse
swtpm-libs
OVMF
openvswitch

+ 24
- 0
bsp-files/filter_out_from_smallsystem View File

@ -0,0 +1,24 @@
cgcs-dpdk-rt
cgcs-dpdk-rt-apps
cgts-mtce-storage
computeconfig-standalone
kernel-module-openvswitch
platform-util-noncontroller
storageconfig
nfscheck
remote-clients
kernel-rt
kernel-module-igb-uio-rt
kernel-rt-kvm
kmod-e1000e-rt
kmod-i40e-rt
kmod-ixgbe-rt
kmod-tpm-rt
kmod-integrity-rt
mlnx-ofa_kernel-rt-modules
rtctl
rt-setup
qat17-rt
kernel-rt-tools
kernel-rt-tools-libs
kmod-drbd-rt

+ 23
- 0
bsp-files/filter_out_from_smallsystem_lowlatency View File

@ -0,0 +1,23 @@
cgcs-dpdk
cgcs-dpdk-apps
cgts-mtce-storage
computeconfig-standalone
kernel-module-openvswitch
platform-util-noncontroller
storageconfig
nfscheck
remote-clients
kernel
kernel-module-igb-uio
kmod-e1000e
kmod-i40e
kmod-i40evf
kmod-ixgbe
kmod-ixgbevf
kmod-tpm
kmod-integrity
mlnx-ofa_kernel-modules
qat17
kernel-tools
kernel-tools-libs
kmod-drbd

+ 303
- 0
bsp-files/filter_out_from_storage View File

@ -0,0 +1,303 @@
ceilometer-alarm-evaluator
ceilometer-alarm-notifier
ceilometer-api
ceilometer-collector
ceilometer-compute
ceilometer-tests
ceph-manager
cgcs-dpdk
cgcs-dpdk-rt
cgcs-dpdk-dev
cgcs-dpdk-rt-dev
cgcs-dpdk-staticdev
cgcs-dpdk-rt-staticdev
cgcs-dpdk-rt-apps
cgts-client
cgts-client-bash-completion
cgcs-patch-controller
cgts-mtce-compute
cgts-mtce-control
cgts-mtce-common-guestServer
cgts-mtce-common-guestAgent
cgtssys
cinder
cinder-api
cinder-scheduler
cinder-tests
cinder-volume
compute-huge
computeconfig
computeconfig-standalone
computeconfig-subfunction
configvalidator
controllerconfig
createrepo
d2to1
distributedcloud-dcmanager
distributedcloud-client-dcmanagerclient
distributedcloud-dcorch
erlang
fm-doc
glance
glance-api
glance-registry
glance-tests
glusterfs
glusterfs-api
glusterfs-client-xlators
glusterfs-libs
guest-scale-helper
haproxy
heartbeat
heat-api
heat-api-cfn
heat-cfn
heat-common
heat-contrib-nova-flavor
heat-engine
heat-templates
heat-tests
horizon
horizon-standalone
horizon-tests
host-guest-comm
io-monitor
io-scheduler
isomd5sum
ipxe-roms-qemu
kernel-module-openvswitch
keystone
keystone-tests
libconfig-general-perl
libguestfs
libssh2
lighttpd-module-access
lighttpd-module-accesslog
lighttpd-module-dirlisting
lighttpd-module-indexfile
lighttpd-module-proxy
lighttpd-module-staticfile
lighttpd
lighttpd-mod_geoip
lighttpd-fastcgi
lighttpd-mod_mysql_vhost
libvirt
libvirt-daemon
libvirt-daemon-config-network
libvirt-daemon-config-nwfilter
libvirt-daemon-driver-interface
libvirt-daemon-driver-lxc
libvirt-daemon-driver-network
libvirt-daemon-driver-nodedev
libvirt-daemon-driver-nwfilter
libvirt-daemon-driver-qemu
libvirt-daemon-driver-qemu
libvirt-daemon-driver-secret
libvirt-daemon-driver-storage
libvirt-daemon-kvm
libvirt-docs
nodejs
nova-api
nova-common
nova-compute
nova-compute-preclean
nova-compute-setup
nova-conductor
nova-consoleauth
nova-controller
nova-network
nova-novncproxy
nova-scheduler
nova-spicehtml5proxy
nova-tests
nova-api-proxy
nova-placement-api
novnc
net-snmp
openstack-aodh-api
openstack-aodh-commmon
openstack-aodh-compat
openstack-aodh-evaluator
openstack-aodh-expirer
openstack-aodh-listener
openstack-aodh-notifier
openstack-ceilometer-alarm
openstack-ceilometer-central
openstack-ceilometer-collector
openstack-ceilometer-compute
openstack-ceilometer-ipmi
openstack-ceilometer-notification
openstack-cinder
openstack-cinder-doc
openstack-dashboard
openstack-glance
openstack-glance-doc
openstack-heat-api
openstack-heat-api-cfn
openstack-heat-api-cloudwatch
openstack-heat-common
openstack-heat-engine
openstack-ironic-api
openstack-ironic-common
openstack-ironic-conductor
python-ironic-tests
python-ironic-inspector-client
python-ironic-lib
python2-ironicclient
openstack-keystone
openstack-keystone-doc
openstack-murano-api
openstack-murano-cf-api
openstack-murano-common
openstack-murano-doc
openstack-murano-engine
openstack-murano-ui
openstack-murano-ui-doc
python2-muranoclient
python-muranoclient-doc
openstack-magnum-api
openstack-magnum-common
openstack-magnum-conductor
openstack-magnum-doc
openstack-magnum-ui
python2-magnumclient
python-magnum
python-magnumclient-doc
python-magnumclient-tests
python-magnum-tests
python-magnum-ui-doc
openstack-neutron
openstack-neutron-common
openstack-neutron-sriov-nic-agent
openstack-neutron-ml2
openstack-nova-api
openstack-nova-cells
openstack-nova-common
openstack-nova-compute
openstack-nova-conductor
openstack-nova-console
openstack-nova-doc
openstack-nova-network
openstack-nova-novncproxy
openstack-nova-objectstore
openstack-nova-scheduler
openstack-nova-serialproxy
openstack-nova-spicehtml5proxy
openstack-nova-placement-api
openstack-panko-api
openstack-panko-common
openstack-panko-doc
openstack-ras
patch-alarm
patching-controller
pbr
pecan
postgresql
postgresql-client
postgresql-contrib
postgresql-timezone
pxe-network-installer
python-aodh
python-aodhclient
python-ceilometerclient
python-cephclient
python-cinder
python-cinderclient
python-django
python-django-appconf
python-django-compressor
python-django-openstack-auth
python-glance
python-glanceclient
python2-gunicorn
python-heat
python-heatclient
python-heatclient-bash-completion
python-horizon
python-keystone
python-libguestfs
python-lockfile
python-netclient
python-neutron
python-neutron-lib
python2-neutronclient
python-nova
python2-novaclient
python-novnc
python-openstackclient
python-pam
python-panko
python2-pankoclient
python-passlib
python-pytz
python-swiftclient
python-wsme
qemu-img-ev
qemu-kvm-common-ev
qemu-kvm-ev
qemu-kvm-tools-ev
radvd
rubygem-rdoc
snmp-ext
task-cloud-compute
task-cloud-controller
tgt
fm-mgr
sm
sm-api
sm-client
sm-common
sm-db
sm-tools
storage-topology
nfv-common
nfv-plugins
nfv-vim
nfv-tools
vm-topology
remote-clients
python-networking-odl
config-gate-compute
tis-extensions-controller
wrs-heat-templates
python-django-horizon
libmlx5
kernel-rt
kernel-module-igb-uio
kernel-module-igb-uio-rt
kernel-rt-kvm
kmod-e1000e-rt
kmod-i40e-rt
kmod-ixgbe-rt
kmod-tpm-rt
kmod-integrity-rt
mlnx-ofa_kernel-rt-modules
rtctl
rt-setup
qat17-rt
kernel-rt-tools
kernel-rt-tools-libs
NaviCLI-Linux-64-x86-en_US
kmod-drbd-rt
snmp-audittrail
wrs-ssl
tpm2-tools
tss2
tpm2-openssl-engine
libtpms
swtpm
swtpm-tools
swtpm-cuse
swtpm-libs
OVMF
python2-networking-bgpvpn
python-networking-bgpvpn-dashboard
python-networking-bgpvpn-heat
python2-neutron-dynamic-routing
python2-ryu
python-ryu-common
python2-networking-sfc
openvswitch
platform-kickstarts
python-3parclient
python-lefthandclient

+ 155
- 0
bsp-files/grub.cfg View File

@ -0,0 +1,155 @@
default=2
timeout=-1
search --no-floppy --set=root -l 'oe_iso_boot'
# ---------------------- NOTE ----------------------
# If you are updating menus, make sure that controllerconfig/clone.py
# is in sync with your changes (only serial console ids).
# STANDARD_STANDARD = 'standard>serial>' +
# sysinv_constants.SYSTEM_SECURITY_PROFILE_STANDARD
# STANDARD_EXTENDED = 'standard>serial>' +
# sysinv_constants.SYSTEM_SECURITY_PROFILE_EXTENDED
# AIO_STANDARD = 'standard>aio>' +
# sysinv_constants.SYSTEM_SECURITY_PROFILE_STANDARD
# AIO_EXTENDED = 'standard>aio>' +
# sysinv_constants.SYSTEM_SECURITY_PROFILE_EXTENDED
# AIO_LL_STANDARD = 'standard>aio-lowlat>' +
# sysinv_constants.SYSTEM_SECURITY_PROFILE_STANDARD
# AIO_LL_EXTENDED = 'standard>aio-lowlat>' +
# sysinv_constants.SYSTEM_SECURITY_PROFILE_EXTENDED
# SUBMENUITEM_TBOOT = 'tboot'
# SUBMENUITEM_SECUREBOOT = 'secureboot'
# --------------------------------------------------
# Menu 0
menuentry 'Select kernel options and boot kernel' {
echo " "
}
# Create a space in the menu
menuentry ' ' {
echo " "
}
# Standard Controller menu
submenu 'UEFI Standard Controller Configuration' --id=standard {
submenu 'Serial Console' --id=serial {
menuentry 'STANDARD Security Profile' --id=standard {
linuxefi /vmlinuz inst.ks=hd:LABEL=oe_iso_boot:/ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 console=ttyS0,115200 inst.text serial inst.stage2=hd:LABEL=oe_iso_boot inst.gpt security_profile=standard
initrdefi /initrd.img
}
submenu 'EXTENDED Security Profile' --id=extended {
menuentry 'Secure Boot Profile' --id=secureboot {
linuxefi /vmlinuz inst.ks=hd:LABEL=oe_iso_boot:/ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 console=ttyS0,115200 inst.text serial inst.stage2=hd:LABEL=oe_iso_boot inst.gpt security_profile=extended tboot=false
initrdefi /initrd.img
}
menuentry 'Trusted Boot Profile' --id=tboot {
linuxefi /vmlinuz inst.ks=hd:LABEL=oe_iso_boot:/ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 console=ttyS0,115200 inst.text serial inst.stage2=hd:LABEL=oe_iso_boot inst.gpt security_profile=extended tboot=true
initrdefi /initrd.img
}
}
}
submenu 'Graphical Console' --id=graphical {
menuentry 'STANDARD Security Profile' --id=standard {
linuxefi /vmlinuz inst.ks=hd:LABEL=oe_iso_boot:/ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 console=tty0 serial inst.text inst.stage2=hd:LABEL=oe_iso_boot inst.gpt security_profile=standard
initrdefi /initrd.img
}
submenu 'EXTENDED Security Profile' --id=extended {
menuentry 'Secure Boot Profile' --id=secureboot {
linuxefi /vmlinuz inst.ks=hd:LABEL=oe_iso_boot:/ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 console=tty0 serial inst.text inst.stage2=hd:LABEL=oe_iso_boot inst.gpt security_profile=extended tboot=false
initrdefi /initrd.img
}
menuentry 'Trusted Boot Profile' --id=tboot {
linuxefi /vmlinuz inst.ks=hd:LABEL=oe_iso_boot:/ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 console=tty0 serial inst.text inst.stage2=hd:LABEL=oe_iso_boot inst.gpt security_profile=extended tboot=true
initrdefi /initrd.img
}
}
}
}
# Create a space in the menu
menuentry ' '{
echo " "
}
# AIO Controller menu
submenu 'UEFI All-in-one Controller Configuration' --id=aio {
submenu 'Serial Console' --id=serial {
menuentry 'STANDARD Security Profile' --id=standard {
linuxefi /vmlinuz inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 console=ttyS0,115200 inst.text serial inst.stage2=hd:LABEL=oe_iso_boot inst.gpt security_profile=standard
initrdefi /initrd.img
}
submenu 'EXTENDED Security Profile' --id=extended {
menuentry 'Secure Boot Profile' --id=secureboot {
linuxefi /vmlinuz inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 console=ttyS0,115200 inst.text serial inst.stage2=hd:LABEL=oe_iso_boot inst.gpt security_profile=extended tboot=false
initrdefi /initrd.img
}
menuentry 'Trusted Boot Profile' --id=tboot {
linuxefi /vmlinuz inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 console=ttyS0,115200 inst.text serial inst.stage2=hd:LABEL=oe_iso_boot inst.gpt security_profile=extended tboot=true
initrdefi /initrd.img
}
}
}
submenu 'Graphical Console' --id=graphical {
menuentry 'STANDARD Security Profile' --id=standard {
linuxefi /vmlinuz inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 console=tty0 inst.text inst.stage2=hd:LABEL=oe_iso_boot inst.gpt security_profile=standard
initrdefi /initrd.img
}
submenu 'EXTENDED Security Profile' --id=extended {
menuentry 'Secure Boot Profile' --id=secureboot {
linuxefi /vmlinuz inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 console=tty0 inst.text inst.stage2=hd:LABEL=oe_iso_boot inst.gpt security_profile=extended tboot=false
initrdefi /initrd.img
}
menuentry 'Trusted Boot Profile' --id=tboot {
linuxefi /vmlinuz inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 console=tty0 inst.text inst.stage2=hd:LABEL=oe_iso_boot inst.gpt security_profile=extended tboot=true
initrdefi /initrd.img
}
}
}
}
# Create a space in the menu
menuentry ' '{
echo " "
}
# AIO (lowlatency) Controller menu
submenu 'UEFI All-in-one (lowlatency) Controller Configuration' --id=aio-lowlat {
submenu 'Serial Console' --id=serial {
menuentry 'STANDARD Security Profile' --id=standard {
linuxefi /vmlinuz inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_lowlatency_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 console=ttyS0,115200 inst.text serial inst.stage2=hd:LABEL=oe_iso_boot inst.gpt security_profile=standard
initrdefi /initrd.img
}
submenu 'EXTENDED Security Profile' --id=extended {
menuentry 'Secure Boot Profile' --id=secureboot {
linuxefi /vmlinuz inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_lowlatency_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 console=ttyS0,115200 inst.text serial inst.stage2=hd:LABEL=oe_iso_boot inst.gpt security_profile=extended tboot=false
initrdefi /initrd.img
}
menuentry 'Trusted Boot Profile' --id=tboot {
linuxefi /vmlinuz inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_lowlatency_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 console=ttyS0,115200 inst.text serial inst.stage2=hd:LABEL=oe_iso_boot inst.gpt security_profile=extended tboot=true
initrdefi /initrd.img
}
}
}
submenu 'Graphical Console' --id=graphical {
menuentry 'STANDARD Security Profile' --id=standard {
linuxefi /vmlinuz inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_lowlatency_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 console=tty0 inst.text inst.stage2=hd:LABEL=oe_iso_boot inst.gpt security_profile=standard
initrdefi /initrd.img
}
submenu 'EXTENDED Security Profile' --id=extended {
menuentry 'Secure Boot Profile' --id=secureboot {
linuxefi /vmlinuz inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_lowlatency_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 console=tty0 inst.text inst.stage2=hd:LABEL=oe_iso_boot inst.gpt security_profile=extended tboot=false
initrdefi /initrd.img
}
menuentry 'Trusted Boot Profile' --id=tboot {
linuxefi /vmlinuz inst.ks=hd:LABEL=oe_iso_boot:/smallsystem_lowlatency_ks.cfg boot_device=sda rootfs_device=sda biosdevname=0 usbcore.autosuspend=-1 console=tty0 inst.text inst.stage2=hd:LABEL=oe_iso_boot inst.gpt security_profile=extended tboot=true
initrdefi /initrd.img
}
}
}
}

+ 72
- 0
bsp-files/kickstarts/functions.sh View File

@ -0,0 +1,72 @@
# This file defines functions that can be used in %pre and %post kickstart sections, by including:
# . /tmp/ks-functions.sh
#
cat <<END_FUNCTIONS >/tmp/ks-functions.sh
#
# Copyright (c) xxxYEARxxx Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
function get_by_path()
{
local disk=\$(cd /dev ; readlink -f \$1)
for p in /dev/disk/by-path/*; do
if [ "\$disk" = "\$(readlink -f \$p)" ]; then
echo \$p
return
fi
done
}
function get_disk()
{
echo \$(cd /dev ; readlink -f \$1)
}
function report_pre_failure_with_msg()
{
local msg=\$1
echo -e '\n\nInstallation failed.\n'
echo "\$msg"
exit 1
}
function report_post_failure_with_msg()
{
local msg=\$1
cat <<EOF >> /etc/motd
Installation failed.
\$msg
EOF
echo "\$msg" >/etc/platform/installation_failed
echo -e '\n\nInstallation failed.\n'
echo "\$msg"
exit 1
}
function report_post_failure_with_logfile()
{
local logfile=\$1
cat <<EOF >> /etc/motd
Installation failed.
Please see \$logfile for details of failure
EOF
echo \$logfile >/etc/platform/installation_failed
echo -e '\n\nInstallation failed.\n'
cat \$logfile
exit 1
}
END_FUNCTIONS

+ 41
- 0
bsp-files/kickstarts/post_clone_iso_ks.cfg View File

@ -0,0 +1,41 @@
# clone post installation script
%post --nochroot
if [ -d /mnt/install/source ]; then
srcdir=/mnt/install/source
else
srcdir=/run/install/repo
fi
if [ -d $srcdir/clone-archive ]; then
cp -r $srcdir/clone-archive /mnt/sysimage/
cp $srcdir/install_clone /mnt/sysimage/usr/bin/install_clone
chmod 500 /mnt/sysimage/usr/bin/install_clone
fi
%end
# clone post installation script to start install-clone service
%post --erroronfail
# Build install-clone service file here, so that it is patchable.