grenade fails due to PyYAML conflict
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grenade |
New
|
Undecided
|
Unassigned |
Bug Description
When running grenade from stable/train to Ussuri, it fails when installing the new version of keystone (3.6) with:
ERROR: 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.
This is due to using a newer version of pip (>10) and the fact that python3-yaml (3.12) is already installed by nova.
An example run log:
https:/
Attempting to uninstall python3-yaml before the grenade run does not work around the issue.
This was seen on at least the designate and octavia grenade gate runs. Octavia has resorted to making grenade non-voting.
It looks like devstack is installing the python3-yaml that later conflicts with keystone:
2019-11-26 19:24:02.010499 | primary | + /opt/stack/ new/devstack- gate/devstack- vm-gate. sh:setup_ localrc: L265: local localrc_oldnew=old new/devstack- gate/devstack- vm-gate. sh:setup_ localrc: L266: local localrc_ file=devstack. local.conf. base new/devstack- gate/devstack- vm-gate. sh:setup_ localrc: L267: local role=primary new/devstack- gate/devstack- vm-gate. sh:setup_ localrc: L273: local branch_ for_matrix= stable/ train new/devstack- gate/devstack- vm-gate. sh:setup_ localrc: L277: [[ -z '' ]] new/devstack- gate/devstack- vm-gate. sh:setup_ localrc: L278: rm -f devstack. local.conf. base new/devstack- gate/devstack- vm-gate. sh:setup_ localrc: L282: [[ ! -z '' ]] new/devstack- gate/devstack- vm-gate. sh:setup_ localrc: L286: which python3 new/devstack- gate/devstack- vm-gate. sh:setup_ localrc: L286: PYTHON_ PATH=/usr/ bin/python3 new/devstack- gate/devstack- vm-gate. sh:setup_ localrc: L287: basename /usr/bin/python3 new/devstack- gate/devstack- vm-gate. sh:setup_ localrc: L287: PYTHON_NAME=python3 new/devstack- gate/devstack- vm-gate. sh:setup_ localrc: L288: uses_debs new/devstack- gate/functions. sh:uses_ debs:L52: type apt-get new/devstack- gate/devstack- vm-gate. sh:setup_ localrc: L289: dpkg -s python3-yaml new/devstack- gate/devstack- vm-gate. sh:setup_ localrc: L290: apt_get_install python3-yaml new/devstack- gate/functions. sh:apt_ get_install: L63: [[ -z '' ]] new/devstack- gate/functions. sh:apt_ get_install: L64: timeout 300 sh -c 'while ! sudo apt-get update; do sleep 30; done' mirror. ord.rax. opendev. org/ubuntu bionic InRelease mirror. ord.rax. opendev. org/ubuntu bionic-updates InRelease mirror. ord.rax. opendev. org/ubuntu bionic-backports InRelease mirror. ord.rax. opendev. org/...
2019-11-26 19:24:02.010834 | primary | + /opt/stack/
2019-11-26 19:24:02.011127 | primary | + /opt/stack/
2019-11-26 19:24:02.011456 | primary | + /opt/stack/
2019-11-26 19:24:02.011726 | primary | + /opt/stack/
2019-11-26 19:24:02.011969 | primary | + /opt/stack/
2019-11-26 19:24:02.014291 | primary | + /opt/stack/
2019-11-26 19:24:02.015056 | primary | ++ /opt/stack/
2019-11-26 19:24:02.016667 | primary | + /opt/stack/
2019-11-26 19:24:02.017340 | primary | ++ /opt/stack/
2019-11-26 19:24:02.018730 | primary | + /opt/stack/
2019-11-26 19:24:02.018969 | primary | + /opt/stack/
2019-11-26 19:24:02.019167 | primary | + /opt/stack/
2019-11-26 19:24:02.019388 | primary | apt-get is /usr/bin/apt-get
2019-11-26 19:24:02.019620 | primary | + /opt/stack/
2019-11-26 19:24:02.045207 | primary | dpkg-query: package 'python3-yaml' is not installed and no information is available
2019-11-26 19:24:02.045409 | primary | Use dpkg --info (= dpkg-deb --info) to examine archive files,
2019-11-26 19:24:02.045537 | primary | and dpkg --contents (= dpkg-deb --contents) to list their contents.
2019-11-26 19:24:02.046222 | primary | + /opt/stack/
2019-11-26 19:24:02.046457 | primary | + /opt/stack/
2019-11-26 19:24:02.046800 | primary | + /opt/stack/
2019-11-26 19:24:02.215036 | primary | Ign:1 http://
2019-11-26 19:24:02.215742 | primary | Ign:2 http://
2019-11-26 19:24:02.216532 | primary | Ign:3 http://
2019-11-26 19:24:02.218796 | primary | Ign:4 http://