-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[2.6] Automatic creation/sync of services <-> workload ports permanently lost after 2.5.8->2.6.0 #34639
Comments
I can verify that if I create entirely new deployments AFTER the upgrade from 2.5.8->2.6.0, service<->deployment port config is synchronized and automatic (both adding and removing ports work fine), but for all deployments that existed from prior to the upgrade, sync is permanently lost |
Well this is bad... I cannot create services for the workloads even manually (if svc name same as workload name). They are auto reverted to the configuration that existed before the rancher upgrade. Even if I delete all ports from workloads and then delete/edit the services, the services are reverted back to their pre 2.6 config (after a few minutes) |
This is even worse.. even if I delete the entire workload and recreate it again, the issue persists. |
Reproduced this on v2.5.8 to v2.6.0 rancher server.
This is happening as the Service discovery entry for workload is present in the Services tab. If we delete the SD entry and re-create the workload, able to create the deployment. Issues seen:
|
Waiting on that UI issue ^, once that is merged this can go to test. At this point there is no dev work to be done. |
Since both issues linked here have been labeled to test in the UI, can we please test to see if this is still an issue @kinarashah before we verify and move it over to QA to finalize testing on this use case? |
We should release-note this for users upgrading to 2.6.1, all legacy ui services will need to be deleted manually when workloads are deleted rancher/dashboard#4212 (comment) On upgrade, if workloads created from legacy UI are deleted, the corresponding services won't be deleted. Users will have to manually clean them up. UI now shows a text msg (screenshot here rancher/dashboard#4212 (comment)) to inform users when they're deleting such workloads. |
Validation update:This issue needs to be tested for 3 issues mentioned in rancher/dashboard#4159, out of which first one is failing for the following scenario:
|
Per rancher/dashboard#4159 (comment), UI is running into a backend issue tied to some Norman vs. Steve differences. Not sure if we need to spawn a new ticket to look into that but for UI, there is a workaround to allow editing at least through the old UI. |
Fresh Install v2.6.1-rc7:
Upgrade v2.5.8 to v2.6.1-rc7:
Upgrade v2.5.8 to v2.6.0 to v2.6.1-rc7:
|
@sowmyav27 ^ This issue has been validated, ok to close. |
Rancher Server Setup
Information about the Cluster
Describe the bug
after upgrading from 2.5.8 -> 2.6.0, services are no longer automatically created/removed when configuring ports in the new "edit deployment config" gui. All existing services were seemingly preserved in the upgrade, but all corresponding deployments ended up in "do not create service" in the workload config editor. I can no longer edit the ports in any workloads, if I try to set them to "cluster IP" i get errors saying "service already exists". If I manually attempt to delete the service objects, they are instantly automatically recreated. If I add new ports to the workload config, these changes are not automatically added to the service objects.
To Reproduce
just guessing:
manually Deleting all ports, then the service object, and then re-adding ports to the deployment config doesnt help. (actually it creates a new service, even though the webpage says "service already exists", but then it ends up in the same de-synced state as explained above where you cant edit anything on the workload)
Result
automatic service <-> workload sync is permanently lost. I can delete all ports on workload and services are still kept. This is a security issues in some sense. Can no longer reliably create port mappings in deployment config gui, so starting from 2.6.0. I must manually create services separately.
Expected Result
Same functionality as in previous rancher < 2.6, that is, you can edit ports on workloads and services are edited automatically.
Other info
Have been using rancher since 1.x days and just about every single 2.x version. Never seen this issue before, and it is one of the worst issues in terms of usability Ive had so far. I would not dare upgrading 2.5.x production clusters to 2.6.0 risking hundreds of deployments to lose sync with service configurations/services maintained by rancher.
The text was updated successfully, but these errors were encountered: