Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
✪ vi4m Marcin Kliks
@vi4m
what Ralph-core version do you have ?
Jim Ntosas
@purplexss
1.8.18
and i can also confirm that my setup on debian 8 stable also runs smoothly based on your installation instructions
i suggest whoever wants to run ralph, just install debian 8 jessie and just follow instructions, all goes well from my experience
just upgraded to the latest build, still all works fine
✪ vi4m Marcin Kliks
@vi4m
what's the contents of your /etc/apt/sources.list.d/vi4m_ralph.list ?
Jim Ntosas
@purplexss
root@ralph:~# cat /etc/apt/sources.list.d/vi4m_ralph.list
deb https://dl.bintray.com/vi4m/ralph jessie main
Michael Cone
@mrmikee

@mkurek Thank you, yes I did try installing on ubuntu 16.04 server using the ppa method. Kept getting python site-packages that were missing. Tried changing PYTHONHOME and PYTHONPATH in my ENV but didn't fix it. Couldn't find anyone else that posted about it other than generic Python import issues. Seems like Ralph has far too many "custom" settings tied to 14.04 to make it's upgrade path simple enough for Production environments. It stinks that Docker is NOT an option for my employer.

Note: I was able to install on 14.04 using my Ansible Play that fails on 16.04.

Michael Cone
@mrmikee
@vi4m The "encodings" import error you captured was the same issue I was having.
✪ vi4m Marcin Kliks
@vi4m
@mrmikee worry no :) we will prepare separate package for ubuntu 16
We're gonna upgrade soon too, so it's kind of must have
✪ vi4m Marcin Kliks
@vi4m
I think dh_virtualenv creates links to python interpreter inside of deb package(which python shows the linked script). I think we should build from within ubuntu:16 itself and add as separate package. Does Travis support this ? @mkurek
Mateusz Kurek
@mkurek
@vi4m not out-of-the-box, but we could build deb inside docker (we're doing it in one of our internal projects)
Michael Cone
@mrmikee
@vi4m Thank you guys for the updates and community version. I really enjoy what I see of Ralph3 so far. @mkurek
Alexis Talbot
@linuxmkd_twitter
Is there a way to do cable tracking in Ralph, with rack location etc ... or waht is the best way to acheive cable tracking
✪ vi4m Marcin Kliks
@vi4m
@linuxmkd_twitter this is something we want to work on in next release, high priority
Alexis Talbot
@linuxmkd_twitter
Ok thanx
pyja
@vipsql
is there hava chinese ?
i want to get a chinese tutorial
✪ vi4m Marcin Kliks
@vi4m
@vipsql not at the moment
pyja
@vipsql
thanks
Mr Black
@lip177891840
I am writing a python script taking data from ralph for Ansible invertory,it UNAUTHORIZED in ralph runserver, but works well in debug mode
    def getJsonObject(urlstr):
    url=baseURL +urlstr
    base64string = base64.encodestring('%s:%s' % (username, password)).replace('\n', '')
    request = urllib2.Request(url)
    request.add_header("Authorization", "Basic %s" % base64string) 
    result = urllib2.urlopen(request)
    data = result.read()
    # print data
    jsonObject= json.loads(data)
    # results=jsonObject['results']
    return jsonObject
Mateusz Kurek
@mkurek
@lip177891840 are you using ralph rest api?
Mr Black
@lip177891840
yes,
do you have any idea? i dont know the specific defferences between ralph runserver and make run
Mateusz Kurek
@mkurek
first of all, if you are using rest api, try token authentication: http://ralph-ng.readthedocs.io/en/latest/user/api/#authentication
make run run runserver with debug enabled - that what probably makes a difference here
Mr Black
@lip177891840
ok,i will hava a try , THANKS
Mr Black
@lip177891840
@mkurek ,it works ,i think i need to be familiar with ralph
bencheikh
@bencheikh
G.M every one How to import Excel File in Ralph ( is there any specific format to respect and wich field should i fill first ) I only care about servers (Hostname , Type , Model , IP , Env)
one last thing how to change all setting language in Ralph
bencheikh
@bencheikh
i checked import data workflow but i can't fixe it

Line number: 1 - "Column 'id' not found in dataset. Available columns are: ['hostname;barcode']"
OrderedDict([('hostname;barcode', 'xxx;xxx')])

Traceback (most recent call last):
File "/opt/ralph/ralph-core/lib/python3.4/site-packages/import_export/fields.py", line 57, in clean
value = data[self.column_name]
KeyError: 'id'

During handling of the above exception, another exception occurred:

Pete
@kasim1r
Hey guys, how would I delete an object via API? Let's say I did a search for memory like this:
api/memory/?limit=10&offset=0&base_object=6
and it returns one id
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "id": 1,
            "url": "https://ralph.my.domain/api/memory/1/",
            "ui_url": "https://ralph.my.domain/assets/memory/1/",
            "created": "2016-10-05T18:40:58.994684",
            "modified": "2016-10-05T18:40:58.994707",
            "model_name": "vmem",
            "size": 2048,
            "speed": null,
            "base_object": {
                "id": 6,
                "url": "https://ralph.my.domain/api/base-objects/6/",
                "tags": [],
                "created": "2016-09-14T17:57:03.729526",
                "modified": "2016-10-05T18:40:58.991509",
                "remarks": "",
                "parent": "https://ralph.my.domain/api/base-objects/2/",
                "service_env": "https://ralph.my.domain/api/services-environments/3/",
                "configuration_path": null
            }
        }
    ]
how would I delete this memory instance?
Pete
@kasim1r
ah, forget it. I found method DELETE in the documentation
but thanks for reading :P
✪ vi4m Marcin Kliks
@vi4m
:-)
You did it :-)
I plan to add section of "Companies using Ralph" to the webpage. Anyone interested to be proudly listed in this section ? :-)
Silencedpulse
@Silencedpulse
Is it possible to run Ralph in WAMP?
✪ vi4m Marcin Kliks
@vi4m
We haven't tried it yet
I think it's much better to stick to virtual machine Linux system - you will get fully compatible setup
And still it runs on windows
Silencedpulse
@Silencedpulse
I understand but wasn't sure if there was a service that ran in the background on a *nix system. Thank you for the prompt response
xliiv
@xliiv
wouldn't docker do the job even on windows? @Silencedpulse