NO-ISSUE Add info logs to install and update progress apis
It will help us when debugging and searching for install and update progress flows
It provide the request id in order to see the flows
@@ -1167,6 +1167,7 @@ func (b *bareMetalInventory) InstallCluster(ctx context.Context, params installe
var cluster common.Cluster
var err error
+ log.Infof("preparing for cluster %s installation", params.ClusterID)
if err = b.db.Preload("Hosts", "status <> ?", models.HostStatusDisabled).
First(&cluster, "id = ?", params.ClusterID).Error; err != nil {
return common.NewApiError(http.StatusNotFound, err)
@@ -3119,6 +3120,7 @@ func (b *bareMetalInventory) GetCredentials(ctx context.Context, params installe
func (b *bareMetalInventory) UpdateHostInstallProgress(ctx context.Context, params installer.UpdateHostInstallProgressParams) middleware.Responder {
log := logutil.FromContext(ctx, b.log)
var host models.Host
+ log.Info("Update host %s install progress", params.HostID)
if err := b.db.First(&host, "id = ? and cluster_id = ?", params.HostID, params.ClusterID).Error; err != nil {
log.WithError(err).Errorf("failed to find host %s", params.HostID)
return installer.NewUpdateHostInstallProgressNotFound().
