-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing /etc/ && /bin/ && /src/ toplevel areas in the pypi packages #11583
Comments
Hi @amaltaro , @vkuznet , Just a heads up - I did find a solution. Here follow the whole story: In order to debug this, I had to do some manual packaging and disassembled deployment only of the python package from the
Here follows the final destination of the properly installed
p.s. The PR for adding those |
Impact of the bug
Python based deployment
Describe the bug
While working on the deployment of
wmagent
throughpypi
packages only, I've stumbled on the missing/etc
,/bin
and/src
top level areas in the finally deployed python package. Even though/etc/
is listed for packaging here:WMCore/setup_build.py
Line 122 in 31d6516
it is missing from the packaged source in the tar file.
Here is the actual content of the package: [1]
[1]
The other missing bit is
/bin/
, but this time the directory is actually present in the pypi package: [1], but is not installed with pip. The bellow command returns no result:Same with the
/src
area - missing in the finally deployed package, while present at the package tar file:The impact of missing the two top level areas from the finally deployed python package is different, and for one of them is more severe than for the other:
/etc
in the package concerns only the missing agent config templates, which are a matter of a single download from source at build time for the docker image. While,/bin
in the package is a blocker, because it is preventing any$manage
command to be executed at the agent and is a matter of several files rather than a single template./src
in the the finally installed package is a blocker for the CouchDB initialization step at the agent. Here is the error that we observe:A temporary workaround has been implemented in the
CMSKubernetes
repository for some parts of the problem (namely/etc
&&/bin
), with the following commit: dmwm/CMSKubernetes@367370f , but this must go away ASAP.How to reproduce it
Setup the wmagent pypi package with:
pip install wmagent==2.2.0.2
and try to find the WMCore/bin/
and/etc/
directories or anything from their content.to check the actual content of the package, just download the it directly from pypi (e.g. Pypi/wmagent-2.2.0.5.tar.gz), untar/zip it and look at the contents.
Expected behavior
The package to contain the
/etc
and/bin
top level areas of WMCore.Additional context and error message
These two issues are blockers for completing the python based deployment for the
wmagent
package:#11564
#8797
Part of the following meta issue: #11314
The text was updated successfully, but these errors were encountered: