Bug 978597 - non-scaled applications cannot expose ports externally
Summary: non-scaled applications cannot expose ports externally
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: Jhon Honce
QA Contact: libra bugs
Depends On:
TreeView+ depends on / blocked
Reported: 2013-06-26 21:42 UTC by Luke Meyer
Modified: 2015-06-12 19:18 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-06-12 19:18:46 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Luke Meyer 2013-06-26 21:42:30 UTC
Description of problem:
According to the cartridge writers guide, you can expose an external port on a gear by adding an endpoint in the manifest with Public-Port-Name property. This works for scaled apps, but it does not appear that expose-port is called for non-scaled apps.

Steps to Reproduce:
1. Copy DIY cart to create a new cartridge
2. Add Endpoint at the end of the manifest.yml:
  - Private-IP-Name:   IP
    Private-Port-Name: EXTRA_PORT
    Private-Port:      10000
    Public-Port-Name:  EXTRA_PROXY_PORT
3. Create an app using this cartridge

Actual results:
OPENSHIFT_DIY_EXTRA_PORT is defined but OPENSHIFT_DIY_EXTRA_PROXY_PORT is not and in the mcollective logs, expose-port is never invoked.

Expected results:
expose-port is invoked and OPENSHIFT_DIY_EXTRA_PROXY_PORT is given an external port number.

Additional info:
Demonstrated with my example https://github.com/sosiouxme/diy-extra-port-cartridge/blob/master/metadata/manifest.yml via the cartridge reflector...

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