Project

Profile

Help

Task #3078

closed

pulp 3 ansible installer does not create a systemd unit file for the webserver

Added by dkliban@redhat.com over 6 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
Installer - Moved to GitHub issues
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 27
Quarter:

Description

The user should be able to start the webserver using systemd. The pulp3_systemd ansible role already creates a systemd file for the pulp_workers. However, it fails to create one for the web server.

Actions #1

Updated by dkliban@redhat.com over 6 years ago

  • Subject changed from pulp 3 ansible installer does not create a systemd unit file the webserver to pulp 3 ansible installer does not create a systemd unit file for the webserver
Actions #2

Updated by Ichimonji10 over 6 years ago

This issue can be solved by creating a unit named e.g. pulp-manager-runserver in ~/.config/systemd/user/. It can then be managed with commands like systemctl --user start pulp-manager-runserver. Also see loginctl(1), especially the stuff related to lingering.

Actions #3

Updated by amacdona@redhat.com over 6 years ago

I'm not convinced we should run the django webserver with systemd. Maybe this should wait until we have apache or nginx.

Actions #4

Updated by dkliban@redhat.com over 6 years ago

We should do it this way for now. When we add nginx or httpd, we will create systemd unit files for them also. The user will have to choose which one she wants.

Actions #5

Updated by amacdona@redhat.com over 6 years ago

  • Groomed changed from No to Yes

I'm convinced. We aren't guaranteeing this for production.

Actions #6

Updated by amacdona@redhat.com over 6 years ago

  • Tracker changed from Issue to Task
  • % Done set to 0
  • Sprint Candidate changed from No to Yes
Actions #7

Updated by jortel@redhat.com over 6 years ago

  • Sprint/Milestone set to 46
Actions #8

Updated by Ichimonji10 over 6 years ago

  • Assignee set to Ichimonji10

I'm taking the liberty of assigning this to myself, both because I'm working on it, and also because this issue is on the sprint for the benefit of QE.

Actions #9

Updated by amacdona@redhat.com over 6 years ago

  • Status changed from NEW to ASSIGNED

Added by Ichimonji10 over 6 years ago

Revision cafd0171 | View on GitHub

Run the development Pulp 3 webserver for testing

Make the pulp-3-dev-{os} jobs run the development webserver after Pulp 3 has been installed, so that it can be smashed. Do so by simply executing pulp-manager runserver … as the "pulp" user. This is a hacky and awful solution, because among other things, it makes process management a pain. Stopping the dev webserver requires manually hunting down and killing processes. Restarting the dev webserver is worse.

However, this is intended to be a temporary solution that's only in place until the devs figure out how Pulp 3 is supposed to run. When a solution that integrates with Apache/Nginx/LightTPD/etc is devised, this can be dropped.

See: https://pulp.plan.io/issues/3078

closes #3078

Actions #10

Updated by Ichimonji10 over 6 years ago

See: https://github.com/pulp/pulp_packaging/pull/442

The proposed solution doesn't make use of systemd at all. It's totally doable, but the proposed solution is even simper. For an exmaple of what the systemd-based solution might look like, see master...Ichimonji10:pulp-3-webserver-systemd.

Actions #11

Updated by Ichimonji10 over 6 years ago

  • Status changed from ASSIGNED to MODIFIED
  • % Done changed from 0 to 100
Actions #12

Updated by bmbouter about 6 years ago

  • Sprint set to Sprint 27
Actions #13

Updated by bmbouter about 6 years ago

  • Sprint/Milestone deleted (46)
Actions #14

Updated by daviddavis almost 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #15

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)
Actions #16

Updated by bmbouter over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions #17

Updated by bmbouter almost 4 years ago

  • Category set to Installer - Moved to GitHub issues
  • Tags deleted (Pulp 3 installer)

Also available in: Atom PDF