Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Michał Suszko
@msuszko
This is actually quite tricky. ralph.lib.permissions.views.view_permission_dispatch.wraps returns HttpResponseForbidden because it looks for account.can_view_extra_datacenterassetcomponents
view_permission_dispatch wraps dispatch method twice: one time for RalphDetailView, and second time for RalphExtraViewMixin
as RalphExtraViewMixin consumes views and model arguments it dsappears from kwargs and becomes .models
second wrapper can;t find models in kwargs, and looks for accounts. permission instead od data_center.
Mateusz Kurek
@mkurek
@pydubreucq probably beginning of the December; @msuszko - could you create an issue for that? and we'll greatly appreciate pull request for that if you know where and what to fix :)
MarcinJanowski
@MarcinJanowski
Hello, what progress is with Ralph 3? :)
✪ vi4m Marcin Kliks
@vi4m
in short: almost everything for back office is ready (generating pdf documents, transitions, permissions), and we are working on domains contracts management, and admin logbook(operations log)
scan is not ready yet
MarcinJanowski
@MarcinJanowski
@vi4m : When is planned release?
Michał Suszko
@msuszko
@mkurek why don't you check permissions in RalphExtraViewMixin.dispatch? metaclass does .dispatch wrapping on RalphDetailView and all subclasses
MarcinJanowski
@MarcinJanowski
@vi4m: Is any docker image with updated Ralph 3?
✪ vi4m Marcin Kliks
@vi4m
previously we issued some deb packages
do you prefer deb or docker package?
MarcinJanowski
@MarcinJanowski
deb
✪ vi4m Marcin Kliks
@vi4m
ok then, i will issue a new one
MarcinJanowski
@MarcinJanowski
Nice ;) I should looking for it tomorrow?
✪ vi4m Marcin Kliks
@vi4m
i want to have this one: allegro/ralph#1855 and this one: allegro/ralph#1856 ready
MarcinJanowski
@MarcinJanowski
ok
Mateusz Kurek
@mkurek
@msuszko i don't know but i'm looking for this code now and PermissionViewMetaClass should be used in RalphExtraViewMixintoo - what do you think? Will this resolve your problem?
Michał Suszko
@msuszko
@mkurek it would wrap one more .dispatch making it slightly less efficient, and not solving the problem
wrapping RalphDetailView.dispatch is fine, but metaclass wraps any RalphDetailView sublasseses .dispatch as well
moving wrapper from PermissionViewMetaClass straight to RalphExtraViewMixin.dispatch would work, but you need view list to initialize permissions
Michał Suszko
@msuszko
@mkurek there are two problems: there is no way of knowing which View subclass is an abstract and which will be used, and setting .model attribute through .dispatch method
Mateusz Kurek
@mkurek
@msuszko i could try to solve this on friday, but could you please create an issue for that with specific instructions, symptoms what's working wrong and how to repeat the error locally?
Michał Suszko
@msuszko
ok, tomorrow
Mateusz Kurek
@mkurek
ok
Michał Suszko
@msuszko
@mkurek #1882
Mateusz Kurek
@mkurek
thanks
kamelotnsk
@kamelotnsk
Install Ralph (ralph makeconf)
===error===
Traceback (most recent call last):
File "/home/neo/bin/ralph", line 5, in <module>
from pkg_resources import load_entry_point
File "/home/neo/local/lib/python2.7/site-packages/pkg_resources.py", line 2720, in <module>
parserequirements(_requires), Environment()
File "/home/neo/local/lib/python2.7/site-packages/pkg_resources.py", line 588, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pbr>=1.6
===install pbr1.6====
===error====
Traceback (most recent call last):
File "/home/neo/bin/ralph", line 5, in <module>
from pkg_resources import load_entry_point
File "/home/neo/local/lib/python2.7/site-packages/pkg_resources.py", line 2720, in <module>
parserequirements(_requires), Environment()
File "/home/neo/local/lib/python2.7/site-packages/pkg_resources.py", line 592, in resolve
raise VersionConflict(dist,req) # XXX put more info here

pkg_resources.VersionConflict: (pbr 1.6.0 (/home/neo/lib/python2.7/site-packages), Requirement.parse('pbr>=0.6,!=0.7,<1.0'))

✪ vi4m Marcin Kliks
@vi4m
@kamelotnsk install 2.x from docker, or install ralph 3.x from deb
we support only ralph 3.x at the moment
kamelotnsk
@kamelotnsk
i'm install 2.x (Installing Ralph - advanced installation)
✪ vi4m Marcin Kliks
@vi4m
not so many features as 2.x but headache-free
kamelotnsk
@kamelotnsk
@vi4m ralph 3.x It supports integration with zabbix?
✪ vi4m Marcin Kliks
@vi4m
unfortunatelly not, but it can be easly extended if you can do Python programming
have you tried docker way of installation?
kamelotnsk
@kamelotnsk
No, I'm trying to install on the host machine.
kamelotnsk
@kamelotnsk
to 3.x when it is integration?
✪ vi4m Marcin Kliks
@vi4m
it depends what you want to have integrated in
?
kamelotnsk
@kamelotnsk
CMDB, which contains information on all the servers and services that they provide. which creates objects zabbix.
kamelotnsk
@kamelotnsk
@vi4m
Do you have a VM for vmware ralph 2x?
Mateusz Kurek
@mkurek
@kamelotnsk no
anderslarssonvbg
@anderslarssonvbg
Hi. I just found Ralph when looking for an asset cost inventory and it looks great! What I haven't found is how to document external connections, such as internet connections and dedicated connections bettween two data centers. One thing here is that we want to split the cost for the connection between the two data centers, so when generating a report for all costs on a specific data center, we want e.g. half of the cost for connections terminated in it to be included in the report. Does such functionality exists?
✪ vi4m Marcin Kliks
@vi4m
@all: we've just enabled continous debian packages and docker building, so it means, you can upgrade ralph any time and get development version without waiting for release
and here are docker images: https://hub.docker.com/r/allegrogroup/ralph/
Pierre-Yves Dubreucq
@pydubreucq
Hi, I've upgraded my Ralph deb package and when I run the server, I've this error