testing uses of Injector.get with mockito
by Fedor Gavrilov
We have quite a few occasions when Injector.get(SomeClass.class) is used inside command. Given that mockito can't mock static methods and power mock is not used, I wonder what one should do when these usages have to be mocked in unit tests.
Funny enough, workarounds for this usage in my specific case include mocking constructor (unsupported by mockito) and mocking superclass method (unsupported by mockito).
Also, why not to @Inject these instances in the first place?
Thanks,
Fedor
4 years, 7 months
openvswitch on Centos 8 will not re/build
by lejeczek
hi guys,
Centos 8 comes with gcc-8 which openvswitch does not like
(from rpm source: openvswitch-2.11.1-5.el8.src.rpm) and it
fails to build. Would that be correct?
...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether make supports the include directive... yes
(GNU style)
checking for x86_64-redhat-linux-gnu-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error:
in `/yum.rpm/rpmbuilds/os.generic/build/openvswitch-2.11.1':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
regards, L.
4 years, 7 months
libvirtd fails on: operation failed: pool 'default' already exists with uuid dd48b6ad-9a00-46eb-a3a4-c122d8a294a5
by Dana Elfassy
Hi everyone,
libvirtd fails with this error when I activate VirtualMachineManager
from the journal:
May 08 16:10:05 delfassy libvirtd[26476]: libvirt version: 5.6.0, package:
10.el8 (CBS <cbs(a)centos.org>, 2020-02-27-01:09:46, )
May 08 16:10:05 delfassy libvirtd[26476]: hostname: delfassy
May 08 16:10:05 delfassy libvirtd[26476]: operation failed: pool 'default'
already exists with uuid dd48b6ad-9a00-46eb-a3a4-c122d8a294a5
May 08 16:10:19 delfassy sudo[26639]: delfassy : TTY=pts/5 ;
PWD=/home/delfassy/ovirt-engine-master ; USER=root ; COMMAND=/bin/journalctl
May 08 16:10:19 delfassy sudo[26639]: pam_systemd(sudo:session): Cannot
create session: Already running in a session or user slice
May 08 16:10:19 delfassy sudo[26639]: pam_unix(sudo:session): session
opened for user root by (uid=0)
Among steps that I have tried were destroying the default pool and
recreating it, removing all libvirt packages and virtual-machine-manager,
erasing /etc/libvirt, and reinstalling them, all result with this error
Has anyone encountered this error/ has an idea how to fix it?
Thanks,
Dana
4 years, 7 months
uplaod_disk/download_disk possible breakage - you need now ovirt-imgaeio-client
by Nir Soffer
We merged imageio patch changing the package structure. Unfortunately this
change is not backward compatible and breaks older versions of upload_disk.py,
download_disk.py, and backup_vm.py from ovirt-engine-sdk.
If you try to upload or download disks using the SDK and upload fail with:
$ ./upload_disk.py -h
Traceback (most recent call last):
File "./upload_disk.py", line 44, in <module>
from ovirt_imageio import ui
ImportError: cannot import name 'ui' from 'ovirt_imageio'
(/usr/lib64/python3.7/site-packages/ovirt_imageio/__init__.py)
You need to install ovirt-imageio-package:
sudo dnf install ovirt-imageio-client
and use this patch:
https://gerrit.ovirt.org/c/108840/
If you cannot find ovirt-imageio-client, you are need to install
ovirt-release-master.rpm:
sudo dnf install
https://resources.ovirt.org/pub/yum-repo/ovirt-release-master.rpm
Nir
4 years, 7 months
Yahoo & DMARC - @list admins
by lejeczek
hi everyone
Maintainers/Admins - could you guys please fix DMARC so
those Yahoo Mail users, such as me, would get their own emails.
Yahoo(maybe other well know providers) changed theirs
policies some longer time ago and as of today (probably for
longer time only that nobody minded, or... it's just me on
Yahoo's mail??) own emails go to a black hole. Number of
mailing lists, including Redhat's ones, got this fixed some
time ago.
many thanks, L.
4 years, 7 months
oVirt 4.4.0 First Release Candidate is now available for testing!
by Sandro Bonazzola
The oVirt Project is excited to announce the availability of the first
Release Candidate of oVirt 4.4.0 for testing, as of May 6th, 2020
This release unleashes an altogether more powerful and flexible open source
virtualization solution that encompasses hundreds of individual changes and
a wide range of enhancements across the engine, storage, network, user
interface, and analytics on top of oVirt 4.3.
Important notes before you try it
Please note this is a pre-release build.
The oVirt Project makes no guarantees as to its suitability or usefulness.
This pre-release must not to be used in production.
Some of the features included in oVirt 4.4.0 Release Candidate require
content that will be available in CentOS Linux 8.2 but can’t be tested on
RHEL 8.2 beta yet due to some incompatibility in openvswitch package
shipped in CentOS Virt SIG which requires to rebuild openvswitch on top of
CentOS 8.2.
Installation instructions
For the engine: either use appliance or:
- Install CentOS Linux 8 minimal from
http://centos.mirror.garr.it/centos/8.1.1911/isos/x86_64/CentOS-8.1.1911-...
- dnf install
https://resources.ovirt.org/pub/yum-repo/ovirt-release44-pre.rpm
- dnf update (reboot if needed)
- dnf module enable -y javapackages-tools pki-deps postgresql:12
- dnf install ovirt-engine
- engine-setup
For the nodes:
Either use oVirt Node ISO or:
- Install CentOS Linux 8 from
http://centos.mirror.garr.it/centos/8.1.1911/isos/x86_64/CentOS-8.1.1911-...
; select minimal installation
- dnf install
https://resources.ovirt.org/pub/yum-repo/ovirt-release44-pre.rpm
- dnf update (reboot if needed)
- Attach the host to engine and let it be deployed.
What’s new in oVirt 4.4.0 Release Candidate?
-
Hypervisors based on CentOS Linux 8 (rebuilt from award winning RHEL8),
for both oVirt Node and standalone CentOS Linux hosts
-
Easier network management and configuration flexibility with
NetworkManager
-
VMs based on a more modern Q35 chipset with legacy seabios and UEFI
firmware
-
Support for direct passthrough of local host disks to VMs
-
Live migration improvements for High Performance guests.
-
New Windows Guest tools installer based on WiX framework now moved to
VirtioWin project
-
Dropped support for cluster level prior to 4.2
-
Dropped SDK3 support
-
4K disks support only for file based storage. iSCSI/FC storage do not
support 4k disks yet.
-
Exporting a VM to a data domain
-
Editing of floating disks
-
Integrating ansible-runner into engine, which allows a more detailed
monitoring of playbooks executed from engine
-
Adding/reinstalling hosts are now completely based on Ansible
-
The OpenStack Neutron Agent cannot be configured by oVirt anymore, it
should be configured by TripleO instead
This release is available now on x86_64 architecture for:
* Red Hat Enterprise Linux 8.1
* CentOS Linux (or similar) 8.1
This release supports Hypervisor Hosts on x86_64 and ppc64le architectures
for:
* Red Hat Enterprise Linux 8.1
* CentOS Linux (or similar) 8.1
* oVirt Node 4.4 based on CentOS Linux 8.1 (available for x86_64 only)
See the release notes [1] for installation instructions and a list of new
features and bugs fixed.
If you manage more than one oVirt instance, OKD or RDO we also recommend to
try ManageIQ <http://manageiq.org/>.
In such a case, please be sure to take the qc2 image and not the ova image.
Notes:
- oVirt Appliance is already available for CentOS Linux 8
- oVirt Node NG is already available for CentOS Linux 8
Additional Resources:
* Read more about the oVirt 4.4.0 release highlights:
http://www.ovirt.org/release/4.4.0/
* Get more oVirt project updates on Twitter: https://twitter.com/ovirt
* Check out the latest project news on the oVirt blog:
http://www.ovirt.org/blog/
[1] http://www.ovirt.org/release/4.4.0/
[2] http://resources.ovirt.org/pub/ovirt-4.4-pre/iso/
--
Sandro Bonazzola
MANAGER, SOFTWARE ENGINEERING, EMEA R&D RHV
Red Hat EMEA <https://www.redhat.com/>
sbonazzo(a)redhat.com
<https://www.redhat.com/>
[image: |Our code is open_] <https://www.redhat.com/en/our-code-is-open>
*Red Hat respects your work life balance. Therefore there is no need to
answer this email out of your office hours.*
4 years, 7 months