[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: ENV variable on cartridge



Hi John,

I will try to patch  my current version I dont want to try the HEAD I spent enough time to get all thinks working ;)

thanks you point really helps me
cheers
patrick

 
On 19 Jun 2014, at 15:29, John Lamb <jolamb redhat com> wrote:

> You're definitely hitting the cart env override bug I had mentioned.
> 
> It looks as though you're running OpenShift Origin release 3: https://github.com/openshift/origin-server/tree/openshift-origin-release-3, based on the openshift-origin-console version: http://git.io/RdTEpQ
> 
> The bug you're seeing was fixed with this change: https://github.com/openshift/origin-server/pull/5288/ which unfortunately was merged into Origin after release 3. I don't know how stable the master branch of origin-server is right now, so I wouldn't recommend updating your whole installation from it.
> 
> I'm *pretty sure* that you can just replace the files in your own installation with the modified files from that pull request. I would certainly back up the original files first, and definitely test in a non-production environment first.
> 
> If anyone else on list has better suggestions, speak up!
> 
> Hope this helps,
> -john lamb
> 
> ----- Original Message -----
>> Hi John,
>> 
>> I’ve done the start / stop test and
>> 
>> SSH correct value is loaded OK
>> Console get the old value NOT OK
>> rhc app-stop/start  get the old value NOT OK
>> 
>> 
>> Im running on Red Hat Enterprise Linux Server release 6.5 (Santiago) the OO
>> version I didn’t find where to look to the exact version but the highest
>> number seam to be 1.18.1
>> 
>> openshift-origin-console-1.18.0.1
>> openshift-origin-controller-1.18.0.1
>> openshift-origin-auth-mongo-1.15.1.1
>> 
>> 
>> On 18 Jun 2014, at 22:00, John Lamb <jolamb redhat com> wrote:
>> 
>>> Hi,
>>> 
>>> This looks like it might be this bug, or something related:
>>> https://bugzilla.redhat.com/show_bug.cgi?id=1088005
>>> 
>>> What version of OpenShift are you running? Can you get your app to display
>>> the value of that env var, then see what it displays after each of:
>>> restarting the app via console, restarting via "rhc app-stop foo ; rhc
>>> app-start foo" and restarting by sshing into your app and running
>>> "openerp/bin/control stop ; openerp/bin/control start"? Please share the
>>> results here. Presumable sshing in will work as expected, since you've
>>> already said so, but it's nice to be thorough. :)
>>> 
>>> ----- Original Message -----
>>>> Hi list,
>>>> 
>>>> I’ve a custom cartridge that contain the software version to run
>>>> ODOO_VERSION
>>>> , this bash variable is declare under
>>>> openerp
>>>> ├── bin
>>>> │ ├── control
>>>> │ └── setup
>>>> ├── env
>>>> │ ├── ODOO_VERSION
>>>> │ ├── OPENSHIFT_OPENERP_DIR
>>>> │ ├── ...
>>>> 
>>>> 
>>>> the problems arise the I trying to change the value using
>>>> 
>>>> rhc set-env ODOO_VERSION=6.0 -app foo
>>>> 
>>>> When i log to the cartridge the env command display the correct value and
>>>> if
>>>> I run the control start everything is working as expected.
>>>> 
>>>> The problem arise when I execute the restart form the web console, the web
>>>> restart take into account the old value and now the new one,
>>>> 
>>>> can somebody have a explanation ?
>>>> 
>>>> 
>>>> -P
>>>> 
>>>> _______________________________________________
>>>> users mailing list
>>>> users lists openshift redhat com
>>>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>>> 
>> 
>> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]