Re: [ovirt-users] Building oVirt engine on Debian

2017-06-09 Thread Leni Kadali Mutungi
> On Thu, Jun 8, 2017 at 6:28 AM, Leni Kadali Mutungi
>  wrote:
>> I assigned the CentOS VM 3GB of RAM, so that could very well be the
>> problem. So the next step will be to increase the RAM of the VM to 4GB
>> and report back with my findings.
Results of the build. It managed to move on from the point where it freezed.
Here's the output:

[INFO] weaveinfo Join point 'constructor-execution(void
com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer.(com.google.gwt.dev.jjs.ast.JProgram))'
in Type 'com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer'
(ControlFlowAnalyzer.java:905) advised by after advice from
'org.ovirt.engine.ui.gwtaop.DontPrune' (DontPrune.java)
[INFO]Compile of permutations succeeded
[INFO]Compilation succeeded -- 357.776s
[INFO] Linking into
/home/centos/git/ovirt-engine/frontend/webadmin/modules/userportal-gwtp/target/generated-gwt/userportal
[INFO]Link succeeded
[INFO]Linking succeeded -- 1.889s
[INFO]
[INFO] --- maven-war-plugin:2.2:war (default-war) @ userportal ---
[INFO] Packaging webapp
[INFO] Assembling webapp [userportal] in
[/home/centos/git/ovirt-engine/frontend/webadmin/modules/userportal-gwtp/target/userportal-4.2.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources
[/home/centos/git/ovirt-engine/frontend/webadmin/modules/userportal-gwtp/target/generated-gwt/userportal]
to 
[/home/centos/git/ovirt-engine/frontend/webadmin/modules/userportal-gwtp/target/userportal-4.2.0-SNAPSHOT]
[INFO] Copying webapp resources
[/home/centos/git/ovirt-engine/frontend/webadmin/modules/userportal-gwtp/src/main/webapp]
[INFO] Webapp assembled in [213 msecs]
[INFO] Building war:
/home/centos/git/ovirt-engine/frontend/webadmin/modules/userportal-gwtp/target/userportal-4.2.0-SNAPSHOT.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO]
[INFO] --- ovirt-jboss-modules-maven-plugin:2.0.1:attach-modules
(default) @ userportal ---
[INFO] The modules source directory
"/home/centos/git/ovirt-engine/frontend/webadmin/modules/userportal-gwtp/src/main/modules"
doesn't exist, no modules artifacts will be attached.
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ userportal ---
[INFO] Installing
/home/centos/git/ovirt-engine/frontend/webadmin/modules/userportal-gwtp/target/userportal-4.2.0-SNAPSHOT.war
to 
/home/centos/.m2/repository/org/ovirt/engine/ui/userportal/4.2.0-SNAPSHOT/userportal-4.2.0-SNAPSHOT.war
[INFO] Installing
/home/centos/git/ovirt-engine/frontend/webadmin/modules/userportal-gwtp/pom.xml
to 
/home/centos/.m2/repository/org/ovirt/engine/ui/userportal/4.2.0-SNAPSHOT/userportal-4.2.0-SNAPSHOT.pom
[INFO]
[INFO] 
[INFO] Building frontend-symbols 4.2.0-SNAPSHOT
[INFO] 
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
frontend-symbols ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
frontend-symbols ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle) @
frontend-symbols ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources
(default-testResources) @ frontend-symbols ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/home/centos/git/ovirt-engine/frontend/webadmin/modules/frontend-symbols/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile
(default-testCompile) @ frontend-symbols ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.3:test (default-test) @
frontend-symbols ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.2:jar (default-jar) @ frontend-symbols ---
[INFO] Building jar:
/home/centos/git/ovirt-engine/frontend/webadmin/modules/frontend-symbols/target/frontend-symbols-4.2.0-SNAPSHOT.jar
[INFO]
[INFO] --- ovirt-jboss-modules-maven-plugin:2.0.1:attach-modules
(default) @ frontend-symbols ---
[INFO] The modules source directory
"/home/centos/git/ovirt-engine/frontend/webadmin/modules/frontend-symbols/src/main/modules"
doesn't exist, no modules artifacts will be attached.
[INFO]
[INFO] --- maven-jar-plugin:2.2:test-jar (test-jar) @ frontend-symbols ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar:
/home/centos/git/ovirt-engine/frontend/webadmin/modules/frontend-symbols/target/frontend-symbols-4.2.0-SNAPSHOT-tests.jar
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
frontend-symbols ---
[INFO] Installing
/home/centos/git/ovirt-engine/frontend/webadmin/modules/frontend-symbols/target/frontend-symbols-4.2.0-SNAPSHOT.jar
to 

Re: [ovirt-users] Building oVirt engine on Debian

2017-06-08 Thread Yedidyah Bar David
On Thu, Jun 8, 2017 at 6:28 AM, Leni Kadali Mutungi
 wrote:
> Results on trying a separate build on a CentOS VM are again a freeze
> at the same point as stated below:
>
> [INFO] weaveinfo Join point 'constructor-execution(void
> com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer.(com.google.gwt.dev.jjs.ast.JProgram))'
> in Type 'com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer'
> (ControlFlowAnalyzer.java:905) advised by after advice from
> 'org.ovirt.engine.ui.gwtaop.DontPrune' (DontPrune.java)
>
> I assigned the CentOS VM 3GB of RAM, so that could very well be the
> problem. So the next step will be to increase the RAM of the VM to 4GB
> and report back with my findings.

See end of README.adoc and ovirt_build_minimal - you can check the spec
file to see what it causes rpmbuild to actually pass to make.

>
> I installed oVirt normally (from repos) on another CentOS VM and I
> noticed during engine-setup that the minimum amount of RAM is 4GB and
> the preferred amount is 16GB.

This is unrelated to building.

> I'm guessing 8GB is probably not enough to build oVirt, though I think
> it would do for a user install.

For merely starting an engine and see that it works and you can login,
1-2GB are enough too.

For building, I do not know - IIRC last time I built an engine myself,
not in jenkins, I used a 16GB machine. Memory usage depends a lot on
what you choose to build and how - already discussed this in the past.

Best,

>
> --
> - Warm regards
> Leni Kadali Mutungi



-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Building oVirt engine on Debian

2017-06-07 Thread Leni Kadali Mutungi
Results on trying a separate build on a CentOS VM are again a freeze
at the same point as stated below:

[INFO] weaveinfo Join point 'constructor-execution(void
com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer.(com.google.gwt.dev.jjs.ast.JProgram))'
in Type 'com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer'
(ControlFlowAnalyzer.java:905) advised by after advice from
'org.ovirt.engine.ui.gwtaop.DontPrune' (DontPrune.java)

I assigned the CentOS VM 3GB of RAM, so that could very well be the
problem. So the next step will be to increase the RAM of the VM to 4GB
and report back with my findings.

I installed oVirt normally (from repos) on another CentOS VM and I
noticed during engine-setup that the minimum amount of RAM is 4GB and
the preferred amount is 16GB.
I'm guessing 8GB is probably not enough to build oVirt, though I think
it would do for a user install.

-- 
- Warm regards
Leni Kadali Mutungi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Building oVirt engine on Debian

2017-06-07 Thread Yedidyah Bar David
On Wed, Jun 7, 2017 at 3:29 AM, Leni Kadali Mutungi
 wrote:
> On 6/6/17, Yedidyah Bar David  wrote:
>> On Tue, Jun 6, 2017 at 6:55 AM, Leni Kadali Mutungi
>>  wrote:
>> So, did the engine also start successfully?
> Successfully ran
> `/home/user/ovirt_engine/share/ovirt-engine/services/ovirt-engine/ovirt-engine.py
> start`
> Unfortunately all I get is the home page. Trying to access the user
> portal and administration portal leaves me with a blank page. I guess
> this is the consequence of not building the GWT bits?

I guess so :-)

But check also the logs, var/log/ovirt-engine/* .
-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Building oVirt engine on Debian

2017-06-06 Thread Leni Kadali Mutungi
On 6/6/17, Yedidyah Bar David  wrote:
> On Tue, Jun 6, 2017 at 6:55 AM, Leni Kadali Mutungi
>  wrote:
> So, did the engine also start successfully?
Successfully ran
`/home/user/ovirt_engine/share/ovirt-engine/services/ovirt-engine/ovirt-engine.py
start`
Unfortunately all I get is the home page. Trying to access the user
portal and administration portal leaves me with a blank page. I guess
this is the consequence of not building the GWT bits?

-- 
- Warm regards
Leni Kadali Mutungi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Building oVirt engine on Debian

2017-06-06 Thread Yedidyah Bar David
On Tue, Jun 6, 2017 at 6:55 AM, Leni Kadali Mutungi
 wrote:
> Setup was successful. Attached is the message I received. I didn't
> mind the firewalld bits since I don't have that installed. However all
> the ovn-* commands didn't work. I tried locating their equivalents,
> thinking that they could be in the ovirt_engine folder or something
> along those lines. The `sed` and `keytool` commands worked. However I
> don't have OpenSwitch installed so I'll add that if it's necessary.

You can also ignore ovn for now - just reply 'No' when asked, and even
if you replied Yes I do not think you'll have many problems if you do
not actually use it.

So, did the engine also start successfully?

Best,

>
> --
> - Warm regards
> Leni Kadali Mutungi



-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Building oVirt engine on Debian

2017-06-05 Thread Leni Kadali Mutungi
Setup was successful. Attached is the message I received. I didn't
mind the firewalld bits since I don't have that installed. However all
the ovn-* commands didn't work. I tried locating their equivalents,
thinking that they could be in the ovirt_engine folder or something
along those lines. The `sed` and `keytool` commands worked. However I
don't have OpenSwitch installed so I'll add that if it's necessary.

-- 
- Warm regards
Leni Kadali Mutungi


ovirt_config
Description: Binary data
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Building oVirt engine on Debian

2017-06-03 Thread Yedidyah Bar David
On Fri, Jun 2, 2017 at 7:07 AM, Leni Kadali Mutungi
 wrote:
> On 6/1/17, Leni Kadali Mutungi  wrote:
>> On 6/1/17, Yedidyah Bar David  wrote:
>>> The message:
>>>
>>> No handlers could be found for logger
>>> "ovirt.engine.ovirt_engine.configfile"
>>>
>>> is ugly, but harmless. It almost always appears in the setup log file.
>>> You are welcome to open a bug about it, though.
>>>
>>> Not sure what's the problem with engine-setup.
>>>
>>> Can you please provide the full output?
>>>
>>> Does it create a log file? Can you check/share that one too?
>>>
>> Apologies I was unable to re-run the engine-setup. So here is the full
>> output:
>> herabus@trojan:~$ ovirt_engine/bin/engine-setup
>> [ INFO  ] Stage: Initializing
>>   Setup was run under unprivileged user this will produce
>> development installation do you wish to proceed? (Yes, No) [No]: Yes
>> [ INFO  ] Stage: Environment setup
>>   Configuration files: []
>>   Log file:
>> /home/user/ovirt_engine/var/log/ovirt-engine/setup/ovirt-engine-setup-20170601195203-2d7fr3.log
>>   Version: otopi-1.7.0_master ()
>> [ INFO  ] Stage: Environment packages setup
>> [ INFO  ] Stage: Programs detection
>> [ INFO  ] Stage: Environment setup
>> [ INFO  ] Stage: Environment customization
>>
>>   --== PRODUCT OPTIONS ==--
>>
>>   Configure Engine on this host (Yes, No) [Yes]: Yes
>>   Configure WebSocket Proxy on this host (Yes, No) [Yes]: Yes
>>   Configure VM Console Proxy on this host (Yes, No) [Yes]: Yes
>>   Install ovirt-provider-ovn(Yes, No) [Yes]?:Yes
>>
>>   --== NETWORK CONFIGURATION ==--
>>
>>   Host fully qualified DNS name of this server
>> [trojan.dragon.org]: 127.0.1.1
>> [ ERROR ] Host name is not valid: 127.0.1.1 is an IP address and not a
>> FQDN. A FQDN is needed to be able to generate certificates correctly.
>>   Host fully qualified DNS name of this server
>> [trojan.dragon.org]: trojan.dragon.org
>> [ ERROR ] Host name is not valid: Command 'dig' is required but missing

Indeed - please install dig. I think this should work:

apt-get install -y dnsutils

>>   Host fully qualified DNS name of this server
>> [trojan.dragon.org]: 127.0.1.1
>> [ ERROR ] Host name is not valid: 127.0.1.1 is an IP address and not a
>> FQDN. A FQDN is needed to be able to generate certificates correctly.
>>   Host fully qualified DNS name of this server
>> [trojan.dragon.org]: ^C[ ERROR ] Failed to execute stage 'Environment
>> customization': SIG2
>> [ INFO  ] Stage: Clean up
>>   Log file is located at
>> /home/user/ovirt_engine/var/log/ovirt-engine/setup/ovirt-engine-setup-20170601195203-2d7fr3.log
>> [ INFO  ] Generating answer file
>> '/home/user/ovirt_engine/var/lib/ovirt-engine/setup/answers/20170601195425-setup.conf'
>> [ INFO  ] Stage: Pre-termination
>> [ INFO  ] Stage: Termination
>> [ ERROR ] Execution of setup failed
>>
>> Attached is the log file. I hope that's alright.
> Apologies again. I attached the conf file. Attached is the log file.
>
> --
> - Warm regards
> Leni Kadali Mutungi



-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Building oVirt engine on Debian

2017-06-01 Thread Leni Kadali Mutungi
On 6/1/17, Yedidyah Bar David  wrote:
> The message:
>
> No handlers could be found for logger
> "ovirt.engine.ovirt_engine.configfile"
>
> is ugly, but harmless. It almost always appears in the setup log file.
> You are welcome to open a bug about it, though.
>
> Not sure what's the problem with engine-setup.
>
> Can you please provide the full output?
>
> Does it create a log file? Can you check/share that one too?
>
Apologies I was unable to re-run the engine-setup. So here is the full output:
herabus@trojan:~$ ovirt_engine/bin/engine-setup
[ INFO  ] Stage: Initializing
  Setup was run under unprivileged user this will produce
development installation do you wish to proceed? (Yes, No) [No]: Yes
[ INFO  ] Stage: Environment setup
  Configuration files: []
  Log file:
/home/user/ovirt_engine/var/log/ovirt-engine/setup/ovirt-engine-setup-20170601195203-2d7fr3.log
  Version: otopi-1.7.0_master ()
[ INFO  ] Stage: Environment packages setup
[ INFO  ] Stage: Programs detection
[ INFO  ] Stage: Environment setup
[ INFO  ] Stage: Environment customization

  --== PRODUCT OPTIONS ==--

  Configure Engine on this host (Yes, No) [Yes]: Yes
  Configure WebSocket Proxy on this host (Yes, No) [Yes]: Yes
  Configure VM Console Proxy on this host (Yes, No) [Yes]: Yes
  Install ovirt-provider-ovn(Yes, No) [Yes]?:Yes

  --== NETWORK CONFIGURATION ==--

  Host fully qualified DNS name of this server
[trojan.dragon.org]: 127.0.1.1
[ ERROR ] Host name is not valid: 127.0.1.1 is an IP address and not a
FQDN. A FQDN is needed to be able to generate certificates correctly.
  Host fully qualified DNS name of this server
[trojan.dragon.org]: trojan.dragon.org
[ ERROR ] Host name is not valid: Command 'dig' is required but missing
  Host fully qualified DNS name of this server
[trojan.dragon.org]: 127.0.1.1
[ ERROR ] Host name is not valid: 127.0.1.1 is an IP address and not a
FQDN. A FQDN is needed to be able to generate certificates correctly.
  Host fully qualified DNS name of this server
[trojan.dragon.org]: ^C[ ERROR ] Failed to execute stage 'Environment
customization': SIG2
[ INFO  ] Stage: Clean up
  Log file is located at
/home/user/ovirt_engine/var/log/ovirt-engine/setup/ovirt-engine-setup-20170601195203-2d7fr3.log
[ INFO  ] Generating answer file
'/home/user/ovirt_engine/var/lib/ovirt-engine/setup/answers/20170601195425-setup.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Execution of setup failed

Attached is the log file. I hope that's alright.

-- 
- Warm regards
Leni Kadali Mutungi


20170601195425-setup.conf
Description: Binary data
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Building oVirt engine on Debian

2017-06-01 Thread Yedidyah Bar David
On Wed, May 31, 2017 at 6:17 AM, Leni Kadali Mutungi
 wrote:
> On 5/30/17, Leni Kadali Mutungi  wrote:
>> Managed to build successfully using a directory in home that the
>> non-root user can write to. However I when I ran the engine-setup, I
>> ran into the issue of specifying a fully qualified domain name. I
>> tried the possible answers I could think of (hostname.example.com,
>> 127.0.0.1) but they didn't seem to work.
>
> For this I searched the archives and the problem seems to be with what
> I've defined in my /etc/hosts file. So this one I know how to solve.
> So how do I get the engine-setup to run again?

The message:

No handlers could be found for logger "ovirt.engine.ovirt_engine.configfile"

is ugly, but harmless. It almost always appears in the setup log file.
You are welcome to open a bug about it, though.

Not sure what's the problem with engine-setup.

Can you please provide the full output?

Does it create a log file? Can you check/share that one too?

Can you please try this:

OTOPI_DEBUG=1 engine-setup

Best,


>
> --
> - Warm regards
> Leni Kadali Mutungi
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users



-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Building oVirt engine on Debian

2017-05-30 Thread Leni Kadali Mutungi
On 5/30/17, Leni Kadali Mutungi  wrote:
> Managed to build successfully using a directory in home that the
> non-root user can write to. However I when I ran the engine-setup, I
> ran into the issue of specifying a fully qualified domain name. I
> tried the possible answers I could think of (hostname.example.com,
> 127.0.0.1) but they didn't seem to work.

For this I searched the archives and the problem seems to be with what
I've defined in my /etc/hosts file. So this one I know how to solve.
So how do I get the engine-setup to run again?

-- 
- Warm regards
Leni Kadali Mutungi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Building oVirt engine on Debian

2017-05-30 Thread Leni Kadali Mutungi
Managed to build successfully using a directory in home that the
non-root user can write to. However I when I ran the engine-setup, I
ran into the issue of specifying a fully qualified domain name. I
tried the possible answers I could think of (hostname.example.com,
127.0.0.1) but they didn't seem to work. I then killed the process
using Ctrl-C but I'm unable to re-run it again. The error I get is:

No handlers could be found for logger "ovirt.engine.ovirt_engine.configfile"

I tried running `locate` to find the code related to this but I was
unable to find it.
I have also run engine-cleanup but it didn't seem to work.
engine-config didn't seem to give me the option of correcting my
mistake.

Advice on what to do next would be appreciated.

-- 
- Warm regards
Leni Kadali Mutungi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Building oVirt engine on Debian

2017-05-29 Thread Yedidyah Bar David
On Mon, May 29, 2017 at 9:32 AM, Yedidyah Bar David  wrote:
> On Mon, May 29, 2017 at 6:52 AM, Leni Kadali Mutungi
>  wrote:
>> I have read what is in the README.adoc and done all of it.
>> Unfortunately, even with BUILD_ALL_USER_AGENTS=0, my computer would
>> still freeze. I had to opt to not build the gwt ui instead. I hope
>> it's not too important :P.
>
> It is, eventually, but if you do manage to build without it, then it's
> a good step forward, and it most likely means you do need more memory.
> I suggest opening a new thread about this specifically, perhaps even
> one here

Or perhaps on de...@ovirt.org.

> (ask what developers are using) and one on infra (ask what CI
> uses when building release builds).
>
> If it turns out that at least some people use similar hardware without
> problems, it might indeed be an issue specific to your environment -
> kernel, swap etc configuration, jdk/jvm, etc.
>
> If possible it might make sense to try an identical build on a centos7
> VM just to see it's not a hardware problem (although I can't think of
> anything that will trigger such a problem).
>
>>
>> Build went on fine. Ran into this issue:
>>
>> install: cannot create regular file
>> '/usr/local/etc/logrotate.d/ovirt-engine-setup': Permission denied
>> install: cannot create regular file
>> '/usr/local/etc/logrotate.d/ovirt-engine-notifier': Permission denied
>> install: cannot create regular file
>> '/usr/local/etc/logrotate.d/ovirt-engine': Permission denied
>> Makefile:301: recipe for target 'copy-recursive' failed
>> make[2]: *** [copy-recursive] Error 1
>> make[2]: Leaving directory '/home/user/ovirt-engine'
>> Makefile:420: recipe for target 'install-packaging-files' failed
>> make[1]: *** [install-packaging-files] Error 2
>> make[1]: Leaving directory '/home/user/ovirt-engine'
>> Makefile:521: recipe for target 'install-dev' failed
>> make: *** [install-dev] Error 2
>>
>> So usually I'd solve this by running as root, but since you've advised
>> against it, what should I do to give the normal user permission to run
>> this operation since the folder is owned by root and the group is
>> staff? My looking through other responses to similar situations
>> indicates to me that giving the non-root user access to this folder
>> isn't recommended. What would be the best solution in my case?
>
> I guess most if not all developers simply use PREFIX that points at a
> writable place - ~/my-ovirt-engine or something like that. That's
> mentioned in the readme, and also in:
>
> http://www.ovirt.org/develop/developer-guide/engine/engine-development-environment/
>
> Best,
>
>>
>> --
>> - Warm regards
>> Leni Kadali Mutungi
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>
>
>
> --
> Didi



-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Building oVirt engine on Debian

2017-05-29 Thread Yedidyah Bar David
On Mon, May 29, 2017 at 6:52 AM, Leni Kadali Mutungi
 wrote:
> I have read what is in the README.adoc and done all of it.
> Unfortunately, even with BUILD_ALL_USER_AGENTS=0, my computer would
> still freeze. I had to opt to not build the gwt ui instead. I hope
> it's not too important :P.

It is, eventually, but if you do manage to build without it, then it's
a good step forward, and it most likely means you do need more memory.
I suggest opening a new thread about this specifically, perhaps even
one here (ask what developers are using) and one on infra (ask what CI
uses when building release builds).

If it turns out that at least some people use similar hardware without
problems, it might indeed be an issue specific to your environment -
kernel, swap etc configuration, jdk/jvm, etc.

If possible it might make sense to try an identical build on a centos7
VM just to see it's not a hardware problem (although I can't think of
anything that will trigger such a problem).

>
> Build went on fine. Ran into this issue:
>
> install: cannot create regular file
> '/usr/local/etc/logrotate.d/ovirt-engine-setup': Permission denied
> install: cannot create regular file
> '/usr/local/etc/logrotate.d/ovirt-engine-notifier': Permission denied
> install: cannot create regular file
> '/usr/local/etc/logrotate.d/ovirt-engine': Permission denied
> Makefile:301: recipe for target 'copy-recursive' failed
> make[2]: *** [copy-recursive] Error 1
> make[2]: Leaving directory '/home/user/ovirt-engine'
> Makefile:420: recipe for target 'install-packaging-files' failed
> make[1]: *** [install-packaging-files] Error 2
> make[1]: Leaving directory '/home/user/ovirt-engine'
> Makefile:521: recipe for target 'install-dev' failed
> make: *** [install-dev] Error 2
>
> So usually I'd solve this by running as root, but since you've advised
> against it, what should I do to give the normal user permission to run
> this operation since the folder is owned by root and the group is
> staff? My looking through other responses to similar situations
> indicates to me that giving the non-root user access to this folder
> isn't recommended. What would be the best solution in my case?

I guess most if not all developers simply use PREFIX that points at a
writable place - ~/my-ovirt-engine or something like that. That's
mentioned in the readme, and also in:

http://www.ovirt.org/develop/developer-guide/engine/engine-development-environment/

Best,

>
> --
> - Warm regards
> Leni Kadali Mutungi
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users



-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Building oVirt engine on Debian

2017-05-28 Thread Leni Kadali Mutungi
I have read what is in the README.adoc and done all of it.
Unfortunately, even with BUILD_ALL_USER_AGENTS=0, my computer would
still freeze. I had to opt to not build the gwt ui instead. I hope
it's not too important :P.

Build went on fine. Ran into this issue:

install: cannot create regular file
'/usr/local/etc/logrotate.d/ovirt-engine-setup': Permission denied
install: cannot create regular file
'/usr/local/etc/logrotate.d/ovirt-engine-notifier': Permission denied
install: cannot create regular file
'/usr/local/etc/logrotate.d/ovirt-engine': Permission denied
Makefile:301: recipe for target 'copy-recursive' failed
make[2]: *** [copy-recursive] Error 1
make[2]: Leaving directory '/home/user/ovirt-engine'
Makefile:420: recipe for target 'install-packaging-files' failed
make[1]: *** [install-packaging-files] Error 2
make[1]: Leaving directory '/home/user/ovirt-engine'
Makefile:521: recipe for target 'install-dev' failed
make: *** [install-dev] Error 2

So usually I'd solve this by running as root, but since you've advised
against it, what should I do to give the normal user permission to run
this operation since the folder is owned by root and the group is
staff? My looking through other responses to similar situations
indicates to me that giving the non-root user access to this folder
isn't recommended. What would be the best solution in my case?

-- 
- Warm regards
Leni Kadali Mutungi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Building oVirt engine on Debian

2017-05-26 Thread shubham dubey
 I have forgotten that you are doing it in debian. Maybe in case of debian
the error can there for some other reason so I leave it for others to
answer. But one more thing you can try is to decrease your swappiness value
to 10. If you have enough ram then this will at least make your system
freeze less.


Regards,
Shubham

On 27 May 2017 7:46 a.m., "Leni Kadali Mutungi" 
wrote:

> On 5/25/17, shubham dubey  wrote:
> > Hi,
> > I got the same problem once and it seems to be related to memory.
> > So first thing is make sure you have at least 4 gb of ram because thats
> the
> > minimum requirement for ovirt-engine to run.
> > If with 4gb+ ram you still getting error like this then you must have no
> > swap
> > memory turn on. In that case create a swap partition and turn on using
> > 'swapon /dev/swap-partition'.
> I have an existing swap partition. I turned swap off and on again,
> then attempted the build again. No luck.
> > If the error is still there then may be jvm is not able to access the
> > memory at
> > some place due to selinux. So disable the selinux then try again.
> Hmmm... I must say I'm not sure I use selinux. I use Debian; if I were
> using a RHEL-based distro, then I think this would be the case.
>
> --
> - Warm regards
> Leni Kadali Mutungi
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Building oVirt engine on Debian

2017-05-26 Thread Leni Kadali Mutungi
On 5/25/17, shubham dubey  wrote:
> Hi,
> I got the same problem once and it seems to be related to memory.
> So first thing is make sure you have at least 4 gb of ram because thats the
> minimum requirement for ovirt-engine to run.
> If with 4gb+ ram you still getting error like this then you must have no
> swap
> memory turn on. In that case create a swap partition and turn on using
> 'swapon /dev/swap-partition'.
I have an existing swap partition. I turned swap off and on again,
then attempted the build again. No luck.
> If the error is still there then may be jvm is not able to access the
> memory at
> some place due to selinux. So disable the selinux then try again.
Hmmm... I must say I'm not sure I use selinux. I use Debian; if I were
using a RHEL-based distro, then I think this would be the case.

-- 
- Warm regards
Leni Kadali Mutungi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Building oVirt engine on Debian

2017-05-26 Thread Leni Kadali Mutungi
On 5/25/17, Yedidyah Bar David  wrote:
> On Thu, May 25, 2017 at 6:05 AM, Leni Kadali Mutungi
>  wrote:
>> Ran `make clean install-dev` and the process freezes at:
>> [INFO] weaveinfo Join point 'constructor-execution(void
>> com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer.(com.google.gwt.dev.jjs.ast.JProgram))'
>> in Type 'com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer'
>> (ControlFlowAnalyzer.java:905) advised by after advice from
>> 'org.ovirt.engine.ui.gwtaop.DontPrune' (DontPrune.java)
>>
>> My computer freezes at that point and I have to power it off. I tried
>> doing it in the terminal without the Desktop Environment and I get the
>> same result. The component being built is the UI Common Web. Advice on
>> what to do next is appreciated.
>
> How long did you wait?
10-15 minutes. I tried 30 minutes at one point.
> Perhaps you run out of memory? How much do you have?
8GB of RAM, 16GB of swap
> Was the kernel not responding either?
I have no idea; have never been in a situation where the kernel
doesn't respond. When I was running the build in a virtual terminal, I
would become unable to access the other terminals using Ctrl-Alt-F1 to
F6 after I attempted to access the GUI on F7.
> You can search the net for general debugging techniques for such
> occasions. E.g. you can (beforehand):
> echo 1 > /proc/sys/kernel/sysrq
> Then you can press Alt-SysRq-m to see (in text console) memory status
> and Alt-SysRq-t to see some information about each running task.
I'll try this, thanks.
> Did you increase number of max open file descriptors?
No I didn't. Will also do.
> Building the gwt ui is a very heavy process.
> You can build for firefox only by passing BUILD_ALL_USER_AGENTS=0,
> or not build it at all by passing BUILD_GWT=0.
Will try this as a last resort.

-- 
- Warm regards
Leni Kadali Mutungi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Building oVirt engine on Debian

2017-05-24 Thread Yedidyah Bar David
On Thu, May 25, 2017 at 6:05 AM, Leni Kadali Mutungi
 wrote:
> Ran `make clean install-dev` and the process freezes at:
> [INFO] weaveinfo Join point 'constructor-execution(void
> com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer.(com.google.gwt.dev.jjs.ast.JProgram))'
> in Type 'com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer'
> (ControlFlowAnalyzer.java:905) advised by after advice from
> 'org.ovirt.engine.ui.gwtaop.DontPrune' (DontPrune.java)
>
> My computer freezes at that point and I have to power it off. I tried
> doing it in the terminal without the Desktop Environment and I get the
> same result. The component being built is the UI Common Web. Advice on
> what to do next is appreciated.

How long did you wait?

Perhaps you run out of memory? How much do you have?

Was the kernel not responding either?

You can search the net for general debugging techniques for such
occasions. E.g. you can (beforehand):

echo 1 > /proc/sys/kernel/sysrq

Then you can press Alt-SysRq-m to see (in text console) memory status
and Alt-SysRq-t to see some information about each running task.

Did you increase number of max open file descriptors?

Building the gwt ui is a very heavy process.

You can build for firefox only by passing BUILD_ALL_USER_AGENTS=0,
or not build it at all by passing BUILD_GWT=0.

See also README.adoc .

Good luck,

>
> --
> - Warm regards
> Leni Kadali Mutungi
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users



-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Building oVirt engine on Debian

2017-05-24 Thread Leni Kadali Mutungi
Ran `make clean install-dev` and the process freezes at:
[INFO] weaveinfo Join point 'constructor-execution(void
com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer.(com.google.gwt.dev.jjs.ast.JProgram))'
in Type 'com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer'
(ControlFlowAnalyzer.java:905) advised by after advice from
'org.ovirt.engine.ui.gwtaop.DontPrune' (DontPrune.java)

My computer freezes at that point and I have to power it off. I tried
doing it in the terminal without the Desktop Environment and I get the
same result. The component being built is the UI Common Web. Advice on
what to do next is appreciated.

-- 
- Warm regards
Leni Kadali Mutungi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users