Skip to content
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

Prediction for not existing checkout impossible #152

Open
nichmoe opened this issue Mar 6, 2024 · 0 comments
Open

Prediction for not existing checkout impossible #152

nichmoe opened this issue Mar 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nichmoe
Copy link
Contributor

nichmoe commented Mar 6, 2024

Bug: You are not able to test a new GitCheckout, without deploying it.

Reproduction: Add a new batou_ext.git.GitCheckout to the deployment and test it with the -P prediction option. The deployment prediction fails, because of a (correctly) missing folder.

Expectation: A prediction doesn't fail, because the component could not change the file system.

Traceback:

host > CRS > GitCheckout > Directory('work/crs/prepared-0bd51ff806c68e2a54c4d60ca13f731c5355696d') > SyncDirectory('prepared-0bd51ff806c68e2a54c4d60ca13f731c5355696d')
ERROR: rsync -rclnv --exclude '.git' /srv/user/deployment/work/crs/checkout/ /srv/user/deployment/work/crs/prepared-0bd51ff806c68e2a54c4d60ca13f731c5355696d
    Return code: 23
STDOUT
sending incremental file list

sent 19 bytes  received 12 bytes  62.00 bytes/sec
total size is 0  speedup is 0.00 (DRY RUN)

STDERR
rsync: [sender] change_dir "/srv/user/deployment/work/crs/checkout" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1336) [sender=3.2.7]


ERROR: Unexpected exception
        Traceback (most recent call last):
        File "/Deployment/.appenv/2a69e431/lib/python3.11/site-packages/batou/deploy.py", line 371, in main
    getattr(deployment, step)()
        File "/Deployment/.appenv/2a69e431/lib/python3.11/site-packages/batou/deploy.py", line 317, in deploy
    self.loop.run_until_complete(asyncio.gather(*pending))
        File "/User/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
        File "/Deployment/.appenv/2a69e431/lib/python3.11/site-packages/batou/deploy.py", line 272, in _deploy_component
    await self.loop.run_in_executor(
        File "/User/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Deployment/.appenv/2a69e431/lib/python3.11/site-packages/batou/host.py", line 196, in deploy_component
    self.rpc.deploy(component, predict_only)
        File "/Deployment/.appenv/2a69e431/lib/python3.11/site-packages/batou/host.py", line 97, in call
    raise RuntimeError(
        RuntimeError: host.domain: Remote exception encountered.
======================================================================= DEPLOYMENT PREDICTION FAILED (during deploy) ========================================================================
@nichmoe nichmoe added the bug Something isn't working label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant