Rebuild package ruby-mysql with correct dependencies to the mysql version in current repository.

Bug #1415950 reported by Denis Klepikov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Won't Fix
Low
MOS Packaging Team
4.1.x
Won't Fix
Low
Unassigned
5.0.x
Won't Fix
Low
Unassigned
5.1.x
Won't Fix
Low
Unassigned
6.0.x
Won't Fix
Low
Unassigned
6.1.x
Won't Fix
Low
Unassigned
7.0.x
Won't Fix
Undecided
Fuel build team
8.0.x
Won't Fix
Low
MOS Packaging Team

Bug Description

Fuel 5.0.1

Rebuild package ruby-mysql with correct dependencies to the mysql version in current repository

Using the package we are running into this error:

/usr/lib/ruby/gems/1.8/gems/mysql-2.9.1/lib/mysql/mysql_api.so: Incorrect MySQL client library version! This gem was compiled for 5.1.73 but the client library is 5.5.28. (RuntimeError)

Error looks like that :

Error: Execution of '/usr/bin/gem install --include-dependencies --no-rdoc --no-ri mysql' returned 1: ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb
checking for mysql_query() in -lmysqlclient... yes
checking for mysql_ssl_set()... yes
checking for rb_str_set_len()... yes
checking for rb_thread_start_timer()... yes
checking for mysql.h... no
checking for mysql/mysql.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Revision history for this message
Miroslav Anashkin (manashkin) wrote :

Actually, ruby-mysql package do not correspond with available MySQL version in each repository.

Revision history for this message
Aleksander Mogylchenko (amogylchenko) wrote :

MOS Linux does not deal with ruby gems

Revision history for this message
Artem Silenkov (asilenkov) wrote :

Basically it could be enough just to trigger rebuild for this package versus actual mysql and actual mysql-develop.

Revision history for this message
Artem Silenkov (asilenkov) wrote :

What's a status of this bug? Is it still broken? Ruby in our mirrors was recompiled few times already.

Changed in mos:
milestone: 6.1 → 7.0
Revision history for this message
Mike Scherbakov (mihgen) wrote :

Increased to High, as otherwise we would need to move it to 7.0

Revision history for this message
Dmitry Borodaenko (angdraug) wrote :
Revision history for this message
Artem Silenkov (asilenkov) wrote :

Ok, we need to rebuild this package against all necessary branches.
Is this list enough or do I miss something?
6.1
6.0.1
5.1.2
5.0.3

Revision history for this message
Artem Silenkov (asilenkov) wrote :

This fix will be not permanent until we have aggregated-obs-builds. So no 7.0 fixes until stable repo for this is mastered.

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix proposed to packages/centos6/ruby-mysql (6.1)

Related fix proposed to branch: 6.1
Change author: Artem Silenkov <email address hidden>
Review: https://review.fuel-infra.org/6443

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix proposed to packages/centos6/ruby-mysql (6.0.1)

Related fix proposed to branch: 6.0.1
Change author: Artem Silenkov <email address hidden>
Review: https://review.fuel-infra.org/6444

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix proposed to packages/centos6/ruby-mysql (5.1.2)

Related fix proposed to branch: 5.1.2
Change author: Artem Silenkov <email address hidden>
Review: https://review.fuel-infra.org/6445

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix proposed to packages/centos6/ruby-mysql (5.0.3)

Related fix proposed to branch: 5.0.3
Change author: Artem Silenkov <email address hidden>
Review: https://review.fuel-infra.org/6446

Revision history for this message
Artem Silenkov (asilenkov) wrote :

Ok, this fix couldn't pass the CI at all and requires a lot of manual intervention.

As the result we will have 4 different packages "ruby-mysql" in one repo. This will break yum completely.

- we must take care of revisions.
- some fixes to ISO make process is needed - exclude and nailed versions according to release version.

Fix is possible but hard to implement. Is it worth doing?

Revision history for this message
Mike Scherbakov (mihgen) wrote :

How does it affect our users? I would suggest to move this bug to the next milestone unless we find direct high-severe implication on our users for upcoming 6.1 release.

Revision history for this message
Dmitry Borodaenko (angdraug) wrote :

Artem, I completely don't understand comment #23. Why 4 different ruby-mysql packages? What kind of revisions are you referring to and what exactly we must take care of? Why are fixes to ISO make scripts necessary? And to take a step back, why is ruby-mysql even included in the ISO, what's using it? Looks very similar to bug #1403088 where seemingly trivial problem creates a snowball of problems.

Mike, I don't think severity is High. The only impact I'm aware of is that ruby-mysql package shipped in MOS is not usable with the MySQL version deployed by Fuel. Based by the fact that there's no immediate impact elsewhere in OpenStack I suspect this package isn't used and can be removed altogether, but given the timing we might as well do that after 6.1 is released.

Revision history for this message
Artem Silenkov (asilenkov) wrote :

I suggest won't fix.

1. I can't find why do we ever need this gem in ISO.
2. Customer could install this gem itself without any problems.

Our approach for automated packaging is not suitable for such situations and require manual intervention.
As for now my requests lead to situation when we have few different packages "ruby-mysql" with the same version in one pool. This breaks all stuff completely.

Similar situation:

Packages of the same version built by OBS in a different projects cannot coexist in the same pool on our mirror:

a276aebb25c2cc677669814f34068765 /srv/obs/repos/trusty-fuel-6.1-stable/ubuntu/all/python-memcache_1.53-1~u14.04+mos1_all.deb
94a0026ca07cfad160d54d7a798ef457 /srv/obs/repos/trusty-fuel-7.0-stable/ubuntu/all/python-memcache_1.53-1~u14.04+mos1_all.deb

Revision history for this message
Miroslav Anashkin (manashkin) wrote :

Well - if it would work - simply remove this package at all.

no longer affects: mos/7.0.x
Changed in mos:
status: Confirmed → New
Roman Vyalov (r0mikiam)
tags: added: fuel-build
Roman Vyalov (r0mikiam)
tags: added: area-build
Roman Vyalov (r0mikiam)
tags: added: area-mos
removed: area-build
Revision history for this message
Artem Silenkov (asilenkov) wrote :

We don't use this gem so won't fix either.

Customer should recompile it on it own.

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on packages/centos6/ruby-mysql (6.1)

Change abandoned by Artem Silenkov <email address hidden> on branch: 6.1
Review: https://review.fuel-infra.org/6443

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on packages/centos6/ruby-mysql (6.0.1)

Change abandoned by Artem Silenkov <email address hidden> on branch: 6.0.1
Review: https://review.fuel-infra.org/6444

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on packages/centos6/ruby-mysql (5.1.2)

Change abandoned by Artem Silenkov <email address hidden> on branch: 5.1.2
Review: https://review.fuel-infra.org/6445

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on packages/centos6/ruby-mysql (5.0.3)

Change abandoned by Artem Silenkov <email address hidden> on branch: 5.0.3
Review: https://review.fuel-infra.org/6446

Changed in mos:
status: Confirmed → Won't Fix
tags: added: wontfix-low
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.