Skip to content

Add NIC to instance: validation problems with IP address field #1438

Description

@askfongjojo

Two issues here:

  1. 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).
  2. If an IP address is specified but is invalid (e.g. outside of the subnet range), the Nexus validation error is also unhandled.

Activity

  1. added this to the MVP milestone on Apr 1, 2023
  2. just-be-dev commented on Jul 12, 2023

    @just-be-dev
    Contributor

    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.

  3. self-assigned this
    on Jul 20, 2023
  4. augustuswm commented on Aug 31, 2023

    @augustuswm

    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.

    image

    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"
    }
  5. modified the milestones: MVP, 5 on Nov 16, 2023
  6. david-crespo commented on Dec 11, 2023

    @david-crespo
    Collaborator

    This wasn't fully completely by #1811.

  7. 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
  8. modified the milestones: 5, 6 on Dec 18, 2023
  9. david-crespo commented on Jan 24, 2024

    @david-crespo
    Collaborator

    I wasn't sure, so I confirmed on colo that issue 2 is not a problem anymore.

    2024-01-24-bad-ip-working.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions