GithubHelp home page GithubHelp logo

Comments (9)

ilhaan avatar ilhaan commented on August 25, 2024

Seeing the same issue

from terraform-provider-opennebula.

jaypif avatar jaypif commented on August 25, 2024

Hi,

Context update are not taken into account.
Tags update work but not context change. context change are only possible during VM instantiation. You need to destroy and recreate the resource to apply your changes.

from terraform-provider-opennebula.

Yenya avatar Yenya commented on August 25, 2024

@jaypif - in newer OpenNebula releases (about 5.4+ or so) the context can be updated any time, even when the VM is running. Destroy and recreate is no longer needed. That said, the context is provided in form of an IDE CD, which does not support hotplug in Linux. So the guest cannot be notifed about the context change. But as soon as it mounts the context CD (or reboots inside the same qemu process - no undeploy/deploy is needed), the new context becomes visible. So it would be nice to have the context changes from terraform resource propagated into the ONe state.

My use case is especially the SSH_PUBLIC_KEY context variable: I want to have it configured beforehand, so that I can configure the VM with Ansible as soon as it is created by Terraform, but I cannot overwrite /root/.ssh/authorized_keys in Ansible, because the modification would get destroyed by the contextualization scripts after the reboot (or undeploy/deploy cycle). So when I want to modify the SSH authorized keys for the existing VMs, I have to do it on the ONe context level, which - for VMs created by terraform means doing it on terraform level.

from terraform-provider-opennebula.

Th0masL avatar Th0masL commented on August 25, 2024

Hello,

I can confirm that the Context Update on running VMs now works from the OpenNebula UI, but this does not works from Terraform.

Sadly I don't code in Go so I doubt I will be able to implement a fix for this problem.

from terraform-provider-opennebula.

MEGrimshaw avatar MEGrimshaw commented on August 25, 2024

@jaypif Is there any guidance on the turn around time around this issue?
Thanks!

from terraform-provider-opennebula.

jaypif avatar jaypif commented on August 25, 2024

I cannot commit on an ETA as the maintenance of the provider is performed when we have some bandwidth to do it.

I hope it will be possible to have some time to take a deep view on it in the coming weeks.

I let you know.

Thanks

from terraform-provider-opennebula.

MEGrimshaw avatar MEGrimshaw commented on August 25, 2024

Thanks for the update @jaypif

from terraform-provider-opennebula.

github-actions avatar github-actions commented on August 25, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

from terraform-provider-opennebula.

github-actions avatar github-actions commented on August 25, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days.

from terraform-provider-opennebula.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.