All pastes #2133689 Raw Edit

Untitled

public text v1 · immutable
#2133689 ·published 2012-03-30 01:47 UTC
rendered paste body
Aaron C.
9:18 PM
gitolite behaves like keg as far as accessing
git clone git@15.185.178.158:maxwell
https://wiki.hpcloud.net/display/paas/Platform+Services+Infrastructure
I added whatever pubkey you were using to access keg
so, make your changes in that repo, and push to master
here's the tricky bit... maxwell on the images that are booted up will only go as far as the "deploy" branch
Patrick G.
9:20 PM
what if I have a tree I've worked out that's from github?
Aaron C.
9:20 PM
there are a number of changes in "master" right now that haven't been fully integration tested
Patrick G.
9:20 PM
change my remote, pull?
Aaron C.
9:21 PM
hold up
Patrick G.
9:21 PM
sorry, I missed details when my mind was multiplexing over the last several days
Aaron C.
9:21 PM
np, agh I have to run so let me make this quick
Patrick G.
9:21 PM
sorry
Aaron C.
9:21 PM
anything that _was_ in reddwarf/smartagent is now in maxwell/maxwell
Patrick G.
9:22 PM
ok.
Aaron C.
9:22 PM
at this point the easiest thing to do would be to clone the repo, and copy your changes from one to the other
Patrick G.
9:22 PM
hand-editing-O'clock
Aaron C.
9:22 PM
taking into account the name change, eg if you're importing from smartagent, import from maxwell, that sort of thing
there are _some_ tests, so 'tox' should do something
but I don't honestly know if 'tox' is passing out of the box right now
Patrick G.
9:22 PM
tox?
Aaron C.
9:23 PM
command you would run to kick off unit tests
so let's say in theory you copy your changes over, they look good, you commit to master, you push
now you want to test on an instance
boot one up using this image
| 3232 | dbas-rdapi-20120329 | ACTIVE | |
ssh into that
shut down maxwell, switch to nova, fetch your changes, do some munging, start maxwell back up
so...
sudo /etc/init.d/maxwell stop
su - nova
err... sudo su - nova
cd maxwell; git fetch; git reset --hard origin/master
Patrick G.
9:25 PM
I have to set up the link and all of that too
Aaron C.
9:25 PM
vi bin/maxwell
Patrick G.
9:25 PM
and make database changes
so, I need an image that works with this
Aaron C.
9:25 PM
ok, this is too much for me to address tonight
Patrick G.
9:25 PM
yeah, I have been at this since 7 EDT
Aaron C.
9:25 PM
to build a new image, edit maxwell/etc/dbaas-image.sh and then boot a new instance to image off of
eg:
Patrick G.
9:25 PM
code is complete for the most part
Aaron C.
9:26 PM
nova boot --flavor 101 --image 227 --security_groups mysql --key_name dbas-dev --user_data ~/w/hpcs/maxwell/etc/dbaas-image.sh patg-dbas-image-stage
look around, make sure it's good, then bake
nova image-create patg-dbas-image-stage patg-dbas-image
with that, I seriously have to run; I may or may not be able to check back in later tongiht
Patrick G.
9:27 PM
ok, so user data in this case is for preparing an image vs. starting up an image a user is going to use
thanks!
we'll go over these changes tomorrow