Permission issues when trying to migrate vm through the api (ovirt system tests)
by David Caro
--GZVR6ND4mMseVXL/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi everyone!
I'm having some issues when trying to run the ovirt system tests from ovirt
master branch, and I need some help from you guys.
The issue is that when trying to migrate a vm through the api, I get the er=
ror:
RequestError:=20
status: 400
reason: Bad Request
detail: User is not authorized to perform this action.
That does not happen when doing the same through the ui, the vm is migrated
correctly.
The engine logs don't add much more details:
2016-04-18 06:04:15,393 INFO [org.ovirt.engine.core.bll.MigrateVmToServerC=
ommand] (default task-15) [29237280] No permission found for user '0000001a=
-001a-001a-001a-0000000002dd' or one of the groups he is member of, when ru=
nning action 'MigrateVmToServer', Required permissions are: Action type: 'U=
SER' Action group: 'CREATE_VM' Object type: 'Cluster' Object ID: 'null'.
2016-04-18 06:04:15,393 WARN [org.ovirt.engine.core.bll.MigrateVmToServerC=
ommand] (default task-15) [29237280] Validation of action 'MigrateVmToServe=
r' failed for user admin@internal-authz. Reasons: VAR__ACTION__MIGRATE,VAR_=
_TYPE__VM,USER_NOT_AUTHORIZED_TO_PERFORM_ACTION
2016-04-18 06:04:15,413 ERROR [org.ovirt.engine.api.restapi.resource.Abstra=
ctBackendResource] (default task-15) [] Operation Failed: [User is not auth=
orized to perform this action.]
Something that looks odd to me too, is that in the roles, when you edit the
'SuperUser' role (the one the admin user belongs to) there there's one
permission missing, the 'VM->Provisioning Operations->Create Instance', and
can't be added (it's greyed out), not sure if it's related though, I can pa=
ss
you a screenshot if you want.
I can give you access to an environment where that happens and more
details/logs/etc if you want to look deeper into it.
Thanks!
--=20
David Caro
Red Hat S.L.
Continuous Integration Engineer - EMEA ENG Virtualization R&D
Tel.: +420 532 294 605
Email: dcaro(a)redhat.com
IRC: dcaro|dcaroest@{freenode|oftc|redhat}
Web: www.redhat.com
RHT Global #: 82-62605
--GZVR6ND4mMseVXL/
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJXFLfJAAoJEEBxx+HSYmnDFA0H/Ar1wcZSNcu53zhrU74+7Eo7
wNUAJcP64yQxgT2Uda4MP4zD+ARsheOfA+MvPg7WuSQaXaoIyV1vkEFlfKb9UgZM
Pp5Lu8Rd/hSrzvJay/iB0JDmYkxgsHeRrwJRS0T9FKJ7R9WDxu77UzDTLj3Q3IpP
8IO8B4QrE/ujWp0sOK8fns6WgaOmfF7/BWtLzt2SbBIGGfMj6gdPKItTb5nW0M01
Q176SWqd3Xfdi5IDoknKSGoR2BrIu2Lkv9JvScPqEewJZdBJQNPc3FuZwSycRzm8
bKnmdSJrabSMcNl7UeVyn6lciGhYjMAsro7OLXtiVNWXDpvyEHuQhaU/rGTsg18=
=f6YE
-----END PGP SIGNATURE-----
--GZVR6ND4mMseVXL/--
8 years, 7 months
New UI plugin API additions
by Vojtech Szocs
Hi,
in oVirt master / 4.0, following new UI plugin API
functions are now available.
--
engineBaseUrl [1]: can be used to construct Engine
URLs.
Signature:
engineBaseUrl()
Examples:
// returns something like:
// https://example.com:8443/ovirt-engine/
api.engineBaseUrl()
[1] https://gerrit.ovirt.org/#/c/55694/
--
showAlert [2]: can be used to show 'global' alert
messages (colored boxes in top-center part of UI).
Signature:
showAlert(alertTypeName, message, options)
Examples:
api.showAlert('success', 'Everything is good');
api.showAlert('danger', 'Something is bad', {
autoHideMs: 3000
});
[2] https://gerrit.ovirt.org/#/c/55504/
--
Regards,
Vojtech
8 years, 7 months
oVirt-specific aspect languages
by Arik Hadas
Hi All,
Last month I participated in Modularity'16, an academic conference that focuses on advanced software modularization techniques, where I presented my work in the area of domain specific aspect languages that was evaluated on oVirt.
Many have asked me to elaborate on this work, so I wrote a post that explains the idea and provides references to relevant materials that were presented in the conference, which I would like to share with you:
http://ahadas.github.io/oVirt-Specifc-Aspect-Languages/
Regards,
Arik
8 years, 7 months
[ACTION REQUIRED] vdsm_master_build-artifacts-fc23-x86_64 is failing due to missing dep on fc23 .packages
by Sandro Bonazzola
http://jenkins.ovirt.org/job/vdsm_master_build-artifacts-fc23-x86_64/823/...
*00:05:46.751* ======================================================================*00:05:46.751*
ERROR: Failure: ImportError (No module named 'netaddr')*00:05:46.751*
----------------------------------------------------------------------*00:05:46.752*
Traceback (most recent call last):*00:05:46.752* File
"/usr/lib/python3.4/site-packages/nose/failure.py", line 39, in
runTest*00:05:46.752* raise
self.exc_val.with_traceback(self.tb)*00:05:46.752* File
"/usr/lib/python3.4/site-packages/nose/loader.py", line 418, in
loadTestsFromName*00:05:46.752* addr.filename,
addr.module)*00:05:46.752* File
"/usr/lib/python3.4/site-packages/nose/importer.py", line 47, in
importFromPath*00:05:46.752* return self.importFromDir(dir_path,
fqname)*00:05:46.752* File
"/usr/lib/python3.4/site-packages/nose/importer.py", line 94, in
importFromDir*00:05:46.753* mod = load_module(part_fqname, fh,
filename, desc)*00:05:46.753* File "/usr/lib64/python3.4/imp.py",
line 235, in load_module*00:05:46.753* return load_source(name,
filename, file)*00:05:46.753* File "/usr/lib64/python3.4/imp.py",
line 171, in load_source*00:05:46.753* module =
methods.load()*00:05:46.753* File "<frozen importlib._bootstrap>",
line 1220, in load*00:05:46.753* File "<frozen
importlib._bootstrap>", line 1200, in _load_unlocked*00:05:46.753*
File "<frozen importlib._bootstrap>", line 1129, in
_exec*00:05:46.753* File "<frozen importlib._bootstrap>", line 1471,
in exec_module*00:05:46.754* File "<frozen importlib._bootstrap>",
line 321, in _call_with_frames_removed*00:05:46.754* File
"/home/jenkins/workspace/vdsm_master_build-artifacts-fc23-x86_64/vdsm/rpmbuild/BUILD/vdsm-4.17.999/tests/network/models_test.py",
line 27, in <module>*00:05:46.754* from vdsm.netinfo import
bonding, mtus*00:05:46.754* File
"/home/jenkins/workspace/vdsm_master_build-artifacts-fc23-x86_64/vdsm/rpmbuild/BUILD/vdsm-4.17.999/lib/vdsm/netinfo/__init__.py",
line 26, in <module>*00:05:46.754* from ..ipwrapper import
DUMMY_BRIDGE*00:05:46.755* File
"/home/jenkins/workspace/vdsm_master_build-artifacts-fc23-x86_64/vdsm/rpmbuild/BUILD/vdsm-4.17.999/lib/vdsm/ipwrapper.py",
line 30, in <module>*00:05:46.755* from netaddr.core import
AddrFormatError*00:05:46.755* ImportError: No module named 'netaddr'
Please fix ASAP.
Thanks,
--
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
8 years, 7 months
Lago + ovirt-system-tests run fail on collecting logs
by Eyal Edri
After running:
./run_suite.sh --cleanup basic_suite_3.6
./run_suite.sh basic_suite_3.6
The tests failed at [1]
Does it mean the cleanup stage failed? why would log collection fail
on a duplicate file?
I think it will be beneficial to support multiple logs and rotate it like
we do in ovirt for e.g,
Since a developer might run a few times without cleanning up the env.
Do we have an open issue for it? , cause I didn't find anything similar.
[1].
@ Collect artifacts: ERROR (in 0:00:00)
Error occured, aborting
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/ovirtlago/cmd.py", line 248, in
do_run
self.cli_plugins[args.ovirtverb].do_run(args)
File "/usr/lib/python2.7/site-packages/lago/plugins/cli.py", line 180, in
do_run
self._do_run(**vars(args))
File "/usr/lib/python2.7/site-packages/lago/utils.py", line 501, in
wrapper
return func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/lago/utils.py", line 512, in
wrapper
return func(*args, prefix=prefix, **kwargs)
File "/usr/lib/python2.7/site-packages/ovirtlago/cmd.py", line 217, in
do_ovirt_collect
prefix.collect_artifacts(output)
File "/usr/lib/python2.7/site-packages/lago/log_utils.py", line 598, in
wrapper
return func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/lago/prefix.py", line 928, in
collect_artifacts
os.makedirs(output_dir)
File "/usr/lib64/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 17] File exists:
'/home/eedri/lago/ovirt-system-tests/test_logs/basic_suite_3.6/post-001_initialize_engine.py'
--
Eyal Edri
Associate Manager
RHEV DevOps
EMEA ENG Virtualization R&D
Red Hat Israel
phone: +972-9-7692018
irc: eedri (on #tlv #rhev-dev #rhev-integ)
8 years, 7 months
VDSM fails 'autogen.sh' when shallow cloning - is that expected?
by Yaniv Kaul
Cloning VDSM with the following command:
git clone -b master --depth 1 git://gerrit.ovirt.org/vdsm
Which works, but then I can't run ./autogen.sh succesfully:
mini@ykaul-mini:/tmp/github/vdsmshallow$ ./autogen.sh |less
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
I am going to run ./configure with no arguments - if you wish
to pass any to it, please specify them on the ./autogen.sh command line.
configure: error: package version not defined
As the difference is 1:10 in data size and I only wish to work on the tip,
this could be very useful to me.
Any ideas?
8 years, 7 months
[ACTION REQUIRED] Project vdsm_master_check-merged-el7-x86_64 failing consistently
by Sandro Bonazzola
Hi,
Project vdsm_master_check-merged-el7-x86_64 failing consistently at least
since April 7.
*00:15:04.646* * Starting VM vdsm_functional_tests_host-fc23:
*00:15:04.649* libvirt: QEMU Driver error : Cannot check QEMU binary
/usr/libexec/qemu-kvm: No such file or directory
Please fix functional test ASAP.
CC infra so they're aware of the issue as well.
--
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
8 years, 7 months
gerrit.ovirt.org restart
by Gil Shinar
Hi all,
Due to very slow performance we are restarting the gerrit service.
It'll be back up in one minute
Sorry for the inconvenient
Gil
8 years, 7 months