Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

baremetal: fix terraform non-parallel execution #1478

Merged
merged 1 commit into from
Jun 2, 2021

Conversation

ipochi
Copy link
Member

@ipochi ipochi commented Jun 2, 2021

In order to limit the number of cnocurrent operations as Terraform walks
the graph, -parallelism=n is used, with a default value of 10.

When rotating certificates, it is desirable to limit parallelism to 1,
so that certificates are rotated one by one and we still have quorum.

In baremtal platform, there is a case of missing hiphen before
parallelism:

current - return ex.Apply([]string{"parallelism=1"})
correct - return ex.Apply([]string{"-parallelism=1"})

Hence the following error:

stat parallelism=1: no such file or directory

This commit provides the fix by correcting the code in question.

Signed-off-by: Imran Pochi imran@kinvolk.io

In order to limit the number of cnocurrent operations as Terraform walks
the graph, `-parallelism=n` is used, with a default value of 10.

When rotating certificates, it is desirable to limit parallelism to `1`,
so that certificates are rotated one by one and we still have quorum.

In baremtal platform, there is a case of missing hiphen before
`parallelism`:
```
current - return ex.Apply([]string{"parallelism=1"})
correct - return ex.Apply([]string{"-parallelism=1"})
```

Hence the following error:

```
stat parallelism=1: no such file or directory
```

This commit provides the fix by correcting the code in question.

Signed-off-by: Imran Pochi <imran@kinvolk.io>
@invidian
Copy link
Member

invidian commented Jun 2, 2021

I don't think there are 3 reviewers required for such trivial fix.

@ipochi ipochi removed request for iaguis and surajssd June 2, 2021 06:58
@ipochi ipochi merged commit 6ca9fb3 into master Jun 2, 2021
@ipochi ipochi deleted the imran/fix-baremetal-parallelism-terraform branch June 2, 2021 06:58
@invidian invidian added this to the v0.9.0 milestone Jul 16, 2021
@invidian invidian added the bug Something isn't working label Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants