[Engine-devel] Broken devel setup on Gentoo?

While refreshing my devel environment, setup fails. Log file shows this: 2013-12-31 16:26:05 DEBUG otopi.plugins.otopi.services.openrc plugin.executeRaw:366 execute: ('/etc/init.d/ovirt-websocket-proxy', '-q', 'status'), executable='None', cwd= 'None', env=None 2013-12-31 16:26:05 DEBUG otopi.plugins.otopi.services.openrc plugin.executeRaw:389 execute-result: ('/etc/init.d/ovirt-websocket-proxy', '-q', 'status'), exception Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/otopi/plugin.py", line 376, in executeRaw env=env, File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory Should there be a redirection to use ovirt-websocket-proxy in a local script rather than daemon?

----- Original Message -----
From: "Doron Fediuck" <dfediuck@redhat.com> To: engine-devel@ovirt.org Cc: "Alon Bar-Lev" <abarlev@redhat.com> Sent: Tuesday, December 31, 2013 4:50:48 PM Subject: [Engine-devel] Broken devel setup on Gentoo?
While refreshing my devel environment, setup fails. Log file shows this:
2013-12-31 16:26:05 DEBUG otopi.plugins.otopi.services.openrc plugin.executeRaw:366 execute: ('/etc/init.d/ovirt-websocket-proxy', '-q', 'status'), executable='None', cwd= 'None', env=None 2013-12-31 16:26:05 DEBUG otopi.plugins.otopi.services.openrc plugin.executeRaw:389 execute-result: ('/etc/init.d/ovirt-websocket-proxy', '-q', 'status'), exception Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/otopi/plugin.py", line 376, in executeRaw env=env, File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
Should there be a redirection to use ovirt-websocket-proxy in a local script rather than daemon?
http://gerrit.ovirt.org/#/q/I40f061ec6cf658e1d8ec5c3663698ceca7569b38,n,z

On 12/31/2013 04:54 PM, Alon Bar-Lev wrote:
----- Original Message -----
From: "Doron Fediuck" <dfediuck@redhat.com> To: engine-devel@ovirt.org Cc: "Alon Bar-Lev" <abarlev@redhat.com> Sent: Tuesday, December 31, 2013 4:50:48 PM Subject: [Engine-devel] Broken devel setup on Gentoo?
While refreshing my devel environment, setup fails. Log file shows this:
2013-12-31 16:26:05 DEBUG otopi.plugins.otopi.services.openrc plugin.executeRaw:366 execute: ('/etc/init.d/ovirt-websocket-proxy', '-q', 'status'), executable='None', cwd= 'None', env=None 2013-12-31 16:26:05 DEBUG otopi.plugins.otopi.services.openrc plugin.executeRaw:389 execute-result: ('/etc/init.d/ovirt-websocket-proxy', '-q', 'status'), exception Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/otopi/plugin.py", line 376, in executeRaw env=env, File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
Should there be a redirection to use ovirt-websocket-proxy in a local script rather than daemon? http://gerrit.ovirt.org/#/q/I40f061ec6cf658e1d8ec5c3663698ceca7569b38,n,z
Thanks. I'm running on this branch (ovirt-3.3) and still hitting this issue. I checked packaging/setup/plugins/ovirt-engine-setup/config/websocket_proxy.py and I can see the fix (now in line 258), but the issue is still there.

