Navigation Menu

Skip to content
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

HPCC-24970 Sasha K8s services. #14536

Merged
merged 1 commit into from Feb 10, 2021

Conversation

jakesmith
Copy link
Member

@jakesmith jakesmith commented Feb 1, 2021

Signed-off-by: Jake Smith jake.smith@lexisnexisrisk.com

Type of change:

  • This change is a bug fix (non-breaking change which fixes an issue).
  • This change is a new feature (non-breaking change which adds functionality).
  • This change improves the code (refactor or other change that does not change the functionality)
  • This change fixes warnings (the fix does not alter the functionality or the generated code)
  • This change is a breaking change (fix or feature that will cause existing behavior to change).
  • This change alters the query API (existing queries will have to be recompiled)

Checklist:

  • My code follows the code style of this project.
    • My code does not create any new warnings from compiler, build system, or lint.
  • The commit message is properly formatted and free of typos.
    • The commit message title makes sense in a changelog, by itself.
    • The commit is signed.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly, or...
    • I have created a JIRA ticket to update the documentation.
    • Any new interfaces or exported functions are appropriately commented.
  • I have read the CONTRIBUTORS document.
  • The change has been fully tested:
    • I have added tests to cover my changes.
    • All new and existing tests passed.
    • I have checked that this change does not introduce memory leaks.
    • I have used Valgrind or similar tools to check for potential issues.
  • I have given due consideration to all of the following potential concerns:
    • Scalability
    • Performance
    • Security
    • Thread-safety
    • Cloud-compatibility
    • Premature optimization
    • Existing deployed queries will not be broken
    • This change fixes the problem, not just the symptom
    • The target branch of this pull request is appropriate for such a change.
  • There are no similar instances of the same problem that should be addressed
    • I have addressed them here
    • I have raised JIRA issues to address them separately
  • This is a user interface / front-end modification
    • I have tested my changes in multiple modern browsers
    • The component(s) render as expected

Smoketest:

  • Send notifications about my Pull Request position in Smoketest queue.
  • Test my draft Pull Request.

Testing:

@hpcc-jirabot
Copy link

@AttilaVamos
Copy link
Contributor

#MsgID    Audience Date       Time(milli)  PID   TID   Quoted
00000000 PRG 2021-02-01 18:44:10.962 21111 21111 "Build community_7.13.0-trunk0[heads/master-0-g243c26]"
00000001 PRG 2021-02-01 18:44:10.968 21111 21111 "Backtrace:"
00000002 PRG 2021-02-01 18:44:10.968 21111 21111 "  /opt/HPCCSystems/lib/libjlib.so(_Z16printStackReportx+0x45) [0x7eff47f9b485]"
00000003 PRG 2021-02-01 18:44:10.968 21111 21111 "  /opt/HPCCSystems/lib/libjlib.so(_Z20raiseAssertExceptionPKcS0_j+0x83) [0x7eff47f9b713]"
00000004 PRG 2021-02-01 18:44:10.968 21111 21111 "  saserver() [0x418948]"
00000005 PRG 2021-02-01 18:44:10.968 21111 21111 "  saserver() [0x409d51]"
00000006 PRG 2021-02-01 18:44:10.968 21111 21111 "  /lib64/libc.so.6(__libc_start_main+0xf5) [0x7eff4441d505]"
00000007 PRG 2021-02-01 18:44:10.968 21111 21111 "  saserver() [0x40a391]"
00000008 PRG 2021-02-01 18:44:10.968 21111 21111 "ERROR: assert(!sashaSDSCoalescingServer) failed - file: sacoalescer.cpp, line 288"
00000009 USR 2021-02-01 18:44:10.968 21111 21111 "ERROR: 3000: saserver.cpp(506) : Sasha Server Exception:  : assert(!sashaSDSCoalescingServer) failed - file: sacoalescer.cpp, line 288"
0000000A USR 2021-02-01 18:44:10.969 21111 21111 "Stopping 0"

@jakesmith jakesmith force-pushed the hpcc-24970-sasha-services branch 3 times, most recently from 6fe1503 to 59791f2 Compare February 2, 2021 09:29
@jakesmith
Copy link
Member Author

@wangkx - please review, in particular, the esp service changes to pick up the sasha service. This will relate to: https://track.hpccsystems.com/browse/HPCC-24968

@jakesmith
Copy link
Member Author

@ghalliday - please review

Copy link
Member

@richardkchapman richardkchapman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of minor issues

testing/helm/run.sh Outdated Show resolved Hide resolved
testing/helm/run.sh Outdated Show resolved Hide resolved
@jakesmith
Copy link
Member Author

@richardkchapman - removed spurious changes to testing/helm/run.sh

