Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions v1/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ func ValidateInstanceImage(ctx context.Context, instance Instance, privateKey st
}
}()

// If cloud-init is present, wait until it has finished (e.g. UFW/runcmd done).
_, _, _ = sshClient.RunCommand(ctx, "cloud-init status --wait 2>/dev/null || true")

arch, err := validateArchitecture(ctx, sshClient)
if err != nil {
return err
Expand Down
5 changes: 4 additions & 1 deletion v1/providers/nebius/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -1748,7 +1748,10 @@ func (c *NebiusClient) cleanupOrphanedBootDisks(ctx context.Context, testID stri
// This is inspired by Shadeform's LaunchConfiguration approach but uses cloud-init instead of base64 scripts
func generateCloudInitUserData(publicKey string, firewallRules v1.FirewallRules) string {
// Start with cloud-init header
script := "#cloud-config\n"
script := `#cloud-config
packages:
- ufw
`

// Add SSH key configuration if provided
if publicKey != "" {
Expand Down
Loading