diff --git a/controllers/heat_controller.go b/controllers/heat_controller.go index 1d1cf438..bab798f3 100644 --- a/controllers/heat_controller.go +++ b/controllers/heat_controller.go @@ -1077,13 +1077,19 @@ func (r *HeatReconciler) ensureStackDomain( return ctrl.Result{}, err } + // Get service project + project, err := os.GetProject(r.Log, "service", "default") + if err != nil { + return ctrl.Result{}, err + } + // Create Heat user userID, err := os.CreateUser( r.Log, openstack.User{ Name: heat.StackDomainAdminUsername, Password: password, - ProjectID: "service", + ProjectID: project.ID, DomainID: domainID, }) if err != nil {