Roberto Brunetti

ASP.NET - Mobility
Team System

SharePoint Conference

.NET Programming

Corsi

SharePoint

TFS Upgrade

Pomeriggio di riposo :-) Da adesso (sono le 15.05) inizio l'upgrade del moi Team Foundation Server RC verso la versione finale.

E' previsto anche l'upgrade dalla Beta3 alla versione final: http://go.microsoft.com/fwlink/?LinkID=60341

Per verificare la versione installata controllare la dll drive:\%PROGRAMFILES%\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\Services\Bin\Microsoft.TeamFoundation.dll.
La 8.0.50727.127 è la versione RC, mentre la 8.0.50727.43 è la versione Beta3.

Ricordo che TFS Finale (sia Workgroup che Standard) richiedono SQL Server 2005 versione Standard... La versione Developer (su cui poteva girare Beta3 e RC) non è più supportata.

Riporto passo passo quanto mi accade.

Per prima cosa due note sulle modifiche alle strutture:

1) la versione finale usa un indice Date & Time (al posto di un indice Integer) sulla dimensione Date del cubo OLAP. Tutti i report custom che lavorano con tale dimensione devono essere aggiornati
2) I process template sono stati aggiornati. Tutte le eventuali personalizzazioni effettuate su MSF for Agile - V4.0 e MSF for CMMI - v4.0 devono essere salvati prima dell'upgrade e ricaricati al termine dell'upgrade.

Passi da seguire

1) Eseguire il Check-in di tutti i Custom Report eventuali
2) Eseguire il Check.in di tutti i file (non menzionato nella guida) di tutti i progetti
3) Scompattare il tutto scaricato
4)
Lanciare dal command prompt TFSUpgradeRTM.exe servername /verify. Viene richieto anche se inviare a MS eventuali problematiche di upgrade.
   N.B. Se non trovate tale file e trovate TFSUpgrade.exe avete scaricato l'upgrade dalla Beta3 alla RC e non verso la versione finale

Questo il risultato sulla mia macchina
C:\temp\tfsupgradefinal>tfsupgradertm robtfs /verify
Automatically send error reports and usage data to Microsoft? (Error reports inc
lude information regarding the condition of Visual Studio 2005 Team Foundation S
erver when an error occurred, your hardware configuration, and other data. Error
 reports may unintentionally include personal information, which will not be use
d by Microsoft. Usage data includes anonymous information about your hardware co
nfiguration and how you use the upgrade utilities).(Y/N):y

Verifying Upgrade Prerequisites

DB ServerName : robtfs
Log File      : TFSUpgradeRTM-632788113517107424.txt

Connecting to SQL Server robtfs Success
Verify if core team foundation databases exist Success
Fetching Server location for WorkItemAttachments Found - ROBTFS
Fetching Server location for Warehouse Found - ROBTFS
Verifying connection to WIT Attachment server - ROBTFS Success
Verifying connection to Warehouse server Success
Verifying connection to OLAP Server Success
Verifying if WI Attachments DB exist on ROBTFS Success
Fetching Report Server location Found - http://ROBTFS/ReportServer/ReportService
.asmx
Verifying if TFSIntegration DB is RC or greater Success
Verifying if TFSWorkItemTracking DB is RC or greater Success
Verifying if TFSBuild DB is RC or greater Success
Verifying if TFSVersionControl DB is RC or greater Success
Checking if this is a CTP build Success

 Verification of DB's complete

5) Cancellare tutti i Report Custom tramite TFSUpgradeRTM.exe servername /deleteReportsOnly

C:\temp\tfsupgradefinal>tfsupgradertm robtfs /deleteReportsOnly
Are you sure you want to delete reports? (Y/N):y

Automatically send error reports and usage data to Microsoft? (Error reports inc
lude information regarding the condition of Visual Studio 2005 Team Foundation S
erver when an error occurred, your hardware configuration, and other data. Error
 reports may unintentionally include personal information, which will not be use
d by Microsoft. Usage data includes anonymous information about your hardware co
nfiguration and how you use the upgrade utilities).(Y/N):y

Beginning upgrade from Beta3 to RTM

DB ServerName : robtfs
Log File      : TFSUpgradeRTM-632788117055395232.txt

Connecting to SQL Server robtfs Success
Verify if core team foundation databases exist Success
Fetching Server location for WorkItemAttachments Found - ROBTFS
Fetching Server location for Warehouse Found - ROBTFS
Verifying connection to WIT Attachment server - ROBTFS Success
Verifying connection to Warehouse server Success
Verifying connection to OLAP Server Success
Verifying if WI Attachments DB exist on ROBTFS Success
Fetching Report Server location Found - http://ROBTFS/ReportServer/ReportService
.asmx
Verifying if TFSIntegration DB is RC or greater Success
Verifying if TFSWorkItemTracking DB is RC or greater Success
Verifying if TFSBuild DB is RC or greater Success
Verifying if TFSVersionControl DB is RC or greater Success
Checking if this is a CTP build Success

 Verification of DB's complete


Attempting to delete reports from report server
Creating reporting proxy Success
Fetching projects to delete
Deleting : /SalamiManagement... Success
Deleting : /PhoneController... Success
Deleting : /ComeurOnline.Maui... Success
Reports Deleted successfully

 Reports deleted successfully

Come si nota nel mio TFS ci sono i 3 progetti indicati da cui sono stati cancellati i Report Custom

6) Disinstallare Team Foundation server RC. La disinstallazione non rimuove il DB e i dati dei progetti.

