-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat(all): add base
and constraints
config options to charm tf modules
#61
feat(all): add base
and constraints
config options to charm tf modules
#61
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good - the variable descriptions in particular are much improved.
One thing is I'm seeing an error at the end of deployments (the application appears to deploy successfully anyway):
$ tofu apply -var="model_name=charmed-hpc" -auto-approve
[...]
juju_application.sackd: Creating...
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to juju_application.sackd, provider "provider[\"registry.opentofu.org/juju/juju\"]" produced an
│ unexpected new value: .constraints: was cty.StringVal(""), but now cty.StringVal("arch=amd64").
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
which I don't get with current main
:
$ tofu apply -auto-approve
[...]
juju_application.sackd: Creating...
juju_application.sackd: Creation complete after 2s [id=charmed-hpc:login-node]
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
Outputs:
app_name = "login-node"
provides = {
"slurmctld" = "slurmctld"
}
Could just be my environment - have you seen the same?
It's consistent with tofu
and terraform
.
Hmm... I'll need to check. Not sure if that's something we can control through our Terraform plan. IIRC the provider will supply its own defaults if certain resource fields are left blank. |
@dsloanm digging further into your issue, seems like we've accidentally stumbled upon this issue with the Terraform provider: juju/terraform-provider-juju#344. TL;DR is that Juju automatically applies the constraint Easiest fix here is to just change the default to |
Signed-off-by: Jason C. Nucciarone <nuccitheboss@ubuntu.com>
Signed-off-by: Jason C. Nucciarone <nuccitheboss@ubuntu.com>
Signed-off-by: Jason C. Nucciarone <nuccitheboss@ubuntu.com>
Signed-off-by: Jason C. Nucciarone <nuccitheboss@ubuntu.com>
Signed-off-by: Jason C. Nucciarone <nuccitheboss@ubuntu.com>
Signed-off-by: Jason C. Nucciarone <nuccitheboss@ubuntu.com>
Signed-off-by: Jason C. Nucciarone <nuccitheboss@ubuntu.com>
Signed-off-by: Jason C. Nucciarone <nuccitheboss@ubuntu.com>
Signed-off-by: Jason C. Nucciarone <nuccitheboss@ubuntu.com>
Signed-off-by: Jason C. Nucciarone <nuccitheboss@ubuntu.com>
Signed-off-by: Jason C. Nucciarone <nuccitheboss@ubuntu.com>
8f38317
to
2fd2cae
Compare
@dsloanm should be resolved now 😎 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, no issues with the apply now. LGTM!
This PR adds the
base
andconstraints
configuration options to the Slurm charm tf modules. This way we can specify different bases, and request specific instance types through OpenTofu/Terraform. This PR also adds READMEs for each of the modules to document both inputs and outputs.