Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
COLIN GHERGHE
@zyraxe
@vi4m Yes, I need to import some data into Ralph. Problem is with the link you sent that it does not work properly. Another group in my company tried that and they found it not to be properly functioning. We are now contemplating writing our own scripts (in Python?) and using API calls to get the job done. Problem is, I do not know where to start with this task -- I need some sort of hello_world program to guide me on how this is done in Ralph, or some documentation. Do you have anything like that handy?
✪ vi4m Marcin Kliks
@vi4m
@zyraxe decribe first, which fields / objects you need to import
COLIN GHERGHE
@zyraxe
@vi4m The job is to import a list of servers from another system, called Flexera. I have no specs at all yet, first task is to learn Flexera and mimic the data structure from that system into Ralph. The hard part (I was warned about) is to link those servers to lease contracts -- so I guess I have to bring over the contracts and the servers too. That is all I have so far.
Dopsterinho
@Dopsterinho
image.png

Hello everybody,
Maybe you can help me once again out:
I have another Model, with RalphUser and BackOfficeAsset Model field query:

mitarbeiter = models.ForeignKey(

        settings.AUTH_USER_MODEL,
        blank=True,
        null=True,
        verbose_name=_('Mitarbeiter'),
        unique=True,
  )

notebook = models.OneToOneField(

        BackOfficeAsset,
        blank=False,
        default=None,
        max_length=200,
        null=False,
  )

How can I make, that the User assigned to an Asset (in My Model) is visible in the RalphUser AdditionalInfo HTML Assets ?

✪ vi4m Marcin Kliks
@vi4m
isn’t this working already?
@Dopsterinho screenshots attached showed you have „Mitarbeiter” field
which view is „RalphUser Additional Info” ?
Dopsterinho
@Dopsterinho

Hy @vi4m :

class UserInfoView(UserInfoMixin, RalphDetailView):

icon = 'user'
name = 'user_additional_info'
label = _('Additional info')
url_name = 'user_additional_info'

It is working if I assign the user directly on the BackOfficeAsset . If I do it from My model with the "Mitarbeiter" Field, it won't Show up in additional Info.
I am Pretty sure it has something to do with the Api, or the View of RalphUser or the my Model by itself ? There is something that I am missing...A class method Maybe ? My Model is Pretty Basic...

So if the User Field from the BackofficeAsset gets populated by my "Mitarbeiter" Field Value, then the Additional_USer_Info.html, will also get populated.

✪ vi4m Marcin Kliks
@vi4m
@MarekBleschke do you know how it’s done?
@mkurek ?
robbagithub
@robbagithub
Hello. Total Noob here, I've been looking for an app to manage our DCFM data for ages. Power IQ sucked... Just wondering if Ralph handles Cable labels yet?
✪ vi4m Marcin Kliks
@vi4m
did you try demo? @robbagithub
✪ vi4m Marcin Kliks
@vi4m
Dopsterinho
@Dopsterinho

@MarekBleschke do you know how it’s done?

I think the easiest way would be to bring the User Profile Field on to my model "Mitarbeiter" Field ?
or with a classmethod something like "self.user = self.mitarbeiter" ?

Dopsterinho
@Dopsterinho

@MarekBleschke do you know how it’s done?

I think the easiest way would be to bring the User Profile Field on to my model "Mitarbeiter" Field ?
or with a classmethod something like "self.user = self.mitarbeiter" ?

But I do not know how to do that :-/

