Browse code

Fix 'olso' typo in lib/oslo

This enables commit If92073be5a431840701c952a194e63a7c452c9ca
for cleaning up potentially installed older oslo.config. Here are
its original details.

If the user had oslo.config installed prior to us setting up the
oslo.config out of git they can get themselves into this very funny
situation where pip doesn't see oslo.config 1.1.x, however some
packages might. This manifests itself as a user error trying to
start nova-api which uses DeprecatedOption, not in oslo.config 1.1.x

Because of the funny state pip is in, you can't uninstall oslo.config.

So in these situations, if we see old oslo.config in the filesystem,
pip install / uninstall it to ensure that everyone ends up using the
git version instead.

To reduce the amount of user confusion, do this on every
install_oslo for a while, which we can purge after Havana ships.

Change-Id: I7fa0b70497bf5622f4638da284afe5363a004d3c
Fixes: bug #1213089

Alessio Ababilov authored on 2013/08/17 03:53:22
Showing 1 changed files
... ...
@@ -40,12 +40,12 @@ function install_oslo() {
40 40
 
41 41
 # cleanup_oslo() - purge possibly old versions of oslo
42 42
 function cleanup_oslo() {
43
-    # this means we've got an old olso installed, lets get rid of it
43
+    # this means we've got an old oslo installed, lets get rid of it
44 44
     if ! python -c 'import oslo.config' 2>/dev/null; then
45 45
         echo "Found old oslo.config... removing to ensure consistency"
46 46
         local PIP_CMD=$(get_pip_command)
47
-        pip_install olso.config
48
-        sudo $PIP_CMD uninstall -y olso.config
47
+        pip_install oslo.config
48
+        sudo $PIP_CMD uninstall -y oslo.config
49 49
     fi
50 50
 }
51 51