-
Notifications
You must be signed in to change notification settings - Fork 85
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
Unable to rename redistribution policy #667
Comments
Per the crash log, the problem seems to be here:
The reason for the nil pointer seems to be that the var obj model.LocaleServices
if isPolicyGlobalManager(m) {
client := gm_tier0s.NewDefaultLocaleServicesClient(connector)
gmObj, err1 := client.Get(gwID, localeServiceID)
if err1 != nil {
return handleReadError(d, "Tier0 Redistribution Config", id, err1)
}
lmObj, err2 := convertModelBindingType(gmObj, model.LocaleServicesBindingType(), model.LocaleServicesBindingType())
if err2 != nil {
return err2
}
obj = lmObj.(model.LocaleServices)
} else {
var err error
client := tier_0s.NewDefaultLocaleServicesClient(connector)
obj, err = client.Get(gwID, localeServiceID)
if err != nil {
return handleReadError(d, "Tier0 Redistribution Config", id, err)
}
}
config := obj.RouteRedistributionConfig
d.Set("bgp_enabled", config.BgpEnabled) |
nsxt_policy_gateway_redistribution_config. I don't see config for Destination Protocol ? BGP or OSPF or Both, default it's will always set to BGP, while, my config is ospf |
Hi @nu11ptr, thank you for this report, and the crush is being fixed here #673. |
I think what happened in your case is double redistribution resource that referred to the same router. This is bound to result in concurrency error, since both resources are attempting to destroy same resource. The best workaround for original |
I tried to rename this:
From
GW_REDIST
toGW_T0_1_REDIST
and got this error:So I thought, I'll just comment it out and do it in two steps, but that resulted in this:
At this point, I thought maybe I should try a
terraform refresh
, but that then yielded this crash:The text was updated successfully, but these errors were encountered: