-
Notifications
You must be signed in to change notification settings - Fork 15
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
Remove omsagent from build image #1732
Remove omsagent from build image #1732
Conversation
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.
A thought about executing a downloaded script. I don't want this to be a blocker though.
deployment/secure_research_desktop/cloud_init/cloud-init-buildimage-ubuntu-2004.mustache.yaml
Outdated
Show resolved
Hide resolved
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.
Happy with this unless @JimMadge thinks otherwise.
deployment/secure_research_desktop/cloud_init/cloud-init-buildimage-ubuntu-2004.mustache.yaml
Outdated
Show resolved
Hide resolved
Great work identifying this @craddm. That is a lot of issue fixed at once! 🎉 |
deployment/secure_research_desktop/cloud_init/cloud-init-buildimage-ubuntu-2004.mustache.yaml
Show resolved
Hide resolved
deployment/secure_research_desktop/cloud_init/cloud-init-buildimage-ubuntu-2004.mustache.yaml
Show resolved
Hide resolved
@@ -405,6 +405,12 @@ runcmd: | |||
# Run installation tests | |||
- python3 /opt/build/check_installation.py || die "Installation check failed!"; | |||
|
|||
# Remove Linux omsagent before generalising the image | |||
- echo ">=== $(date +%s) Removing Linux omsagent ===<" | |||
- wget https://raw.githubusercontent.com/Microsoft/OMS-Agent-for-Linux/c7e1a8f923844f989c8aa7957cee0e89708d821f/installer/scripts/onboard_agent.sh |
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.
deployment/secure_research_desktop/cloud_init/cloud-init-buildimage-ubuntu-2004.mustache.yaml
Show resolved
Hide resolved
…image-ubuntu-2004.mustache.yaml Co-authored-by: James Robinson <[email protected]>
✅ Checklist
Enable foobar integration
rather than515 foobar
).develop
.'[WIP]'
to the title if needed (if you're not yet ready to merge)../tests/AutoFormat_Powershell.ps1 -TargetPath <path to file or directory>
for Powershell).Adds a step to the VM image building process to remove omsagent before the deprovisioning and generalizing of the image. Leaving the omsagent in place prevents its proper use on VMs deployed using the image. As per Microsoft's instructions, a shell script is downloaded and used to uninstall the agent.
VMs deployed using the images can now be successfully connected to the Log Analytics workspace.
This PR also adds a system dependency required for the use of the R package
igraph
-libglpk-dev
.🌂 Related issues
Closes 2 issues related to update management and one other issue with the VM build image
Closes #1403
Closes #1372
Closes #1730
🔬 Tests
Built a new image, deployed a VM based on this image and validated that it is successfully connected to the Log Analytics workspace:
