Install extra packages on supportadm to allow package compilation during SUMO deploy.

RESOLVED FIXED

Status

Infrastructure & Operations
WebOps: Community Platform
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: mythmon, Assigned: cturra)

Tracking

Details

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

(Reporter)

Description

3 years ago
+++ This bug was initially created as a clone of Bug #1067586 +++

In Bug 1067586 we installed a bunch of build dependencies. It was great! We forgot to ask for two libraries though. We also need headers for libjpeg and zlib, for jpeg and png support in Pillow (our image library). These packages only need installed on the admin node.

After this is installed, we will need to remove Pillow from the virtualenv on the admin node so that it will reinstall and pick up the new libraries.

I don't have rights to do this, but I think that last step could be satisfied by

rm -rf /data/support/src/support.mozilla.org/kitsune/virtualenv/lib/python2.6/site-packages/Pillow-2.4.0-py2.6.egg-info/
rm -rf /data/support/src/support.mozilla.org/kitsune/virtualenv/lib/python2.6/site-packages/PIL/
rm -rf /data/support/src/support.mozilla.org/kitsune/virtualenv/lib/python2.6/site-packages/Pillow-2.4.0-py2.6.egg-info/
rm -rf /data/support/src/support.mozilla.org/kitsune/virtualenv/lib/python2.6/site-packages/PIL/
rm -rf /data/support/src/support.mozilla.org/kitsune/virtualenv/lib/python2.6/site-packages/Pillow-2.4.0-py2.6.egg-info/
rm -rf /data/support/src/support.mozilla.org/kitsune/virtualenv/lib/python2.6/site-packages/PIL/

That shouldn't be done until after the new libraries are on the admin node.

Updated

3 years ago
Assignee: server-ops-webops → cturra
(Reporter)

Updated

3 years ago
Blocks: 1070003
(Reporter)

Comment 1

3 years ago
Gah. Deanj pointed out I mispasted the rm -rf lines. The real lines are here. The goal is to delete Pillow and PIL from the virtualenv of dev, stage, and prod. This can happen at any time after the libs are installed, and will be corrected during the next deploy.

rm -rf /data/support/src/support.mozilla.org/kitsune/virtualenv/lib/python2.6/site-packages/Pillow-2.4.0-py2.6.egg-info/
rm -rf /data/support/src/support.mozilla.org/kitsune/virtualenv/lib/python2.6/site-packages/PIL/
rm -rf /data/support-stage/src/support.mozilla.org/kitsune/virtualenv/lib/python2.6/site-packages/Pillow-2.4.0-py2.6.egg-info/
rm -rf /data/support-stage/src/support.mozilla.org/kitsune/virtualenv/lib/python2.6/site-packages/PIL/
rm -rf /data/support-dev/src/support.mozilla.org/kitsune/virtualenv/lib/python2.6/site-packages/Pillow-2.4.0-py2.6.egg-info/
rm -rf /data/support-dev/src/support.mozilla.org/kitsune/virtualenv/lib/python2.6/site-packages/PIL/
(Assignee)

Comment 2

3 years ago
just removing kanban card url, so this will get picked up correctly by our kanbanize automation script.
Whiteboard: [kanban:https://kanbanize.com/ctrl_board/4/1276]

Updated

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

Comment 3

3 years ago
as discussed in irc, zlib{-devel} was already present on this node, but we did need libjpeg-turbo-devel..

 Notice: /Stage[main]/Webapp::Admin::Support/Package[libjpeg-turbo-devel]/ensure: created


additionally, the directories you've requested removal are now deleted.

[root@supportadm.private.phx1 ~]# rm -rf /data/support/src/support.mozilla.org/kitsune/virtualenv/lib/python2.6/site-packages/Pillow-2.4.0-py2.6.egg-info/
[root@supportadm.private.phx1 ~]# rm -rf /data/support/src/support.mozilla.org/kitsune/virtualenv/lib/python2.6/site-packages/PIL/
[root@supportadm.private.phx1 ~]# rm -rf /data/support-stage/src/support.mozilla.org/kitsune/virtualenv/lib/python2.6/site-packages/Pillow-2.4.0-py2.6.egg-info/
[root@supportadm.private.phx1 ~]# rm -rf /data/support-stage/src/support.mozilla.org/kitsune/virtualenv/lib/python2.6/site-packages/PIL/
[root@supportadm.private.phx1 ~]# rm -rf /data/support-dev/src/support.mozilla.org/kitsune/virtualenv/lib/python2.6/site-packages/Pillow-2.4.0-py2.6.egg-info/
[root@supportadm.private.phx1 ~]# rm -rf /data/support-dev/src/support.mozilla.org/kitsune/virtualenv/lib/python2.6/site-packages/PIL/
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.