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

Parallels isolation support #211

Merged
merged 9 commits into from
Dec 30, 2020
Merged

Parallels isolation support #211

merged 9 commits into from
Dec 30, 2020

Conversation

edigaryev
Copy link
Contributor

Resolves #198.

@edigaryev edigaryev requested a review from fkorotkov December 29, 2020 16:06
@edigaryev edigaryev requested a review from fkorotkov December 29, 2020 18:32
@edigaryev edigaryev enabled auto-merge (squash) December 29, 2020 22:53

func NewVMClonedFrom(ctx context.Context, vmNameFrom string) (*VM, error) {
vm := &VM{
name: "cirrus-" + uuid.New().String(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe use task id so the error message will be self explanatory and not confusing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's already there:

worker.logger.Errorf("failed to run task %d: %v", agentAwareTask.TaskId, err)

Copy link
Contributor

Choose a reason for hiding this comment

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

But error from prlctl are propagated to user and these errors contain this unique VM name without the task id.

@edigaryev edigaryev requested a review from fkorotkov December 30, 2020 14:35
@edigaryev edigaryev merged commit 22ac92d into master Dec 30, 2020
@edigaryev edigaryev deleted the parallels-isolation branch December 30, 2020 15:03
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.

Support isolation via Parallels VMs in persistent worker mode
2 participants