-
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
Create symbolic links in deploy-wmagent #10454
Create symbolic links in deploy-wmagent #10454
Conversation
Jenkins results:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for providing this patch, Todor.
However, I wonder if we really need the symlink for sw
? Is it related to the init.sh script which adds libraries to the environment? That setup.sh/init.sh works fine for python2-based specs, so I would expect it to be the same for python3 as well.
Hi @amaltaro, |
It has always been like this. In other words, there is nothing that needs to be fixed IMO (if you saw anything breaking, then please provide further details). It's just a matter of explicitly demonstrating from where your software has been deployed from. |
Thanks for your comment @amaltaro
No one questions the reason behind this naming convention. It is simply that the rest of the environment we run the service in is not compatible with this. And the link is the way to fix this. I did not preserve the logs, but IIRC even the deployment process of a MySQL based agent was having troubles to complete, without applying this patch to the deployment script. |
Hi @amaltaro I just pushed the shortest possible fix tho this softlink creation as we discussed yesterday, which should make this point to the right deployment even for deployments from private repositories. Would you take a look please? |
Jenkins results:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Todor, it looks pretty good now!
Fixes #9805
Status
ready
Description
In order to be able to test different combinations of rpm packages and dependencies, we need to have the ability to build and upload them in our personal repositories in
cmsrep
[1]. While deploying from such a repository (adding the option-r comp=comp.<user>
to the deployment script) the deployment area changes from/data/srv/wmagent/current/sw
to /data/srv/wmagent/current/sw.`, this needs to be properly reflected in the set of symbolic links we create during the installation process.Another change that this PR introduces is a symbolic link fixing the different path to the manage script embedded in the
$manage
variable when it comes to deployment of thewmagentpy3
package (adding the option--py3
to the deployment script)[1]
http://cmsrep.cern.ch/cgi-bin/repos/comp.tivanov/slc7_amd64_gcc630
Is it backward compatible (if not, which system it affects?)
YES
Related PRs
<If it's a follow up work; or porting a fix from a different branch, please mention them here.>
External dependencies / deployment changes
<Does it require deployment changes? Does it rely on third-party libraries?>