add BROWSERID_AUDIENCES to settings_local.py on Input servers

RESOLVED FIXED

Status

RESOLVED FIXED
5 years ago
5 months ago

People

(Reporter: willkg, Assigned: bburton)

Tracking

Details

We're updating django-browserid to a new version that uses a different setting than previous versions did. Previous versions used a SITE_URL property which took a single string. The new version uses a BROWSERID_AUDIENCES property which takes a list of strings.

Can you please add:

BROWSERID_AUDIENCES = ['https://input-dev.allizom.org']

to settings_local.py on Input dev environment?

Then I'll verify the value, push out the django-browserid updates and make sure they work on -dev. Then we can repeat this for stage and prod.
I don't need this done today, but do need it done in the next week as it blocks the django-browserid upgrade and other work. I have no idea how that translates into the right Priority/Severity.
(Assignee)

Comment 2

5 years ago
Pushed to dev

[root@inputadm.private.phx1 settings]# vim local.py
[root@inputadm.private.phx1 settings]# /data/input-dev/deploy input-dev.allizom.org
[2013-10-17 15:30:43] Running rsync_project
[2013-10-17 15:30:43] [localhost] running: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/input-dev/src/input-dev.allizom.org/ /data/input-dev/www/input-dev.allizom.org/
[2013-10-17 15:30:46] [localhost] finished: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/input-dev/src/input-dev.allizom.org/ /data/input-dev/www/input-dev.allizom.org/ (2.618s)
[2013-10-17 15:30:46] Finished rsync_project (2.619s)
[2013-10-17 15:30:46] Running commit_www
[2013-10-17 15:30:46] [localhost] running: cd /data/input-dev/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['input-dev.allizom.org']'
[2013-10-17 15:30:46] [localhost] finished: cd /data/input-dev/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['input-dev.allizom.org']' (0.496s)
[localhost] out: [master 8daf85a] deploy [input-dev.allizom.org]
[localhost] out: 1 file changed, 2 insertions(+)
[2013-10-17 15:30:46] Finished commit_www (0.496s)
[2013-10-17 15:30:46] Running push_www
[2013-10-17 15:30:46] [input1.dev.webapp.phx1.mozilla.com] running: /data/bin/update-www.sh input-dev.allizom.org
[2013-10-17 15:30:50] [input1.dev.webapp.phx1.mozilla.com] finished: /data/bin/update-www.sh input-dev.allizom.org (3.715s)
[2013-10-17 15:30:50] Finished push_www (3.717s)
Assignee: server-ops-webops → bburton
Status: NEW → ASSIGNED
Awesome! I pushed the django-browserid changes and everything looks good on -dev.

We do no-push-fridays, so I'll ping this bug to do -stage and -prod on Monday.
Status: ASSIGNED → NEW
Weekend is over and pushing restrictions are lifted! The sun is out and the sky is clear! We're good to go.

I'm ready to push this to -stage whenever you folks are!
(Assignee)

Comment 5

5 years ago
(In reply to Will Kahn-Greene [:willkg] from comment #4)
> Weekend is over and pushing restrictions are lifted! The sun is out and the
> sky is clear! We're good to go.
> 
> I'm ready to push this to -stage whenever you folks are!

Pushed to stage

[root@inputadm.private.phx1 ~]# /data/input-stage/deploy input.allizom.org
[2013-10-21 09:06:03] Running rsync_project
[2013-10-21 09:06:03] [localhost] running: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/input-stage/src/input.allizom.org/ /data/input-stage/www/input.allizom.org/
[2013-10-21 09:06:07] [localhost] finished: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/input-stage/src/input.allizom.org/ /data/input-stage/www/input.allizom.org/ (4.358s)
[2013-10-21 09:06:07] Finished rsync_project (4.359s)
[2013-10-21 09:06:07] Running commit_www
[2013-10-21 09:06:07] [localhost] running: cd /data/input-stage/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['input.allizom.org']'
[2013-10-21 09:06:08] [localhost] finished: cd /data/input-stage/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['input.allizom.org']' (0.568s)
[localhost] out: [master 8d3c89e] deploy [input.allizom.org]
[localhost] out: 1 file changed, 2 insertions(+)
[2013-10-21 09:06:08] Finished commit_www (0.569s)
[2013-10-21 09:06:08] Running push_www
[2013-10-21 09:06:08] [input1.stage.webapp.phx1.mozilla.com] running: /data/bin/update-www.sh input.allizom.org
[2013-10-21 09:06:11] [input1.stage.webapp.phx1.mozilla.com] finished: /data/bin/update-www.sh input.allizom.org (3.104s)
[2013-10-21 09:06:11] Finished push_www (3.105s)
-stage looks great!

Let's do -prod!
Brandon just pushed this to -prod. I verified it looks good.

All done! Thank you!
(Assignee)

Comment 8

5 years ago
Pushed to prod

[root@inputadm.private.phx1 ~]# vim /data/input/src/input.mozilla.org/input/fjord/settings/local.py
[root@inputadm.private.phx1 ~]# /data/input/deploy input.mozilla.org
[2013-10-21 09:19:23] Running rsync_project
[2013-10-21 09:19:23] [localhost] running: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/input/src/input.mozilla.org/ /data/input/www/input.mozilla.org/
[2013-10-21 09:19:25] [localhost] finished: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/input/src/input.mozilla.org/ /data/input/www/input.mozilla.org/ (2.297s)
[2013-10-21 09:19:25] Finished rsync_project (2.298s)
[2013-10-21 09:19:25] Running commit_www
[2013-10-21 09:19:25] [localhost] running: cd /data/input/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['input.mozilla.org']'
[2013-10-21 09:19:26] [localhost] finished: cd /data/input/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['input.mozilla.org']' (0.215s)
[localhost] out: [master 7a7364e] deploy [input.mozilla.org]
[localhost] out: 1 file changed, 3 insertions(+)
[2013-10-21 09:19:26] Finished commit_www (0.215s)
[2013-10-21 09:19:26] Running push_www
[2013-10-21 09:19:26] [input1.webapp.phx1.mozilla.com] running: /data/bin/update-www.sh input.mozilla.org
[2013-10-21 09:19:26] [input2.webapp.phx1.mozilla.com] running: /data/bin/update-www.sh input.mozilla.org
[2013-10-21 09:19:26] [input3.webapp.phx1.mozilla.com] running: /data/bin/update-www.sh input.mozilla.org
[2013-10-21 09:19:27] [input1.webapp.phx1.mozilla.com] finished: /data/bin/update-www.sh input.mozilla.org (1.772s)
[2013-10-21 09:19:27] [input2.webapp.phx1.mozilla.com] finished: /data/bin/update-www.sh input.mozilla.org (1.772s)
[2013-10-21 09:19:27] [input3.webapp.phx1.mozilla.com] finished: /data/bin/update-www.sh input.mozilla.org (1.771s)
[2013-10-21 09:19:27] Finished push_www (1.775s)
[root@inputadm.private.phx1 ~]# issue-multi-command input /sbin/service httpd graceful
[2013-10-21 09:20:03] [input1.webapp.phx1.mozilla.com] running: /sbin/service httpd graceful
[2013-10-21 09:20:03] [input2.webapp.phx1.mozilla.com] running: /sbin/service httpd graceful
[2013-10-21 09:20:03] [input3.webapp.phx1.mozilla.com] running: /sbin/service httpd graceful
[2013-10-21 09:20:04] [input2.webapp.phx1.mozilla.com] finished: /sbin/service httpd graceful (0.258s)
[2013-10-21 09:20:04] [input3.webapp.phx1.mozilla.com] finished: /sbin/service httpd graceful (0.333s)
[2013-10-21 09:20:04] [input1.webapp.phx1.mozilla.com] finished: /sbin/service httpd graceful (0.348s)
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED

Updated

5 months ago
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.