Bug 1477933

Summary: Copy Service Labels on route creating page does not work
Product: OpenShift Container Platform Reporter: XiaochuanWang <xiaocwan>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: XiaochuanWang <xiaocwan>
Severity: low Docs Contact:
Priority: medium    
Version: 3.6.0CC: aos-bugs, jokerman, mmccomas, yapei
Target Milestone: ---   
Target Release: 3.6.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, the "Copy Service Labels" link in the "Create Route" form did not correctly copy the labels from the service to the new route. It has been fixed to copy the selected service's labels.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-08 03:15:23 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 XiaochuanWang 2017-08-03 09:24:32 UTC
Description of problem:
Create service with labels, go to route create page as below:
https://...project/xiaowan-st/create-route?service=database
or https://...project/xiaowan-st/create-route
Select a service and click "Copy Service Labels", the link does not work, nothing happened.


Version-Release number of selected component (if applicable):
OpenShift Master:      v3.6.173.0.2
Kubernetes Master:     v1.6.1+5115d708d7 

How reproducible:
Always

Steps to Reproduce:
1. oc new-app https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-stibuild.json
2. Go to Service -> database -> click "Create route", then scroll down to the "Copy Service Labels" and click it
3. Go to Routes page, click "Create Route", then scroll down to the "Copy Service Labels" and click it

Actual results:
2&3 Nothing happened.

Expected results:
2&3 Since the service is chosen, the labels for database should be filled automatically to route when user click "Copy Service Labels"

Additional info:

Comment 3 Samuel Padgett 2017-08-22 13:16:51 UTC
Note that the copy service labels link was recently removed (in 3.7). The labels are just prefilled now.

https://github.com/openshift/origin-web-console/pull/1940

Comment 4 Samuel Padgett 2017-08-24 18:54:34 UTC
3.6 backport: https://github.com/openshift/origin-web-console/pull/1964

Comment 6 XiaochuanWang 2017-08-29 05:32:41 UTC
Verified on OCP
OpenShift Master:     v3.6.173.0.21
Kubernetes Master:    v1.6.1+5115d708d7 

Labels could be filled in by "Copy Service Labels":
app: ruby-helloworld-sample
template: application-template-stibuild

The labels from service:
  labels:
    app: ruby-helloworld-sample
    template: application-template-stibuild

Comment 8 errata-xmlrpc 2017-09-08 03:15:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2642