Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

feature: extend demo to work on arm64 #4499

Closed

Conversation

schristoff
Copy link
Contributor

Description: Demo currently uses nodeSelector for scheduling - but this runs into issues when expanding usage to work with arm64.

Testing done: make kind-demo builds properly and was able to run through the demo

Affected area:

Functional Area
New Functionality [ ]
CI System [ ]
CLI Tool [ ]
Certificate Management [ ]
Control Plane [ ]
Demo [ X]
Documentation [ ]
Egress [ ]
Ingress [ ]
Install [ ]
Networking [ ]
Observability [ ]
Performance [ ]
SMI Policy [ ]
Security [ ]
Sidecar Injection [ ]
Tests [ ]
Upgrade [ ]
Other [ ]

Please answer the following questions with yes/no.

  1. Does this change contain code from or inspired by another project?

    • Did you notify the maintainers and provide attribution?
      no
  2. Is this a breaking change?
    no

  3. Has documentation corresponding to this change been updated in the osm-docs repo (if applicable)?
    n/a

@codecov-commenter
Copy link

codecov-commenter commented Feb 2, 2022

Codecov Report

Merging #4499 (924fca4) into main (0c9628f) will decrease coverage by 0.19%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4499      +/-   ##
==========================================
- Coverage   69.24%   69.05%   -0.20%     
==========================================
  Files         216      216              
  Lines       14660    14660              
==========================================
- Hits        10151    10123      -28     
- Misses       4458     4486      +28     
  Partials       51       51              
Flag Coverage Δ
unittests 69.05% <ø> (-0.20%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/crdconversion/crdconversion.go 57.77% <0.00%> (-17.04%) ⬇️
pkg/messaging/workqueue.go 89.28% <0.00%> (-10.72%) ⬇️
pkg/ticker/ticker.go 83.33% <0.00%> (-3.85%) ⬇️
pkg/certificate/rotor/rotor.go 86.95% <0.00%> (+2.17%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0c9628f...924fca4. Read the comment docs.

Makefile Outdated Show resolved Hide resolved
@schristoff schristoff changed the title (wip) feature: remove nodeSelector on demo and allow for demo use on arm (wip) feature: extend demo to work on arm64 Feb 2, 2022
Copy link
Member

@shashankram shashankram left a comment

Choose a reason for hiding this comment

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

The nodeSelector is still required on linux apps so they don't get scheduled onto Windows nodes.

Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
charts/osm/templates/cleanup-hook.yaml Show resolved Hide resolved
demo/deploy-bookbuyer.sh Show resolved Hide resolved
demo/deploy-mysql.sh Outdated Show resolved Hide resolved
demo/deploy-mysql.sh Outdated Show resolved Hide resolved
demo/deploy-vault.sh Outdated Show resolved Hide resolved
demo/multicluster-fault-injection.sh Outdated Show resolved Hide resolved
@schristoff schristoff force-pushed the schristoff_removenodeSelect branch from 78b531a to d843116 Compare February 22, 2022 20:34
.env.example Outdated
# Azure Container Registry (ACR) example: osmci.azurecr.io/osm
export CTR_REGISTRY=localhost:5000
export CTR_REGISTRY=127.0.0.1:5000
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sean and I were running into odd kind registry networking issues when communicating to localhost vs 127.0.0.1
I switched this over, and I do not see any issues hopefully :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Did you figure out why localhost doesn't work?

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 clue, still debugging. It works fine with any other application, though.

Copy link
Member

Choose a reason for hiding this comment

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

Since this issue is very specific to your env and this is an example file, you could override it without needing to change the default here.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's entirely possible 127.0.0.1 is an objectively better default, but we won't know that for sure until we figure out why localhost isn't working.

Copy link
Member

Choose a reason for hiding this comment

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

Regardless, this change seems unrelated to this PR. I'd make this and other similar changes in a separate PR so they can be reviewed in isolation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@shashankram I am confused - can you elaborate on how the change is unrelated to supporting arm users? Would be happy to separate the two out.

Copy link
Member

Choose a reason for hiding this comment

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

running into odd kind registry networking issues when communicating to localhost vs 127.0.0.1
I switched this over

@schristoff This led me to think this is an issue specific to your environment (Kind cluster). Are you suggesting localhost doesn't work on arm64? If yes, I'd add this to the commit and PR description, and also a comment in the example file to not use localhost as we'd want to keep the demo as generic as possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I've now narrowed down the issue (with the help of @nojnhuh ) - your original suggestion is correct @shashankram - I will open up another PR with the appropriate changes. :)

@schristoff schristoff changed the title (wip) feature: extend demo to work on arm64 feature: extend demo to work on arm64 Feb 22, 2022
@schristoff schristoff requested a review from nojnhuh February 22, 2022 21:00
.env.example Outdated
# Azure Container Registry (ACR) example: osmci.azurecr.io/osm
export CTR_REGISTRY=localhost:5000
export CTR_REGISTRY=127.0.0.1:5000
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you figure out why localhost doesn't work?

charts/osm/templates/jaeger-deployment.yaml Show resolved Hide resolved
@@ -49,7 +49,7 @@ spec:
nodeSelector:
kubernetes.io/os: linux
containers:
- image: mysql:5.6
- image: mysql/mysql-server:8.0.28
Copy link
Contributor

Choose a reason for hiding this comment

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

@allenlsy Are there any concerns with bumping the MySQL version as long as the CI passes?

demo/reset-counters.sh Outdated Show resolved Hide resolved
@schristoff schristoff closed this Apr 15, 2022
@schristoff schristoff deleted the schristoff_removenodeSelect branch April 15, 2022 04:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants