Bug 2112353 - lifecycle.posStart hook does not have network connectivity.
Summary: lifecycle.posStart hook does not have network connectivity.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.10
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.11.z
Assignee: Nadia Pinaeva
QA Contact: zhaozhanqi
URL:
Whiteboard:
Depends On: 2081562
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-29 13:04 UTC by OpenShift BugZilla Robot
Modified: 2022-08-24 08:19 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-23 15:09:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift sdn pull 453 0 None open [release-4.11] Bug 2112353: setup network policy rules during pod creation to fix postStart hook 2022-07-29 13:05:44 UTC
Red Hat Product Errata RHSA-2022:6103 0 None None None 2022-08-23 15:10:24 UTC

Comment 4 zhaozhanqi 2022-08-18 03:52:21 UTC
Verified this bug on 4.11.0-0.nightly-2022-08-17-152830 with 

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: httpd
spec:
  serviceName: "httpd"
  replicas: 1
  selector:
    matchLabels:
      app: httpd
  template:
    metadata:
      labels:
        app: httpd
    spec:
      containers:
      - name: httpd
        image: registry.redhat.io/rhel8/httpd-24:1-191
        ports:
        - containerPort: 80
          name: web
        lifecycle:
          postStart:
            exec:
              command:
              - /bin/sh
              - -c
              - curl -k https://172.30.0.1:443 > /tmp/urltest.txt

Comment 6 errata-xmlrpc 2022-08-23 15:09:42 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 (Moderate: OpenShift Container Platform 4.11.1 bug fix and security update), 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/RHSA-2022:6103


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