Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Bryan Taylor
@brylor
is it not something from the GUI?
Bryan Taylor
@brylor
found it in src/ralph/data_center/models/virtual.py ... what is the motivation to not have status in the DB?
I can just add to this list right? fordeploy = ('for deploy') reserved = ('reserved') free = ('free')
✪ vi4m Marcin Kliks
@vi4m
Yes you can add it. The motivation is - we have some logic connected to this statuses
But it's safe to add to the list
Bryan Taylor
@brylor
@vi4m seems I can't remove 'for deploy' or 'in use' I get: AttributeError: type object 'ClusterStatus' has no attribute 'in_use'
Other thoughts: How would I implement "blades?" I need to account for the enclosure and any parts inside of it
... then I have clusters of blades
✪ vi4m Marcin Kliks
@vi4m
You can add statuses, not removing.
Just read QuickStart blades are included in docs.
Bryan Taylor
@brylor
Ah I see it, sorry... too impatient for the quickstart :D
ty
I have a slack ruby bot talking to the API... so hopefully nobody has to ask me ever again the status of a cluster :)
Bryan Taylor
@brylor
@vi4m I feel like I've done everything, and I can't get my blade to show up in DC view
Bryan Taylor
@brylor
@vi4m http://ctrlv.in/815533 currently setup like this, but sslco0202 and sslco0203 do not show up in the rack
Bryan Taylor
@brylor
Do I need to make a third asset for the "enclosure" and have that be the parent to my two node assets?
hrm
Bryan Taylor
@brylor
Yeah... I did that and it seemed to work
Bryan Taylor
@brylor
Any road map to change position from DC view? Draggable?
Bryan Taylor
@brylor
I can't set an asset holder to a cluster :/ blarg
✪ vi4m Marcin Kliks
@vi4m
?
Bryan Taylor
@brylor
assign a cluster to a user I mean
I'll use custom key
✪ vi4m Marcin Kliks
@vi4m
Yes you can assign an owner. Just do it through the Service field
Then you have technical and business owner and other fields.
Bryan Taylor
@brylor
Im doing hardware testing and trying to assign clusters to users. The hardware changes hands pretty much everyday as different geos use it. A service field for each user feels kludgy
as the service is just 'test'
✪ vi4m Marcin Kliks
@vi4m
Ok then custom field should do the job
gatvo
@gatvo
hello, im seeing a server error (500) when I try to export IP Addresses into .xls using the demo
Bryan Taylor
@brylor
How horrible would it be to add more fields into components? I want to track poh on hours for drives, installed dates, etc... but I can't use a custom key
just make a migration and add the admin field?
✪ vi4m Marcin Kliks
@vi4m
Why is the custom field not enough in your case?
Bryan Taylor
@brylor
I'm not seeing how I would associate a specific drive's serial number to it's actual POH... unless I used custom field for serial and POH but I feel im breaking the model ?
gatvo
@gatvo
How can I add a management IP to an asset through the API?
✪ vi4m Marcin Kliks
@vi4m
@gatvo look at the ralph-cli sources, there's an example there
Bryan Taylor
@brylor
@gatvo I came up with this in ruby, its pretty crufty atm but it seems to work https://gist.github.com/brylor/599f3002c1579567ba806a6ed73bbd5b
be wary of trailing slashes with the API
✪ vi4m Marcin Kliks
@vi4m
looks good
Bryan Taylor
@brylor
thanks! :)
sigh, docker is such a bear sometimes
Bryan Taylor
@brylor
latest git pull, docker-compose up gets me:
npm http GET https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.0.tgz
npm http 200 https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.0.tgz

> node-sass@3.8.0 install /opt/ralph/node_modules/gulp-sass/node_modules/node-sass
> node scripts/install.js

Binary downloaded and installed at /opt/ralph/node_modules/gulp-sass/node_modules/node-sass/vendor/linux-x64-11/binding.node

> node-sass@3.8.0 postinstall /opt/ralph/node_modules/gulp-sass/node_modules/node-sass
> node scripts/build.js

"/opt/ralph/node_modules/gulp-sass/node_modules/node-sass/vendor/linux-x64-11/binding.node" exists.
 testing binary.
Binary is fine; exiting.
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /opt/ralph/npm-debug.log
npm ERR! not ok code 0
ERROR: Service 'web' failed to build: The command '/bin/sh -c $SCRIPTS_PATH/provision_js.sh' returned a non-zero code: 1
Bryan Taylor
@brylor
wth I revert to my old commit and i get the same err
gatvo
@gatvo
@vi4m @brylor Thanks so much! ralph-cli looks promising
Bryan Taylor
@brylor
damn, spun up a bran new centos, fresh docker, got the same thing
✪ vi4m Marcin Kliks
@vi4m
which docker-compose.yml are you using?
Bryan Taylor
@brylor
The one from the contrib directory, only thing I changed was host port https://gist.github.com/brylor/b68f46f9f58ab1899ae7bb2a87130a2b
I can't really get to /opt/ralph/npm-debug.log not sure how to run the failed container from the build
lets see if i can make a volume of /opt/ralph onto the host and pull it that way...
Bryan Taylor
@brylor
Bryan Taylor
@brylor
I think something is unpublished ...