Avoid staging conflicts

Today builds started failing due staging failures where init,
openstack-projects, launch, cluster, and microstack parts are
attempting to stage the same files with different contents for
pip, pkg_resources, and setuptools python packages. bin/petname
is also conflicting between openstack-projects and launch.

Avoid the conflicts by not pulling the files in for the init and
launch parts.

Change-Id: I759391edfff8fd1010eccba0c38814e3be49cc84
This commit is contained in:
Corey Bryant 2021-03-05 16:30:00 -05:00
parent 0ae9adef3e
commit 7b662567d5
1 changed files with 37 additions and 0 deletions

View File

@ -1445,6 +1445,15 @@ parts:
rm $SNAPCRAFT_PART_INSTALL/bin/python3
rm $SNAPCRAFT_PART_INSTALL/bin/python
rm $SNAPCRAFT_PART_INSTALL/lib/python3.8/site-packages/netifaces.cpython-38-x86_64-linux-gnu.so
filesets:
exclude-duplicate-files:
- -lib/python3.8/site-packages/pip/*
- -lib/python3.8/site-packages/pkg_resources/*
- -lib/python3.8/site-packages/setuptools/*
stage:
- $exclude-duplicate-files
prime:
- $exclude-duplicate-files
# Launch script
launch:
@ -1469,6 +1478,16 @@ parts:
rm $SNAPCRAFT_PART_INSTALL/bin/activate.fish
rm $SNAPCRAFT_PART_INSTALL/bin/python3
rm $SNAPCRAFT_PART_INSTALL/bin/python
filesets:
exclude-duplicate-files:
- -bin/petname
- -lib/python3.8/site-packages/pip/*
- -lib/python3.8/site-packages/pkg_resources/*
- -lib/python3.8/site-packages/setuptools/*
stage:
- $exclude-duplicate-files
prime:
- $exclude-duplicate-files
microstack:
plugin: python
@ -1488,6 +1507,15 @@ parts:
rm $SNAPCRAFT_PART_INSTALL/bin/activate.fish
rm $SNAPCRAFT_PART_INSTALL/bin/python3
rm $SNAPCRAFT_PART_INSTALL/bin/python
filesets:
exclude-duplicate-files:
- -lib/python3.8/site-packages/pip/*
- -lib/python3.8/site-packages/pkg_resources/*
- -lib/python3.8/site-packages/setuptools/*
stage:
- $exclude-duplicate-files
prime:
- $exclude-duplicate-files
# Clustering client and server
cluster:
@ -1516,6 +1544,15 @@ parts:
rm $SNAPCRAFT_PART_INSTALL/bin/activate.fish
rm $SNAPCRAFT_PART_INSTALL/bin/python
rm $SNAPCRAFT_PART_INSTALL/bin/python3
filesets:
exclude-duplicate-files:
- -lib/python3.8/site-packages/pip/*
- -lib/python3.8/site-packages/pkg_resources/*
- -lib/python3.8/site-packages/setuptools/*
stage:
- $exclude-duplicate-files
prime:
- $exclude-duplicate-files
setup-lvm-loopdev:
source-type: local