ShadowPhrogg32642342
@ShadowPhrogg32642342
Hi guys, Is there a way to manage non-rackmount datacenter machines? I tried emulating our shelf structure using blades and slots, but cannot find the option to turn something into a blade unit or blade chassis, as referred in the quickstart guide.
✪ vi4m Marcin Kliks
@vi4m
it’s certainly doable
✪ vi4m Marcin Kliks
@vi4m
if you want to have some models „enclosed” in some „parent” enclosures, you can define asset models
for example, blade systems are marked with [x] has parent field
Zrzut ekranu 2018-10-19 o 09.44.43.png
Zrzut ekranu 2018-10-19 o 09.44.33.png
just see the difference between enclosure vs chassis blade
vobo70
@vobo70
I have upgraded ubuntu 14.04.5 (apt update && apt upgrade) and Ralph stoped to work . Acctualy ralph works by run command: /opt/ralph/ralph-core/bin/ralph runserver 0.0.0.0:8000 but nobody can log on. Our colleagues left company but he made some changes to AD logon scripts. How to reset local admin password to get to the settings?
✪ vi4m Marcin Kliks
@vi4m
You mean, permission denied error?
vobo70
@vobo70
No; when I put logon name and password i get in left top corner: Wprowadź poprawne dane w polach "użytkownik" i "hasło" dla konta należącego do zespołu. Uwaga: wielkość liter może mieć znaczenie. I'm sure I put correct login and password
I also tried to restore ralph folder from backup but It doesn't work either.
✪ vi4m Marcin Kliks
@vi4m
you can reset password with /opt/ralph/ralph-core/bin/ralph changepassword <user_name>
and always you can create new superuser account with /opt/ralph/ralph-core/bin/ralph createsuperuser
i’m not sure why your settings changed after upgrade, but keep in mind to keep settings outside of /opt/ralph directory since it might get overwritten by package upgrades
that’s why environment variables(RALPH_DB_NAME etc) hold configuration, as described in installation manual
vobo70
@vobo70
Thank you very much. Change password worked for me and now I can login to ralph. Are there any plans to support upgrade to ubuntu 18.04.1?
vobo70
@vobo70
And where are settings stored by default? Becouse login by domain account does not work (When I show group list, get group 'admin' there's '-' after LDAP mapping:
✪ vi4m Marcin Kliks
@vi4m
we have plans to add support for 18.04.1 in Novemeber
settings - it entirely depends on installation (admin which installed it). ralph settings are just configuration variables from startup script, but you can check if someone changed /opt/ralph/... settings.py or settings-local.py
Dopsterinho
@Dopsterinho
Hello
Is there a possibility to add an activity Log on the Index.HTML ? Like now "my recent Actions", but something like "All Recent Actions" with possibility to search the List .
✪ vi4m Marcin Kliks
@vi4m
sounds like nifty idea @Dopsterinho but we don’t have plans to implement this by ourselves for now
might be nice starter task for new contributors, though :)
joshualu4
@joshualu4
Hello friends, is there a way to run transitions that require owner approval? For example, a user can run a transition to change the owner of an item, but the transition will only go through if the current owner approves it.
Marek Bleschke
@MarekBleschke
Hi @joshualu4. Currently there is no functionality of approving transitions by user to run them. You can add permission to user or group to allow running specific transition - if user has this permission he/she can run transition.
Dopsterinho
@Dopsterinho
Hello
How can I uninstall Ralph Completely ? Simple Delete of the Folder ?
Jan Bundesmann
@knoppi
I just tried to rebuild my Docker image, but the process gets interrupted during provision_js.sh; it seems gyp requires a binary "python", which usually is just a symlink to the installed version. This is not created. I solved by adding a line to the dockerfile "RUN apt-get install -y python2.7 && ln -s /usr/bin/python27 /usr/bin/python".
Now, it builds, but that seems very hacky to me and I do not understand why docker build is complaining now. Maybe it is the change of the base image?
Shall I create an issue on GitHub?
✪ vi4m Marcin Kliks
@vi4m
yes, please!
i think it might be related to volumes - did you use volumes?
Jan Bundesmann
@knoppi
@vi4m Just created an issue. In case you were referring to me with the volumes: I did not "use" anything at that point, this happened during the build process. Later, I would have used volumes, yes. But the corresponding layers of the image appears later in the Dockerfile.
✪ vi4m Marcin Kliks
@vi4m
@knoppi did you use mac system?
Jan Bundesmann
@knoppi
No, it is a Debian Linux.
seabrig29
@seabrig29
Ran Ralph3 install as described by https://ralph-ng.readthedocs.io/en/latest/installation/installation/#debianubuntu-package-recommended. Installed on Ubunto 14.04 after installing Mysql and trying to run the "Ralph Migrate" command I get command not found. can anyone help. FYI. very much a Linux newbie.
Fabian Krack
@onibox
seabrig29
@seabrig29
@onibox I appreciate the information however a comparison between the to pages shows they are the same information unless there is one magical line I missed. but they look like the same instruction set to me.