----- Original Message -----
From: "Doron Fediuck" <dfediuck@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org Sent: Tuesday, December 31, 2013 5:20:24 PM Subject: Re: [Engine-devel] Broken devel setup on Gentoo?
On 12/31/2013 04:54 PM, Alon Bar-Lev wrote:
----- Original Message -----
From: "Doron Fediuck" <dfediuck@redhat.com> To: engine-devel@ovirt.org Cc: "Alon Bar-Lev" <abarlev@redhat.com> Sent: Tuesday, December 31, 2013 4:50:48 PM Subject: [Engine-devel] Broken devel setup on Gentoo?
While refreshing my devel environment, setup fails. Log file shows this:
2013-12-31 16:26:05 DEBUG otopi.plugins.otopi.services.openrc plugin.executeRaw:366 execute: ('/etc/init.d/ovirt-websocket-proxy', '-q', 'status'), executable='None', cwd= 'None', env=None 2013-12-31 16:26:05 DEBUG otopi.plugins.otopi.services.openrc plugin.executeRaw:389 execute-result: ('/etc/init.d/ovirt-websocket-proxy', '-q', 'status'), exception Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/otopi/plugin.py", line 376, in executeRaw env=env, File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
Should there be a redirection to use ovirt-websocket-proxy in a local script rather than daemon? http://gerrit.ovirt.org/#/q/I40f061ec6cf658e1d8ec5c3663698ceca7569b38,n,z
Thanks. I'm running on this branch (ovirt-3.3) and still hitting this issue. I checked packaging/setup/plugins/ovirt-engine-setup/config/websocket_proxy.py and I can see the fix (now in line 258), but the issue is still there.
Please send setup log file.

----- Original Message -----
From: "Alon Bar-Lev" <alonbl@redhat.com> To: "Doron Fediuck" <dfediuck@redhat.com> Cc: engine-devel@ovirt.org Sent: Tuesday, December 31, 2013 5:28:24 PM Subject: Re: [Engine-devel] Broken devel setup on Gentoo?
----- Original Message -----
From: "Doron Fediuck" <dfediuck@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org Sent: Tuesday, December 31, 2013 5:20:24 PM Subject: Re: [Engine-devel] Broken devel setup on Gentoo?
On 12/31/2013 04:54 PM, Alon Bar-Lev wrote:
----- Original Message -----
From: "Doron Fediuck" <dfediuck@redhat.com> To: engine-devel@ovirt.org Cc: "Alon Bar-Lev" <abarlev@redhat.com> Sent: Tuesday, December 31, 2013 4:50:48 PM Subject: [Engine-devel] Broken devel setup on Gentoo?
While refreshing my devel environment, setup fails. Log file shows this:
2013-12-31 16:26:05 DEBUG otopi.plugins.otopi.services.openrc plugin.executeRaw:366 execute: ('/etc/init.d/ovirt-websocket-proxy', '-q', 'status'), executable='None', cwd= 'None', env=None 2013-12-31 16:26:05 DEBUG otopi.plugins.otopi.services.openrc plugin.executeRaw:389 execute-result: ('/etc/init.d/ovirt-websocket-proxy', '-q', 'status'), exception Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/otopi/plugin.py", line 376, in executeRaw env=env, File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
Should there be a redirection to use ovirt-websocket-proxy in a local script rather than daemon? http://gerrit.ovirt.org/#/q/I40f061ec6cf658e1d8ec5c3663698ceca7569b38,n,z
Thanks. I'm running on this branch (ovirt-3.3) and still hitting this issue. I checked packaging/setup/plugins/ovirt-engine-setup/config/websocket_proxy.py and I can see the fix (now in line 258), but the issue is still there.
Please send setup log file.
Correct, the issue is that setup is trying to acquire service status before stopping. Fix is available[1] [1] http://gerrit.ovirt.org/#/q/I0454e3f136ad1181bc01c55411b33b1e2fc20e4c,n,z

On 12/31/2013 06:45 PM, Alon Bar-Lev wrote:
----- Original Message -----
From: "Alon Bar-Lev" <alonbl@redhat.com> To: "Doron Fediuck" <dfediuck@redhat.com> Cc: engine-devel@ovirt.org Sent: Tuesday, December 31, 2013 5:28:24 PM Subject: Re: [Engine-devel] Broken devel setup on Gentoo?
----- Original Message -----
From: "Doron Fediuck" <dfediuck@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org Sent: Tuesday, December 31, 2013 5:20:24 PM Subject: Re: [Engine-devel] Broken devel setup on Gentoo?
----- Original Message -----
From: "Doron Fediuck" <dfediuck@redhat.com> To: engine-devel@ovirt.org Cc: "Alon Bar-Lev" <abarlev@redhat.com> Sent: Tuesday, December 31, 2013 4:50:48 PM Subject: [Engine-devel] Broken devel setup on Gentoo?
While refreshing my devel environment, setup fails. Log file shows this:
2013-12-31 16:26:05 DEBUG otopi.plugins.otopi.services.openrc plugin.executeRaw:366 execute: ('/etc/init.d/ovirt-websocket-proxy', '-q', 'status'), executable='None', cwd= 'None', env=None 2013-12-31 16:26:05 DEBUG otopi.plugins.otopi.services.openrc plugin.executeRaw:389 execute-result: ('/etc/init.d/ovirt-websocket-proxy', '-q', 'status'), exception Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/otopi/plugin.py", line 376, in executeRaw env=env, File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
Should there be a redirection to use ovirt-websocket-proxy in a local script rather than daemon? http://gerrit.ovirt.org/#/q/I40f061ec6cf658e1d8ec5c3663698ceca7569b38,n,z Thanks. I'm running on this branch (ovirt-3.3) and still hitting this issue. I checked
On 12/31/2013 04:54 PM, Alon Bar-Lev wrote: packaging/setup/plugins/ovirt-engine-setup/config/websocket_proxy.py and I can see the fix (now in line 258), but the issue is still there.
Please send setup log file. Correct, the issue is that setup is trying to acquire service status before stopping.
Fix is available[1]
[1] http://gerrit.ovirt.org/#/q/I0454e3f136ad1181bc01c55411b33b1e2fc20e4c,n,z
Thanks for the quick fix, verified both for 3.3 and in master. An unrelated issue I noticed when moving from 3.3 branch to master I re-built everything, yet I was unable to login. I had to update the DB with a new password to login. I suspect theres another issue here.

----- Original Message -----
From: "Doron Fediuck" <dfediuck@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org Sent: Tuesday, December 31, 2013 7:17:40 PM Subject: Re: [Engine-devel] Broken devel setup on Gentoo?
An unrelated issue I noticed when moving from 3.3 branch to master I re-built everything, yet I was unable to login. I had to update the DB with a new password to login. I suspect theres another issue here.
I am unsure I follow, you cannot use the same prefix for both branches. What the exact sequence?

On 12/31/2013 08:10 PM, Alon Bar-Lev wrote:
----- Original Message -----
From: "Doron Fediuck" <dfediuck@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org Sent: Tuesday, December 31, 2013 7:17:40 PM Subject: Re: [Engine-devel] Broken devel setup on Gentoo?
An unrelated issue I noticed when moving from 3.3 branch to master I re-built everything, yet I was unable to login. I had to update the DB with a new password to login. I suspect theres another issue here.
I am unsure I follow, you cannot use the same prefix for both branches. What the exact sequence?
1. Built everything on ovirt-3.3 branch. => works well. 2. git checkout origin/master && git reset --hard origin/master && rm -rf share bin etc usr var 3. Cherry pick patch from gerrit 4. make clean install-dev 5. run setup => I'd expect db to be recreated. If not then we cannot login to the system.

----- Original Message -----
From: "Doron Fediuck" <dfediuck@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org Sent: Wednesday, January 1, 2014 10:31:07 AM Subject: Re: [Engine-devel] Broken devel setup on Gentoo?
On 12/31/2013 08:10 PM, Alon Bar-Lev wrote:
----- Original Message -----
From: "Doron Fediuck" <dfediuck@redhat.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: engine-devel@ovirt.org Sent: Tuesday, December 31, 2013 7:17:40 PM Subject: Re: [Engine-devel] Broken devel setup on Gentoo?
An unrelated issue I noticed when moving from 3.3 branch to master I re-built everything, yet I was unable to login. I had to update the DB with a new password to login. I suspect theres another issue here.
I am unsure I follow, you cannot use the same prefix for both branches. What the exact sequence?
1. Built everything on ovirt-3.3 branch. => works well.
2. git checkout origin/master && git reset --hard origin/master && rm -rf share bin etc usr var 3. Cherry pick patch from gerrit 4. make clean install-dev 5. run setup
=> I'd expect db to be recreated. If not then we cannot login to the system.
Are you removing the pki keys? the entire configuration? why not remove the entire PREFIX? Database will not re-created if already exist, there will be an attempt to upgrade it, and as you removed the pki keys the password is cannot be decrypted. If you remove PREFIX you should also drop/create database to start scratch, or just use another empty database when installing. Regards, Alon

On 01/01/2014 10:57 AM, Alon Bar-Lev wrote: > > ----- Original Message ----- >> From: "Doron Fediuck" <dfediuck@redhat.com> >> To: "Alon Bar-Lev" <alonbl@redhat.com> >> Cc: engine-devel@ovirt.org >> Sent: Wednesday, January 1, 2014 10:31:07 AM >> Subject: Re: [Engine-devel] Broken devel setup on Gentoo? >> >> >> On 12/31/2013 08:10 PM, Alon Bar-Lev wrote: >>> ----- Original Message ----- >>>> From: "Doron Fediuck" <dfediuck@redhat.com> >>>> To: "Alon Bar-Lev" <alonbl@redhat.com> >>>> Cc: engine-devel@ovirt.org >>>> Sent: Tuesday, December 31, 2013 7:17:40 PM >>>> Subject: Re: [Engine-devel] Broken devel setup on Gentoo? >>>> >>>> An unrelated issue I noticed when moving from 3.3 branch to master I >>>> re-built everything, >>>> yet I was unable to login. I had to update the DB with a new password to >>>> login. >>>> I suspect theres another issue here. >>>> >>> I am unsure I follow, you cannot use the same prefix for both branches. >>> What the exact sequence? >> 1. Built everything on ovirt-3.3 branch. >> => works well. >> >> 2. git checkout origin/master && git reset --hard origin/master && rm >> -rf share bin etc usr var >> 3. Cherry pick patch from gerrit >> 4. make clean install-dev >> 5. run setup >> >> => I'd expect db to be recreated. If not then we cannot login to the system. >> > Are you removing the pki keys? the entire configuration? why not remove the entire PREFIX? > > Database will not re-created if already exist, there will be an attempt to upgrade it, and as you removed the pki keys the password is cannot be decrypted. > > If you remove PREFIX you should also drop/create database to start scratch, or just use another empty database when installing. > > Regards, > Alon I'm not using PREFIX. What are the alternatives?

----- Original Message ----- > From: "Doron Fediuck" <dfediuck@redhat.com> > To: "Alon Bar-Lev" <alonbl@redhat.com> > Cc: engine-devel@ovirt.org > Sent: Wednesday, January 1, 2014 11:18:45 AM > Subject: Re: [Engine-devel] Broken devel setup on Gentoo? > > > On 01/01/2014 10:57 AM, Alon Bar-Lev wrote: > > > > ----- Original Message ----- > >> From: "Doron Fediuck" <dfediuck@redhat.com> > >> To: "Alon Bar-Lev" <alonbl@redhat.com> > >> Cc: engine-devel@ovirt.org > >> Sent: Wednesday, January 1, 2014 10:31:07 AM > >> Subject: Re: [Engine-devel] Broken devel setup on Gentoo? > >> > >> > >> On 12/31/2013 08:10 PM, Alon Bar-Lev wrote: > >>> ----- Original Message ----- > >>>> From: "Doron Fediuck" <dfediuck@redhat.com> > >>>> To: "Alon Bar-Lev" <alonbl@redhat.com> > >>>> Cc: engine-devel@ovirt.org > >>>> Sent: Tuesday, December 31, 2013 7:17:40 PM > >>>> Subject: Re: [Engine-devel] Broken devel setup on Gentoo? > >>>> > >>>> An unrelated issue I noticed when moving from 3.3 branch to master I > >>>> re-built everything, > >>>> yet I was unable to login. I had to update the DB with a new password to > >>>> login. > >>>> I suspect theres another issue here. > >>>> > >>> I am unsure I follow, you cannot use the same prefix for both branches. > >>> What the exact sequence? > >> 1. Built everything on ovirt-3.3 branch. > >> => works well. > >> > >> 2. git checkout origin/master && git reset --hard origin/master && rm > >> -rf share bin etc usr var > >> 3. Cherry pick patch from gerrit > >> 4. make clean install-dev > >> 5. run setup > >> > >> => I'd expect db to be recreated. If not then we cannot login to the > >> system. > >> > > Are you removing the pki keys? the entire configuration? why not remove the > > entire PREFIX? > > > > Database will not re-created if already exist, there will be an attempt to > > upgrade it, and as you removed the pki keys the password is cannot be > > decrypted. > > > > If you remove PREFIX you should also drop/create database to start scratch, > > or just use another empty database when installing. > > > > Regards, > > Alon > I'm not using PREFIX. > What are the alternatives? > how come[1]? $ make clean install-dev PREFIX=$HOME/ovirt-engine so you are running it as root and install into /usr/local? the entire concept of devenv is to use it as non root and install to user accessible directory (aka PREFIX). if you want to start fresh (by removing the PREFIX) then you should also have fresh (empty) database. Regards, Alon Bar-Lev [1] http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=blob;f=README.developer;hb=HEAD#l70

On 01/01/2014 11:23 AM, Alon Bar-Lev wrote: > > ----- Original Message ----- >> From: "Doron Fediuck" <dfediuck@redhat.com> >> To: "Alon Bar-Lev" <alonbl@redhat.com> >> Cc: engine-devel@ovirt.org >> Sent: Wednesday, January 1, 2014 11:18:45 AM >> Subject: Re: [Engine-devel] Broken devel setup on Gentoo? >> >> >> On 01/01/2014 10:57 AM, Alon Bar-Lev wrote: >>> ----- Original Message ----- >>>> From: "Doron Fediuck" <dfediuck@redhat.com> >>>> To: "Alon Bar-Lev" <alonbl@redhat.com> >>>> Cc: engine-devel@ovirt.org >>>> Sent: Wednesday, January 1, 2014 10:31:07 AM >>>> Subject: Re: [Engine-devel] Broken devel setup on Gentoo? >>>> >>>> >>>> On 12/31/2013 08:10 PM, Alon Bar-Lev wrote: >>>>> ----- Original Message ----- >>>>>> From: "Doron Fediuck" <dfediuck@redhat.com> >>>>>> To: "Alon Bar-Lev" <alonbl@redhat.com> >>>>>> Cc: engine-devel@ovirt.org >>>>>> Sent: Tuesday, December 31, 2013 7:17:40 PM >>>>>> Subject: Re: [Engine-devel] Broken devel setup on Gentoo? >>>>>> >>>>>> An unrelated issue I noticed when moving from 3.3 branch to master I >>>>>> re-built everything, >>>>>> yet I was unable to login. I had to update the DB with a new password to >>>>>> login. >>>>>> I suspect theres another issue here. >>>>>> >>>>> I am unsure I follow, you cannot use the same prefix for both branches. >>>>> What the exact sequence? >>>> 1. Built everything on ovirt-3.3 branch. >>>> => works well. >>>> >>>> 2. git checkout origin/master && git reset --hard origin/master && rm >>>> -rf share bin etc usr var >>>> 3. Cherry pick patch from gerrit >>>> 4. make clean install-dev >>>> 5. run setup >>>> >>>> => I'd expect db to be recreated. If not then we cannot login to the >>>> system. >>>> >>> Are you removing the pki keys? the entire configuration? why not remove the >>> entire PREFIX? >>> >>> Database will not re-created if already exist, there will be an attempt to >>> upgrade it, and as you removed the pki keys the password is cannot be >>> decrypted. >>> >>> If you remove PREFIX you should also drop/create database to start scratch, >>> or just use another empty database when installing. >>> >>> Regards, >>> Alon >> I'm not using PREFIX. >> What are the alternatives? >> > how come[1]? > > $ make clean install-dev PREFIX=$HOME/ovirt-engine > > so you are running it as root and install into /usr/local? > > the entire concept of devenv is to use it as non root and install to user accessible directory (aka PREFIX). > > if you want to start fresh (by removing the PREFIX) then you should also have fresh (empty) database. > > Regards, > Alon Bar-Lev > > [1] http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=blob;f=README.developer;hb=HEAD#l70 I'm not using root. There's a special user account which has ~/ovirt-engine including the git repo inside. So the prefix is the same as the git repo and removing it removes git...

