-
Notifications
You must be signed in to change notification settings - Fork 144
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
tmt clean guests|runs ... doesn't #2772
Comments
Able to reproduce this problem if I run clean runs first,but if I run clean guests first,all things work well for testcloud created guests.
|
For mrack created guest users will see:#2796 that's a different problem:) |
Hi, @martinpitt,would please check tmt clean guests --vvddl and then tmt clean runs -vvddl fix your problem?Thanks:) |
Starting from a clean slate: Fresh reboot, /var/tmp/tmt is empty, no running VMs.
That works fine indeed (tmt-1.32.1-1.fc39.noarch). So cleaning up the last VM/run works, thanks for the tip! But if I start a second session, then
|
So cleaning up the last VM/run works, thanks for the tip!
My pleasure.
But if I start a second session, then -l only ever cleans run-002,
run-001 stays around even if I run the clean commands a second time.
That's because run-001 is NOT last run, run-001 is the second to last run:)
I understand your request: when the last run is deleted, the second to
last run becomes the last run,and so on.
With current implement,tmt doesn't support that.
…On Sun, Apr 7, 2024 at 3:29 PM Martin Pitt ***@***.***> wrote:
Starting from a clean slate: Fresh reboot, /var/tmp/tmt is empty, no
running VMs.
tmt try -l -v fedora-rawhide
tmt clean guests -vvddl
tmt clean runs -vvddl
That works fine indeed (tmt-1.32.1-1.fc39.noarch). So cleaning up the last
VM/run works, thanks for the tip!
But if I start a second session, then -l only ever cleans run-002,
run-001 stays around even if I run the clean commands a second time.
--help and the command names suggest that they would clean *all* runs,
though?
—
Reply to this email directly, view it on GitHub
<#2772 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKFR23BXUSFXM6TJNUG5MP3Y4DYVHAVCNFSM6AAAAABE62QY2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGM2DSOJSGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
That'd be nice, but it's actually not my request. It was just an attempt to work around. The request here is that the clean command works without |
tmt clean runs works well here:
***@***.***:~/tmt/tmt$ ls /var/tmp/tmt/
instances run-001 run-002 testcloud testcloud.lock
***@***.***:~/tmt/tmt$ tmt clean runs -vvddl
clean
runs
Workdir '/var/tmp/tmt/run-002' already exists.
Removing workdir '/var/tmp/tmt/run-002'.
***@***.***:~/tmt/tmt$ tmt clean runs
clean
runs
***@***.***:~/tmt/tmt$ ls /var/tmp/tmt/
instances testcloud testcloud.lock
***@***.***:~/tmt/tmt$ rpm -q tmt
tmt-1.32.1-1.fc39.noarch
Would you please check whether there is a run.yaml file in your
/var/tmp/tmt/run-001 dir?Thanks.
…On Mon, Apr 8, 2024 at 4:37 PM Martin Pitt ***@***.***> wrote:
I understand your request: when the last run is deleted, the second to
last run becomes the last run,and so on.
That'd be nice, but it's actually not my request. It was just an attempt
to work around. The request here is that the clean command works *without*
-l.
—
Reply to this email directly, view it on GitHub
<#2772 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKFR23FCVQTMXRLS2ZQGZOTY4JJNFAVCNFSM6AAAAABE62QY2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBSGE4DANJWHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sorry for the delay! No, nothing in my /var/tmp/tmt/run-001/ leftover from a few days ago. I created a new one from
I started a "real" test, and that does create one:
and |
Yes,that is because tmt try doesn't create a run.yaml file,and tmt clean //guests/runs commands without --id/--last will only clean things from the runs whose dir has a run.yaml file in it. |
@skycastlelily, do I understand correctly that this issue should now be fixed by #2889? |
With tmt-1.31.0-1.fc39.noarch,
tmt clean
doesn't seem to do anything. I see this with sessions liketmt run --until report provision --how virtual --image fedora-39
(I do this to interactively debug after a failure), but a session can also be generated withtmt try -l -v fedora-rawhide
(which apparently fails to boot and times out trying to connect after two minutes). After that:After that, neither of these commands has any observable effect, both the libvirt VM and the run-* and instances/* remain untouched:
The output looks a bit different with
-l
/--last
:But same result, no actual cleaning.
The text was updated successfully, but these errors were encountered: