GoogleCloudPlatform / GoogleCloudPlatform/PerfKitBenchmarker
Can not load RPM file
- Dominant language
- Python
- Stars
- 2k
- Forks
- 562
- Avg merge
- 4h 55m
- Merged PRs (30d)
- 69
Description
I'm trying to run benchmark on local RHEL8 machine in virtual environment. The following error is encountered
```
MainThread iperf(1/1) ERROR Exception occurred while calling PrepareVmAfterBoot():
Traceback (most recent call last):
File "/local/projects/perfkitbenchmarker/perfkitbenchmarker/background_tasks.py", line 252, in Run
self.return_value = self.target(*self.args, **self.kwargs)
File "/local/projects/perfkitbenchmarker/perfkitbenchmarker/benchmark_spec.py", line 977, in PrepareVmAfterBoot
vm.PrepareVMEnvironment()
File "/local/projects/perfkitbenchmarker/perfkitbenchmarker/linux_virtual_machine.py", line 525, in PrepareVMEnvironment
self.SetupPackageManager()
File "/local/projects/perfkitbenchmarker/perfkitbenchmarker/linux_virtual_machine.py", line 1872, in SetupPackageManager
self.RemoteCommand(f'sudo dnf install -y {_EPEL_URL.format(8)}')
File "/local/projects/perfkitbenchmarker/perfkitbenchmarker/linux_virtual_machine.py", line 1058, in RemoteCommand
return self.RemoteCommandWithReturnCode(*args, **kwargs)[:2]
File "/local/projects/perfkitbenchmarker/perfkitbenchmarker/linux_virtual_machine.py", line 1074, in RemoteCommandWithReturnCode
return self.RemoteHostCommandWithReturnCode(*args, **kwargs)
File "/local/projects/perfkitbenchmarker/perfkitbenchmarker/linux_virtual_machine.py", line 1146, in RemoteHostCommandWithReturnCode
raise errors.VirtualMachine.RemoteCommandError(error_text)
perfkitbenchmarker.errors.VirtualMachine.RemoteCommandError: Got non-zero return code (1) executing sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Full command: ssh -A -p @ -2 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PreferredAuthentications=publickey -o PasswordAuthentication=no -o ConnectTimeout=5 -o GSSAPIAuthentication=no -o ServerAliveInterval=30 -o ServerAliveCountMax=10 -i /root/.ssh/id_rsa -o ControlPath="/tmp/perfkitbenchmarker/runs/77345236/ssh/%h" -o ControlMaster=auto -o ControlPersist=30m sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
STDOUT: Updating Subscription Management repositories.
Waiting for process with pid 198661 to finish.
STDERR: mesg: ttyname failed: Inappropriate ioctl for device
Can not load RPM file: /var/cache/dnf/commandline-a76fe31ae310b0c7/packages/epel-release-latest-8.noarch.rpm.
Could not open: /var/cache/dnf/commandline-a76fe31ae310b0c7/packages/epel-release-latest-8.noarch.rpm
Exception occurred while calling PrepareVmAfterBoot():
Traceback (most recent call last):
File "/local/projects/perfkitbenchmarker/perfkitbenchmarker/background_tasks.py", line 252, in Run
self.return_value = self.target(*self.args, **self.kwargs)
File "/local/projects/perfkitbenchmarker/perfkitbenchmarker/benchmark_spec.py", line 977, in PrepareVmAfterBoot
vm.PrepareVMEnvironment()
File "/local/projects/perfkitbenchmarker/perfkitbenchmarker/linux_virtual_machine.py", line 525, in PrepareVMEnvironment
self.SetupPackageManager()
File "/local/projects/perfkitbenchmarker/perfkitbenchmarker/linux_virtual_machine.py", line 1872, in SetupPackageManager
self.RemoteCommand(f'sudo dnf install -y {_EPEL_URL.format(8)}')
File "/local/projects/perfkitbenchmarker/perfkitbenchmarker/linux_virtual_machine.py", line 1058, in RemoteCommand
return self.RemoteCommandWithReturnCode(*args, **kwargs)[:2]
File "/local/projects/perfkitbenchmarker/perfkitbenchmarker/linux_virtual_machine.py", line 1074, in RemoteCommandWithReturnCode
return self.RemoteHostCommandWithReturnCode(*args, **kwargs)
File "/local/projects/perfkitbenchmarker/perfkitbenchmarker/linux_virtual_machine.py", line 1146, in RemoteHostCommandWithReturnCode
raise errors.VirtualMachine.RemoteCommandError(error_text)
perfkitbenchmarker.errors.VirtualMachine.RemoteCommandError: Got non-zero return code (1) executing sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Full command: ssh -A -p @ -2 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PreferredAuthentications=publickey -o PasswordAuthentication=no -o ConnectTimeout=5 -o GSSAPIAuthentication=no -o ServerAliveInterval=30 -o ServerAliveCountMax=10 -i /root/.ssh/id_rsa -o ControlPath="/tmp/perfkitbenchmarker/runs/ec7fccc0/ssh/%h" -o ControlMaster=auto -o ControlPersist=30m sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
STDOUT: Updating Subscription Management repositories.
STDERR: mesg: ttyname failed: Inappropriate ioctl for device
ftruncate() failed: No such file or directory
```
Command ran : $ /local/projects/perfkit/bin/python3 ./pkb.py --benchmarks=iperf --benchmark_config_file=localtest.yaml --static_vm_file=localtest.json --os_type=rhel8 --ip_addresses=EXTERNAL
Contributor guide
Assessment
This issue has not been assessed yet.