CI: test_qcow2_to_raw_preallocated is flaky
by Amit Bawer
Hi,
This occurs on CI every now and then,
taken from: https://jenkins.ovirt.org/job/vdsm_standard-check-patch/18302//artifact/c...
Thanks
________ TestConvertPreallocation.test_qcow2_to_raw_preallocated[full] _________
self = <storage.qemuimg_test.TestConvertPreallocation object at 0x7f9bac7c3ef0>
preallocation = 'full'
@pytest.mark.parametrize("preallocation", [
qemuimg.PREALLOCATION.FALLOC,
qemuimg.PREALLOCATION.FULL,
])
def test_qcow2_to_raw_preallocated(self, preallocation):
virtual_size = 10 * MiB
with namedTemporaryDir() as tmpdir:
src = os.path.join(tmpdir, 'src')
dst = os.path.join(tmpdir, 'dst')
op = qemuimg.create(src, size=virtual_size, format="qcow2")
op.run()
op = qemuimg.convert(src, dst, srcFormat="qcow2", dstFormat="raw",
preallocation=preallocation)
op.run()
> check_raw_preallocated_image(dst, virtual_size)
storage/qemuimg_test.py:561:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
path = '/var/tmp/tmpxr0emprz/dst', virtual_size = 10485760
def check_raw_preallocated_image(path, virtual_size):
image_stat = os.stat(path)
assert image_stat.st_size == virtual_size
> assert image_stat.st_blocks * 512 == virtual_size
E assert (20488 * 512) == 10485760
E + where 20488 = os.stat_result(st_mode=33188, st_ino=411528,
st_dev=2049, st_nlink=1, st_uid=0, st_gid=0, st_size=10485760,
st_atime=1581845207, st_mtime=1581845207,
st_ctime=1581845207).st_blocks
storage/qemuimg_test.py:621: AssertionError
4 years, 9 months
somehow, no permission to run VM
by Fedor Gavrilov
Hi,
Have you ever seen an error like this:
2020-02-15 20:05:16,246+01 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ForkJoinPool-1-worker-27) [] EVENT_ID: VM_DOWN_ERROR(119), VM vm0 is down with error. Exit message: internal error: child reported (status=125): unable to open /rhev/data-center/mnt/banana:_nfsshare/45e51eaa-b608-40b1-9db6-6e6a1b3ed428/images/9d440b9a-b033-4209-898b-6667a4605281/ead2017a-a7fe-4408-b8d4-1670cb767474: Permission denied.
in the engine logs? I'm getting it on my env (master branch) and can't figure out why. I login as admin, I have a perfectly working host and storage machines, on which I created this VM and its disk. Without any actions in between, I try to run it and get this. Storage domain and data center statuses are updated as you expect when you put the host to maintenance and back, so it seems this is the only thing wrong. Do you know what that might be?
Thanks,
Fedor
4 years, 9 months
Create VM snapshot with no disk
by scott.fitzgerald@oracle.com
Hi,
A VM Snapshot can be made using
SnapshotBuilder builder = new SnapshotBuilder().vm(VM).name("Snap1").description("Test");
sysService.vmsService().vmService(VM.id()).snapshotsService().add().snapshot(builder).send();
It can be made with no memory by using a builder with persistMemorystate(false)
How can one be made with no disk? .diskAttachments(emptyList) isnt working.
TIA
4 years, 9 months
please stop merging
by Dafna Ron
Hi all,
Engine has been failing for a while and someone has also moved the broken
package manually to the tested repo which broke all projects in cq.
At this time, until we stabilise engine and get a new package into tested,
all projects will continue failing cq and no new packages will be moved to
the stable repo (tested).
if you continue to merge, we not only risk adding more regression but it
also makes it more difficult to debug and fix as there are a lot of changes
in the queue waiting to be tested and very little resources to run it.
Please stop merging on all projects until this is resolved.
Thanks,
Dafna
4 years, 9 months
OST network suite is failing
by Dominik Holler
Hello Tal and Andrej,
can you please have a look at the failing
https://jenkins.ovirt.org/job/ovirt-system-tests_network-suite-master/1260/
2020-02-05 21:03:12,798-05 ERROR
[org.ovirt.engine.core.bll.storage.disk.AddDiskCommand] (default
task-2) [03a09eb0-7ccd-44db-a8fd-c01dc8ce82c7] Error during
ValidateFailure.: java.lang.NullPointerException
at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidator.isVirtIoScsiValid(DiskVmElementValidator.java:54)
at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.storage.disk.AddDiskCommand.checkIfImageDiskCanBeAdded(AddDiskCommand.java:299)
at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.storage.disk.AddDiskCommand.validate(AddDiskCommand.java:195)
Thanks,
Dominik
4 years, 9 months
Issue when attempting cattach of hosts to network
by raymond.francis@oracle.com
To reproduce i do this
1. Create a new netork
2. Click into the network and hosts->unattached
Uncaught exception occurred. Please try reloading the page. Details: (TypeError) : Cannot read property 'N' of null
Please have your administrator check the UI logs
Only occurs on some environments. My problematic one has 3 hosts. In the error above, none appear as unattached (or attached)
4 years, 9 months
CI environment broken
by Tomáš Golembiovský
Hi,
it looks like the CI is broken. All recent Gerrit patches fail currently
for strange reasons.
check-patch.linters.fc30.x86_64 fails because it cannot create tox environments:
> ERROR: invocation failed (exit code 1), logfile: /home/jenkins/workspace/vdsm_standard-check-patch/vdsm/.tox/gluster/log/gluster-0.log
> ================================== log start ===================================
> ERROR:root:ImportError: cannot import name 'ensure_text'
>
> =================================== log end ====================================
> ERROR: InvocationError for command /usr/bin/python3 -m virtualenv --system-site-packages --no-download --python /usr/bin/python3 gluster (exited with code 1)
check-patch.tests-py3.el8.x86_64 fails on flake8 because it tries to
lint files from some virtual env:
> ...
> /.local/share/virtualenv/seed-v1/3.7/image/SymlinkPipInstall/pip-20.0.2-py2.py3-none-any/pip/_vendor/webencodings/x_user_defined.py:48:1: E266 too many leading '#' for block comment
> ### encodings module API
> ^
> ./.local/share/virtualenv/seed-v1/3.7/image/SymlinkPipInstall/pip-20.0.2-py2.py3-none-any/pip/_vendor/webencodings/x_user_defined.py:61:1: E266 too many leading '#' for block comment
> ### Decoding Table
> ^
> ./.local/share/virtualenv/seed-v1/3.7/image/SymlinkPipInstall/pip-20.0.2-py2.py3-none-any/pip/_vendor/webencodings/x_user_defined.py:324:1: E266 too many leading '#' for block comment
> ### Encoding table
> ^
> 6 E111 indentation is not a multiple of four
> 15 E114 indentation is not a multiple of four (comment)
> 12 E115 expected an indented block (comment)
> 70 E116 unexpected indentation (comment)
> 38 E121 continuation line under-indented for hanging indent
> 10177 E122 continuation line missing indentation or outdented
> 12 E123 closing bracket does not match indentation of opening bracket's line
> 2 E124 closing bracket does not match visual indentation
> 1 E125 continuation line with same indent as next logical line
> 37 E126 continuation line over-indented for hanging indent
> 78 E127 continuation line over-indented for visual indent
> 124 E128 continuation line under-indented for visual indent
> 19 E129 visually indented line with same indent as next logical line
> 253 E131 continuation line unaligned for hanging indent
> 962 E201 whitespace after '{'
> 982 E202 whitespace before '}'
> 11 E211 whitespace before '('
> 143 E221 multiple spaces before operator
> 61 E225 missing whitespace around operator
> 229 E226 missing whitespace around arithmetic operator
> 4 E227 missing whitespace around bitwise or shift operator
> 56614 E231 missing whitespace after ','
> 1024 E241 multiple spaces after ','
> 36 E251 unexpected spaces around keyword / parameter equals
> 770 E261 at least two spaces before inline comment
> 205 E262 inline comment should start with '# '
> 190 E265 block comment should start with '# '
> 91 E266 too many leading '#' for block comment
> 3 E271 multiple spaces after keyword
> 4 E272 multiple spaces before keyword
> 71 E301 expected 1 blank line, found 0
> 427 E302 expected 2 blank lines, found 1
> 26 E303 too many blank lines (3)
> 26 E306 expected 1 blank line before a nested definition, found 0
> 3 E401 multiple imports on one line
> 4717 E501 line too long (96 > 79 characters)
> 5 E502 the backslash is redundant between brackets
> 11 E701 multiple statements on one line (colon)
> 11 E704 multiple statements on one line (def)
> 4 E713 test for membership should be 'not in'
> 1 E714 test for object identity should be 'is not'
> 565 F401 'typing.List' imported but unused
> 4 F403 'from .core import *' used; unable to detect undefined names
> 2 F405 'encode' may be undefined, or defined from star imports: .codec, .core
> 3 F811 redefinition of unused 're' from line 10
> 78 F821 undefined name 'unicode'
> 23 F841 local variable 'success' is assigned to but never used
> 158 W291 trailing whitespace
> 259 W293 blank line contains whitespace
> 12 W391 blank line at end of file
Are the environemtns broken? Can somebody look into that?
Tomas
--
Tomáš Golembiovský <tgolembi(a)redhat.com>
4 years, 9 months
Is "Copy Role" functionality possible through the SDK?
by conor.o.o.brien@oracle.com
Hi,
Is there ability to copy an existing system role via the SDK similar to what's available in the oVirt Admin Portal?
I can see add(), update() and remove() but nothing so far that looks like it maps to copy().
Thanks a lot,
Conor
4 years, 9 months