Inconsistency in package format in datastore definition (OS-dependent)

Bug #1504090 reported by Luigi Toscano
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Confirmed
Undecided
Unassigned

Bug Description

The manual installation procedure requires the "package" to be specified:

http://docs.openstack.org/developer/trove/dev/manual_install.html

$ trove-manage datastore_version_update ${DATASTORE_TYPE} ${DATASTORE_VERSION} ${DATASTORE_TYPE} ${IMAGEID} ${PACKAGES} 1

The format of PACKAGES in the documentation appears both as package-version and package=version in the same page.

Checking the code, namely trove/guestagent/pkg.py, it seems that this is OS-dependent. The two available classes (RedhatPackagerMixin and DebianPackagerMixin) require two different format (see pkg_is_installed() and pkg_version()). Debian mixin requires package=version, RedHat* mixin requires package-version.

The existing unit tests (trove/tests/unittests/guestagent/test_pkg.py) only check the Debian case.

The above should be an implementation detail and the same format should be used in both cases.

Changed in trove:
status: New → Confirmed
assignee: nobody → Victoria Martinez de la Cruz (vkmc)
Changed in trove:
assignee: Victoria Martinez de la Cruz (vkmc) → nobody
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.