On 2014-11-19 4:25 PM, Kris G. Lindgren wrote:
Sure.

PBR when working off of a branch uses the git hash of the commit for the
version of the package.  So you will get a version name like
openstack-nova-2014.1.2-{githash}, which is used by other tools to set the
name of the package (such as anvil).  So when you build a new package and
the githash changes the hash maybe lower than the previous hash.  This
means that the newly built package will have a version number lower than
the previous package.  Any package management tool will ignore the new
package because it is an earlier version of the package compared to whats
already installed.  Thus you get upgrade hell.  Now, PBR supports tags -
but it only supports annotated tags.  So if you happen to create your tag
via: git tag and you forget the "-a", once again you have upgrade hell
because its going to default using the githash.

The behavior that I would change is to allow you to override the the
setting of the version to the git hash.  How?  I don¹t really care - I
could even work with a text file for the override.

AFAIK, you should be able to use the PBR_VERSION environment variable to set your own version:
http://docs.openstack.org/developer/pbr/packagers.html

--
Mathieu

_______________________________________________
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators

Reply via email to