Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
Bryan Taylor
idk whats going on, have no idea about node
Bryan Taylor
from the nodejs chan: "@brylor you're using an ANCIENT node and npm
if you installed node with apt, don't do that. install from source or with http://nvm.sh
you need to be on node 4 or 6, and npm 2 or 3.
Bryan Taylor
ok ty
@brylor shakes fist at apt "
✪ vi4m Marcin Kliks
good to know.
Bryan Taylor
I've commited the docker image at the failed build stage, so I'm able to work with it... ill keep you updated
✪ vi4m Marcin Kliks
Bryan Taylor
I managed to update the Docker scripts to install node via nvm, the error is gone and it appears I have fixed the node prob of course now:
 web_1    | [2016-08-18 11:19:08 +0000] [1] [INFO] Listening at: (1)
web_1    | [2016-08-18 11:19:08 +0000] [1] [INFO] Using worker: sync
web_1    | [2016-08-18 11:19:08 +0000] [9] [INFO] Booting worker with pid: 9
web_1    | [2016-08-18 11:19:08 +0000] [9] [ERROR] Exception in worker process
web_1    | Traceback (most recent call last):
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/arbiter.py", line 557, in spawn_worker
web_1    |     worker.init_process()
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/workers/base.py", line 126, in init_process
web_1    |     self.load_wsgi()
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/workers/base.py", line 136, in load_wsgi
web_1    |     self.wsgi = self.app.wsgi()
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/app/base.py", line 67, in wsgi
web_1    |     self.callable = self.load()
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
web_1    |     return self.load_wsgiapp()
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
web_1    |     return util.import_app(self.app_uri)
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/util.py", line 357, in import_app
web_1    |     __import__(module)
web_1    | ImportError: No module named 'ralph.wsgi'
web_1    | [2016-08-18 11:19:08 +0000] [9] [INFO] Worker exiting (pid: 9)
web_1    | [2016-08-18 11:19:08 +0000] [1] [INFO] Shutting down: Master
I have to cd src...
Bryan Taylor
Ok this is what I have so far: brylor/ralph@e6822c3
But I still get the above ralph.wsgi error because docker compose has command: gunicorn -w 4 -b -t 300 ralph.wsgi ... but that is executed in /opt/ralph, it should be /opt/ralph/src but I can't make the paths/environments happy ...
btw my github accounts are messed up :(
Bryan Taylor
actually: brylor/ralph@f16660b
Bryan Taylor
still trying to get docker working this is where i'm at:
[root@yp-personal ralph-docker]# docker-compose  up
Starting ralphdocker_redis_1
Creating ralphdocker_data_1
Starting ralphdocker_inkpy_1
Recreating ralphdocker_db_1
Creating ralphdocker_web_1

ERROR: for web  Cannot start service web: oci runtime error: no such file or directory
ERROR: Encountered errors while bringing up the project.

[root@yp-personal ralph-docker]# grep working_dir docker-compose.yml
  working_dir: /opt/ralph/src

[root@yp-personal ralph-docker]# docker run -ti ralphdocker_web ls /opt/ralph/src
ralph  ralph.egg-info
this is crazy no sense
Bryan Taylor
Got docker working :) I'm a few commits back though allegro/ralph#2748
Arkadiusz Adamski
@brylor thanks for investigation but we don't need nvm to install other version of nodejs.. Please test this solution #2751 and give me a feedback
Bryan Taylor
yeah, i tried :D.... cool thanks! I'll check it
Is there anyone that can provide training on Ralph for my company? I am trying to go through Ralph but I want to see if there is anyone of the developers of Ralph who can provide us a full run through of the tool just to see if the tool can meet our needs.
I encountered a problem,env is max os
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.5/site-packages/django/db/backends/mysql/base.py", line 124, in execute
return self.cursor.execute(query, args)
File "/usr/local/lib/python3.5/site-packages/MySQLdb/cursors.py", line 220, in execute
self.errorhandler(self, exc, value)
File "/usr/local/lib/python3.5/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorvalue
File "/usr/local/lib/python3.5/site-packages/MySQLdb/cursors.py", line 209, in execute
r = self._query(query)
File "/usr/local/lib/python3.5/site-packages/MySQLdb/cursors.py", line 371, in _query
rowcount = self._do_query(q)
File "/usr/local/lib/python3.5/site-packages/MySQLdb/cursors.py", line 335, in _do_query
File "/usr/local/lib/python3.5/site-packages/MySQLdb/connections.py", line 280, in query
_mysql.connection.query(self, query)
_mysql_exceptions.ProgrammingError: (1146, "Table 'ralph_ng.transitions_transitionmodel' doesn't exist")
✪ vi4m Marcin Kliks
@brylor thanks for the docker fix ! :)
Bryan Taylor
@vi4m You're welcome, thank you! Latest pull is working fine
Observation though: When creating a 'blade enclosure/parent' object I can't really see the 'blades/children' on the basic info page
I know someone is going to squawk about that :/
Bryan Taylor
Also, it seems it would be useful to have generic objects attached to a component model?
Since I generally have the same spec stuff...
Bryan Taylor
It seems I can assign back office assets and they show up in My Equipment but I can't do this with Data Center hardware :(
brylor @brylor sighs
Mateusz Kurek
@brylor about parent/children relation - we have this in mind and we'll work on this soon. And DataCenter hardware doesn't have user assigned (directly), that's why it's not visible in my equipment tab
✪ vi4m Marcin Kliks
@brylor you can see similar view as "my equipment", but from "Service" view
it would be nice to have "My Services" somewhere, anyway
Bryan Taylor
Throwing this out there... http://kea.isc.org/wiki
host reservations can be stored in the JSON configuration file or MySQL (DHCPv4)
mysql ...
Bryan Taylor
How can I get a data center object to span from front to back? I don't want to give the impression that is empty...
Is there a way to hide/disable pages from the admin portal such as removing the back office tab from the menu or the business segment page from the settings tab?
✪ vi4m Marcin Kliks
Yes, through the permissions settings
hy, anyone here?
✪ vi4m Marcin Kliks
i have an API question
what would the correct json look like to create a new virtual server?
here's what I came up with after reading the OPTIONS page
"type": 1,
"hostname": "tollemaschine1",
"hypervisor": 2,
"service_env": 3,
"status": "in use",
"sn": "123lkjh1oiuz123jhvfejkbergjb432"
but what actually happens is an error 400
{"type":["This field is required."],"hypervisor":["This field is required."]}
i though i had both in there
i also tried "" around the integers