-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TEST] Test SMD within the HPE CSM pipeline to identify regressions #42
Comments
Launched vShasta instance with SMD image overridden with
For HPE version of SMD, PostgresQL connection is configured via environment variables:
|
Ok, it looks like error above was caused by an issue with database initialization. CSM Helm chart for SMD contains a job which initializes database, which uses SMD image. Attempt to run this job with OpenCHAMI SMD image failed, so database remained uninitialized ( For now I decided to go different route - instead of deploying OpenCHAMI SMD image as part of modified CSM distro, I created regular CSM vShasta deployment (which initialized database) and then re-deployed SMD container (by issuing One difference I noticed in logs is reaction to absence of TLS cert: CSM:
OpenCHAMI:
I also ran smoke / functional tests provided by Cray HMS team. All tests passed for both CSM and OpenCHAMI version of container. Test logs are also in the attached file, but there's no much information - those are CT tests, ran in pods, which were deleted after test execution. Test definitions, as far as I could reverse-engineer HMS testing suite, is here: |
We have an smd-init container as well. It should function the same as the smd container |
Sounds good, I'll look more into this on Monday. Unfortunately I didn't grab initialization job logs before I re-created system, so I don't know why it failed. By the way, it is not init container, it's a separate job (I suppose Helm pre-install hook or something like that). |
I think the difference in reporting for TLS is a non-issue. The reporting is better with the new logging library, but the functionality is the same. You should review the way we handle smd initialization through our docker compose file. There is a job that updates the database as well as an smd container for execution. We may have changed the environment variables a little bit to keep them consistent across services. The lack of failing tests is worrying though. We've definitely disabled internal discovery services and internal redfish listeners in SMD. |
I see the difference in initialization sequence. CSM version of SMD initialization job supports persistence, meaning that during container startup, SQL migration scripts are copied from container filesystem to mounted persistent volume. I suppose this allows idempotent application of migration scripts during SMD upgrade. To make database initialization successful, I've re-created job with the following changes:
For tests which pass, I suppose we will need SME help, similar to BSS testing task. |
Thanks for reviewing the persistent_migrations->migrations change and succinctly describing the difference. It's a good breadcrumb for the SME to follow. As we move forward with HPE using OpenCHAMI as the upstream, I'd suggest that the OpenCHAMI method is correct and |
This is a placeholder for @mtupitsyn to add any errors he finds with running SMD at HPE.
The text was updated successfully, but these errors were encountered: