The default bug view has changed. See this FAQ.

Update addons.mozilla.org on 7/22 @ 1600

VERIFIED FIXED

Status

Infrastructure & Operations
WebOps: Other
VERIFIED FIXED
7 years ago
4 years ago

People

(Reporter: clouserw, Assigned: oremj)

Tracking

other
All
Other
Bug Flags:
needs-downtime +

Details

(Whiteboard: 07/22/2010 @ 4pm)

(Reporter)

Description

7 years ago
Details to follow

Updated

7 years ago
Flags: needs-downtime+
Whiteboard: 07/22/2010 @ 4pm
(Reporter)

Comment 1

7 years ago
We should be downtime free, but I'll verify that closer to the date.  We're passing our long running queries off onto the downtime on Saturday.
As always, punting to the AMO master, oremj :D
Assignee: server-ops → jeremy.orem+bugs
(Reporter)

Comment 3

7 years ago
0) Give us a diff of settings_local.py so we can see if there are any important things we need to add.

1) git fetch && git co -f origin/5.11.5

2) git submodule update --init

3) cd vendor; git co -f origin/5.11.5; git submodule update --init; cd ..

4) whack any .pyc files

5) ./manage.py compress_assets

6) schematic migrations  # This took about 30 seconds for me.  I assume it will be less in prod.

7) Push the new site to the webhead (AMO + SAMO)

8) Clear memcache

9) Restart celeryd

10) import scripts/crontab/prod to crontab
(Assignee)

Comment 4

7 years ago
[root@mradm02 bin]# ./zamboni_quick_update.sh /data/amo_python/src/prod/zamboni 5.11.5 -v
+ git fetch -t origin
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 5 (delta 4), reused 0 (delta 0)
Unpacking objects: 100% (5/5), done.
From git://github.com/jbalogh/zamboni
 * [new tag]         5.11.5     -> 5.11.5
+ git checkout 5.11.5
M	locale
Previous HEAD position was 91f4df9... catch weird errors
HEAD is now at 44cd44b... only count uuid=None; those are verified transactions
+ git submodule update --init
remote: Counting objects: 550, done.
remote: Compressing objects: 100% (178/178), done.
remote: Total 471 (delta 277), reused 471 (delta 277)
Receiving objects: 100% (471/471), 8.98 MiB | 2.97 MiB/s, done.
Resolving deltas: 100% (277/277), completed with 36 local objects.
From git://github.com/clouserw/amo-locales
   375369d..1adbbad  master     -> origin/master
Submodule path 'locale': checked out '1adbbad576057083f9482581097418c5006e78e1'
+ set +x
+ git fetch -t origin
+ git checkout 5.11.5
HEAD is now at 44cd44b... only count uuid=None; those are verified transactions
+ git submodule update --init
+ set +x
Push live? [y/n]: n
[root@mradm02 bin]# ./zamboni_quick_update.sh /data/amo_python/src/services.prod/zamboni 5.11.5 -v
+ git fetch -t origin
remote: Counting objects: 606, done.
remote: Compressing objects: 100% (294/294), done.
remote: Total 369 (delta 272), reused 81 (delta 56)
Receiving objects: 100% (369/369), 58.39 KiB, done.
Resolving deltas: 100% (272/272), completed with 111 local objects.
From git://github.com/jbalogh/zamboni
 * [new tag]         5.11.1.1   -> 5.11.1.1
 * [new tag]         5.11.1.2   -> 5.11.1.2
 * [new tag]         5.11.1.3   -> 5.11.1.3
 * [new tag]         5.11.4.2   -> 5.11.4.2
 * [new tag]         5.11.5     -> 5.11.5
 * [new tag]         5.11.fxcup -> 5.11.fxcup
 * [new tag]         5.11.fxcup.1 -> 5.11.fxcup.1
+ git checkout 5.11.5
M	locale
Previous HEAD position was 9ad5641... Remove pp=100
HEAD is now at 44cd44b... only count uuid=None; those are verified transactions
+ git submodule update --init
remote: Counting objects: 550, done.
remote: Compressing objects: 100% (178/178), done.
remote: Total 471 (delta 277), reused 471 (delta 277)
Receiving objects: 100% (471/471), 8.98 MiB | 2.67 MiB/s, done.
Resolving deltas: 100% (277/277), completed with 36 local objects.
From git://github.com/clouserw/amo-locales
   375369d..1adbbad  master     -> origin/master
Submodule path 'locale': checked out '1adbbad576057083f9482581097418c5006e78e1'
+ set +x
+ git fetch -t origin
+ git checkout 5.11.5
HEAD is now at 44cd44b... only count uuid=None; those are verified transactions
+ git submodule update --init
+ set +x
Push live? [y/n]: n

[root@mradm02 zamboni]# schematic migrations
Running migration 49:
DROP TABLE `stats_firefoxcup`;

That took 0.13 seconds
################################################## 

Running migration 50:
ALTER TABLE collections
    ADD COLUMN `author_id` int(11) UNSIGNED,
    ADD CONSTRAINT FOREIGN KEY (`author_id`) REFERENCES `users` (`id`);

That took 6.57 seconds
##################################################
(Assignee)

Comment 5

7 years ago
In [1]: from addons.models import Addon

In [2]: from stats.tasks import addon_total_contributions

In [3]: ids = Addon.objects.exclude(total_contributions=0).values_list('id', flat=True)

In [4]: addon_total_contributions(*ids)

In [5]:
(Assignee)

Comment 6

7 years ago
All set.
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED

Comment 7

7 years ago
verified,thanks
Status: RESOLVED → VERIFIED
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
You need to log in before you can comment on or make changes to this bug.