----- Original Message ----- > From: "Doron Fediuck" <dfediuck@redhat.com> > To: "Alon Bar-Lev" <alonbl@redhat.com> > Cc: engine-devel@ovirt.org > Sent: Wednesday, January 1, 2014 1:09:48 PM > Subject: Re: [Engine-devel] Broken devel setup on Gentoo? > > > On 01/01/2014 11:23 AM, Alon Bar-Lev wrote: > > > > ----- Original Message ----- > >> From: "Doron Fediuck" <dfediuck@redhat.com> > >> To: "Alon Bar-Lev" <alonbl@redhat.com> > >> Cc: engine-devel@ovirt.org > >> Sent: Wednesday, January 1, 2014 11:18:45 AM > >> Subject: Re: [Engine-devel] Broken devel setup on Gentoo? > >> > >> > >> On 01/01/2014 10:57 AM, Alon Bar-Lev wrote: > >>> ----- Original Message ----- > >>>> From: "Doron Fediuck" <dfediuck@redhat.com> > >>>> To: "Alon Bar-Lev" <alonbl@redhat.com> > >>>> Cc: engine-devel@ovirt.org > >>>> Sent: Wednesday, January 1, 2014 10:31:07 AM > >>>> Subject: Re: [Engine-devel] Broken devel setup on Gentoo? > >>>> > >>>> > >>>> On 12/31/2013 08:10 PM, Alon Bar-Lev wrote: > >>>>> ----- Original Message ----- > >>>>>> From: "Doron Fediuck" <dfediuck@redhat.com> > >>>>>> To: "Alon Bar-Lev" <alonbl@redhat.com> > >>>>>> Cc: engine-devel@ovirt.org > >>>>>> Sent: Tuesday, December 31, 2013 7:17:40 PM > >>>>>> Subject: Re: [Engine-devel] Broken devel setup on Gentoo? > >>>>>> > >>>>>> An unrelated issue I noticed when moving from 3.3 branch to master I > >>>>>> re-built everything, > >>>>>> yet I was unable to login. I had to update the DB with a new password > >>>>>> to > >>>>>> login. > >>>>>> I suspect theres another issue here. > >>>>>> > >>>>> I am unsure I follow, you cannot use the same prefix for both branches. > >>>>> What the exact sequence? > >>>> 1. Built everything on ovirt-3.3 branch. > >>>> => works well. > >>>> > >>>> 2. git checkout origin/master && git reset --hard origin/master && rm > >>>> -rf share bin etc usr var > >>>> 3. Cherry pick patch from gerrit > >>>> 4. make clean install-dev > >>>> 5. run setup > >>>> > >>>> => I'd expect db to be recreated. If not then we cannot login to the > >>>> system. > >>>> > >>> Are you removing the pki keys? the entire configuration? why not remove > >>> the > >>> entire PREFIX? > >>> > >>> Database will not re-created if already exist, there will be an attempt > >>> to > >>> upgrade it, and as you removed the pki keys the password is cannot be > >>> decrypted. > >>> > >>> If you remove PREFIX you should also drop/create database to start > >>> scratch, > >>> or just use another empty database when installing. > >>> > >>> Regards, > >>> Alon > >> I'm not using PREFIX. > >> What are the alternatives? > >> > > how come[1]? > > > > $ make clean install-dev PREFIX=$HOME/ovirt-engine > > > > so you are running it as root and install into /usr/local? > > > > the entire concept of devenv is to use it as non root and install to user > > accessible directory (aka PREFIX). > > > > if you want to start fresh (by removing the PREFIX) then you should also > > have fresh (empty) database. > > > > Regards, > > Alon Bar-Lev > > > > [1] > > http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=blob;f=README.developer;hb=HEAD#l70 > I'm not using root. > There's a special user account which has ~/ovirt-engine including the > git repo inside. > So the prefix is the same as the git repo and removing it removes git... So you are using PREFIX, there is no other way to avoid installing into /usr/local which this user has no permission to write into. $ make install-dev <snip> install: cannot change permissions of ‘/usr/local/etc/’: No such file or directory install: cannot create directory ‘/usr/local/etc’: Permission denied make[2]: *** [copy-recursive] Error 1 and using mixed git and PREFIX is highly not recommended as you do not know which files are being touched, make install-dev may actually overwrite your sources. Alon
participants (2)
-
Alon Bar-Lev
-
Doron Fediuck