<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 21/09/2016 à 17:43, Yaniv Kaul a
écrit :<br>
</div>
<blockquote
cite="mid:CAJgorsa_qswWxG6SF3QVJvtTQSgCbXgid_Ecpv=jeJJ6OdDZrQ@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Sep 21, 2016 at 5:58 PM,
Nicolas Ecarnot <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:nicolas@ecarnot.net"
target="_blank">nicolas@ecarnot.net</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"><span class="gmail-">
<div>Le 21/09/2016 à 16:28, Yaniv Kaul a écrit :<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Sep 21, 2016 at
5:19 PM, Nicolas Ecarnot <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:nicolas@ecarnot.net"
target="_blank">nicolas@ecarnot.net</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"><span>
<div>Le 21/09/2016 à 16:11, Yaniv Kaul a
écrit :<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed,
Sep 21, 2016 at 5:07 PM, Nicolas
Ecarnot <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:nicolas@ecarnot.net"
target="_blank">nicolas@ecarnot.net</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"><span>
<div>Le 21/09/2016 à
15:49, Yaniv Kaul a
écrit :<br>
</div>
<blockquote type="cite">
<div dir="ltr">Adding
the Lago devel mailing
list.
<div><br>
</div>
<div>The download is
the reposync phase -
which seems to be
OK, but then the
connection means
that for some reason
Lago is not serving
those RPMs (8585 is
the port it should
be listening to).</div>
<div>Can you share
some logs?</div>
</div>
</blockquote>
<br>
</span><a
moz-do-not-send="true"
href="http://pastebin.com/nsDFZhuE"
target="_blank">http://pastebin.com/nsDFZhuE</a></div>
</blockquote>
<div><br>
</div>
<div><br>
</div>
<div>Perhaps something with the
Firewall?</div>
</div>
</div>
</div>
</blockquote>
<br>
</span> I had no idea whether to keep it
or not.<br>
I already disabled selinux after having
realized it lead to a read only root file
system.<br>
<br>
About the issue above, no being able to
reach some random port would indeed be
caused by the firewall, so I'll give it a
try.</div>
</blockquote>
<div><br>
</div>
<div>During RPM installation it should add the
relevant rule to the firewalld, btw:</div>
<div>if which firewall-cmd &>/dev/null;
then</div>
<div> firewall-cmd --reload</div>
<div> firewall-cmd --permanent
--zone=public --add-service=ovirtlago</div>
<div> firewall-cmd --reload</div>
<div>fi</div>
</div>
</div>
</div>
</blockquote>
<br>
</span> I gave it many tries and only when manually
adding your recommended firewall-cmd command, I was able
to go one step further in the run.<br>
<br>
Next issue is there :<br>
<br>
<font face="Courier New, Courier, monospace" size="-1">@
Start Prefix: <br>
# Start nets: <br>
* Create network lago_basic_suite_3_6_lago: <br>
* Create network lago_basic_suite_3_6_lago:
Success (in 0:00:06)<br>
# Start nets: Success (in 0:00:06)<br>
# Start vms: <br>
* Starting VM lago_basic_suite_3_6_engine: <br>
libvirt: QEMU Driver error : internal error: process
exited while connecting to monitor:
2016-09-21T14:50:12.757362Z qemu-system-x86_64: cannot
set up guest memory 'pc.ram': Cannot allocate memory<br>
* Starting VM lago_basic_suite_3_6_engine: ERROR
(in 0:00:02)<br>
# Start vms: ERROR (in 0:00:02)<br>
# Destroy network lago_basic_suite_3_6_lago: <br>
# Destroy network lago_basic_suite_3_6_lago: ERROR
(in 0:00:00)<br>
@ Start Prefix: ERROR (in 0:00:09)<span class="gmail-"><br>
Error occured, aborting<br>
Traceback (most recent call last):<br>
File "/usr/lib/python2.7/site-<wbr>packages/lago/cmd.py",
line 691, in main<br>
cli_plugins[args.verb].do_run(<wbr>args)<br>
File "/usr/lib/python2.7/site-<wbr>packages/lago/plugins/cli.py",
line 180, in do_run<br>
self._do_run(**vars(args))<br>
File "/usr/lib/python2.7/site-<wbr>packages/lago/utils.py",
line 488, in wrapper<br>
return func(*args, **kwargs)<br>
File "/usr/lib/python2.7/site-<wbr>packages/lago/utils.py",
line 499, in wrapper<br>
return func(*args, prefix=prefix, **kwargs)<br>
File "/usr/lib/python2.7/site-<wbr>packages/lago/cmd.py",
line 255, in do_start<br>
prefix.start(vm_names=vm_<wbr>names)<br>
File "/usr/lib/python2.7/site-<wbr>packages/lago/prefix.py",
line 958, in start<br>
self.virt_env.start(vm_names=<wbr>vm_names)<br>
</span> File "/usr/lib/python2.7/site-<wbr>packages/lago/virt.py",
line 175, in start<br>
vm.start()<br>
File "/usr/lib/python2.7/site-<wbr>packages/lago/plugins/vm.py",
line 247, in start<br>
return self.provider.start(*args, **kwargs)<br>
File "/usr/lib/python2.7/site-<wbr>packages/lago/vm.py",
line 93, in start<br>
self.libvirt_con.createXML(<wbr>self._libvirt_xml())<br>
File "/usr/lib64/python2.7/site-<wbr>packages/libvirt.py",
line 3727, in createXML<br>
if ret is None:raise libvirtError('<wbr>virDomainCreateXML()
failed', conn=self)<br>
libvirtError: internal error: process exited while
connecting to monitor: 2016-09-21T14:50:12.757362Z
qemu-system-x86_64: cannot set up guest memory
'pc.ram': Cannot allocate memory</font><br>
<br>
So here is the time I have to admit I'm trying to run
all this on a *very* humble machine, with only 4Gb of
RAM, that may sound ridiculous but I am prepared to wait
for days between each command return and mouse click, as
long as everything is doing its job (slowly).<br>
<br>
Not being able to allocate memory is blocking me from
even testing Lago.<br>
<br>
Wouldn't be somewhere I could tweak some limits?</div>
</blockquote>
<div><br>
</div>
<div>Of course, but I don't such low value would suffice.
You can change the template -
basic_suite_3.6/LagoInitFile.in <br>
</div>
</div>
<br>
</div>
</div>
</blockquote>
<br>
Thank you Nadav for your answer about networking.<br>
Thank you Yaniv as always helpful, because your hint worked : I
reduced the values of memory settings in the Lago init file and ran
everything from scratch : at first, it got stuck for hours with no
disk usage progress (as adviced in the FAQ).<br>
So I stopped everything, and ran a cleanup, then deleted the
/var/lib/lago/somewhere/rpm/cache/blahblah, and also rm -fr the
deployment dir.<br>
Then ran again, and it seems that everything until the tests went
OK.<br>
<br>
Now in my processes, I can see qemu processes running the engine,
the host0, host1 and storage.<br>
<font face="Courier New, Courier, monospace" size="-1">virsh # list<br>
Id Name State<br>
----------------------------------------------------<br>
1 f8b91b68-lago_basic_suite_3_6_engine running<br>
2 f8b91b68-lago_basic_suite_3_6_host1 running<br>
3 f8b91b68-lago_basic_suite_3_6_host0 running<br>
4 f8b91b68-lago_basic_suite_3_6_storage running<br>
</font><br>
<br>
But the first test (engine initialization) is failing with an issue
related to paramiko (see below).<br>
Apart from googling it, I had no idea what paramiko was.<br>
Anyway, as it leads to test 001 failing, then eventually complete
stop, I have to know how to correct this.<br>
I already checked that I have the paramiko RPM installed.<br>
<p><font face="Courier New, Courier, monospace" size="-1">+
env_run_test
/data/lago/ovirt-system-tests/basic_suite_3.6/test-scenarios/001_initialize_engine.py
[0/1196]<br>
+ echo '#########################'<br>
#########################<br>
+ local res=0<br>
+ cd /data/lago/ovirt-system-tests/deployment-basic_suite_3.6<br>
+ lago ovirt runtest
/data/lago/ovirt-system-tests/basic_suite_3.6/test-scenarios/001_initialize_engine.py<br>
current session does not belong to lago group.<br>
@ Run test: 001_initialize_engine.py: <br>
nose.config: INFO: Ignoring files matching ['^\\.', '^_',
'^setup\\.py$']<br>
# 001_initialize_engine.test_initialize_engine: <br>
* Copy
/data/lago/ovirt-system-tests/basic_suite_3.6/engine-answer-file.conf
to lago_basic_suite_3_6_engine:/tmp/answer-file: <br>
* Copy
/data/lago/ovirt-system-tests/basic_suite_3.6/engine-answer-file.conf
to lago_basic_suite_3_6_engine:/tmp/answer-file: Success (in
0:00:01)<br>
* Collect artifacts: <br>
No handlers could be found for logger "paramiko.transport"<br>
- [Thread-8] lago_basic_suite_3_6_host0: ERROR (in
0:01:04)<br>
* Collect artifacts: ERROR (in 0:01:04)<br>
# 001_initialize_engine.test_initialize_engine: ERROR (in
0:01:19)<br>
# Results located at
/data/lago/ovirt-system-tests/deployment-basic_suite_3.6/default/nosetests-001_initialize_engine.py.xml<br>
@ Run test: 001_initialize_engine.py: ERROR (in 0:01:21)<br>
Error occured, aborting<br>
Traceback (most recent call last):<br>
File "/usr/lib/python2.7/site-packages/ovirtlago/cmd.py", line
258, in do_run<br>
self.cli_plugins[args.ovirtverb].do_run(args)<br>
File "/usr/lib/python2.7/site-packages/lago/plugins/cli.py",
line 180, in do_run<br>
self._do_run(**vars(args))<br>
File "/usr/lib/python2.7/site-packages/lago/utils.py", line
488, in wrapper<br>
return func(*args, **kwargs)<br>
File "/usr/lib/python2.7/site-packages/lago/utils.py", line
499, in wrapper<br>
return func(*args, prefix=prefix, **kwargs)<br>
File "/usr/lib/python2.7/site-packages/ovirtlago/cmd.py", line
102, in do_ovirt_runtest<br>
raise RuntimeError('Some tests failed')<br>
RuntimeError: Some tests failed<br>
+ res=1<br>
+ cd -<br>
/data/lago/ovirt-system-tests<br>
+ return 1<br>
+ failed=true<br>
+ env_collect
/data/lago/ovirt-system-tests/test_logs/basic_suite_3.6/post-001_initialize_engine.py<br>
+ local
tests_out_dir=/data/lago/ovirt-system-tests/test_logs/basic_suite_3.6/post-001_initialize_engine.py<br>
+ echo '#########################'<br>
#########################<br>
+ [[ -e /data/lago/ovirt-system-tests/test_logs/basic_suite_3.6
]]<br>
+ mkdir -p
/data/lago/ovirt-system-tests/test_logs/basic_suite_3.6<br>
+ cd
/data/lago/ovirt-system-tests/deployment-basic_suite_3.6/current<br>
+ lago ovirt collect --output
/data/lago/ovirt-system-tests/test_logs/basic_suite_3.6/post-001_initialize_engine.py<br>
current session does not belong to lago group.<br>
@ Collect artifacts: <br>
# [Thread-1] lago_basic_suite_3_6_engine: <br>
# [Thread-2] lago_basic_suite_3_6_host1: <br>
# [Thread-3] lago_basic_suite_3_6_host0: <br>
# [Thread-4] lago_basic_suite_3_6_storage: <br>
# [Thread-1] lago_basic_suite_3_6_engine: Success (in 0:00:22)<br>
# [Thread-4] lago_basic_suite_3_6_storage: Success (in
0:00:23)<br>
# [Thread-2] lago_basic_suite_3_6_host1: Success (in 0:00:23)<br>
# [Thread-3] lago_basic_suite_3_6_host0: Success (in 0:00:23)<br>
@ Collect artifacts: Success (in 0:00:24)<br>
+ cp -a logs
/data/lago/ovirt-system-tests/test_logs/basic_suite_3.6/post-001_initialize_engine.py/lago_logs<br>
+ cd -<br>
/data/lago/ovirt-system-tests<br>
+ true<br>
+ echo '@@@@ ERROR: Failed running
/data/lago/ovirt-system-tests/basic_suite_3.6/test-scenarios/001_initialize_engine.py'<br>
@@@@ ERROR: Failed running
/data/lago/ovirt-system-tests/basic_suite_3.6/test-scenarios/001_initialize_engine.py<br>
+ return 1</font><br>
</p>
<p>Many stackoverflow answers seem to say that the fix is easy, but
I have no clue where to put these settings?<br>
</p>
<p><a class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/15437700/no-handlers-could-be-found-for-logger-paramiko-transport">http://stackoverflow.com/questions/15437700/no-handlers-could-be-found-for-logger-paramiko-transport</a><br>
</p>
<pre class="moz-signature" cols="72">--
Nicolas ECARNOT
</pre>
</body>
</html>