wsgi_script generated binaries listen on (incorrect) default port 8000

Bug #1629796 reported by James Page
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Aodh
Invalid
Undecided
Unassigned
Ceilometer
Invalid
Undecided
Unassigned
OpenStack AODH Charm
Fix Released
High
Unassigned
Ubuntu Cloud Archive
Fix Released
High
Unassigned
aodh (Ubuntu)
Fix Released
High
Unassigned
ceilometer (Juju Charms Collection)
Fix Released
High
Unassigned
ceilometer (Ubuntu)
Fix Released
High
Unassigned

Bug Description

As a result of the switch in aodh and ceilometer to using pbr's wsgi_script to generate the <pkg>-api binary, the API daemons now listen on port 8000 (the default as provided by this capability), rather than the port specified in the relevant projects configuration file:

$ /usr/bin/aodh-api
2016-10-03 08:40:49.162 26809 INFO aodh.api.app [-] Full WSGI config used: /etc/aodh/api_paste.ini
********************************************************************************
STARTING test server aodh.api.app.build_wsgi_app
Available at http://10.5.19.209:8000/
DANGER! For testing only, do not use in production
********************************************************************************

snip from /etc/aodh/aodh.conf

[api]
port = 8032

this is fixable in packaging via the systemd unit configuration file, but it does mean that currently the process will never listen on the port as specified in the projects configuration file.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: aodh-api 3.0.0~rc1-0ubuntu2~cloud0 [modified: lib/systemd/system/aodh-api.service] [origin: Canonical]
ProcVersionSignature: Ubuntu 4.4.0-38.57-generic 4.4.19
Uname: Linux 4.4.0-38-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CrashDB:
 {
                "impl": "launchpad",
                "project": "cloud-archive",
                "bug_pattern_url": "http://people.canonical.com/~ubuntu-archive/bugpatterns/bugpatterns.xml",
             }
Date: Mon Oct 3 08:41:11 2016
Ec2AMI: ami-0000044a
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.small.osci
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
PackageArchitecture: all
SourcePackage: aodh
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
James Page (james-page) wrote :
summary: - aodh-api process listens on incorrect port
+ wsgi_script generated binaries listen on (incorrect) default port 8000
Changed in cloud-archive:
status: New → Triaged
Changed in aodh (Ubuntu):
status: New → Triaged
Changed in cloud-archive:
importance: Undecided → High
Changed in ceilometer (Ubuntu):
status: New → Triaged
Changed in aodh (Ubuntu):
importance: Undecided → High
Changed in ceilometer (Ubuntu):
importance: Undecided → High
Revision history for this message
Julien Danjou (jdanjou) wrote :

The options have been removed from the projects, so they're now used.

Changed in ceilometer:
status: New → Invalid
Changed in aodh:
status: New → Invalid
Revision history for this message
Julien Danjou (jdanjou) wrote :

s/now/not/

James Page (james-page)
Changed in ceilometer (Juju Charms Collection):
status: New → Triaged
importance: Undecided → High
Changed in charm-aodh:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ceilometer - 1:7.0.0~rc3-0ubuntu1

---------------
ceilometer (1:7.0.0~rc3-0ubuntu1) yakkety; urgency=medium

  [ Corey Bryant ]
  * d/control: oslo.log min version level in global-requirements is too low,
    so set min version to upper-constraints level (LP: #1628883).

  [ James Page ]
  * d/ceilometer-api.service.in: Set listen port to 8777 to ensure that the
    wsgi_script generated binary actually listens on the correct port,
    configurable using a systemd override if need be.
    (LP: #1629796).
  * New upstream release candidate for OpenStack Newton.

 -- James Page <email address hidden> Mon, 03 Oct 2016 12:48:38 +0100

Changed in ceilometer (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceilometer (master)

Reviewed: https://review.openstack.org/381068
Committed: https://git.openstack.org/cgit/openstack/charm-ceilometer/commit/?id=ac4d584e51dcb5a1f2d6de65a13578d01c059c99
Submitter: Jenkins
Branch: master

commit ac4d584e51dcb5a1f2d6de65a13578d01c059c99
Author: James Page <email address hidden>
Date: Mon Oct 3 13:05:26 2016 +0100

    Updates for OpenStack Newton

    Ceilometer switched to using wsgi_script to generate the
    ceilometer-api binary; this resulted in a few packaging changes,
    including one which means the listen port for Ceilometer API is
    set via the systemd unit, rather than the ceilometer.conf
    configuration file.

    Add systemd override file handling for ceilometer-api, including a
    small workaround which ensures that the systemd daemon loads the
    override configuration file when it changes (only possible during
    config-changed with enabling SSL support).

    This charm should switch to using Apache + mod_wsgi next cycle, at
    which point all of that can just be dropped.

    Change-Id: Ic8b359d0b91fda144925f5c75044f919e73aadd9
    Closes-Bug: 1629796

Changed in ceilometer (Juju Charms Collection):
status: Triaged → Fix Committed
James Page (james-page)
Changed in cloud-archive:
status: Triaged → Fix Committed
Revision history for this message
James Page (james-page) wrote :

This bug was fixed in the package aodh - 3.0.0~rc1-0ubuntu3~cloud0
---------------

 aodh (3.0.0~rc1-0ubuntu3~cloud0) xenial-newton; urgency=medium
 .
   * New update for the Ubuntu Cloud Archive.
 .
 aodh (3.0.0~rc1-0ubuntu3) yakkety; urgency=medium
 .
   * d/aodh-api.service.in: Set listen port to 8042 to ensure that the
     wsgi_script generated binary actually listens on the correct port,
     configurable using a systemd override if need be.
     (LP: #1629796).

Changed in cloud-archive:
status: Fix Committed → Fix Released
Revision history for this message
James Page (james-page) wrote :

This bug was fixed in the package ceilometer - 1:7.0.0~rc3-0ubuntu1~cloud0
---------------

 ceilometer (1:7.0.0~rc3-0ubuntu1~cloud0) xenial-newton; urgency=medium
 .
   * New upstream release for the Ubuntu Cloud Archive.
 .
 ceilometer (1:7.0.0~rc3-0ubuntu1) yakkety; urgency=medium
 .
   [ Corey Bryant ]
   * d/control: oslo.log min version level in global-requirements is too low,
     so set min version to upper-constraints level (LP: #1628883).
 .
   [ James Page ]
   * d/ceilometer-api.service.in: Set listen port to 8777 to ensure that the
     wsgi_script generated binary actually listens on the correct port,
     configurable using a systemd override if need be.
     (LP: #1629796).
   * New upstream release candidate for OpenStack Newton.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package aodh - 3.0.0~rc1-0ubuntu3

---------------
aodh (3.0.0~rc1-0ubuntu3) yakkety; urgency=medium

  * d/aodh-api.service.in: Set listen port to 8042 to ensure that the
    wsgi_script generated binary actually listens on the correct port,
    configurable using a systemd override if need be.
    (LP: #1629796).

 -- James Page <email address hidden> Mon, 03 Oct 2016 12:04:26 +0100

Changed in aodh (Ubuntu):
status: Triaged → Fix Released
James Page (james-page)
Changed in charm-aodh:
status: Triaged → Fix Released
Changed in ceilometer (Juju Charms Collection):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.