Upgrade pulse-dev to latest PulseGuardian

RESOLVED FIXED

Status

Infrastructure & Operations
WebOps: Other
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: mcote, Assigned: cyliang)

Tracking

Details

(Whiteboard: [kanban:https://kanbanize.com/ctrl_board/4/1412] )

(Reporter)

Description

4 years ago
I added support for multiple Pulse users per login to PulseGuardian; I'd like it deployed to pulse-dev for testing.  There's a schema change, but I don't think it's worth migrating anything, so please just blow away the db and recreate it.  guardian.py will need to be restarted after the upgrade.

Updated

4 years ago
Whiteboard: [kanban:https://kanbanize.com/ctrl_board/4/1412]
(Assignee)

Updated

4 years ago
Assignee: server-ops-webops → cliang
(Assignee)

Comment 1

4 years ago
Dropped and recreated the pulseguardian database on pulse-app1.dev.dmz.phx1.mozilla.com.
New code pushed out and apache restarted gracefully.
Restarted the guardian process via supervisorctl.

I'm able to authenticate via Persona but it does not seem to like the username I'm trying to submit ("Unikitty" -> "The submitted username contains non-alphanumeric characters.")


$ sudo ./update
Updating dev pulsewebsite...
pulling from http://hg.mozilla.org/automation/pulsewebsite
searching for changes
no changes found
default
Updating dev pulseshims...
pulling from http://hg.mozilla.org/automation/pulseshims
searching for changes
no changes found
default
Updating dev mozillapulse...
pulling from http://hg.mozilla.org/automation/mozillapulse
searching for changes
adding changesets
adding manifests
adding file changes
added 4 changesets with 9 changes to 7 files
7 files updated, 0 files merged, 0 files removed, 0 files unresolved
default
Updating dev pulseguardian...
remote: Counting objects: 41, done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 41 (delta 12), reused 3 (delta 0)
Unpacking objects: 100% (41/41), done.
From https://github.com/mozilla/pulseguardian
   aac05d9..a028d9d  master     -> origin/master
Updating aac05d9..a028d9d
Fast-forward
 pulseguardian/guardian.py                        |   75 +-
 pulseguardian/management.py                      |   24 +-
 pulseguardian/model/pulse_user.py                |   80 +
 pulseguardian/model/queue.py                     |    4 +-
 pulseguardian/model/user.py                      |   78 +-
 pulseguardian/static/css/bootstrap-theme.css     |   97 +-
 pulseguardian/static/css/bootstrap-theme.css.map |    2 +-
 pulseguardian/static/css/bootstrap-theme.min.css |    6 +-
 pulseguardian/static/css/bootstrap.css           | 5062 ++++++++++++----------
 pulseguardian/static/css/bootstrap.css.map       |    2 +-
 pulseguardian/static/css/bootstrap.min.css       |    6 +-
 pulseguardian/static/css/main.css                |   17 +-
 pulseguardian/static/js/base.js                  |    6 +-
 pulseguardian/static/js/bootstrap.js             |  615 ++-
 pulseguardian/static/js/bootstrap.min.js         |    4 +-
 pulseguardian/static/js/profile.js               |   83 +-
 pulseguardian/templates/base.html                |    4 +-
 pulseguardian/templates/dialogs.html             |   19 +
 pulseguardian/templates/header.html              |   51 +-
 pulseguardian/templates/index.html               |   92 +-
 pulseguardian/templates/profile.html             |  109 +-
 pulseguardian/templates/queues.html              |  110 +-
 pulseguardian/templates/register.html            |   69 +-
 pulseguardian/web.py                             |  169 +-
 24 files changed, 3821 insertions(+), 2963 deletions(-)
 create mode 100644 pulseguardian/model/pulse_user.py
 create mode 100644 pulseguardian/templates/dialogs.html
[2014-10-03 18:47:32] Running rsync_project
[2014-10-03 18:47:32] [localhost] running: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/pulse-dev/src/pulse-dev/ /data/pulse-dev/www/pulse-dev/
[2014-10-03 18:47:32] [localhost] finished: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/pulse-dev/src/pulse-dev/ /data/pulse-dev/www/pulse-dev/ (0.073s)
[2014-10-03 18:47:32] Finished rsync_project (0.074s)
[2014-10-03 18:47:32] Running commit_www
[2014-10-03 18:47:32] [localhost] running: cd /data/pulse-dev/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['pulse-dev']'
[2014-10-03 18:47:32] [localhost] finished: cd /data/pulse-dev/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['pulse-dev']' (0.198s)
[localhost] out: [master 92a1574] deploy [pulse-dev]
[localhost] out: 31 files changed, 3960 insertions(+), 3127 deletions(-)
[localhost] out: create mode 100644 pulse-dev/mozillapulse/test/unittests.py
[localhost] out: rename pulse-dev/pulseguardian/pulseguardian/model/{user.py => pulse_user.py} (56%)
[localhost] out: rewrite pulse-dev/pulseguardian/pulseguardian/model/user.py (79%)
[localhost] out: rewrite pulse-dev/pulseguardian/pulseguardian/static/css/bootstrap-theme.css.map (99%)
[localhost] out: rewrite pulse-dev/pulseguardian/pulseguardian/static/css/bootstrap-theme.min.css (94%)
[localhost] out: rewrite pulse-dev/pulseguardian/pulseguardian/static/css/bootstrap.css.map (96%)
[localhost] out: rewrite pulse-dev/pulseguardian/pulseguardian/static/css/bootstrap.min.css (98%)
[localhost] out: rewrite pulse-dev/pulseguardian/pulseguardian/static/js/bootstrap.min.js (97%)
[localhost] out: create mode 100644 pulse-dev/pulseguardian/pulseguardian/templates/dialogs.html
[localhost] out: rewrite pulse-dev/pulseguardian/pulseguardian/templates/header.html (96%)
[localhost] out: rewrite pulse-dev/pulseguardian/pulseguardian/templates/index.html (94%)
[localhost] out: rewrite pulse-dev/pulseguardian/pulseguardian/templates/profile.html (95%)
[localhost] out: rewrite pulse-dev/pulseguardian/pulseguardian/templates/queues.html (88%)
[localhost] out: rewrite pulse-dev/pulseguardian/pulseguardian/templates/register.html (89%)
[2014-10-03 18:47:32] Finished commit_www (0.199s)
[2014-10-03 18:47:32] Running push_www
[2014-10-03 18:47:32] [pulse-app1.dev.dmz.phx1.mozilla.com] running: /data/bin/update-www.sh pulse-dev
[2014-10-03 18:47:34] [pulse-app1.dev.dmz.phx1.mozilla.com] finished: /data/bin/update-www.sh pulse-dev (1.128s)
[2014-10-03 18:47:34] Finished push_www (1.129s)
[2014-10-03 18:47:34] Starting new HTTPS connection (1): changelog.paas.allizom.org
(Reporter)

Comment 2

4 years ago
Ah, seems that the code prevented upper-case letters in usernames, probably accidentally.  I just committed a fix.  Can you pull again?  No need to do anything to the db this time, and no need to restart guardian.py, just the web server.
(Assignee)

Comment 3

4 years ago
Unikitty is now a Pulse user. =)
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.