These are chat archives for allegro/ralph

13th
Aug 2018
Alberto Valdes
@albercuba__twitter
Aug 13 2018 07:29
Hello everyone. The documentation says that if I want to enable LDAP authentication I should run pip install -r requirements/prod_ldap.txt Do I neeed to be in a specific folder?
Marek Bleschke
@MarekBleschke
Aug 13 2018 07:36
Hi @albercuba__twitter , requirements/prod_ldap.txt is relative path from ralph main directory. You can run pip command anywhere, just need to amend requirements/prod_ldap.txt part so it point's to prod_ldap.txt on your filesystem.
Alberto Valdes
@albercuba__twitter
Aug 13 2018 07:39
hi @MarekBleschke do I need to generate the file prod_ldap.txt? because I do not find it in my system
Alberto Valdes
@albercuba__twitter
Aug 13 2018 08:02
can someone help me configuring the LDAP Auth please? I created a folder called requirements under /opt/ralph/ralph-core and downloaded everything from https://github.com/allegro/ralph/tree/ng/requirements to that folder. but when I run pip install -r requirements/prod_ldap.txt I get
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 262, in run
    for req in parse_requirements(filename, finder=finder, options=options, session=session):
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1632, in parse_requirements
    req = InstallRequirement.from_line(line, comes_from, prereleases=getattr(options, "pre", None))
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 173, in from_line
    return cls(req, comes_from, url=url, prereleases=prereleases)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 71, in __init__
    req = pkg_resources.Requirement.parse(req)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2667, in parse
    reqs = list(parse_requirements(s))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2593, in parse_requirements
    raise ValueError("Missing distribution spec", line)
ValueError: ('Missing distribution spec', '<!DOCTYPE html>')
Alberto Valdes
@albercuba__twitter
Aug 13 2018 08:17
Also, if I create a Network with Network Address: 192.168.25.0/22 , I get 192.168.25.0/22 has host bits set
Marek Bleschke
@MarekBleschke
Aug 13 2018 08:32
What type of installation of ralph are you using? (debian package, docker, vagrant, from source)
Alberto Valdes
@albercuba__twitter
Aug 13 2018 08:38
@MarekBleschke Debian Package. I am using Ubuntu 14.04 as recommended
Marek Bleschke
@MarekBleschke
Aug 13 2018 08:55
@albercuba__twitter unfortunately in current debian package we don't have ldap. You could use source distribution and then install this dependencies. Also you can create ticket on ralph issue queue to add ldap to package.
Additionally to your pasted traceback it looks like your downloaded requirements files could be malformed (maybe html pages from github?).
Alberto Valdes
@albercuba__twitter
Aug 13 2018 09:01
@MarekBleschke Is there a planed release for modern distributions? Ubuntu 14.04 is old. Also, What yould you recomend to use in production?