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

Problem: Opentofu workspaces not supported with backend http #2329

Open
Khaz66 opened this issue Sep 4, 2024 · 9 comments
Open

Problem: Opentofu workspaces not supported with backend http #2329

Khaz66 opened this issue Sep 4, 2024 · 9 comments
Assignees
Labels

Comments

@Khaz66
Copy link

Khaz66 commented Sep 4, 2024

Issue

I tried to launch my opentofu code with semaphore UI. In my organization, we use our own git to store the tf.state so we use a backend http.

When i launch the task i have a message :

image

It seems that the backend http doesn't support workspaces. Would it be possible to make the use of a workspace optionnal ?

Impact

Other

Installation method

Binary

Database

MySQL

Browser

Firefox

Semaphore Version

2.10.22-e44910d-1721658299

Ansible Version

No response

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

OpenTofu v1.8.1

@fiftin fiftin added the bug label Sep 17, 2024
@fiftin fiftin self-assigned this Sep 17, 2024
@github-project-automation github-project-automation bot moved this to To triage in Bugfixing Sep 17, 2024
@jriberg
Copy link

jriberg commented Sep 23, 2024

I have the same issue. Haven't found any workarounds

jriberg added a commit to jriberg/semaphore that referenced this issue Sep 24, 2024
Now the command to chose workspace is not ran if the workspace name is 'default' in the inventory.

Related to semaphoreui#2329
@jriberg
Copy link

jriberg commented Sep 24, 2024

I made a fix here in this PR. I'm using my branch right now in my own environment.

Pull Request

@jriberg
Copy link

jriberg commented Sep 25, 2024

you can tryout my updated docker image from dockerhub

@zancres
Copy link

zancres commented Sep 26, 2024

I've been having the same error when trying to use terraform remote state (HCP backend) since it uses a custom workspace I would think.

@jriberg
Copy link

jriberg commented Sep 26, 2024

@zancres please try my image that I linked above, it have my fix in it and works good for me both at home and at the company I'm working for at the moment

@salustre
Copy link

salustre commented Dec 1, 2024

@fiftin Please tell me are there any chances to fix this bug soon? The change proposed by @jriberg looks reasonable, maybe there could also be an option not to choose workspace at all, in the job definition. Best regards.

@fiftin
Copy link
Collaborator

fiftin commented Dec 1, 2024

@fiftin Please tell me are there any chances to fix this bug soon? The change proposed by @jriberg looks reasonable, maybe there could also be an option not to choose workspace at all, in the job definition. Best regards.

The PR solves one problem and create another.

The ability to turn off workspaces looks not very good for me.

I think we need to check if workspaces works for a repo.

@salustre
Copy link

salustre commented Dec 1, 2024

I believe there's still no support for workspaces, when using the http backend.

@salustre
Copy link

salustre commented Dec 5, 2024

Some workaround should be implemented for sure, because in the current state the opentofu/terraform functionality i pretty much useless for http backend users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: To triage
Development

No branches or pull requests

5 participants