osbornm / AZtoGH

0 stars 0 forks source link

Blueprints - Installed Software - Error adding record to Installed Software table when executing on a server in a remote DC #428

Open osbornm opened 11 years ago

osbornm commented 11 years ago

h2. Steps to reproduce

log into any account

change to a remote DC

run a blueprint to install SQL

h2. Expected result

SQL is installed w/o error and logged to the installed software table

h2. Actual Result

sql installed but BP fails when registering the software installed.

NOTE - we believe this is because the hardware exists in the Primary DC t3main database, but the BP is attempting to log the installed software to the current DC.

Created From: https://agilezen.com/project/48813/story/40

osbornm commented 11 years ago

Matt Weller (12/11/2012) : The problem here is that an int ID is used from the loaded InstallableSoftware using the current datacenter context. This ID is used when saving the InstalledSofware record into the account's primary DC main database (foreign key). The ID used for InstallableSoftware should be changed to be unique like we have done other places.