-
Notifications
You must be signed in to change notification settings - Fork 100
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
[bugfix] Resolves deletion of nodes from controller upon destroy (DCNE-152) #1266
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1266 +/- ##
=======================================
Coverage 85.25% 85.25%
=======================================
Files 102 102
Lines 37812 37812
=======================================
Hits 32238 32238
Misses 4118 4118
Partials 1456 1456 ☔ View full report in Codecov by Sentry. |
7122b06
to
84bde0c
Compare
7a85443
to
e194936
Compare
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.
need to fix CI failure
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.
LGTM
0ab8475
to
8d4094d
Compare
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.
LGTM
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.
LGTM
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.
LGTM
|
||
"commission": &schema.Schema{ | ||
Type: schema.TypeString, | ||
Optional: true, |
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.
Ok but this is not part of the DN right? In what scenario would this be provided by a user when it gets read and set in the getAndsetDecommissionedNodes function?
Changed
…ed but not removed from controller).
025a602
to
03f3dc1
Compare
|
||
"commission": &schema.Schema{ | ||
Type: schema.TypeString, | ||
Optional: true, |
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.
could you provide explanation why?
removed optional, for commission and for the rest changes are not made as discussed
03f3dc1
to
6fbc004
Compare
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.
LGTM
|
||
log.Printf("[DEBUG] %s: Destroy finished successfully", d.Id()) | ||
|
||
d.SetId("") | ||
return diag.FromErr(err) | ||
} | ||
func verifyNodeAttachedToSwitch(aciClient *client.Client, serial string) (bool, error) { | ||
switchStatusDn := fmt.Sprintf("client-[%s]", serial) |
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.
see code below where I think it is possible to log the end of this and thus to outcome of the function
f45e6a9
to
df3bc26
Compare
|
||
### Read-Only ### | ||
|
||
* `id` - (string) The distinguished name (DN) of the Fabric Node Member object. |
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.
object
- `pod_id` - (Optional) The pod id of the new Fabric Node Member. Allowed value range: "1" - "254". Default value: "1". | ||
- `role` - (Optional) Role for the new Fabric Node Member. | ||
Allowed values: "unspecified", "leaf", "spine". Default value: "unspecified". | ||
* `annotation` (annotation) - (string) Specifies the annotation of a Fabric Node Member. |
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.
no object
solves #1214