Hide Forgot
I changed the Display-Name of the cartridge manifest file from: > Display-Name: Old name to: > Display-Name: New name Description of problem: Having both cartridge versions installed in the system, rhc tools read the 'Old name' first and shows it instead of the 'New name'.
# New Display-Name 0.0.9 cartridge version: $ diff /var/lib/openshift/.cartridge_repository/redhat-php/0.0.{8,9}/metadata/manifest.yml > --- /var/lib/openshift/.cartridge_repository/redhat-php/0.0.8/metadata/manifest.yml 2013-11-13 21:42:26.000000000 -0500 > +++ /var/lib/openshift/.cartridge_repository/redhat-php/0.0.9/metadata/manifest.yml 2013-11-20 13:23:42.650323361 -0500 > @@ -1,7 +1,7 @@ > --- > Name: php > Cartridge-Short-Name: PHP > -Display-Name: PHP 5.3 > +Display-Name: New PHP 5.3 > Description: ! 'PHP is a general-purpose server-side scripting language originally > designed for Web development to produce dynamic Web pages. Popular development frameworks > include: CakePHP, Zend, Symfony, and Code Igniter.' > @@ -9,7 +9,7 @@ Version: '5.3' > License: The PHP License, version 3.0 > License-Url: http://www.php.net/license/3_0.txt > Vendor: php.net > -Cartridge-Version: 0.0.8 > +Cartridge-Version: 0.0.9 > Compatible-Versions: > - 0.0.7 > Cartridge-Vendor: redhat # Clear Broker/mcollective cache $ service ruby193-mcollective restart $ oo-admin-broker-cache -c # Check for both versions and see what Display-Name is printed by the rhc tools: $ { oo-admin-cartridge -l; rhc cartridge-list; } | grep php > (redhat, php, 5.3, 0.0.8) > (redhat, php, 5.3, 0.0.9) > php-5.3 PHP 5.3 web ^^^^ Should be "New PHP 5.3"
I am not able to reproduce this bug. I tested this by modifying the php cartridge Display-Name and bumping up the Cartridge-Version and was able to see the updated display name in the php cartridge being returned by the CLI tools. Also, I tested with changing the Display-Name in the Version-Overrides section of the zend cartridge and still was able to see the updated display name in the output of the CLI cartridge list command.
I tested this issue on devenv_4098, also can not reproduce this bug. @Vojtech Vitek I'm not sure if you are testing this on multi-node env. if so, you need to modify manifest.yml in all nodes. Thus the result will be we expected.
@zhaozhanqi I tested this in the one machine node/broker environment.