I have a container which shows the follow error when I try to set values via the terminal:
I have tested with other values (such as "-unprivileged") and I receive the same error. Note that the set function actually does succeed, it's just a bit unnerving and I'd like to find out why if possible.
I found this message in the PVE codebase here: https://git.proxmox.com/?p=pve-stor...3a5027a83b569b9259a;hb=refs/heads/master#l262
... however I'm a bit stumped at this point, and my knowledge of how Proxmox works is very minimal, so I'm having a hard time tracking down what is going on.
Here is the .conf file for the container I'm looking at:
Any ideas what is triggering this message?
Code:
root@my-host-name:~# pct set 132 -protection 0
storage does not support content type 'none'
I have tested with other values (such as "-unprivileged") and I receive the same error. Note that the set function actually does succeed, it's just a bit unnerving and I'd like to find out why if possible.
I found this message in the PVE codebase here: https://git.proxmox.com/?p=pve-stor...3a5027a83b569b9259a;hb=refs/heads/master#l262
Code:
sub decode_value {
my ($class, $type, $key, $value) = @_;
my $def = $defaultData->{plugindata}->{$type};
if ($key eq 'content') {
my $valid_content = $def->{content}->[0];
my $res = {};
foreach my $c (PVE::Tools::split_list($value)) {
if (!$valid_content->{$c}) {
warn "storage does not support content type '$c'\n";
next;
}
$res->{$c} = 1;
}
if ($res->{none} && scalar (keys %$res) > 1) {
die "unable to combine 'none' with other content types\n";
}
return $res;
} elsif ($key eq 'format') {
my $valid_formats = $def->{format}->[0];
if (!$valid_formats->{$value}) {
warn "storage does not support format '$value'\n";
next;
}
return $value;
} elsif ($key eq 'nodes') {
my $res = {};
foreach my $node (PVE::Tools::split_list($value)) {
if (PVE::JSONSchema::pve_verify_node_name($node)) {
$res->{$node} = 1;
}
}
# fixme:
# no node restrictions for local storage
#if ($storeid && $storeid eq 'local' && scalar(keys(%$res))) {
# die "storage '$storeid' does not allow node restrictions\n";
#}
return $res;
}
... however I'm a bit stumped at this point, and my knowledge of how Proxmox works is very minimal, so I'm having a hard time tracking down what is going on.
Here is the .conf file for the container I'm looking at:
Code:
root@my-host-name:~# cat /etc/pve/nodes/my-host-name/lxc/132.conf
arch: amd64
cores: 8
hostname: test-host-name
memory: 1024
net0: name=eth0,bridge=vmbr1,firewall=1,hwaddr=<SOME MAC ADDRESS>,ip=dhcp,type=veth
ostype: debian
protection: 0
rootfs: local-zfs:subvol-132-disk-0,size=16G
swap: 1024
unprivileged: 1
Any ideas what is triggering this message?