Skip to content

Commit

Permalink
Merge branch 'master' into LH6266_server_should_return_404_for_backin…
Browse files Browse the repository at this point in the history
…g_and_backup_resource
  • Loading branch information
innobead committed Jul 11, 2023
2 parents 9f28b19 + 83197d8 commit f159724
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
12 changes: 11 additions & 1 deletion controller/backup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,17 @@ func (bc *BackupController) checkMonitor(backup *longhorn.Backup, volume *longho
if kubernetesStatus.PVCName != "" && kubernetesStatus.LastPVCRefAt == "" {
pvc, _ := bc.ds.GetPersistentVolumeClaim(kubernetesStatus.Namespace, kubernetesStatus.PVCName)
if pvc != nil {
storageClassName = *pvc.Spec.StorageClassName
if pvc.Spec.StorageClassName != nil {
storageClassName = *pvc.Spec.StorageClassName
}
if storageClassName == "" {
if v, exist := pvc.Annotations[corev1.BetaStorageClassAnnotation]; exist {
storageClassName = v
}
}
if storageClassName == "" {
bc.logger.Warnf("Failed to find the StorageClassName from the pvc %v", pvc.Name)
}
}
}

Expand Down
3 changes: 2 additions & 1 deletion controller/volume_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -3647,7 +3647,8 @@ func (c *VolumeController) syncPVCRecurringJobLabels(volume *longhorn.Volume) er
}

if !hasSourceLabel {
c.logger.Warnf("Ignoring recurring job labels on Volume %v PVC %v due to missing source label", volume.Name, pvc.Name)
c.logger.Debugf("Ignoring recurring job labels on Volume %v PVC %v due to missing source label", volume.Name, pvc.Name)

return nil
}

Expand Down
2 changes: 1 addition & 1 deletion engineapi/instance_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (c *InstanceManagerClient) Close() error {
}

if c.diskServiceGrpcClient != nil {
err = multierr.Append(err, c.instanceServiceGrpcClient.Close())
err = multierr.Append(err, c.diskServiceGrpcClient.Close())
}

if c.instanceServiceGrpcClient != nil {
Expand Down
2 changes: 1 addition & 1 deletion types/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ var (
Type: SettingTypeString,
Required: true,
ReadOnly: false,
Default: "Debug",
Default: "Info",
}

SettingDefinitionOfflineReplicaRebuilding = SettingDefinition{
Expand Down

0 comments on commit f159724

Please sign in to comment.