Skip to content

Allow multi node jobs#5

Draft
shapovalovts wants to merge 17 commits into
masterfrom
feature/multi-node-jobs
Draft

Allow multi node jobs#5
shapovalovts wants to merge 17 commits into
masterfrom
feature/multi-node-jobs

Conversation

@shapovalovts

Copy link
Copy Markdown
Member

No description provided.

shapovalovts and others added 3 commits June 20, 2026 12:47
Harden Azure home mount bootstrap checks

Implement Azure explicit customData wiring

Refine Azure customData injection

Align Azure tests with explicit customData

Tighten Azure bootstrap error handling

Clarify Azure compute VM dependencies

Finalize Azure customData validation

Rename Azure private IP variable

Harden Azure customData test selection

Extract Azure network API version constant
@shapovalovts shapovalovts self-assigned this Jun 21, 2026
@shapovalovts shapovalovts marked this pull request as draft June 21, 2026 18:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds Azure multi-node partition support by introducing a validated VM count parameter, generating additional compute VMs from the ARM template, and updating cloud-init to configure shared /home via NFS across nodes.

Changes:

  • Replace the single-VM Azure deployment behavior with template cloning to add compute NIC/VM/extension resources when count > 1.
  • Update Azure cloud-init and ARM template parameters to support multi-node bootstrapping (NFS packages, main/compute placeholders, secure storage key injection).
  • Modernize async tests away from asynctest and add new unit tests covering VM count parsing, template expansion, and customData placeholder replacement.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
test/test_openstack.py Switch async test base class from asynctest to unittest.IsolatedAsyncioTestCase.
test/test_azure.py Switch async test base class; update count behavior and add invalid-count test.
test/test_azure_custom_data.py New tests validating customData placeholder injection and shell quoting.
test/test_azure_connector.py New unit tests for VM count parsing, multi-node ARM template cloning, and rollback behavior.
swmcloudgate/routers/azure/templates/partition.json Add storageKey secure parameter, restrict admin username, fix authorized_keys path, and require explicit vmNameMain.
swmcloudgate/routers/azure/templates/cloud-init.yaml Install NFS packages required for shared home in multi-node deployments.
swmcloudgate/routers/azure/templates/cloud-init.sh Add NFS server/client setup, placeholder-driven VM context, and safer shell quoting for credentials.
swmcloudgate/routers/azure/partitions.py Rename log field and convert VM count validation failures into 400 Bad Request.
swmcloudgate/routers/azure/connector.py Add VM count parsing, multi-node resource cloning, ARM customData placeholder replacement, and deployment rollback on failure.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread swmcloudgate/routers/azure/connector.py Outdated
Comment thread swmcloudgate/routers/azure/connector.py Outdated
Comment thread test/test_azure_custom_data.py
@shapovalovts shapovalovts marked this pull request as ready for review June 22, 2026 22:50
shapovalovts and others added 2 commits June 22, 2026 18:51
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Comment thread swmcloudgate/routers/azure/templates/cloud-init.sh
Comment thread swmcloudgate/routers/azure/connector.py Outdated
Comment thread test/test_azure.py
Comment thread test/test_azure.py Outdated
Comment thread test/test_openstack.py Outdated
shapovalovts and others added 3 commits June 22, 2026 18:56
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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