-
Notifications
You must be signed in to change notification settings - Fork 304
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-33182 make all helm examples dropzone subpaths to "mydropzone" #19387
base: candidate-9.8.x
Are you sure you want to change the base?
HPCC-33182 make all helm examples dropzone subpaths to "mydropzone" #19387
Conversation
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-33182 Jirabot Action Result: |
@@ -40,7 +40,7 @@ planes: | |||
#shareName: datashare | |||
#volumeId: "100-data" | |||
- name: mydropzone | |||
subPath: dropzone | |||
subPath: mydropzone |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ ../helm/examples$ fgrep -R dropzone | fgrep -i subpath
fsx/hpcc-fsx-dynamic-pv/values.yaml: subPath: dropzone
efs/hpcc-efs-dynamic-pv/values.yaml: subPath: dropzone
efs/hpcc-efs-static-pv/values.yaml: subPath: dropzone
esdl/values-hpcc-localfile.yaml: subPath: dropzone
local/hpcc-localfile/values.yaml: subPath: dropzone
azure/hpcc-azurefile/values.yaml: subPath: dropzone
nfs/hpcc-nfs/values.yaml: subPath: dropzone
all subPath's are currently (before this PR) "dropzone", and I think that's logical
In the same way other planes paths, e.g. data are not 'mydata'.
The prefix paths in the generated example files are not consistent though, i.e.:
/helm/examples$ fgrep -R dropzone | fgrep -i prefix
fsx/values-retained-fsx.yaml: prefix: "/var/lib/HPCCSystems/mydropzone"
efs/values-retained-efs.yaml: prefix: "/var/lib/HPCCSystems/mydropzone"
efs/values-auto-efs.yaml: prefix: "/var/lib/HPCCSystems/mydropzone"
esdl/values-echo-example-localfile.yaml: prefix: "/var/lib/HPCCSystems/dropzone"
local/values-localfile.yaml: prefix: "/var/lib/HPCCSystems/mydropzone"
azure/values-auto-azurefile.yaml: prefix: "/var/lib/HPCCSystems/mydropzone"
azure/values-retained-azurefile.yaml: prefix: "/var/lib/HPCCSystems/mydropzone"
the only that's right is esdl/values-echo-example-localfile.yaml.
I think it would be more consistent to change these to paths to /var/lib/HPCCSystems/dropzone
OR, drop 'my' altogether, use 'dropzone' for the plane name and the subPath (and hence the prefix too).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xwang2713 - see comment.
OK. I will discuss with Attila |
@AttilaVamos is it OK if we use "dropzone" instead of "mydropzone"? I will make change in helm/examples if you agree |
If we agree to use "mydropzone" I will update following for esdl: esdl/values-echo-example-localfile.yaml: prefix: "/var/lib/HPCCSystems/dropzone" |
The configuration/example files in cloud - should not really adhere to old anacronyms (e.g. "my"). If a change is going to be made to fix this minor inconsistency, it is better to keep the config/examples clean, and in keeping with no longer having, mydali, mythor etc in general, i.e. not introduce more legacy/BM 'my' baggage. |
Make change from "dropzone" to "mydropzone" for esdl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xwang2713 - see my previous comments - why are we introducing more 'my'* legacy baggage ? This isn't a change that really needs to be made at all, but if we fix the inconsistency should remove the 'my'*'s not add more.
@jakesmith if we don't use "mydropzone" some regress test such as pipe8.ecl since it assume default drop sub path "/var/lib/HPCCSystems/mydropzone". We found this during build verification test. If the storage setup by HPCC cluster which will use values.yaml (mydropzone) the regress run OK which the storage is not persistent. If we want to set up a persistent storage with helm/examples then current sub path of dropzone will be "dropzone" will cause pipe8.ecl test failed. As we find there are too many places in HPCC Platform source use "mydropzone" it is easier to adopt it everywhere in our source and documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jakesmith if we don't use "mydropzone" some regress test such as pipe8.ecl since it assume default drop sub path "/var/lib/HPCCSystems/mydropzone".
pipe8.ecl does not rely on that path. It dynamically gets the actual dropzone path via File.GetDefaultDropZone, see the test ECL:
dropzonePath := File.GetDefaultDropZone() : STORED('dropzonePath');
As @AttilaVamos has pointed out (in an email) and I've pointed out in my previous comments above, the failure was not related to this:
[ from Attila's email, the error he saw was not as a result of the inconsistency, just a slight source of confusion, however, most of the planes in our stock environment do not have (and are not are expected to have) the same tail sub-dirs as their plane names. ]
@xwang2713 - we should either close this PR as it is not really necessary (it is not causing any failures), or conform to consistent standard not using legacy 'my' baggage.
FWIW - there are other regression queries (not pipe8.ecl) that do have 'mydropzone' hard-coded in them, e.g. despray.ecl, i.e.:
But that STORED is set via via ecl-test.json - and should be correct for that reason. @AttilaVamos - because it is not directly related to this PR (this PR is not necessary to resolve failures), but it would still be good to make the regression suites consistently use File.GetDefaultDropZone (and not have to rely on a STORED setting), I think they should be changed. Unless you disagree, can you open a new JIRA to change any existing regression suite query to use File.GetDefaultDropZone() ? |
It is OK to close this PR. So the regress test can use default storage settings as helm/hpcc/values.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the title of this PR is misleading. I doesn't intend to change all helm charts, only those are in the helm/examples/ directory. So it doesn't impacts the official helm charts and and how the HPCC platform deployed by default.
Moreover, If I understand well the aim of this changes are to fix inconsistency what caused regression failure when the Platform deployed with the example charts.
The regression suite queries should consistently use File.GetDefaultDropZone(). So the inconsistencies that need fixing are :
So, I recommend:
|
The regression test which led to this JIRA/PR is the pipe8.ecl failing only in an environment deployed by the charts located in the example directory. It is passing in AKS (Minikube) deployed by the default helm charts.
Related to the
I will do that soon. ( https://hpccsystems.atlassian.net/browse/HPCC-33265 ) |
Yes, if installed correctly. Pipe8.ecl will work without issue. @xwang2713 , did you install the hpcc-localfile chart, and then the hpcc chart pointing to helm/examples/local/values-localfile.yaml ? These storage example charts should be installed like this:
NB: There is brief note about this at the bottom of the hpcc-localfile/README.md So, conclusions:
|
We will address the "sub path" of dropzone laster. Probably like Jake suggest we should adopt more properate name as "dropzone" and remove the pre-fix "my". |
There are some inconsistences for dropzone subpath in Helm Charts.
Some use "mydropzone" and the others use "dropzone"
Since our regression tests assume "mydropzone" and to make it consistent "mydropzone" will be used.
There is a seperate JIRA https://hpccsystems.atlassian.net/browse/HPCC-33183 for documentation.
Signed off by [email protected]
Type of change:
Checklist:
Smoketest:
Testing:
Tested on Docker Desktop environment. This will fix Regress Quick Test pipe8.ecl with "dropzone" as subpath.