Skip to content
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

Merged
merged 2 commits into from
Feb 5, 2025

Conversation

arihantg
Copy link
Contributor

@arihantg arihantg commented Jan 28, 2025

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

@arihantg
Copy link
Contributor Author

build amko

@arihantg
Copy link
Contributor Author

arihantg commented Feb 4, 2025

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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@@ -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")
Copy link
Contributor

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?

Copy link
Contributor

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?

Copy link
Contributor Author

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

@@ -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")
Copy link
Contributor

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?

Copy link
Contributor Author

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

gslb/ingestion/fullsync.go Show resolved Hide resolved
@arihantg arihantg force-pushed the multiplecreatedby branch 2 times, most recently from 473d6c6 to 4eb2b0f Compare February 5, 2025 09:09
@arihantg
Copy link
Contributor Author

arihantg commented Feb 5, 2025

build amko

@arihantg arihantg requested a review from akshayhavile February 5, 2025 09:31
Copy link
Contributor

@akshayhavile akshayhavile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@akshayhavile akshayhavile merged commit eace0bb into vmware:master Feb 5, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants