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

Fix nexus bootstrapping #2818

Merged
merged 8 commits into from
Nov 3, 2022
Merged

Fix nexus bootstrapping #2818

merged 8 commits into from
Nov 3, 2022

Conversation

jjgriff93
Copy link
Collaborator

@jjgriff93 jjgriff93 commented Nov 3, 2022

Resolves #2785

What is being addressed

Due to the introduction of template pipelines and changing the firewall rule addition/removal step to occur outside the main bundle's terraform, a race condition was introduced where the Nexus bundle was being deployed and then the firewall rules (that it relied on to connect to ubuntu key server, packages.microsoft.com and docker.com) were being applied afterwards in the pipeline. As the Nexus clouding bootstrapping starts up, this firewall step wasn't always completed in time for it to work, causing regular failures.

How is this addressed

I tried swapping the order so that the firewall pipeline step happens first, however it depends on outputs from the main bundle terraform. After experimenting with a few workarounds the cleanest solution seems to be whitelisting the key server, Microsoft packages and docker fqdns in the main shared-subnet fqdn exceptions as part of the firewall bundle, as these will be whitelisted anyway as per the nexus bundle and are core trusted repositories already whitelisted by the resource processor.

New PR from approved #2811 as test environment had irreversible conflicts

@jjgriff93 jjgriff93 enabled auto-merge (squash) November 3, 2022 17:31
@jjgriff93
Copy link
Collaborator Author

/test

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

Unit Test Results

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit f862a04.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/3387925182 (with refid 4d03461c)

(in response to this comment from @jjgriff93)

Copy link
Member

@marrobi marrobi left a comment

Choose a reason for hiding this comment

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

LGTM

@jjgriff93
Copy link
Collaborator Author

Tests have passed, https://github.com/microsoft/AzureTRE/actions/runs/3387925182 - forcing merge

@jjgriff93
Copy link
Collaborator Author

/test-force-approve

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

🤖 pr-bot 🤖

✅ Marking tests as complete (for commit 2cfff63)

(in response to this comment from @jjgriff93)

@jjgriff93
Copy link
Collaborator Author

/test-force-approve

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

🤖 pr-bot 🤖

✅ Marking tests as complete (for commit f862a04)

(in response to this comment from @jjgriff93)

@jjgriff93 jjgriff93 merged commit 7e0c1ea into main Nov 3, 2022
@jjgriff93 jjgriff93 deleted the jjgriff93/fix-nexus-bootstrapping branch November 3, 2022 19:25
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.

Nexus fails to deploy with cloud-init failure (Failed to import key from key server)
2 participants