Closed
Bug 996721
Opened 11 years ago
Closed 11 years ago
LDAP protect mozillians stage database dump
Categories
(Data & BI Services Team :: DB: MySQL, task)
Data & BI Services Team
DB: MySQL
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: sancus, Assigned: scabral)
References
Details
(Whiteboard: [2014q2] April)
The URL for this dump will be https://mozillians-dev.allizom.org/media/mozillians_org.latest.sanitized_stage.sql.gz
It should be put behind LDAP. We can also put this in its own directory if need be, I don't really know if you can LDAP protect individual files... maybe we should do a whole directory for the older files too, though.
| Reporter | ||
Comment 1•11 years ago
|
||
Given that we're going to have multiple files(the .latest, and then older ones) it probably makes more sense to have a directory for these, no?
Once we have the directory LDAP protected, then we can enable copying of the files to it, as well.
So maybe /media/stage-db/ ?
Comment 2•11 years ago
|
||
i have created the media/stage-db/ as a volume on the mozillaians stage netapp volume and setup ldap auth as requested.
https://mozillians.allizom.org/media/stage-db/cturra.txt
Assignee: server-ops-webops → cturra
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 3•11 years ago
|
||
Can you do this on mozillians-dev instead? I know it's kind of counterintuitive, but that's where all the db dumps are currently set to go.
Since we already have the copies figured out for that location, seems easiest.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 4•11 years ago
|
||
the dev/stage reference got me confused. i have created a media/dev-db/ directory you can use for these dumps. i don't want to have any stage references in dev since it will definitely cause more confusion down the road. you can however place stage db dumps in this directory if you'd like.
https://mozillians-dev.allizom.org/media/dev-db/
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 5•11 years ago
|
||
Yeah that's fine, thanks!
Comment 6•11 years ago
|
||
There was a question in IRC about this. The question was, "why are we dumping stage data at all?".
I believe it's answered here:
https://bugzilla.mozilla.org/show_bug.cgi?id=933749#c18
Answer: Core devs use stage data occasionally to debug issues that are tied to prod data.
| Assignee | ||
Comment 7•11 years ago
|
||
reopening so I can put the right copy location for stage into the script...
Assignee: cturra → scabral
Status: RESOLVED → REOPENED
Component: WebOps: Engagement → Server Operations: Database
Depends on: 933749
Product: Infrastructure & Operations → mozilla.org
QA Contact: nmaul → scabral
Resolution: FIXED → ---
Comment 8•11 years ago
|
||
Friendly ping! :)
| Assignee | ||
Updated•11 years ago
|
Whiteboard: [2014q2] April
| Assignee | ||
Comment 9•11 years ago
|
||
Pull request sent.
| Assignee | ||
Comment 10•11 years ago
|
||
It was approved!
And the script ran via cron a few minutes ago. I looked at the result, where the stage stuff should be, and it's here:
[root@genericadm.private.phx1 ~]# ls -lrth /data/genericrhel6-dev/src/mozillians-dev.allizom.org/mozillians/media/dev-db/
total 2.4M
-rw-r--r-- 1 root root 5 Apr 15 12:54 cturra.txt
-rw-r--r-- 1 root root 2.4M Apr 29 14:20 mozillians_org.latest.sanitized_stage.sql.gz
Does it look good to you from an "I can download it after entering my LDAP credentials" point of view?
| Assignee | ||
Comment 11•11 years ago
|
||
just a ping on this - can you get to that file? If so, let's close this:
[scabral@genericadm.private.phx1 ~]$ ls -lrth /data/genericrhel6-dev/src/mozillians-dev.allizom.org/mozillians/media/dev-db/
total 2.4M
-rw-r--r-- 1 root root 5 Apr 15 12:54 cturra.txt
-rw-r--r-- 1 root root 2.4M May 5 20:00 mozillians_org.latest.sanitized_stage.sql.gz
Looks like the daily cron job is running just fine.
| Reporter | ||
Comment 12•11 years ago
|
||
https://mozillians-dev.allizom.org/media/dev-db/mozillians_org.latest.sanitized_stage.sql.gz is reachable to me after entering my LDAP credentials.
This is fully fixed now, thanks :sheeri!
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Product: mozilla.org → Data & BI Services Team
You need to log in
before you can comment on or make changes to this bug.
Description
•