BUG nella guida: disinstallare anche TFS Proxy e TFS Build Service se installate sulla stessa macchina in quanto il nuovo setup richiede una macchina "pulita"

7) Disinstallare Team Explorer da tutte le macchine

8) Backuppare i database di TFS

STS_Config_TFS
STS_Content_TFS
ReportServer
ReportServerTempDB
TfsActivityLogging
TfsBuild
TfsIntegration
TfsVersionControl
TfsWarehouse
TfsWorkItemTracking
TfsWorkItemTrackingAttachments

9) Lanciare il tool di upgrade

Sempre dal command prompt lanicare TFSUpgradeRTM.exe nomeserver

Ecco il mio script

C:\temp\tfsupgradefinal>tfsupgradertm robtfs
Are you sure you want to upgrade TeamFoundation databases on robtfs to RTM? (Y/N
):y

Automatically send error reports and usage data to Microsoft? (Error reports inc
lude information regarding the condition of Visual Studio 2005 Team Foundation S
erver when an error occurred, your hardware configuration, and other data. Error
 reports may unintentionally include personal information, which will not be use
d by Microsoft. Usage data includes anonymous information about your hardware co
nfiguration and how you use the upgrade utilities).(Y/N):y

Beginning upgrade from Beta3 to RTM

DB ServerName : robtfs
Log File      : TFSUpgradeRTM-632788141985643168.txt

Connecting to SQL Server robtfs Success
Verify if core team foundation databases exist Success
Fetching Server location for WorkItemAttachments Found - ROBTFS
Fetching Server location for Warehouse Found - ROBTFS
Verifying connection to WIT Attachment server - ROBTFS Success
Verifying connection to Warehouse server Success
Verifying connection to OLAP Server Success
Verifying if WI Attachments DB exist on ROBTFS Success
Fetching Report Server location Found - http://ROBTFS/ReportServer/ReportService
.asmx
Verifying if TFSIntegration DB is RC or greater Success
Verifying if TFSWorkItemTracking DB is RC or greater Success
Verifying if TFSBuild DB is RC or greater Success
Verifying if TFSVersionControl DB is RC or greater Success
Checking if this is a CTP build Success

 Verification of DB's complete


Dropping database TFSWarehouse; Will be recreated during setup Success

Dropping OLAP database TFSWarehouse; Will be recreated during setup Success

Upgrading database TFSWorkItemTracking
Running WorkItemTracking upgrade - UpgradeWIDatabaseStep7DropObjects Success

Upgrading database TFSVersionControl
Running TFSVersionControl upgrade scripts - Step2 Success

Creating stored procedure GetTFSVersion Success
Stamping Database TFSWorkItemTracking with RTM Version Success
Stamping Database TFSIntegration with RTM Version Success
Stamping Database TFSBuild with RTM Version Success
Stamping Database TFSVersionControl with RTM Version Success

 RC UPGRADE TO RTM COMPLETED SUCCESSFULLY

Sending upgrade feedback...

Sending upgrade feedback...

Occhio che il tool indica Beginning upgrade from Beta3 to RTM anche se il tool è quello della versione RC to RTM.

Alcuini database (il Datawarehouse) vengono distrutti in quanto verranno ricreati dalla nuova installazione e alimentati al volo quindi non preoccupatevi.

10) Montare SQL 2005 Standard  se la versione RC era stata montata sulla versione Developer
Se montate SQL fate un bel reboot in quanto la patch successiva monta alcuni file nelle dir temporanee e quindi non riesce a installarsi bene senza un riavvio....meglio farlo adesso quindi :-)
Seguire i passi per il setup indicati nella setup guide del prodotto come se fosse un'installazione pulita.

  Fare logon con l'account creato per il setup (TFSSetup per default)
   Occorre installare: SQL Server Database Services, Analysis Services, Reporting Services, Integration Services, Workstation Component Bol e Development Tool
   Notification Service non è necessario per TFS

   Su Feature Selection scegliere Replicatione selezionare Entire Feature will unvailable (non disponibile)
   Su client component selezionare Management Tool (è l'unico componente necessario)
   Documentazione, Samples e Samples Databaset possono essere deselezionati

   Usare la Default Instance. NON USARE NAMED INSTANCE.
   Usare Local System come account
   Impostare la partenza automatica di TUTTI i servizi (compresi SQL Browser e SQL Server Agent)
   Impostare Windows Authentication (TFS non richiede mai Mixed Mode)
   Per Report Service usare solo le impostazioni di default.

N.B. Il sertup di SQL Server installa il -NET Framework 2.0, SQL Native Client come prerequisiti

11) Installare la patch (KB914595)  recuperabile dal CD di TFS oppure dal link http://go.microsoft.com/fwlink/?LinkId=62015.

OCCHIO: Prima di lanciare il setup usare il Configuration Manager di SQL Server per stoppare il servizio Sql Server Broker

L'eseguibile sul CD è AS2005-KB914595-x86-ENU.exe

OCCHIO: Riavviare il servizio Sql Server Broker e impostare la partenza come Automatic.

12) Installare TFS Final

BUG nella guida: Eliminare da IIS l'application pool di Reporting Services. Prima occorre spostare le due application su un altro Application Pool.

Usare l'ormai famoso account di setup di TFS. Se avete sempre seguito le guide di setup è TFSSetup con password TFSSetup.

Lanciare il Setup e seguire i vari passi.

13) Reinstallare Team Explorer sulle varie macchine.

14) Reinstallare Proxy e/o Buil