Showing posts with label upgrade. Show all posts
Showing posts with label upgrade. Show all posts

Saturday, 23 May 2026

Fix Keda Upgrade on AKS with Helm Fail Due to Field Ownership Conflicts

 AKS runs an internal mutating component called the admissionsenforcer (part of the AKS-managed "admissions enforcer" / addon-manager). After KEDA's ValidatingWebhookConfiguration (keda-admission) is created, AKS automatically injects a namespaceSelector into every webhook entry to exclude AKS control-plane / managed namespaces (so KEDA's webhooks never intercept system pods). When it does this, it takes Server-Side Apply (SSA) field ownership of those namespaceSelector fields under the field manager named admissionsenforcer. 

So after the first deploy:

  • keda-admission webhook exists
  • AKS has mutated .webhooks[*].namespaceSelector and now owns those fields

In the second deploy, the KEDA chart  tries to re-apply the same ValidatingWebhookConfiguration with the field manager helm. SSA detects that helm wants to set fields already owned by admissionsenforcer → field ownership conflict:


Sunday, 29 April 2018

Visual Source Safe (VSS) to TFS Migration

In modern software development usage of only a source control mechanism would not add value to the software delivery process. However, some organizations still using Visual Source Safe (VSS) to manage their source code, but it is unsupported tool as of now and they should consider moving their code bases to a different tool. As a fully DevOps capable ALM tool TFS is a good choice to move the code from VSS. Let’s look at the steps required to perform such a migration of VSS code, including history.

Saturday, 30 December 2017

Updating TFS Build Agents from Version 1.xx to 2.xx After TFS Upgrade 2018 from TFS 2015

If you have upgraded the TFS from TFS 2015 to TFS 2018 you will encounter a situation where your vNext build agents 1.xx are no longer valid. You will get a message in the Agent Pool/Queue indicating that the agents are deprecated and you need to migrate them. Let’s understand the steps required to migrate your TFS build agents from 1.xx to 2.xx.

Monday, 25 December 2017

TFS 2015.2 to TFS 2018 Upgrade–Lesson Learnt

It is great if the latest updates to TFS can be applied as and when they are released. But for a large organization it might not be sometimes easy. There may be few version gaps when you try to upgrade your TFS. Let’s discuss a problem with SQL server, faced while upgrading from TFS 2015.2 to TFS 2018, and how can it be fixed without getting into deeper troubles. This upgrade was done after a pre production trial using a clone of the TFS 2015.2, and no issues faced during TFS2015.2 from to TFS 2018 in the trial steps, which were exactly followed in production, except for clone TFS 2015.2 of course. Still in a production scenario you might run into unexpected Smile.

Tuesday, 7 November 2017

Moving TFS 2005 Collection to TFS 2013.3 – Plan, Execution & Lessons Learnt

Many organizations still use old platforms and they are reluctant to move to new platform with fear of failure in doing the move. But hanging onto older products would not give any benefit as well as it would eventually fail to meet the demands of the modern business and software development requirements. Visual Studio Team System 2005 (TFS 2005) is such old tool, but still people using it for the production work. Let’s have a look at steps taken to move a TFS 2005  as a collection into TFS 2013.3 (again this is not the latest version, but this client demand was to get it to 2013.3), and the thing to keep an eye on to avoid any issues in the move.

Saturday, 14 February 2015

Upgrade Guide - VS Release Management Server - 2013.2 to 2013.4

This is a step by step guide to upgrade VS Release management Server from 2013.2 to the latest update 2013.4.
1. Backup
Take a backup of release management database is a must before running the upgrade. It will be the only option to recover from a failure in upgrade process.
1
2 
3

2. Backup config files of RM Service and RM Web.
It is important to take backup of cofig files of the RM Service and Web since there could be some special config changes made to these files while setting up RM Server initially.
4
5
Backups of config files.
6
As long as backup of Release Management database and config files available recovering from a failure upgrade would not be an issue.
3. Uninstall VS RM 2013.2 (Old version)
It would not be possible to install VS RM 2013.4 without uninstalling the previous version. Below error would be given in such attempt.
Uninstalling will not remove any of the previous release information or release templates, paths,  environment configurations etc. since all those details are available in release management database and the uninstall will not change/delete the release management database.
8

Uninstall release management client (If installed) in release management server machine.
9
10
12
Uninstall release management server.
13
14
15
16
17
Make sure release management server and client uninstalled in release management server machine.
18
4. Install Release Management Server 2013.4
19
20
21

Click launch in above screen loads the configuration window.
5. Configure release management server.
Test the rmservice account and release management url and click Apply Settings. Provide SQL server name of the server containing the existing(current) release management database
22
Create database will not create a new database. it will update the existing release management database.
23
24

6. Install release management client.
Install release management client in the release management server machine to mange it.
25
26
27
 28
7. Connect client to release management server.
Connect release management server to client and verify previous data availability.
29
Click Yes
30
Previous release details available.
31
TFS connection to release management active.
31_1
Release templates are available.
32
Release management website working.
33
Previously configured deployment agents are available and ready. Deployment agents can be upgraded later and they will work without upgrade to them as well.
34
Release paths are unchanged.
35
The above confirms upgrade looks successful. It is possible to do further verifications using RM Client and doing a trial release or two in a demo environment.
36
37
7. Release management service and web, config file changes, update.
There could be changes made to config files, such as ApprovalRequestEmailLanding, which enables to connect to online available release management web site via a mobile phone etc, to do release pipeline approvals. These changes need to be reapplied in release management web and service config files. The backups of config files made in step 2 (2. Backup config files of RM Service and RM Web.) come in handy for this effort. It is not advisable to replace the new configs entirely with backup config files. Only required changes should be updated carefully to new config files referring the backup config files.
For example without the changes applied the email approval request link will not work without network or vpn connection to domain network which release management server belongs to.
View request here linked to local network url.
38
This can be updated in ApprovalRequestEmailLanding configuration in config files of web and service of the release management.
39
40
Once this is updated the online release management web site link in View Request for approval request emails is set by RM server.
44
8. Release management client previous versions with release management server 2013.4. in another machine.
If release management server is updated to 2013.4, all release management clients connecting to it should be updated to 2013.4. Release management client 2013.2 cannot connect to release management server 2013.4.
45
Once upgrade to release management client by uninstalling 2013.2 and installing 2013.4 allows connection to release management server 2013.4.
After upgrading client to 2013.4 there could be an incorrect configuration shown mixing up https and http when connecting initially.
47
This can be fixed by selecting HTTP option and then selecting HTTPS option again.
48
The client in outside release management server machine succeeds connecting to release management server.
49

Sunday, 4 January 2015

Bring Test Controller 2012.2 Online After Upgrading TFS Server to 2013.4

Recently I have done a TFS upgrade from 2012.2 to 2013.4 with a hardware move. DNS settings changed to access new TFS server using the previous TFS URL. All went well and I when I started TFS 2012.2 build farm (plan to upgrade them later) it was working as expected.
Started the test controllers and when viewed in MTM Lab Center the controllers shown offline.
1
My plan was to upgrade the test controllers later since currently lot of lab environments in use. Event viewer in test controller indicated an error.
2
Restarted test controller service, restarted test controller machine, but was not helpful.
3
Tried clean TFS cache in Test Controller machine.
4
All of above was not helpful. So I decided to take a risk and reconfigure the test controller 2012.2 with the new TFS (2013.4) server. My only worry was what will happen to the existing lab environments after reconfiguring test controller.
5
6
After reconfiguring everything was smoothly working. All my previously up and running labs were working as expected.
7
8

Popular Posts