-
Notifications
You must be signed in to change notification settings - Fork 51
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
z/OSMF static definitions accumulates if configuration is changed #3853
Comments
This is a problem that even predates zwe. That's to avoid deleting sideloaded content. For example, app-server conditionally manually copies a zss static definition into the folder when running in a container because in that case zss isnt around to have its own manifest seen. Not sure what our stance on sideloaded content is but I think we can retain ability to do that. |
Looks like today when so how about coding a |
Actually, what I described is incomplete for HA. For example, You run 2 HA nodes with ZSS. You do want both ZSS to be registered. You just don't want a 3rd, outdated one from an older config. You run 2 HA nodes and need z/OSMF. We don't have a way to specify multiple z/OSMF, so there should only ever be one?! |
It's important to distinguish between service and instance. There is 1:n relationships between service and instances. As such for HA setup we want to have one service with multiple instances for z/OSMF and ZSS. It's a bit tedious to do with the static definitions as the original intention was more focused on the dynamic registration. So this brings question on what types of status definitions should Zowe produce itself and what tooling should be available to rebuild them with new values. |
Describe the bug
New zosmf static definition files are created every time Zowe is started. The old files never removed, so in following scenarios they are accumulating. This can create problems like having multiple ibmzosmf services registered with APIML.
/S ZWESVSTC,HAINST=
).In all these cases in
api-defs
directory, there will be multiplediscovery.zosmf_static_definition_yaml_template.<system>.yml
with different systems in the name. As a result, all of them will be registered with APIML except those that have same hostname and port.Some of our customers was facing scenario 1.
The issue is related to #3328 and #3566
Expected behavior
During the startup the existing zosmf static definition files are removed before the creation of new one.
The text was updated successfully, but these errors were encountered: