could not find package

Bug #1369010 reported by Kevin Fox
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
In Progress
Medium
Sushil Kumar

Bug Description

When passing through the package to be installed, there is a failure:

PkgNotFoundError: Could not find pkg [umariadb-server]

Its from trove/guestagent/pkg.py:147

manually yum install mariadb-server works fine.

Looks a little like it may be mangling the name due to a unicode string?

guestagent is running within sl7 python 2.7 on x86_64.

This is with trunk.

Revision history for this message
Denis M. (dmakogon) wrote :

Trove doesn't support MariaDB.

Changed in trove:
status: New → Invalid
Revision history for this message
Kevin Fox (kevpn) wrote :

I inderstand now that mariadb is unsupported. That being said, this bug is simply with troves ability to install a package. What its named should be irrelevant. Its specified by the user. If I were to try with mongodb, I wouldnt hit the same bug?

Revision history for this message
Denis M. (dmakogon) wrote :

Not sure, but it seems that you've hit this bug because of incorrect datastore version registration. I guess you need to check out your data at the Troves backend. Trove is pretty sensetive to malformed data, especially data that is being passed by admin to trove-manage utility.

Take a look at https://github.com/openstack/trove-integration/blob/master/scripts/redstack#L318-L322

Revision history for this message
Amrith Kumar (amrith) wrote :

Kevin Fox, please provide more information about what (exactly) you were doing.

Changed in trove:
status: Invalid → Incomplete
Revision history for this message
Kevin Fox (kevpn) wrote :

Ok. I created a datastore mysql and a datastore version mysql-5.5. I was trying to use the 'mariadb-server' package as that is what rhel7 provides.

MariaDB [trove]> select * from datastore_versions;
+--------------------------------------+--------------------------------------+------------------------+--------------------------------------+----------------+--------+---------+
| id | datastore_id | name | image_id | packages | active | manager |
+--------------------------------------+--------------------------------------+------------------------+--------------------------------------+----------------+--------+---------+
| 20000000-0000-0000-0000-000000000002 | 10000000-0000-0000-0000-000000000001 | Unknown Legacy Version | 00000000-0000-0000-0000-000000000000 | | 0 | mysql |
| 268b92ff-be9b-4383-91d8-d7a7bad9e316 | bd8cf4b9-5487-4437-bec5-463bea445916 | mysql-5.5 | 53395e3d-1922-4aa4-8ece-a22ff70ee3ea | mariadb-server | 1 | mysql |
+--------------------------------------+--------------------------------------+------------------------+--------------------------------------+----------------+--------+---------+

see the field packages = 'mariadb-server'

In the trace I got out of the guestagent, it was failing because it could not find '[umariadb-server]' Looking at the string match that comes out there, I'm guessing the package name was mangled either when it was fetched out of the db, or when it was sent to yum. the '[u' and ']' thing are odd looking.

If I pre-install the mariadb-server package into the image before launching that instance type, then it all works properly. so something's wrong with either my database entry or the code that tries to install the package.

Revision history for this message
Denis M. (dmakogon) wrote :

Thanks for explanation. Looks like this issue appears to take place while deserializing message for prepare call. It seems like we might do force convertion of 'packages'.

Can you add logging at the beggining of 'prepare' method that writes to log file vars() ?

Changed in trove:
status: Incomplete → New
Changed in trove:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → kilo-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

Fix proposed to branch: master
Review: https://review.openstack.org/129216

Changed in trove:
assignee: nobody → Sushil Kumar (sushil-kumar2)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on trove (master)

Change abandoned by Sushil Kumar (<email address hidden>) on branch: master
Review: https://review.openstack.org/129216
Reason: issue resolved by https://review.openstack.org/#/c/129523/

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.