dali/sasha/saarch.cpp Outdated Show resolved Hide resolved
Copy link
Member

@ghalliday ghalliday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jakesmith looks good. A few minor comments.

dali/sasha/saarch.cpp Outdated Show resolved Hide resolved
dali/sasha/saarch.cpp Outdated Show resolved Hide resolved
dali/sasha/saserver.cpp Show resolved Hide resolved
dali/sasha/saxref.cpp Outdated Show resolved Hide resolved
esp/smc/SMCLib/TpWrapper.cpp Outdated Show resolved Hide resolved
helm/hpcc/templates/_helpers.tpl Outdated Show resolved Hide resolved
helm/hpcc/templates/_helpers.tpl Outdated Show resolved Hide resolved
{{- include "hpcc.addSashaVolumes" (dict "root" $ "me" .) | indent 6 }}
{{- end }}
{{- end }}
{{ include "hpcc.addDaliVolume" $commonCtx | indent 6 }}
{{ include "hpcc.addSecretVolumes" (dict "root" $ "categories" (list "system" ) ) | indent 6 }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will likely need to include storage secrets (e.g. for xref, and possibly other uses)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will depend on the services included in Dali's pod.
The expectation is that it will just be the coalescer in the Dali pod, but if it's e.g. the archiver, or file-expiry, or xref, then it would need "storage" too. So I should detect and make conditional.

Will fix.

@jakesmith
Copy link
Member Author

@ghalliday - please see new commit

Copy link
Member

@ghalliday ghalliday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jakesmith a few minor comments. I'm not confident I have reviewed the helm files fully.

esp/smc/SMCLib/TpWrapper.cpp Outdated Show resolved Hide resolved
helm/hpcc/templates/_helpers.tpl Show resolved Hide resolved
{{ include "hpcc.addSecretVolumeMounts" (dict "root" $ "categories" (list "system" ) ) | indent 8 }}
{{- range .services -}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be an entry in the config for dali (and all sasha config files) that contains the vault information. Mentioned in Shamser's PR as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are no secrets/vaults generated for Dali in master at the moment.
I don't think Dali has needed any, until now with introduction of sasha services that may.

I can wait though for Shamser's PR to be merged, so it doesn't clash etc.., then use a common list.

ghalliday
ghalliday previously approved these changes Feb 5, 2021
Copy link
Member

@ghalliday ghalliday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think good from my perspective, but I would like someone else's (@richardkchapman ?) comments on the Helm changes.

{{ include "hpcc.addSecretVolumes" (dict "root" $ "categories" (list "system" ) ) | indent 6 }}
{{- if or (has "data" .access) (has "dalidata" .access) -}}
{{ include "hpcc.addSecretVolumes" (dict "root" .root "categories" (list "storage" ) ) | indent 6 -}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should really be using a single call with a conditional list. If everything else is ok, then it can be merged and @shamser fix it in his PR.

Copy link
Member

@ghalliday ghalliday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jakesmith one comment. I think ready for squashing and a final review.

dali/sasha/saxref.cpp Outdated Show resolved Hide resolved
Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
@jakesmith
Copy link
Member Author

@ghalliday - squashed and rebased to latest master.

@HPCCSmoketest
Copy link
Contributor

Automated Smoketest: ✅
OS: centos 7.6.1810 (Linux 3.10.0-957.1.3.el7.x86_64)
GCC: gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
Host: ip-10-20-0-6.ca-central-1.compute.internal
Sha: c0faec3
Build: success
Milestone:Install hpccsystems-platform-community_7.13.0-trunk0.el7.x86_64.rpm
HPCC Start: OK

Unit tests result:

Test total passed failed errors timeout elaps
unittest 146 146 0 0 0 54 sec
wutoolTest(Dali) 19 19 0 0 0 0 sec
wutoolTest(Cassandra) 19 19 0 0 0 6 sec

Regression test result:

phase total pass fail elaps
setup (hthor) 9 9 0 22 sec (00:00:22)
setup (thor) 9 9 0 41 sec (00:00:41)
setup (roxie) 19 19 0 22 sec (00:00:22)
test (hthor) 954 954 0 684 sec (00:11:24)
test (thor) 865 865 0 1163 sec (00:19:23)
test (roxie) 1027 1027 0 802 sec (00:13:22)

HPCC Stop: OK
HPCC Uninstall: OK
Time stats:

Prep time Build time Package time Install time Start time Test time Stop time Summary
9 sec (00:00:09) 620 sec (00:10:20) 128 sec (00:02:08) 20 sec (00:00:20) 17 sec (00:00:17) 1475 sec (00:24:35) 17 sec (00:00:17) 2286 sec (00:38:06)

@ghalliday ghalliday merged commit fc08bc8 into hpcc-systems:master Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants