Skip to content

fix: mount disk using cloud init#195

Merged
d-costa merged 3 commits into
runatlantis:mainfrom
nosportugal:d-costa/fix-mount
Jun 26, 2026
Merged

fix: mount disk using cloud init#195
d-costa merged 3 commits into
runatlantis:mainfrom
nosportugal:d-costa/fix-mount

Conversation

@d-costa

@d-costa d-costa commented Dec 4, 2025

Copy link
Copy Markdown
Collaborator

what

  • Properly format and mount disk with cloud-init.

why

We are replacing our Atlantis deployment with latest commit and found out the VM with persistent disk do not mount properly.
Although contents exist on /mnt/disks/gce-containers-mounts/gce-persistent-disks/atlantis-disk-0, the VM is actually seeing /mnt/disks path with 256K only due to tmpfs

references

@d-costa d-costa requested a review from a team as a code owner December 4, 2025 12:41
@d-costa

d-costa commented Dec 4, 2025

Copy link
Copy Markdown
Collaborator Author

thanks for the heads up @DesmondH0👍
let me know if this works for you!

i tested on my side and df reported the ~50 GB

Signed-off-by: David Costa <33375428+d-costa@users.noreply.github.com>
@DesmondH0

Copy link
Copy Markdown
Contributor

thanks for the heads up @DesmondH0👍 let me know if this works for you!

i tested on my side and df reported the ~50 GB

Hi @d-costa, thanks for working on this quickly.
I just tested to deploy a new VM on my end and looks good!

@lazzurs

lazzurs commented Dec 12, 2025

Copy link
Copy Markdown

I've just tested this recently and found it works for me too after finding the issue trying to deploy the module.

Comment thread examples/secure-env-vars/startup-script.sh.tftpl Outdated
Co-authored-by: Karolis Pocius <10368398+kpocius@users.noreply.github.com>
Signed-off-by: David Costa <33375428+d-costa@users.noreply.github.com>
@bschaatsbergen

Copy link
Copy Markdown
Contributor

Hey @d-costa, is everything in-place to merge this?

@d-costa

d-costa commented May 4, 2026

Copy link
Copy Markdown
Collaborator Author

@kpocius can you check the new version, please? I saw no issues on my side

@kpocius

kpocius commented May 4, 2026

Copy link
Copy Markdown
Contributor

@kpocius can you check the new version, please? I saw no issues on my side

I'm using this commit in prod, so all good on my end.

@seangordean

Copy link
Copy Markdown

Hey all, just wondering what the current status of this pr is? We're hoping it will be merged soon to help us move off of the gce-container-declaration which is being deprecated on July 31st.

@bschaatsbergen bschaatsbergen enabled auto-merge (rebase) June 24, 2026 21:49
@bschaatsbergen bschaatsbergen disabled auto-merge June 24, 2026 21:50
@d-costa d-costa merged commit 9d64665 into runatlantis:main Jun 26, 2026
6 checks passed
@d-costa d-costa deleted the d-costa/fix-mount branch June 26, 2026 09:27
@seangordean

Copy link
Copy Markdown

Thanks @d-costa and @kpocius. Just wondering if there's going to be a minor release/patch for this? If not, no problem, I can use the commit directly :)

@bschaatsbergen

Copy link
Copy Markdown
Contributor

Thanks @d-costa and @kpocius. Just wondering if there's going to be a minor release/patch for this? If not, no problem, I can use the commit directly :)

Hi @seangordean, we’ve just cut a new release. It’s on its way!

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.

Disk not mounted properly with cloud-init

6 participants