-
Notifications
You must be signed in to change notification settings - Fork 18
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
AV-228104 add hostrule aliases in map during boot-up #271
Conversation
build amko |
build amko |
hostRules, err := c.hrClientSet.AkoV1beta1().HostRules("").List(context.TODO(), metav1.ListOptions{}) | ||
if err != nil { | ||
gslbutils.Errf("cluster: %s, error in fetching hostrules, %s", c.name, err.Error()) | ||
return |
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.
@arihantg should we continue to next cluster, in case if there is an issue with one cluster to fetch hostrule objects?
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. If we continue we might delete existing GSLB services or pool members.
gslb/ingestion/bootup_handler.go
Outdated
@@ -184,8 +184,8 @@ func HandleBootup(cfg *restclient.Config) (bool, error) { | |||
} | |||
|
|||
if len(amkoClusterList.Items) == 0 { | |||
gslbutils.Logf("No AMKOCluster object found, AMKO would start as leader") | |||
return true, nil | |||
gslbutils.Logf("No AMKOCluster object found, AMKO would stop") |
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.
Can we re-phrase it as No AMKOCluster object found, rebooting AMKO
?
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.
Do we have any bootuptest for it?
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.
Updated the log and added test
gslb/ingestion/bootup_handler.go
Outdated
@@ -184,8 +184,8 @@ func HandleBootup(cfg *restclient.Config) (bool, error) { | |||
} | |||
|
|||
if len(amkoClusterList.Items) == 0 { | |||
gslbutils.Logf("No AMKOCluster object found, AMKO would start as leader") | |||
return true, nil | |||
gslbutils.Logf("No AMKOCluster object found, AMKO would stop") |
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.
Are we fixing another issue as part of this issue? Should we mention that ID to track it?
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.
Have added AV-228538 in description. Also present in commit message
473d6c6
to
4eb2b0f
Compare
build amko |
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.
http://10.80.35.67/cf.html -> FT results for hostrule with customfqdn true
http://10.80.35.67/ns.html -> FT results for hostrule with customfqdn false
This Pr also fixes AV-228538 where we reboot in case amkocluster item list is empty