← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1080550] Re: update host_routes of a subnet returns old information in metaplugin

 

[Expired for neutron because there has been no activity for 60 days.]

** Changed in: neutron
       Status: Incomplete => Expired

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

Title:
  update host_routes of a subnet returns old information in metaplugin

Status in neutron:
  Expired

Bug description:
  Not always. I can't find the reproduce condition. (may be sqlalchemy magic ?)
  This is an example log which the bug occur.
  ---
  $ quantum subnet-show sub1
  +------------------+----------------------------------------------------------+
  | Field            | Value                                                    |
  +------------------+----------------------------------------------------------+
  | allocation_pools | {"start": "10.0.0.2", "end": "10.0.0.254"}               |
  | cidr             | 10.0.0.0/24                                              |
  | dns_nameservers  | 10.0.0.20                                                |
  | enable_dhcp      | True                                                     |
  | gateway_ip       | 10.0.0.1                                                 |
  | host             | IPA-3                                                    |
  | host_routes      | {"destination": "10.0.10.0/24", "nexthop": "10.0.0.200"} |
  |                  | {"destination": "10.0.20.0/24", "nexthop": "10.0.0.200"} |
  | id               | 65f1f1a6-a615-48a1-9c4e-cc4e813aacb9                     |
  | ip_version       | 4                                                        |
  | name             | sub1                                                     |
  | network_id       | 4d0ef4da-f7d1-45a8-8c22-e284264d9145                     |
  | tenant_id        | c34402ac0852467083d496e5d9ed15cc                         |
  +------------------+----------------------------------------------------------+

  ### update one of nexthop to 10.0.0.250
  ### but the infomation remain old in the response body 
  $ curl -v http://172.17.190.3:9696/v2.0/subnets/65f1f1a6-a615-48a1-9c4e-cc4e813aacb9.json -X PUT -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'X-Auth-Token: 59fbde0bec104a8fb4e92765f0beff8c' -d '{"subnet": {"host_routes": [{"nexthop": "10.0.0.250", "destination": "10.0.10.0/24"}, {"nexthop": "10.0.0.200", "destination": "10.0.20.0/24"}]}}'
  * About to connect() to 172.17.190.3 port 9696 (#0)
  *   Trying 172.17.190.3... connected
  > PUT /v2.0/subnets/65f1f1a6-a615-48a1-9c4e-cc4e813aacb9.json HTTP/1.1
  > User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
  > Host: 172.17.190.3:9696
  > Content-Type: application/json
  > Accept: application/json
  > X-Auth-Token: 59fbde0bec104a8fb4e92765f0beff8c
  > Content-Length: 145
  > 
  * upload completely sent off: 145out of 145 bytes
  < HTTP/1.1 200 OK
  < Content-Type: application/json
  < Content-Length: 514
  < Date: Mon, 19 Nov 2012 04:37:17 GMT
  < 
  * Connection #0 to host 172.17.190.3 left intact
  * Closing connection #0
  {"subnet": {"name": "sub1", "enable_dhcp": true, "network_id": "4d0ef4da-f7d1-45a8-8c22-e284264d9145", "tenant_id": "c34402ac0852467083d496e5d9ed15cc", "dns_nameservers": ["10.0.0.20"], "allocation_pools": [{"start": "10.0.0.2", "end": "10.0.0.254"}], "host": "IPA-3", "host_routes": [{"nexthop": "10.0.0.200", "destination": "10.0.10.0/24"}, {"nexthop": "10.0.0.200", "destination": "10.0.20.0/24"}], "ip_version": 4, "gateway_ip": "10.0.0.1", "cidr": "10.0.0.0/24", "id": "65f1f1a6-a615-48a1-9c4e-cc4e813aacb9"}}

  ### it is OK, when show after update.
  ###
  $ quantum subnet-show sub1
  +------------------+----------------------------------------------------------+
  | Field            | Value                                                    |
  +------------------+----------------------------------------------------------+
  | allocation_pools | {"start": "10.0.0.2", "end": "10.0.0.254"}               |
  | cidr             | 10.0.0.0/24                                              |
  | dns_nameservers  | 10.0.0.20                                                |
  | enable_dhcp      | True                                                     |
  | gateway_ip       | 10.0.0.1                                                 |
  | host             | IPA-3                                                    |
  | host_routes      | {"destination": "10.0.10.0/24", "nexthop": "10.0.0.250"} |
  |                  | {"destination": "10.0.20.0/24", "nexthop": "10.0.0.200"} |
  | id               | 65f1f1a6-a615-48a1-9c4e-cc4e813aacb9                     |
  | ip_version       | 4                                                        |
  | name             | sub1                                                     |
  | network_id       | 4d0ef4da-f7d1-45a8-8c22-e284264d9145                     |
  | tenant_id        | c34402ac0852467083d496e5d9ed15cc                         |
  +------------------+----------------------------------------------------------+

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