Closed
Bug 868140
Opened 12 years ago
Closed 11 years ago
Installation of alembic on database servers: best practice?
Categories
(Infrastructure & Operations Graveyard :: WebOps: Other, task, P4)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: selenamarie, Assigned: dmaher)
References
Details
(Whiteboard: [triaged 20130503])
I've got a database migration tool that needs things installed into a bin directory and requires a few dependencies like SQLAlchemy.
I chatted with :mpressman and he suggested that there might be an RPM, but I wasn't sure how to check.
I see that 0.4.2 RPMs exist for RHEL 6: http://rpm.pbone.net/index.php3/stat/4/idpl/20707957/dir/redhat_el_6/com/python-alembic-0.4.2-1.el6.noarch.rpm.html
Could I get a hand with figuring this out?
Assignee | ||
Comment 1•12 years ago
|
||
If we can't find a handy RPM somewhere I can probably make one. :)
Is there a particular version you require ?
Assignee: server-ops-webops → dmaher
Flags: needinfo?(sdeckelmann)
Priority: -- → P4
Whiteboard: [triaged 20130503]
Reporter | ||
Comment 2•12 years ago
|
||
(In reply to Daniel Maher [:phrawzty] from comment #1)
> If we can't find a handy RPM somewhere I can probably make one. :)
>
> Is there a particular version you require ?
I'd like 0.5.0 please! Thanks.
Flags: needinfo?(sdeckelmann)
Assignee | ||
Updated•12 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•12 years ago
|
||
$ yum list python-alembic | grep alembic
python-alembic.noarch 0.5.0-1 mozilla
Which machine(s) would you like this package to be installed on ?
Flags: needinfo?(sdeckelmann)
Reporter | ||
Comment 4•12 years ago
|
||
\o/
We need it on:
socorro1.dev.db.phx1.mozilla.com
socorro1.stage.db.phx1.mozilla.com
tp-socorro01-master01
tp-socorro01-master02
Flags: needinfo?(sdeckelmann)
Assignee | ||
Comment 5•11 years ago
|
||
I note that those machines all configured primarily via the "postgres2" module in Puppet - would you suggest that python-alembic be installed along with postgres in general, or should it truly be fixed to the machines noted (comment #4) ?
Flags: needinfo?(sdeckelmann)
Reporter | ||
Comment 6•11 years ago
|
||
(In reply to Daniel Maher [:phrawzty] from comment #5)
> I note that those machines all configured primarily via the "postgres2"
> module in Puppet - would you suggest that python-alembic be installed along
> with postgres in general, or should it truly be fixed to the machines noted
> (comment #4) ?
It can be installed along with postgres in general... Although that requires SQLAlchemy as well -- you probably already saw that dep.
Flags: needinfo?(sdeckelmann)
Assignee | ||
Comment 7•11 years ago
|
||
Sorry for the delay - there were some packaging / repo concerns that I needed to sort out before python-alembic could be rolled out to the postgres machines. I have committed the change to Puppet, so the package will be available on all the Puppet-managed postgres servers within an hour.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 8•11 years ago
|
||
Thanks so much!
Unfortunately, there's a small problem:
[sdeckelmann@socorro1.stage.db.phx1 bin]$ python /usr/bin/alembic
Traceback (most recent call last):
File "/usr/bin/alembic", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
I'm looking into how it can be fixed.
Reporter | ||
Comment 9•11 years ago
|
||
Working on a series of dependancies:
python-setuptools.noarch 0:0.6.10-3.el6
python-markupsafe.x86_64 0:0.9.2-4.el6
And now SQLAlchemy 0.7.3
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 10•11 years ago
|
||
I re-packaged the python-alembic and python-sqlalchemy packages in order to reflect the dependencies more accurately, and ensured that the postgres2 packages.pp is aware of the required deps as well.
09:19:07 < selenamarie> SUCCESS!!!!!
09:21:27 * selenamarie configures alembic on stage
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Comment 11•11 years ago
|
||
Declaring Package[python-setuptools] here broke catalog compilation on jenkins1.dmz.phx1 as of 2013-05-10 09:31, reopening to ensure that whatever fix we come up with still works here.
Duplicate declaration: Package[python-setuptools] is already declared in file /etc/puppet/modules/webapp/manifests/python.pp at line 31; cannot redeclare on node jenkins1.dmz.phx1.mozilla.com
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 12•11 years ago
|
||
I merged the webapp::python and postgres2::packages declarations for python-setuptools into base::python_setuptools, which results in no changes to socorro1.stage.db.phx1 and fixes jenkins1.dmz.phx1 catalog compilation.
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Updated•6 years ago
|
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•