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

unable to delete guests created by tmt try #2888

Open
skycastlelily opened this issue Apr 25, 2024 · 0 comments · May be fixed by #2889
Open

unable to delete guests created by tmt try #2888

skycastlelily opened this issue Apr 25, 2024 · 0 comments · May be fixed by #2889
Milestone

Comments

@skycastlelily
Copy link
Collaborator

Create an instance using tmt try
(dev) lnie@fedora:~/tmt$ tmt try -l -v fedora-39
/var/tmp/tmt/run-001
Let's try login with /default/plan on fedora-39.

/default/plan
provision
queued provision.provision task #1: default-0
...
name: tmt-001-QqNyzsRu
...

(dev) lnie@fedora:~/tmt$ tmt clean guests -l/-i run-001

warn: /plans/beaker:provision - {'how': 'beaker', 'api-url': 'http://127.0.0.1:8001/v0.0.58', 'api-version': '0.0.58', 'image': 'fedora-37', 'arch': 'x86_64', 'pool': 'beaker', 'keyname': 'master-key', 'ownername': 'artemis', 'key': '/home/lnie/id_rsa_key', 'skip_prepare_verify_ssh': True, 'hardware': {'cpu': {'sockets': '<= 1', 'cores': 2, 'threads': '>= 8', 'cores-per-socket': '= 2', 'threads-per-core': '== 4', 'processors': '> 8'}}} is not valid under any of the given schemas
warn: /plans/testcloud:provision - {'how': 'virtual', 'api-url': 'http://127.0.0.1:8001/v0.0.58', 'api-version': '0.0.58', 'image': 'fedora-39', 'arch': 'x86_64', 'pool': 'beaker', 'keyname': 'master-key', 'ownername': 'artemis', 'skip_prepare_verify_ssh': True, 'workdir-root': '/var/tmp/test', 'hardware': {'disk': [{'size': '>= 200 GiB'}]}} is not valid under any of the given schemas
warn: /plans/tests/beaker:provision - {'how': 'artemis', 'api-url': 'http://127.0.0.1:8001/v0.0.58', 'api-version': '0.0.58', 'image': 'Fedora-38', 'arch': 'x86_64', 'pool': 'beaker', 'keyname': 'master-key', 'ownername': 'artemis', 'key': '/home/lnie/id_rsa_key', 'skip_prepare_verify_ssh': True, 'hardware': {'virtualization': {'is-virtualized': False}, 'disk': [{'size': '>= 2 GiB'}, {'model-name': 'test'}]}} is not valid under any of the given schemas
warn: /plans/tests/example:provision - {'how': 'artemis', 'api-url': 'http://127.0.0.1:8001/v0.0.69', 'api-version': '0.0.69', 'image': 'Fedora-38-uefi', 'pool': 'openstack', 'keyname': 'master-key', 'ownername': 'artemis', 'user': 'core', 'key': '/home/lnie/id_rsa_key', 'skip_prepare_verify_ssh': True, 'hardware': {'disk': [{'size': '>= 2 GiB'}], 'boot': {'method': 'uefi'}}} is not valid under any of the given schemas
warn: /plans/tests/failbeaker:provision - {'how': 'artemis', 'api-url': 'http://127.0.0.1:8001/v0.0.58', 'api-version': '0.0.58', 'image': 'Fedora-38', 'arch': 'aarch64', 'keyname': 'master-key', 'ownername': 'artemis', 'provision-timeout': 3600, 'kickstart': {'script': 'lang en_US.UTF-8\nzerombr\nclearpart --all --initlabel\npart /boot --fstype="xfs" --size=200\npart swap --fstype="swap" --size=4096\npart / --fstype="xfs" --size=10000 --grow --ondisk=sdb\n', 'post-install': '%post\nmkdir -p /root/.ssh\ncat >>/root/.ssh/authorized_keys <<"__EOF__"\nssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDDsUcX8bATyAiorcgzjMj7daA2lR0wOkrNvL1VTdihGszOk2YW0x12yjlAQpkZRGDQSa8JVV4wYt1kxvuaDdoMulV0JdGGUkwyHeZXxsZHFGRYrmxKblm8cY0vjbKdb/WRe6AHtRaablEaJCDkOXJYlDwWlDD6nXvdllfv06N2KyHCJAveiQdWB2+DC1ckROm3dy9zd9DAQYo86DIR/gMFUrbRx1yl6Miwk7mSKfodgjCPb4zwjgsQ3NtegeWbO0SK2BIppCVI5FDIOOAZpNO0xOlwratfhbmA1btWhZjGS5iGoxqZ9sQT8Imb8Zijoi32R/pSJrwrxjrqf2yGW4+cYsdrvC7V22fzcGUxkKY0m2+uYhI3tffgAZIdUiJFZSA7Jxc/I3R7z397mvuj6dDhb2XZfdk1YX739YM/V/eOS62+VTHUV0sqS3nQsH9dQiFNeGJ8P4yzqUFJciYJ2VSceoYBhwUXE7OXl+ZRn08Bjn3uCVLp6H++LUkMb0CMNaE= lnie@localhost.localdomain\n__EOF__\nrestorecon -R /root/.ssh\nchmod go-w /root /root/.ssh /root/.ssh/authorized_keys\nsed -i \'/^#PermitRootLogin /s/^#//\' /etc/ssh/sshd_config\nsed -i \'s|PermitRootLogin .*|PermitRootLogin yes|\' /etc/ssh/sshd_config\nsystemctl restart sshd\n%end\n'}} is not valid under any of the given schemas
warn: /plans/tests/mrack:provision - {'how': 'beaker', 'api-url': 'http://127.0.0.1:8001/v0.0.58', 'api-version': '0.0.58', 'image': 'fedora-37', 'arch': 'x86_64', 'pool': 'beaker', 'keyname': 'master-key', 'ownername': 'artemis', 'key': '/home/lnie/id_rsa_key', 'skip_prepare_verify_ssh': True, 'hardware': {'virtualization': {'is-virtualized': False, 'hypervisor': 'kvm'}, 'disk': [{'size': '>= 2 GiB'}, {'model-name': 'test'}]}} is not valid under any of the given schemas

(dev) lnie@fedora:~/tmt$ tmt clean guests
clean
guests

RunData.init() missing 4 required positional arguments: 'root', 'plans', 'steps', and 'remove'

That is because tmt try doesn't create run.yaml,while clean guests need uses the data from run.yaml

@skycastlelily skycastlelily linked a pull request Apr 25, 2024 that will close this issue
8 tasks
@happz happz added this to the 1.34 milestone May 17, 2024
@happz happz linked a pull request May 17, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants