Bug 1261452

Summary: [networking_30]'--fields' filter cannot work for router
Product: OKD Reporter: zhaozhanqi <zzhao>
Component: NetworkingAssignee: Clayton Coleman <ccoleman>
Status: CLOSED CURRENTRELEASE QA Contact: Meng Bo <bmeng>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, xtian
Target Milestone: ---   
Target Release: 3.x   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-23 21:18:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description zhaozhanqi 2015-09-09 11:08:29 UTC
Description of problem:
Create router with'--fields' filter, this did work well

Version-Release number of selected component (if applicable):
devenv_fedora_2303
oc v1.0.5-290-g1ba18e6
kubernetes v1.1.0-alpha.0-1605-g44c91b1
images version:
openshift/origin-haproxy-router latest   cb133ec295b8

How reproducible:
always

Steps to Reproduce:
1. Create one router with the latest images
   oadm router --credentials=$KUBECONFIG --service-account=default --latest-images=true
2. oc edit dc router for adding --fields filter
   $ oc edit dc -o json
     <--snip-->
      "args": [
                            "--fields=metadata.name=route-1
                        ],
     <--snip-->
3.  Added multi routes like folloing:
  # oc get route
NAME      HOST/PORT            PATH      SERVICE     LABELS                      TLS TERMINATION
route-1   first.example.com              endpoints   select=first,test=router    
route-2   second.example.com             endpoints   select=second,test=router   
route-3   third.example.com              endpoints   select=third,test=router

4. When the router is re-cerate, rsh into the container and check 'os_http_be.map

Actual results:
2. router pod will be re-created and work well
4. the file os_http_be.map is empty

Expected results:

step 4
 file 'os_http_be.map' should contain one record:
  first.example.com default_route-1
Additional info:

Comment 1 Clayton Coleman 2015-09-11 16:51:40 UTC
https://github.com/openshift/origin/pull/4600

Comment 2 zhaozhanqi 2015-09-14 10:37:50 UTC
Testing this issue on fedora_2334, with the latest origin-haproxy-router images

this issue has been fixed.