openstackid release fails on trusty node

Bug #1369710 reported by Márton Kiss
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstackid
In Progress
Medium
Márton Kiss

Bug Description

The openstackid project release tagging resulted the following log:
http://logs.openstack.org/ab/abfc7b3a72a604ad27d66a8cb90008d55f204fd6/release/openstackid-release-master/be66fbb/console.html.gz

Seems to be, that php5-mcrypt package is missing from bare-trusty-hpcloud-b3-2022813 node and the release tgz build failed. Need to consider whether we need to test / build the release against a trusty instance, or precise is well enough. (php5.3 vs php5.4 problem). Anyway the modules/jenkins/manifests/slave.pp contains the mcrypt pkg, so need to find out why this specific trusty node missing mcrypt.

Revision history for this message
Jeremy Stanley (fungi) wrote :

The libmcrypt4 and php5-mcrypt packages do appear to be installed on our bare-trusty workers. I'll see if I can recreate this failure.

Changed in openstack-ci:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Jeremy Stanley (fungi)
milestone: none → juno
Revision history for this message
Jeremy Stanley (fungi) wrote :

I can recreate the failure condition by manually running the same things on a bare-trusty worker from the command like, so this should be fairly easily reproducible. Also doesn't seem to be an infrastructure-specific issue, so switching projects accordingly.

affects: openstack-ci → openstackid
Changed in openstackid:
milestone: juno → none
assignee: Jeremy Stanley (fungi) → Márton Kiss (marton-kiss)
Revision history for this message
Márton Kiss (marton-kiss) wrote :

Jeremy, seems to be this is an Ubuntu trusty packaging issue. I made some tests in a clean vagrant/trusty box:

$ sudo apt-get install -y php5-mcrypt php5-cli
$ dpkg -l | grep php5
ii php5-cli 5.5.9+dfsg-1ubuntu4.4 amd64 command-line interpreter for the php5 scripting language
ii php5-common 5.5.9+dfsg-1ubuntu4.4 amd64 Common files for packages built from the php5 source
ii php5-json 1.3.2-2build1 amd64 JSON module for php5
ii php5-mcrypt 5.4.6-0ubuntu5 amd64 MCrypt module for php5
ii php5-readline 5.5.9+dfsg-1ubuntu4.4 amd64 Readline module for php5

This small test program from php doc site also fail:
vagrant@vagrant-ubuntu-trusty-64:~$ cat test.php
<?php
    $algorithms = mcrypt_list_algorithms("/usr/local/lib/libmcrypt");

    foreach ($algorithms as $cipher) {
        echo "$cipher<br />\n";
    }
?>
vagrant@vagrant-ubuntu-trusty-64:~$ php test.php
PHP Fatal error: Call to undefined function mcrypt_list_algorithms() in /home/vagrant/test.php on line 2
vagrant@vagrant-ubuntu-trusty-64:~$

Related upstream ubuntu bugs:
Incorrect installation directory in Trusty
https://bugs.launchpad.net/ubuntu/+source/php5-mcrypt/+bug/1261655

put ini in correct path
https://bugs.launchpad.net/ubuntu/+source/php-mcrypt/+bug/1243568

So after manual creation of the missing symlink the test php runs well.
$ ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/cli/conf.d/

The package version number seems strange also php5-mcrypt 5.4.6 vs. php5-cli 5.5.9.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.