Comments (4)
from lokomotive-kubernetes.
Just now deleted .terraform and the (remote) terraform.tfstate and it 'compiles' again, seems to be a temporary bug/feature due to a large? refactor.
Thanks, closing this issue
from lokomotive-kubernetes.
@DGollings thanks for reporting. maybe you can try removing . terraform
directory and running terraform init
again?
from lokomotive-kubernetes.
@DGollings I checked it and there is indeed an issue when updating to 2512344, I was able to reproduce it.
The problem is that template_dir
resource from bootkube
module holds the reference to the old path to bootkube
module generated by Terraform via source_dir
parameter. Then when planning, it tries to stat it and returns an error if the path does not exist anymore.
I'm not sure if that's the right approach yet, but it seems, that removing those resources from state and letting Terraform recreate them solves the issue:
$ terraform state list | grep template_dir | grep bootkube
module.controller.module.bootkube.template_dir.bootstrap-manifests
module.controller.module.bootkube.template_dir.calico[0]
module.controller.module.bootkube.template_dir.kubelet
module.controller.module.bootkube.template_dir.kubernetes
$ terraform state rm module.controller.module.bootkube.template_dir.bootstrap-manifests module.controller.module.bootkube.template_dir.calico[0] module.controller.module.bootkube.template_dir.kubelet module.controller.module.bootkube.template_dir.kubernetes
Removed module.controller.module.bootkube.template_dir.kubernetes
Removed module.controller.module.bootkube.template_dir.kubelet
Removed module.controller.module.bootkube.template_dir.bootstrap-manifests
Removed module.controller.module.bootkube.template_dir.calico[0]
Successfully removed 4 resource instance(s).
You can try this out.
Another workaround would be to create a symlink to satisfy terraform_dir
:
ln -s ./controller/bootkube .terraform/modules/controller.bootkube
Then run terraform apply
, so template_dir
resources can update their path.
from lokomotive-kubernetes.
Related Issues (20)
- packet: Investigate slowness when deploying big CLC snippets
- Conformance tests are failing on 1.17 HOT 4
- Packet: Feature Request: Consider enabling multipathd by default HOT 8
- Packet: Empty CLC causes silent failure HOT 4
- Align and set proper provider constraints across all modules
- kube-hunter CI job is flaky HOT 9
- Linkerd installation broken - no apiserver client ca file HOT 6
- docs/conformance are out of date
- [Packet] Automatic node_private_cidr HOT 9
- [Packet] sig-storage-local-static-provisioner recently stopped working HOT 5
- Adding more controlplane nodes fails on Packet
- Adding/removing controller nodes to existing cluster does not work
- Use of Cluster API
- Lokomotive Disk type specific RAID Setup optimizations HOT 1
- Document RAID-related vars
- packet: Mounts inside /mnt/ can't be used by pods HOT 2
- packet: Consider removing tf variable setup_raid_* HOT 1
- packet: Consider using afterburn to simplify setup_raid_* flags HOT 5
- Difference between Lokomotive and typhoon HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lokomotive-kubernetes.