cosmic icon indicating copy to clipboard operation
cosmic copied to clipboard

NullPointerException returned when changing VPN Customer Gateway settings

Open shoekstra opened this issue 5 years ago • 0 comments

When trying to modify an existing VPN Customer Gateway via the API NullPointerException: is returned:

$ cloudmonkey list vpncustomergateways id=cc9942b9-e953-4f2b-88e6-05467b6c1075
count = 1
vpncustomergateway:
name = terraform-foo
id = cc9942b9-e953-4f2b-88e6-05467b6c1075
account = ...
cidrlist = 10.0.1.0/24
domain = SBP
domainid = f7842270-6097-45af-ad1e-a678e06d0f22
dpd = False
esplifetime = 86400
esppolicy = aes256-sha1
forceencap = False
gateway = 1.2.3.4
ikelifetime = 86400
ikepolicy = aes256-sha1;modp1024
ipsecpsk = test


$ cloudmonkey update vpncustomergateway id=cc9942b9-e953-4f2b-88e6-05467b6c1075 cidrlist=10.0.1.0/24 gateway=1.2.3.4 esppolicy=aes256-sha1 ikepolicy='aes256-sha1;modp2048' ipsecpsk=test
Async job 35181e0a-e1b8-43b3-9204-79952c79cc4c failed
Error 530, NullPointerException:
accountid = 1ac7a8ae-c639-4f8c-b934-a01e23be7cab
cmd = com.cloud.api.command.user.vpn.UpdateVpnCustomerGatewayCmd
created = 2019-02-24T16:18:13+0100
jobid = 35181e0a-e1b8-43b3-9204-79952c79cc4c
jobprocstatus = 0
jobresult:
errorcode = 530
errortext = NullPointerException:
jobresultcode = 530
jobresulttype = object
jobstatus = 2
userid = 1fac3ec1-0ae7-40d7-85b5-83d073c77aac

Can't replicate this when modifying properties of the VPN Customer Gateway via the UI, after saving and refreshing the new settings are visible (and returned correctly via the API).

shoekstra avatar Feb 24 '19 15:02 shoekstra