Systemd support for contrail-api workers is missing

Bug #1748445 reported by Petr Jediný
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Committed
High
Petr Jediný
R4.1
Fix Committed
High
Petr Jediný
Trunk
Fix Committed
High
Petr Jediný

Bug Description

Unlike the supervisord, the systemd support for contrail-api workers is missing. There are no systemd service template units, contrail-status does not have the support to check the template instances.

Tags: provisioning
Petr Jediný (pjediny)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/39631
Submitter: Petr Jediný (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/39631
Committed: http://github.com/Juniper/contrail-controller/commit/98b3f5f46891ecc311e01c5f26b8d27852701533
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 98b3f5f46891ecc311e01c5f26b8d27852701533
Author: Petr Jediný <email address hidden>
Date: Wed Feb 7 16:19:49 2018 +0100

contrail-api systemd template unit support

This requires changes to:
- contrail-status to be able to check workers
- systemd service unit template

Template instance string (part between the "@" character and the
suffix) should be a single digit and it works as worker id.

Warning: using multiple digit number as template instance string in
current setup would lead to "listening" on ports higher than 65536
and it would not work.

Other changes to contrail-api.service files:
- adding /var/lib/contrail to RW Directories to allow interaction
with `keystone-signing` directory
- RestartSec=3s: by default systemd will stop restarting service if it
fails to restart more than five times in ten seconds. To avoid This
rate limit we increase the time between restart to 3s from 100ms.

Closes-Bug: #1748445

Change-Id: If203039f2bec147fe1823fe0b5e8125970f43925

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/39637
Submitter: Petr Jediný (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/39638
Submitter: Petr Jediný (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/39638
Committed: http://github.com/Juniper/contrail-controller/commit/4334d22e046f6385b0eb5adf0b8d1a8448981793
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 4334d22e046f6385b0eb5adf0b8d1a8448981793
Author: Petr Jediný <email address hidden>
Date: Wed Feb 7 16:19:49 2018 +0100

contrail-api systemd template unit support

This requires changes to:
- contrail-status to be able to check workers
- systemd service unit template

Template instance string (part between the "@" character and the
suffix) should be a single digit and it works as worker id.

Warning: using multiple digit number as template instance string in
current setup would lead to "listening" on ports higher than 65536
and it would not work.

Other changes to contrail-api.service files:
- adding /var/lib/contrail to RW Directories to allow interaction
with `keystone-signing` directory
- RestartSec=3s: by default systemd will stop restarting service if it
fails to restart more than five times in ten seconds. To avoid This
rate limit we increase the time between restart to 3s from 100ms.

Closes-Bug: #1748445

Change-Id: If203039f2bec147fe1823fe0b5e8125970f43925
(cherry picked from commit 98b3f5f46891ecc311e01c5f26b8d27852701533)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/39637
Committed: http://github.com/Juniper/contrail-controller/commit/2b8bf3be1f3b9fce8cd04ea0a6fc49b6cd26a908
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit 2b8bf3be1f3b9fce8cd04ea0a6fc49b6cd26a908
Author: Petr Jediný <email address hidden>
Date: Wed Feb 7 16:19:49 2018 +0100

contrail-api systemd template unit support

This requires changes to:
- contrail-status to be able to check workers
- systemd service unit template

Template instance string (part between the "@" character and the
suffix) should be a single digit and it works as worker id.

Warning: using multiple digit number as template instance string in
current setup would lead to "listening" on ports higher than 65536
and it would not work.

Other changes to contrail-api.service files:
- adding /var/lib/contrail to RW Directories to allow interaction
with `keystone-signing` directory
- RestartSec=3s: by default systemd will stop restarting service if it
fails to restart more than five times in ten seconds. To avoid This
rate limit we increase the time between restart to 3s from 100ms.

Closes-Bug: #1748445

Change-Id: If203039f2bec147fe1823fe0b5e8125970f43925
(cherry picked from commit 98b3f5f46891ecc311e01c5f26b8d27852701533)

Jeba Paulaiyan (jebap)
tags: added: provisioning
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/40831
Submitter: Petr Jediný (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/40832
Submitter: Petr Jediný (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/40833
Submitter: Petr Jediný (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/40832
Committed: http://github.com/Juniper/contrail-controller/commit/0a98dd7277791dff770012a5256e278167594a83
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 0a98dd7277791dff770012a5256e278167594a83
Author: Petr Jediný <email address hidden>
Date: Mon Mar 19 19:14:36 2018 +0100

Separate log files for contrail-api workers

Change-Id: I7c185ae78b75627efc4767decfb75f0f28dfd321
Closes-Bug: #1748445

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/40831
Committed: http://github.com/Juniper/contrail-controller/commit/23205ab9290cb0a454ea1523b3e617b92e7677a9
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 23205ab9290cb0a454ea1523b3e617b92e7677a9
Author: Petr Jediný <email address hidden>
Date: Mon Mar 19 19:14:36 2018 +0100

Separate log files for contrail-api workers

Change-Id: I7c185ae78b75627efc4767decfb75f0f28dfd321
Closes-Bug: #1748445

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/40833
Committed: http://github.com/Juniper/contrail-controller/commit/4ff1d98c3754135e9cf49fbeeb2ab984721ddf27
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit 4ff1d98c3754135e9cf49fbeeb2ab984721ddf27
Author: Petr Jediný <email address hidden>
Date: Mon Mar 19 19:14:36 2018 +0100

Separate log files for contrail-api workers

Change-Id: I7c185ae78b75627efc4767decfb75f0f28dfd321
Closes-Bug: #1748445

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.