Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
aveseb
@aveseb
Hi, I cannot add accessories. I saw on the demo site that's there were accessories already defined. I wanted to go to the admin url in order to fix it but I can't access to this url. For information I've done a flush then syncdb and I use vagrant installation
xliiv
@xliiv
do you have all required permissions as a user or group member?
Mateusz Kurek
@mkurek
@aveseb do you want to add new type of accessory (like brush or patch_panel) or do you want to assign some accessory to rack?
aveseb
@aveseb
@mkurek Yes that's it, I want to add new type of accessory and then I will affect them to racks. The problem is that when I want to do it, there is no accessories in the combobox.
Capture du 2016-02-25 10:57:43.png
Mateusz Kurek
@mkurek
yep - that because we don't have dedicated view to add new accessory - this should be 5-minutes task - @szok could you solve it?
aveseb
@aveseb
@mkurek thanks a lot
Piotr Jarolewski
@szok
@aveseb You start 'ralph migrate' command and did not add any accessories?
please run one more time 'ralph migrate'
@aveseb Ok, in a moment I will add a GUI to handle accessory
Piotr Jarolewski
@szok
allegro/ralph#2242
aveseb
@aveseb
Capture du 2016-02-25 12:46:47.png
@szok Yes it works very well. I can add accessory in the rack GUI directly
aveseb
@aveseb
@szok I made a ralph sitetree_resync_apps in order to have the view in the menu (when I saw your commit). Sorry, I am a newbie in django. But it looks so amazing that I need to try it. And thanks everyone at allegro, you guys are doing a great job
mrpugster
@mrpugster
Wow, Ralph 3 looks great. Amazing what you guys are doing. New the app myself, just wondered if LDAP integration was on the cards plus any chance of adding and removing fields on the DC Assets page for instance? Or even being able to add custom fields - only thinking about URL links to Dell warranty page that kind of stuff. All minor things - Great job.
Mateusz Kurek
@mkurek
@mrpugster hi. we have built-in ldap integration (http://ralph-ng.readthedocs.org/en/ng/installation/#ldap-authentication). We're working on custom fields feature right now: allegro/ralph#2158
mrpugster
@mrpugster
@mkurek Great stuff, I searched for "Active Directory" in the docs but didn't find anything. Excellent news on the custom fields. I just inherited a multi-server room nightmare environment that currently has no documentation and Ralph 3 is going to help me no-end :-)
✪ vi4m Marcin Kliks
@vi4m
@mrpugster btw. congratulations for "owning" a new dc ;)
Michał Suszko
@msuszko
At last. virtual code we were waiting for so long
We've rolled our own in the meantime, but with different model
VirtualProvider ---< VirtualProject ---< VirtualMachine. We don't have flavor.
Michał Suszko
@msuszko
I wonder why you reference CloudProvider from CloudHost when you have it through CloudFlavor and CloudProject
Mateusz Kurek
@mkurek
@msuszko you're right - so we'll probably remove this field from cloud host and reference it as you mentioned.
Do you use VirtualMachine etc for regular VMs (like Xen, vmware etc) or some cloud solution (openstack etc)?
Michał Suszko
@msuszko
I have OpenStack and VMware vCentre
plus some HyperV, stanalone ESX, AIX LPAR, and a mainframe
Mateusz Kurek
@mkurek
so CloudHost (and all Cloud*) are dedicated for cloud solutions like OpenStack, but we'll create something very similar to that for virtual machines (ex. without this flavor model, maybe with additional components)
Michał Suszko
@msuszko
I'm using different approach to scan OpenStack. We have services on Zato (http://zato.io) that are invoked by OpenStack hooks
@mkurek why separate model? vCentre has model very close to OpenStack
Michał Suszko
@msuszko
Also, you store hypervisor as an attribute of CloudHost, I chose to skip it, and just have relation to Provider
Mateusz Kurek
@mkurek
@msuszko virtual model is not fully clarified yet - maybe we'll (re)use cloud model. We'll probably create some REP (issue) for that when you'll post your requirements (if you have any) for this model so this could satisfy our both needs
This message was deleted
Michał Suszko
@msuszko
@mkurek yes, certainly, and maybe we can arrange IRL meeting to discuss few topics
Mateusz Kurek
@mkurek
sure
mrpugster
@mrpugster
@mkurek Is there any plan to change the displayed fields on the Hardware / Data center assets screen? Status, Barcode and Invoice aren't used in the particular environment I work in, however having the Rack location on this screen would make lookup a lot easier. I understand people model their environment, just wondered if the ability is going to be built in to select which fields to display or if we'll need to modify the code.
✪ vi4m Marcin Kliks
@vi4m
@mrpugster we encourage users to hide fields using permissions in the settings
you can hide non-required fields this way (which is most of them)
mrpugster
@mrpugster
@vi4m Great - found it thanks. It's very comprehensive. Just wondered if there was any plan on putting the Rack Location field on the main HARDWARE screen. By far the most requested user request is wanting to know which rack a server or switch is in. :-) Guessing I can always change this myself?
Mateusz Kurek
@mkurek
@mrpugster what do you mean by main hardware screen? list of assets/devices? if yes, then probably you're interested in allegro/ralph#2243 - we'll soon provide a way to select own columns-set for every user
mrpugster
@mrpugster
@mkurek yes that's correct - brilliant, you guys think of everything :-)
aveseb
@aveseb

Hi guys, I am trying to import supports with a csv file. I got this error: Line number: 1 - Cannot assign None: "Support.baseobject_ptr" does not allow null values.

Traceback (most recent call last):
File "/home/vagrant/lib/python3.4/site-packages/import_export/resources.py", line 360, in import_data
self.import_obj(instance, row, real_dry_run)
File "/home/vagrant/lib/python3.4/site-packages/import_export/resources.py", line 226, in import_obj
self.import_field(field, obj, data)
ValueError: Cannot assign None: "Support.baseobject_ptr" does not allow null values.

xliiv
@xliiv
@aveseb here is a pull request fixing your case: https://github.com/allegro/ralph/pull/2271/files
aveseb
@aveseb
@xliiv it seems thats ok for previsualization but I got this error : AttributeError: Cannot set values on a ManyToManyField which specifies an intermediary model. Use supports.BaseObjectsSupport's Manager instead.
aveseb
@aveseb
How do you add assets to support (or support to an asset) ? On this url : http://localhost:8000/supports/support/231/assignments/ you cannot navigate through asset when you want add an assignment. This is neither possible by http://localhost:8000/data_center/datacenterasset/200/data_center_asset_support/ When you click on add it add an empty column too.
Mateusz Kurek
@mkurek
@aveseb in your first link, in asset field you need to type asset property (ex. barcode, sn etc) or use the magnifier icon to open popup with list of assets
aveseb
@aveseb
@mkurek Ok I see what you mean. I've compared with the online demo on http://allegro.tech/ralph/ and I haven't the same thing. I think it's a problem with cache on django or something like that (i've tried with 2 different browser). I tried ralph clean_cache ; ralph clean_pyc without success, would you have an idea ? I'm using vagrant in order to make a pre-version of my environnement before install it on a true server.
Mateusz Kurek
@mkurek
@aveseb maybe it's because of js libraries? try to run gulp in ralph dir
aveseb
@aveseb
@mkurek yes it was the problem. Thanks you for your help
aveseb
@aveseb
Hi, I saw it was possible to make reports with template reports by uploading a file. How does it work ? I saw a report template on your demo site, but do we need to do something it order to that report appears in the menu (register a view for this template or something like that). Basically I would try to export a report with all hardware's assets that have a support contract.