-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
General fixes after QA #988
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -393,12 +393,14 @@ func (j *JIMM) AddHostedCloud(ctx context.Context, u *dbmodel.User, tag names.Cl | |
} | ||
// Update the cloud in the database. | ||
dbCloud.FromJujuCloud(*ccloud) | ||
zapctx.Debug(ctx, "received cloud info from controller", zap.Any("cloud", dbCloud)) | ||
for i := range dbCloud.Regions { | ||
dbCloud.Regions[i].Controllers = []dbmodel.CloudRegionControllerPriority{{ | ||
ControllerID: region.Controllers[0].ID, | ||
ControllerID: controller.ID, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This feels significant, can you explain what it was doing and why it's changing? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. because this never worked.. notice line 395, where we get information from the controller on the added cloud.. well.. that information does not contain the controller ID.. and this update was failing due to foreign key constraints |
||
Priority: dbmodel.CloudRegionControllerPrioritySupported, | ||
}} | ||
} | ||
zapctx.Debug(ctx, "received cloud info from controller", zap.Any("cloud", dbCloud)) | ||
|
||
if err := j.Database.UpdateCloud(ctx, &dbCloud); err != nil { | ||
// At this point the cloud has been created on the | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we weren't rendering the config.js properly.. the controller url was set to None due to a bug in the dashboard and jimm