[pve-devel] pve-firewall gui problems

Alexandre DERUMIER aderumier at odiso.com
Tue May 27 17:46:16 CEST 2014


begin to debug:
----------------


in API2/Firewall/VM.pm

$class->register_method({
        name => 'get_options',
  ....
 my $vmfw_conf = PVE::Firewall::load_vmfw_conf($rule_env, $param->{vmid});


$vmfw_conf is empty ...




----- Mail original ----- 

De: "Alexandre DERUMIER" <aderumier at odiso.com> 
À: "Dietmar Maurer" <dietmar at proxmox.com> 
Cc: "pve-devel" <pve-devel at pve.proxmox.com> 
Envoyé: Mardi 27 Mai 2014 17:33:18 
Objet: Re: [pve-devel] pve-firewall gui problems 

>>oh, maybe you used files with old syntax (we now used named options)? 

Just new create vmid.fw 


[OPTIONS] 

enable: 1 

[RULES] 

IN BGP(ACCEPT) 



api rules : ok 
---------------- 
https://kvmtest1.odiso.net:8006/api2/json/nodes/kvmtest1/qemu/123/firewall/rules 
{"data":[{"enable":1,"action":"ACCEPT","pos":0,"digest":"37cb3382b741dda410934c8358d328e4931786d7","type":"in","macro":"BGP"}]} 

api options: empty ? 
-------------------- 
https://kvmtest1.odiso.net:8006/api2/json/nodes/kvmtest1/qemu/123/firewall/options 

{"data":{"digest":"da39a3ee5e6b4b0d3255bfef95601890afd80709"}} 


I have also tested with default config samples, same result. 


----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: "pve-devel" <pve-devel at pve.proxmox.com> 
Envoyé: Mardi 27 Mai 2014 17:14:26 
Objet: RE: [pve-devel] pve-firewall gui problems 

> >>Please can you provide a detailed test case (what do you do exactly (cluster, 
> host, vm))? 
> on a vm, simply edit an option for example) 

oh, maybe you used files with old syntax (we now used named options)? 
_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



More information about the pve-devel mailing list