Skip to content

Commit

Permalink
Merge pull request #512 from kthcloud/dev
Browse files Browse the repository at this point in the history
Fix fallback zone to se-flem-2 instead of se-flem
  • Loading branch information
saffronjam committed Apr 23, 2024
2 parents 6ca86b6 + 20724f8 commit 87ba75a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pkg/workers/confirm/workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func smDeletionConfirmer() error {
}) == -1

if allFinished {
log.Printf("Marking sm %s as deleted", sm.ID)
log.Printf("Marking SM %s as deleted", sm.ID)
err = sm_repo.New().DeleteByID(sm.ID)
if err != nil {
return err
Expand Down Expand Up @@ -108,7 +108,7 @@ func vmDeletionConfirmer() error {
}) == -1

if allFinished {
log.Printf("Marking vm %s as deleted", vm.ID)
log.Printf("Marking VM %s as deleted", vm.ID)
err = vm_repo.New().DeleteByID(vm.ID)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion routers/api/v1/middleware/create_storage_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func CreateSM() gin.HandlerFunc {
"id": smID,
"userId": auth.UserID,
"params": model.SmCreateParams{
Zone: "se-flem",
Zone: "se-flem-2",
},
})

Expand Down
2 changes: 1 addition & 1 deletion service/v1/deployments/deployment_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func (c *Client) Create(id, ownerID string, deploymentCreate *body.DeploymentCre
}

// temporary hard-coded fallback
fallbackZone := "se-flem"
fallbackZone := "se-flem-2"
fallbackImage := createImagePath(ownerID, deploymentCreate.Name)
fallbackPort := config.Config.Deployment.Port

Expand Down
2 changes: 1 addition & 1 deletion service/v1/sms/sm_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (c *Client) Exists(userID string) (bool, error) {
// GetZone returns the deployment zone for the storage manager.
func (c *Client) GetZone() *configModels.Zone {
// Currently, the storage-manager is hosted in se-flem for all users
zone := "se-flem"
zone := "se-flem-2"

return config.Config.GetZone(zone)
}
Expand Down
2 changes: 1 addition & 1 deletion service/v1/vms/vm_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (c *Client) Create(id, ownerID string, dtoVmCreate *body.VmCreate) error {

// Temporary hard-coded fallback
fallback := "se-flem"
deploymentZone := "se-flem"
deploymentZone := "se-flem-2"

params := model.VmCreateParams{}.FromDTOv1(dtoVmCreate, &fallback, &deploymentZone)

Expand Down

0 comments on commit 87ba75a

Please sign in to comment.