RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1430427 - 1.4.0 → 1.5.2 regression: selfLink is missing '/' separator
Summary: 1.4.0 → 1.5.2 regression: selfLink is missing '/' separator
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kubernetes
Version: 7.3
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Jan Chaloupka
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
: 1428714 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-08 15:09 UTC by Martin Pitt
Modified: 2017-04-12 14:50 UTC (History)
5 users (show)

Fixed In Version: kubernetes-1.5.2-0.4.gita552679.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-12 14:50:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 6047 0 None None None 2017-03-08 15:09:37 UTC
Red Hat Product Errata RHBA-2017:0947 0 normal SHIPPED_LIVE kubernetes bug fix and enhancement update 2017-04-12 18:32:32 UTC

Description Martin Pitt 2017-03-08 15:09:37 UTC
Description of problem:

In Cockpit we regularly run kubernetes tests. Recently we got a new RHEL-7 base image (https://github.com/cockpit-project/cockpit/pull/6047) which exposed a regression in kubernetes' node resources: the selfLink is missing a '/' separator, so that they now look like:

    selfLink: /api/v1/nodesone

while it should be

    selfLink: /api/v1/nodesone

This leads to "resource not found" errors when trying to do something with that object.

Version-Release number of selected component (if applicable):

Known bad: 1.5.2-0.2.gitc55cf2b.el7
Known good: 1.4.0-0.1.git87d9d8d.el7


How reproducible: Always

Steps to Reproduce:
1. echo '{"kind": "Node", "apiVersion": "v1", "metadata": {"name": "one"}}' | kubectl create  -f -
2. kubectl get nodes -o yaml|less

Actual results:

the part for the "one" node looks like:

- apiVersion: v1
  kind: Node
  metadata:
    creationTimestamp: 2017-03-08T15:02:18Z
    name: one
    namespace: ""
    resourceVersion: "1456"
    selfLink: /api/v1/nodesone

(i. e. missing '/' in selfLink)

Expected results:

  selfLink should be /api/v1/nodes/one

Comment 1 Martin Pitt 2017-03-08 15:10:13 UTC
Severity high as this is a regression.

Comment 2 Martin Pitt 2017-03-08 15:12:01 UTC
The above version numbers were for the "kubernetes", "kubernetes-node" etc. RPMs.

Comment 3 Michal Fojtik 2017-03-08 15:15:56 UTC
Yes, this is broken both in Kube and in Origin and is still being debated here: https://github.com/kubernetes/kubernetes/pull/41011

I'm closing this as this is a known issue. It does not have high priority as the selfLinks are not that useful.

*** This bug has been marked as a duplicate of bug 1413997 ***

Comment 4 Andy Goldstein 2017-03-08 15:22:05 UTC
Is this against an actual kubernetes server or OpenShift?

Comment 6 Martin Pitt 2017-03-08 15:36:49 UTC
Ah, thanks. I didn't find bug 1413997 when searching for dupes, as that was already closed. This is against an actual kubernetes server (as I wrote, the kubernetes-1.5.2-0.2.gitc55cf2b.el7 rpm). I confirm that this is fixed in Fedora 25 already (our regression tests are fine there).

Not sure if this should be re-closed as duplicate or being used to track the fix in RHEL-7?

Comment 7 Andy Goldstein 2017-03-08 15:42:02 UTC
Correcting product/component. Also, the f25 fix contains a patch that hasn't merged to Kubernetes yet. We ideally should pull in a merged patch once it's in.

Comment 9 Martin Pitt 2017-03-10 14:47:18 UTC
*** Bug 1428714 has been marked as a duplicate of this bug. ***

Comment 10 Jan Chaloupka 2017-03-21 12:58:30 UTC
I have applied the same patch in RHEL as well. The selfLink is broken at this point so no matter which patch we apply we only gain.

Comment 14 errata-xmlrpc 2017-04-12 14:50:46 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:0947


Note You need to log in before you can comment on or make changes to this bug.