Comments (8)
I get the same error and my template had source_file
from the beginning, never used source_raw
.
from terraform-provider-proxmox.
Version v0.18.0 may produce a better error message for such use cases.
from terraform-provider-proxmox.
Ahhh, yes, that was it. Thanks for the details!
I was able to reproduce this error on Windows. The classic problem -- \
vs /
path separator, plus a logic bug in the code.
Will make a fix later this week.
from terraform-provider-proxmox.
Hey @mikwaluk, thanks for the report!
I'd like to clarify the exact use case -- have you applied the original template first, then replaced source_raw
with source_file
, and then tried to apply the updated template when you've got this error message?
from terraform-provider-proxmox.
Hey @codestrong! Would you mind to share your template?
(please redact any private data in it)
from terraform-provider-proxmox.
I'm having a pretty similar problem...
from terraform-provider-proxmox.
Hi @vctrferreira! Would you mind sharing your template and giving a bit more detail about the use case, so I can reproduce it and identify the error? It doesn't seem like I'm able to reproduce it.
My template:
resource "proxmox_virtual_environment_vm" "ubuntu_vm" {
name = "211-test"
node_name = var.virtual_environment_node_name
vm_id = 211
agent {
enabled = true
}
cpu {
cores = 2
}
memory {
dedicated = 2048
}
disk {
datastore_id = "local"
file_id = proxmox_virtual_environment_file.ubuntu_cloud_image.id
interface = "virtio0"
iothread = true
discard = "on"
size = 20
}
initialization {
ip_config {
ipv4 {
address = "dhcp"
}
}
user_data_file_id = proxmox_virtual_environment_file.cloud_config.id
}
network_device {
bridge = "vmbr0"
}
}
resource "proxmox_virtual_environment_file" "ubuntu_cloud_image" {
content_type = "iso"
datastore_id = "local"
node_name = var.virtual_environment_node_name
source_file {
path = "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
}
}
resource "proxmox_virtual_environment_file" "cloud_config" {
content_type = "snippets"
datastore_id = "local"
node_name = var.virtual_environment_node_name
source_file {
path = "files/cloud-config.yaml"
file_name = "terraform-provider-proxmox-example-cloud-config.yaml"
}
}
and files/cloud-config.yaml
#cloud-config
users:
- default
- name: ubuntu
groups:
- sudo
shell: /bin/bash
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAxxxxxxxxxxxxxxxxxxxxxxxx
sudo: ALL=(ALL) NOPASSWD:ALL
runcmd:
- apt update
- apt install -y qemu-guest-agent net-tools
- timedatectl set-timezone America/Toronto
- systemctl enable qemu-guest-agent
- systemctl start qemu-guest-agent
- echo "done" > /tmp/cloud-init-done
works fine 🤔
from terraform-provider-proxmox.
I've already updated the package to the latest version available, still got some errors
this is my resource:
resource "proxmox_virtual_environment_file" "cloud_config" {
content_type = "snippets"
datastore_id = "local"
node_name = "Default"
source_file {
path = "user-data/cloud-config.yaml"
file_name = "cloud-config.yaml"
}
}
The current error:
proxmox_virtual_environment_file.cloud_config: Creating...
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to
│ proxmox_virtual_environment_file.cloud_config, provider
│ "provider[\"registry.terraform.io/bpg/proxmox\"]"
│ produced an unexpected new value: Root resource was
│ present, but now absent.
│
│ This is a bug in the provider, which should be reported
│ in the provider's own issue tracker.
I don't know if this is important but I'm using terraform with Windows 11. maybe this information could be relevant but I also try it with WSL, but got the same error
from terraform-provider-proxmox.
Related Issues (20)
- Allow VM clone to pass with warnings HOT 3
- Missing "none" and "VirGL" to VGA type in proxmox_vm proxmox_virtual_environment_vm HOT 1
- Container volume mount backup flag defaults to true in provider but false in Proxmox, so volume mounts are created with the flag missing. HOT 1
- 0.58.0 VM resource: `expected clipboard to be one of ["vnc"], got .` HOT 1
- Selection of the components you want to be hotpluggable HOT 1
- error creating clonr vm linked clone HOT 6
- Problem with obtain ipv4 addresses for group of nodes HOT 5
- Control the SDN with Terraform HOT 1
- Auto-increase the VM disk size if necessary when provisioning a disk from a `qcow2` image HOT 8
- Proxmox v7.4: Sporadic failure `unable to read tail (got 0 bytes)` on teardown of VMs HOT 3
- VM start fails with large RAM allocation and PCI-E Passthrough HOT 1
- proxmox_virtual_environment_datastores should group attributes in an array scoped to a single datastore HOT 1
- Can't create link clone of LXC Containers. There is no options. HOT 1
- Missing SPICE options for VMs HOT 1
- proxmox_virtual_environment_download_file new attribute: "path_in_datastore" HOT 2
- proxmox_virtual_environment_vm: cdrom / disk import issue HOT 4
- Error cloning template from shared storage
- Intent to contribute: ISO generation for cloud-init disks HOT 6
- proxmox_virtual_environment_container managing mount_points HOT 7
- Cannot create volume mount point in LXC HOT 7
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-proxmox.