Comments (9)
Seeing the same issue
from terraform-provider-opennebula.
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.
@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.
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.
@jaypif Is there any guidance on the turn around time around this issue?
Thanks!
from terraform-provider-opennebula.
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.
Thanks for the update @jaypif
from terraform-provider-opennebula.
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.
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)
- opennebula_virtual_machine_group fails to store state after creation HOT 1
- Add `passwd` and `random_passwd` arguments for opennebula_virtual_machine and opennebula_template `graphics` sections HOT 1
- Plugin crashes when trying to decrease virtual machine's raw disk size HOT 3
- Unable to supply credentials using OPENNEBULA_USERNAME and OPENNEBULA_PASSWORD environment variables HOT 6
- Primary IP cannot be changed via ```opennebula_virtual_network_address_range``` HOT 4
- Add floating IP support for vrouter NICs
- Reservation AR_ID cannot be set to 0
- manage permissions for opennebula_datastore
- vlan_id is ignored with opennebula_virtual_network and ovswitch
- `opennebula_marketplace_appliance`: Tainted resource cannot be replaced HOT 1
- `opennebula_marketplace_appliance`: unexpected state 'LOCKED', wanted target 'READY'
- Provider 1.4.0-rc2 crashes when changing marketplace appliance version
- Wrong `random_passwd` type
- Introduce `opennebula_virtual_machine_disk_attachment` to prevent issues when replacing image HOT 1
- `v1.4.0` documentation fixes
- Issue with Services: Unable to Create Reserve from Network HOT 6
- Security group management leads to detach and attach of the NIC HOT 3
- How to set the owner of a virtual network? HOT 3
- ```cpumodel``` Crash report HOT 1
- virtual machine (ID: 14): unexpected state 'POWEROFF', wanted target 'RUNNING'. last error: %!s(<nil>) HOT 2
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 terraform-provider-opennebula.