-
Notifications
You must be signed in to change notification settings - Fork 20
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
refactor(eip): Refactor eip using egoscale v3 #642
base: master
Are you sure you want to change the base?
Conversation
// Comment for reviewer: | ||
// Is there a way to get the created Elastic IP address or UUID ??? | ||
// Listing all of them and comparing Addressfamily, Description,... doesn't really garantee uniquess | ||
// TODO: Remove comment before merging | ||
ElasticIP: "", | ||
Zone: c.Zone, |
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.
yes you need to get the op
after waiting and there is the op.Reference.ID
check if reference not nil before using
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.
Is there a way to get the op
from the decorateAsyncOperations
??
As this function is only returning an error if it happens ??!!
// Message for reviewer: | ||
// It always returns the list of all instances. Why ??? | ||
// When no instance attached to Elastic IP, should returned an empty list | ||
// When some instances attached to elastic IP, should returns only the attached instances | ||
// Am I doing something wrong here ?? Is the ip-address parameter taking the Elastic IP into account ?? | ||
// TODO: remove comment before merging | ||
instances, err := client.ListInstances(ctx, v3.ListInstancesWithIPAddress(elasticIPID)) |
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.
I'll try to reproduce, thanks for reporting
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.
The list-instance option is still not working.
My guess is that in egoscale
, the get parameter being added is ipAddress
https://github.com/exoscale/egoscale/blob/v3.1.7/v3/operations.go#L9770 when on the openapi spec the query parameter should be ip-address
.
Same for manager-id
and manager-type
It is just a supposition.
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.
It's a good change!!, we will do another review on it
Update the elastic ip using Egoscale v3.
Some stuff are not working yet: I put some comments in the code, you will see.
Checklist
(For exoscale contributors)
Testing
Create, delete, update ip,...