← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1363064] [NEW] Cannot set only one of IPv6 attributes while second is None

 

Public bug reported:

When trying to update ipv6 subnet's (created with default None
attributes) ra_mode or address_mode operation is not permited (although
it should be) :

neutron subnet-create --ip-version 6 Test fe80:8888::/40

+-------------------+---------------------------------------------------------------------------+
| Field             | Value                                                                     |
+-------------------+---------------------------------------------------------------------------+
| allocation_pools  | {"start": "fe80:8888::2", "end": "fe80:8888:ff:ffff:ffff:ffff:ffff:fffe"} |
| cidr              | fe80:8888::/40                                                            |
| dns_nameservers   |                                                                           |
| enable_dhcp       | True                                                                      |
| gateway_ip        | fe80:8888::1                                                              |
| host_routes       |                                                                           |
| id                | 720d4f22-ee49-40c9-a865-cb31defcf6bd                                      |
| ip_version        | 6                                                                         |
| ipv6_address_mode |                                                                           |
| ipv6_ra_mode      |                                                                           |
| name              |                                                                           |
| network_id        | 124826a4-77ed-4682-8e39-d9090689cb85                                      |
| tenant_id         | d2b47b4677fb4e30ad1961fb7d51ffdc                                          |
+-------------------+---------------------------------------------------------------------------+

neutron subnet-update 720d4f22-ee49-40c9-a865-cb31defcf6bd --ipv6_address_mode slaac
Invalid input for operation: ipv6_ra_mode set to 'None' with ipv6_address_mode set to 'slaac' is not valid. If both attributes are set, they must be the same value.

neutron subnet-update 720d4f22-ee49-40c9-a865-cb31defcf6bd --ipv6_ra_mode slaac
Invalid input for operation: ipv6_ra_mode set to 'slaac' with ipv6_address_mode set to 'None' is not valid. If both attributes are set, they must be the same value.

Clearly as message states leaving one attribute not set should be allowed (also I've found spec where attributes combinations are disccused)
http://specs.openstack.org/openstack/neutron-specs/specs/juno/ipv6-radvd-ra.html

** Affects: neutron
     Importance: Undecided
     Assignee: Jacek Świderski (jacek-swiderski)
         Status: Confirmed


** Tags: ipv6

** Tags added: ipv6

** Changed in: neutron
       Status: New => Confirmed

** Changed in: neutron
     Assignee: (unassigned) => Jacek Świderski (jacek-swiderski)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1363064

Title:
  Cannot set only one of IPv6 attributes while second is None

Status in OpenStack Neutron (virtual network service):
  Confirmed

Bug description:
  When trying to update ipv6 subnet's (created with default None
  attributes) ra_mode or address_mode operation is not permited
  (although it should be) :

  neutron subnet-create --ip-version 6 Test fe80:8888::/40

  +-------------------+---------------------------------------------------------------------------+
  | Field             | Value                                                                     |
  +-------------------+---------------------------------------------------------------------------+
  | allocation_pools  | {"start": "fe80:8888::2", "end": "fe80:8888:ff:ffff:ffff:ffff:ffff:fffe"} |
  | cidr              | fe80:8888::/40                                                            |
  | dns_nameservers   |                                                                           |
  | enable_dhcp       | True                                                                      |
  | gateway_ip        | fe80:8888::1                                                              |
  | host_routes       |                                                                           |
  | id                | 720d4f22-ee49-40c9-a865-cb31defcf6bd                                      |
  | ip_version        | 6                                                                         |
  | ipv6_address_mode |                                                                           |
  | ipv6_ra_mode      |                                                                           |
  | name              |                                                                           |
  | network_id        | 124826a4-77ed-4682-8e39-d9090689cb85                                      |
  | tenant_id         | d2b47b4677fb4e30ad1961fb7d51ffdc                                          |
  +-------------------+---------------------------------------------------------------------------+

  neutron subnet-update 720d4f22-ee49-40c9-a865-cb31defcf6bd --ipv6_address_mode slaac
  Invalid input for operation: ipv6_ra_mode set to 'None' with ipv6_address_mode set to 'slaac' is not valid. If both attributes are set, they must be the same value.

  neutron subnet-update 720d4f22-ee49-40c9-a865-cb31defcf6bd --ipv6_ra_mode slaac
  Invalid input for operation: ipv6_ra_mode set to 'slaac' with ipv6_address_mode set to 'None' is not valid. If both attributes are set, they must be the same value.

  Clearly as message states leaving one attribute not set should be allowed (also I've found spec where attributes combinations are disccused)
  http://specs.openstack.org/openstack/neutron-specs/specs/juno/ipv6-radvd-ra.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1363064/+subscriptions


Follow ups

References