Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 902159 Details for
Bug 1104320
[RFE] update pulp_worker-*.service configuration so that starting ensures all resources are initialized
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
reproducer bash script
reproducer.sh (text/plain), 1.46 KB, created by
mkovacik
on 2014-06-04 12:02:04 UTC
(
hide
)
Description:
reproducer bash script
Filename:
MIME Type:
Creator:
mkovacik
Created:
2014-06-04 12:02:04 UTC
Size:
1.46 KB
patch
obsolete
>#!/bin/bash >set -x > >### About ># demonstrates that pulp_worker-*.service doesn't wait till all necessary pulp-worker ># resources are ready although the systemd unit reports pulp-worker process as started ># see https://bugzilla.redhat.com/show_bug.cgi?id=1104320 > >function services() { > # print service names filtered by given pattern > local pattern=$1 > shift > systemctl list-unit-files | egrep "${pattern}" | sed 's,\s\+.*,,' >} > ># start clean >systemctl stop `services 'pulp|httpd'` >mongo pulp_database --eval "db.dropDatabase()" || exit $? >sudo -u apache pulp-manage-db || exit $? >systemctl start `services 'pulp|httpd'` > ># avoid the same issue we're reproducing >sleep 3 > ># create repo >pulp-admin -u admin -p admin rpm repo create --repo-id zoo --feed http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/ > > >systemctl restart `services pulp_worker-` >date ># there's no way how to check all services work with either is-active/is-failed with systemctl ># following creates a command string: ># true && is-active pulp_worker-1\\n && is-active pulp_worker-2\\n...\ ># to evaluate and check for all pulp-worker services are up and running > >eval "true `services pulp_worker- | sed 's,\(.*\),\&\& systemctl is-active \1\\\\,'`" && { > date; > ( > qpid-stat -q ; > mongo pulp_database --eval "db.available_queues.find().forEach(function(x){printjson(x)}); db.reserved_resources.find().forEach(function(x){printjson(x)})" ; > ) & > pulp-admin -u admin -p admin rpm repo sync run --repo-id zoo >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1104320
:
901871
|
901873
| 902159