You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add NIC to instance: validation problems with IP address field #1438
When adding a network interface to an existing instance, user can simply specify the VPC and subnet without a specific IP address. However, the address k/v pair is still passed to the API call with an empty value, resulting in an unhandled 400 error (i.e. the operation failed silently and the popup remains open).
If an IP address is specified but is invalid (e.g. outside of the subnet range), the Nexus validation error is also unhandled.
Ran into this just now. Looking at Nexus it looks like it is intentional that the ip address is optional. I think the bug here is the the console is sending an empty string value when it should be omitting it.
changed the title [-]Add NIC to instance: IP address is not optional and related validation errors are not handled[/-][+]Add NIC to instance: validation problems with IP address field[/+]on Dec 11, 2023
Activity
just-be-dev commentedon Jul 12, 2023
Nexus lists the IP as nullable which is why it's optional in console. If it's required we should make an API update to reflect that.
augustuswm commentedon Aug 31, 2023
Ran into this just now. Looking at Nexus it looks like it is intentional that the ip address is optional. I think the bug here is the the console is sending an empty string value when it should be omitting it.
The request sent on submission looks like:
{"name":"net0","description":"","ip":"","subnet_name":"default","vpc_name":"default"}and the response is:
{ "request_id": "6f39a0ab-a4eb-4904-bc42-9b1e8911e9e2", "message": "unable to parse JSON body: ip: invalid IP address syntax at line 1 column 39" }david-crespo commentedon Dec 11, 2023
This wasn't fully completely by #1811.
[-]Add NIC to instance: IP address is not optional and related validation errors are not handled[/-][+]Add NIC to instance: validation problems with IP address field[/+]david-crespo commentedon Jan 24, 2024
I wasn't sure, so I confirmed on colo that issue 2 is not a problem anymore.
2024-01-24-bad-ip-working.mp4