<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello - I'm trying to install a working local.conf devstack ocata
      on a new server, and some python packages have changed so I end up
      with this error during the build of octavia image:</p>
    <blockquote>
      <p><tt>2018-05-18 01:00:26.276 |   Found existing installation:
          Jinja2 2.8</tt><tt><br>
        </tt><tt>2018-05-18 01:00:26.280 |     Uninstalling Jinja2-2.8:</tt><tt><br>
        </tt><tt>2018-05-18 01:00:26.280 |       Successfully
          uninstalled Jinja2-2.8</tt><tt><br>
        </tt><tt>2018-05-18 01:00:26.839 |   Found existing
          installation: PyYAML 3.11</tt><tt><br>
        </tt><tt>2018-05-18 01:00:26.969 | Cannot uninstall 'PyYAML'. It
          is a distutils installed project and thus we cannot accurately
          determine which files belong to it which would lead to only a
          partial uninstall.</tt></p>
      <p><tt>2018-05-18 02:05:44.768 | Unmount
          /tmp/dib_build.2fbBBePD/mnt/var/cache/apt/archives<br>
          2018-05-18 02:05:44.796 | Unmount
          /tmp/dib_build.2fbBBePD/mnt/tmp/pip<br>
          2018-05-18 02:05:44.820 | Unmount
          /tmp/dib_build.2fbBBePD/mnt/tmp/in_target.d<br>
          2018-05-18 02:05:44.844 | Unmount
          /tmp/dib_build.2fbBBePD/mnt/tmp/ccache<br>
          2018-05-18 02:05:44.868 | Unmount
          /tmp/dib_build.2fbBBePD/mnt/sys<br>
          2018-05-18 02:05:44.896 | Unmount
          /tmp/dib_build.2fbBBePD/mnt/proc<br>
          2018-05-18 02:05:44.920 | Unmount
          /tmp/dib_build.2fbBBePD/mnt/dev/pts<br>
          2018-05-18 02:05:44.947 | Unmount
          /tmp/dib_build.2fbBBePD/mnt/dev<br>
          2018-05-18 02:05:50.668 |
          +/opt/stack/octavia/devstack/plugin.sh:build_octavia_worker_image:1 
          exit_trap<br>
          2018-05-18 02:05:50.679 |
          +./devstack/stack.sh:exit_trap:494         local r=1<br>
          2018-05-18 02:05:50.690 |
          ++./devstack/stack.sh:exit_trap:495         jobs -p<br>
          2018-05-18 02:05:50.700 |
          +./devstack/stack.sh:exit_trap:495         jobs=<br>
          2018-05-18 02:05:50.710 |
          +./devstack/stack.sh:exit_trap:498         [[ -n '' ]]<br>
          2018-05-18 02:05:50.720 |
          +./devstack/stack.sh:exit_trap:504         kill_spinner<br>
          2018-05-18 02:05:50.731 |
          +./devstack/stack.sh:kill_spinner:390      '[' '!' -z '' ']'<br>
          2018-05-18 02:05:50.741 |
          +./devstack/stack.sh:exit_trap:506         [[ 1 -ne 0 ]]<br>
          2018-05-18 02:05:50.751 |
          +./devstack/stack.sh:exit_trap:507         echo 'Error on
          exit'<br>
          2018-05-18 02:05:50.751 | Error on exit<br>
          2018-05-18 02:05:50.761 |
          +./devstack/stack.sh:exit_trap:508         generate-subunit
          1526608058 1092 fail<br>
          2018-05-18 02:05:51.148 |
          +./devstack/stack.sh:exit_trap:509         [[ -z /tmp ]]<br>
          2018-05-18 02:05:51.157 |
          +./devstack/stack.sh:exit_trap:512        
          /home/stack/devstack/tools/worlddump.py -d /tmp<br>
          <br>
        </tt></p>
    </blockquote>
    <p>I've tried pip uninstalling PyYAML and pip installing it before
      running stack.sh, but the error comes back.</p>
    <blockquote>
      <p><tt>$ sudo pip uninstall PyYAML</tt><tt><br>
        </tt><tt>The directory '/home/stack/.cache/pip/http' or its
          parent directory is not owned by the current user and the
          cache has been disabled. Please check the permissions and
          owner of that directory. If executing pip with sudo, you may
          want sudo's -H flag.</tt><tt><br>
        </tt><tt>Uninstalling PyYAML-3.12:</tt><tt><br>
        </tt><tt> 
          /usr/local/lib/python2.7/dist-packages/PyYAML-3.12.dist-info/INSTALLER</tt><tt><br>
        </tt><tt> 
          /usr/local/lib/python2.7/dist-packages/PyYAML-3.12.dist-info/METADATA</tt><tt><br>
        </tt><tt> 
          /usr/local/lib/python2.7/dist-packages/PyYAML-3.12.dist-info/RECORD</tt><tt><br>
        </tt><tt> 
          /usr/local/lib/python2.7/dist-packages/PyYAML-3.12.dist-info/WHEEL</tt><tt><br>
        </tt><tt> 
/usr/local/lib/python2.7/dist-packages/PyYAML-3.12.dist-info/top_level.txt</tt><tt><br>
        </tt><tt>  /usr/local/lib/python2.7/dist-packages/_yaml.so</tt><tt><br>
        </tt><tt>Proceed (y/n)? y</tt><tt><br>
        </tt><tt>  Successfully uninstalled PyYAML-3.12</tt><br>
      </p>
    </blockquote>
    <p>I've posted my question to the pip folks and they think it's an
      openstack issue: <a class="moz-txt-link-freetext" href="https://github.com/pypa/pip/issues/4805">https://github.com/pypa/pip/issues/4805</a><br>
    </p>
    <p> Is there a workaround here?<br>
    </p>
    <p><br>
    </p>
  </body>
</html>