Skip to content

Add support for custom VM images in Guacamole user resources#2634

Merged
stuartleeks merged 17 commits into
microsoft:mainfrom
stuartleeks:sl/vm-custom-image
Oct 7, 2022
Merged

Add support for custom VM images in Guacamole user resources#2634
stuartleeks merged 17 commits into
microsoft:mainfrom
stuartleeks:sl/vm-custom-image

Conversation

@stuartleeks

@stuartleeks stuartleeks commented Sep 22, 2022

Copy link
Copy Markdown
Contributor

Resolves #2568

What is being addressed

Extend existing Guacamole user resource templates to simplify using custom VM images.

After these changes, images can be specified by either publisher + offer + sku + version or by image name.

Part of these changes includes optionally specifying an image gallery associated with a TRE (via RP_BUNDLE_VALUES - see templates/workspace_services/guacamole/user_resources/README.md).
When specifying an image by name, the image will be referenced from this image gallery.

This allows a reasonable amount of flexibility:

  • users can have no image gallery associated with the TRE and reference images with publisher + offer + sku + version
  • users can have a single image gallery referenced by multiple TREs and specify images from it
  • users can have separate image galleries per TRE (e.g. for testing new images/templates in a DEV environment before pushing to production)

How is this addressed

  • Describe the changes made, and if appropriate, why they are addressed this way
  • Note any pending work (with links to the issues that will address them)
  • Update documentation
  • Update CHANGELOG.md if needed

Progress:

  • Test conditional logic to set source_image_id or source_image_reference depending on VM image list in bundle
  • Add new porter param value for specifying the image gallery id
  • Add image gallery id as option on TRE Core deployment and pass through to resource processor env vars
  • Update linuxvm/windowsvm user resource bundles to take image gallery id parameter and use this for image IDs
  • Update importreviewvm user resource bundle to take image gallery id parameter and use this for image IDs
  • Add README to user resource bundles explaining how to set image options (including custom images)

@stuartleeks stuartleeks changed the title sl/vm custom image Add support for custom VM images in Guacamole user resources Sep 22, 2022
@github-actions

github-actions Bot commented Sep 26, 2022

Copy link
Copy Markdown

Unit Test Results

0 tests   - 5   0 ✔️  - 4   0s ⏱️ - 2h 33m 31s
0 suites  - 1   0 💤 ±0 
0 files    - 1   0  - 1 

Results for commit f948d3f. ± Comparison against base commit d94d123.

♻️ This comment has been updated with latest results.

@martinpeck martinpeck left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm going to hit "pause" on my review.

I'm finding it hard-going because the formatting changes mean I have to eye-ball each change to see if something other than formatting has changed.

I don't doubt any of the linting/formatting changes are "wrong".

Comment thread devops/scripts/load_env.sh Outdated
Comment thread devops/scripts/load_terraform_env.sh Outdated
Comment thread resource_processor/resources/commands.py Outdated
Comment thread resource_processor/resources/commands.py Outdated
@stuartleeks stuartleeks force-pushed the sl/vm-custom-image branch 2 times, most recently from dc16556 to 02bd33e Compare September 29, 2022 09:17

@marrobi marrobi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Happy with the approach.

My only concern is we area adding an option to the image choice menu for existing templates that will not work out of the box. We have people taking these templates and using them "as is" for evaluation purposes. Having the custom image option will undoubtedly mean issues are created given it will fail.

I think we need a template that uses marketplace images only that users can take for evaluation purposes.

@stuartleeks

Copy link
Copy Markdown
Contributor Author

My only concern is we area adding an option to the image choice menu for existing templates that will not work out of the box. We have people taking these templates and using them "as is" for evaluation purposes. Having the custom image option will undoubtedly mean issues are created given it will fail.

Cool! By the time I publish this PR, the custom image will be removed from the template and just be in the README 😄

@stuartleeks stuartleeks force-pushed the sl/vm-custom-image branch 2 times, most recently from 4a88cb3 to 706fca4 Compare October 3, 2022 18:45
@stuartleeks stuartleeks marked this pull request as ready for review October 4, 2022 07:13
@stuartleeks

Copy link
Copy Markdown
Contributor Author

/test-extended

@github-actions

github-actions Bot commented Oct 4, 2022

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3180136755 (with refid 500167c0)

(in response to this comment from @stuartleeks)

@stuartleeks

Copy link
Copy Markdown
Contributor Author

/test-extended

re-running to see if this was a transient error: https://github.com/microsoft/AzureTRE/actions/runs/3180136755/jobs/5184186720#step:4:537

@github-actions

github-actions Bot commented Oct 4, 2022

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3180910653 (with refid 500167c0)

(in response to this comment from @stuartleeks)

@stuartleeks stuartleeks force-pushed the sl/vm-custom-image branch 2 times, most recently from 9cba616 to 58ba00c Compare October 5, 2022 12:25
Comment thread resource_processor/resources/commands.py Outdated
Comment thread resource_processor/vmss_porter/runner.py Outdated
Comment thread templates/workspace_services/guacamole/user_resources/README.md Outdated
@stuartleeks

Copy link
Copy Markdown
Contributor Author

/test

@github-actions

github-actions Bot commented Oct 5, 2022

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/3190428204 (with refid 500167c0)

(in response to this comment from @stuartleeks)

@stuartleeks

Copy link
Copy Markdown
Contributor Author

/test-destroy-env

@stuartleeks stuartleeks force-pushed the sl/vm-custom-image branch 2 times, most recently from 466dea7 to 3e476cf Compare October 6, 2022 07:38
@stuartleeks

Copy link
Copy Markdown
Contributor Author

/test

@github-actions

github-actions Bot commented Oct 6, 2022

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/3195382152 (with refid 500167c0)

(in response to this comment from @stuartleeks)

@stuartleeks

Copy link
Copy Markdown
Contributor Author

/test

@github-actions

github-actions Bot commented Oct 6, 2022

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/3197316231 (with refid 500167c0)

(in response to this comment from @stuartleeks)

@stuartleeks

Copy link
Copy Markdown
Contributor Author

/test-extended

@github-actions

github-actions Bot commented Oct 6, 2022

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3197596409 (with refid 500167c0)

(in response to this comment from @stuartleeks)

@stuartleeks

Copy link
Copy Markdown
Contributor Author

/test

@github-actions

github-actions Bot commented Oct 6, 2022

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/3198592454 (with refid 500167c0)

(in response to this comment from @stuartleeks)

@stuartleeks

Copy link
Copy Markdown
Contributor Author

/test-extended

@github-actions

github-actions Bot commented Oct 6, 2022

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3199210135 (with refid 500167c0)

(in response to this comment from @stuartleeks)

@stuartleeks

Copy link
Copy Markdown
Contributor Author

/test-force-approve

Test already ran successfully - updates since then are to CHANGELOG

@github-actions

github-actions Bot commented Oct 7, 2022

Copy link
Copy Markdown

🤖 pr-bot 🤖

✅ Marking tests as complete (for commit f948d3f)

(in response to this comment from @stuartleeks)

@stuartleeks stuartleeks merged commit 04ef899 into microsoft:main Oct 7, 2022
@stuartleeks stuartleeks deleted the sl/vm-custom-image branch October 7, 2022 04:44
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.

Guacamole User Resource Templates should support custom images

4 participants