Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Openstack related changes to Rouster. #79

Merged
merged 5 commits into from
Sep 14, 2015

Conversation

dhirajh
Copy link

@dhirajh dhirajh commented Sep 1, 2015

This PR contains code changes to enable bring up and shut down of OpenStack instances via Rouster. In particular, the following OpenStack specific methods are being added:

ostack_connect
ostack_describe_instance
ostack_destroy
ostack_get_instance_id
ostack_get_ip
ostack_status
ostack_up

@@ -39,7 +39,7 @@ but no real testing has been done to confirm this. Please file issues as appropr
```sh
git clone https://github.com/chorankates/rouster.git
cd rouster
bundle install # use :aws to pull in fog
bundle install # use :aws or :openstack to pull in fog
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this won't work unless you add an additional block in the Gemfile, which i don't recommend.

it might make more sense to add something related to line 32 above

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved it to line 32.


[:openstack_auth_url, :openstack_username, :openstack_tenant, :openstack_api_key,
:key ].each do |r|
raise ArgumentError.new(sprintf('Openstack passthrough requires %s specification', r)) if @passthrough[r].nil?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

think this is the last one.. for consistency, can you change this to 'OpenStack'?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@chorankates-sfdc
Copy link
Collaborator

caught a number of test failures/errors when running rake test on this branch:

  • test_bad_passthrough(TestNew)
  • test_default_overrides_passthrough(TestNew)
  • test_good_local_passthrough(TestNew)
  • test_functional_local_passthrough(TestPassthroughs)

while trying to look into the cause, i noticed that you're also using tabs, not 2 spaces.

please fix the tests and the spacing

@dhirajh
Copy link
Author

dhirajh commented Sep 10, 2015

I have refreshed the PR with a fix for the failed tests. I have also
replaced the tabs with white spaces.

Thanks,
Dhiraj

On Wed, Sep 9, 2015 at 11:44 AM, Conor Horan-Kates <[email protected]

wrote:

caught a number of test failures/errors when running rake test on this
branch:

  • test_bad_passthrough(TestNew)
  • test_default_overrides_passthrough(TestNew)
  • test_good_local_passthrough(TestNew)
  • test_functional_local_passthrough(TestPassthroughs)

while trying to look into the cause, i noticed that you're also using
tabs, not 2 spaces.

please fix the tests and the spacing


Reply to this email directly or view it on GitHub
#79 (comment).

chorankates-sfdc added a commit that referenced this pull request Sep 14, 2015
Add Openstack related changes to Rouster.
@chorankates-sfdc chorankates-sfdc merged commit 76b3be7 into chorankates:master Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants