devstack - horizon plugin inconsistent variable value and 'request.GET'

asked 2018-08-20 14:03:16 -0500

sts gravatar image

Hello,

i have been noticing a strange behavior in devstack when a custom dashboard plugin is run directly on devstack( ex, http://127.0.0.1:80/). The behavior is,

1) when a global variable (lets say, 'global_var = "This is global var"') is defined in 'views.py' and the same variable is accessed in 'workflow.py' by importing view and as 'view.globa_var', this variable is inconsistent in having the value "This is global var". 2) the inconsistency is also with 'self.request.GET.get('url_param')' when used in any workflow Actions class. it some times gets the url_param and sometimes dont.

And these behavior do not occur when i run horizon from './manage.py runserver' (http://127.0.0.1:9000) and works perfectly fine.

Kindly let me know if i have not expressed the issue properly and if there's a need to additional info.

Regards, Sharath TS

edit retag flag offensive close merge delete