-
Notifications
You must be signed in to change notification settings - Fork 399
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
Release is invalid. Code is missing for service error in SF Application Upgrade using diffPackage. #608
Comments
Did you try running the failing command |
Yes I had tried Test-ServiceFabricApplicationPackage command myself and the results are as follows.
|
In first case,
@muradkhateeb78 So, what changed under that service for which you increased service version number ? For second case, |
The changes were in the code section only, but I intentionally upgraded the service version in the service manifest only. I wanted both the code and the config packages to be updated during the upgrade. I am of the view that if you update the service version number and provide it with the code and config packages then both of them will be updated during the upgrade, without noticing the code and config package versions as the service version has been updated and technically they are the code and config packages for a newer version of the service package. |
No, this is not right. Changing only Service version won't work. Think of whole application package as a tree where version number should start changing from the leaf node. Non-Leaf nodes should have highest values of their children. For the scenario, where you want to upgrade only the config, you will increase version of |
Ok, Great. Just one last question. If the upgrade fails on any one of the update domain and the specified failure action is Rollback, Will the upgrade be rolled back to the previous version for all of the update domains including those on which the upgrade had succeeded, or it will only be rolled backed on the current update domain to its previous version? |
@ashishnegi So everything works as expected and only those services get upgraded which are intended to, i.e whose version numbers have been updated. But once in a while suddenly the deployment fails resulting in the generation of same build layout invalid and package missing error. For this particular release it doesn't get fixed unless you updated the version numbers of all of the services which means you force all of your services to be upgraded. It looks that it is comparing the diff package to something else other than the package residing in the ImageStore? Could you please shed some light on what could be happening wrong? |
@muradkhateeb78 sorry, I didn't see your last question earlier.
Yes, on all the upgrade domains. You should see only one version of your app running at a time, when no upgrade/rollback is going on or has finished. |
Do you have reproducible steps ? |
Hi,
SF Application details
I have an SF app and I had enabled application upgrade for my application while deploying on cloud. The architecture and a bit of other details regarding my application can be found at the git issue https://github.com/Azure/service-fabric-issues/issues/1372.
Issue/Error
![git error](https://user-images.githubusercontent.com/24789672/55158958-ebc99b00-5181-11e9-9012-5d3b136b7e7e.PNG)
Details about the error
I am using a diff package so I had intentionally removed the code and config packages for the service named in the error above, because I didn't want that service to be upgraded. The version number of this service in the service manifest is the same as the version number of the same service deployed on the cluster. Ideally, it should not be looking for the code package as it is not intended to be upgraded. Is there any other indicator other than the updated version number that the SF platform uses to judge whether a service is intended to be upgraded or not?
This issue does not come always. The upgrade gets completed most of the time. This issue also appears with other services at times.
R&D at my end
I had gone through a couple of related git issues like microsoft/service-fabric-issues#837 and microsoft/service-fabric-issues#595 and upon investigating I found that the SF SDK 's script Publish-UpgradedServiceFabricApplication.ps1 specifies a connection string parameter in Test-ServiceFabricApplicationPackage --which is defined in the cluster manifest. Also the version number has not been updated indicating the services has not intended to be upgraded and hence there is a diff package for this particular service.
Any thoughts?
The text was updated successfully, but these errors were encountered: