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

LIBCLOUD-641: The Aurora Compute libcloud driver #477

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions libcloud/compute/drivers/auroracompute.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from libcloud.compute.providers import Provider
from libcloud.compute.drivers.cloudstack import CloudStackNodeDriver

__all__ = [
'AuroraComputeNodeDriver'
]

class AuroraComputeNodeDriver(CloudStackNodeDriver):
type = Provider.AURORACOMPUTE
name = 'PCextreme AuroraCompute'
website = 'https://www.pcextreme.nl/aurora'
Copy link
Member

Choose a reason for hiding this comment

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

Hm, link (https://www.pcextreme.nl/aurora) returns 404

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The URL has been fixed on our side.

Copy link
Contributor

Choose a reason for hiding this comment

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

Still returns 404, adding a slash at the end works though. That redirects to https://www.pcextreme.nl/aurora/compute

host = 'cloud.pcextreme.nl'
path = '/api'
2 changes: 2 additions & 0 deletions libcloud/compute/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@
('libcloud.compute.drivers.profitbricks', 'ProfitBricksNodeDriver'),
Provider.VULTR:
('libcloud.compute.drivers.vultr', 'VultrNodeDriver'),
Provider.AURORACOMPUTE:
('libcloud.compute.drivers.auroracompute', 'AuroraComputeNodeDriver'),

# Deprecated
Provider.CLOUDSIGMA_US:
Expand Down
2 changes: 2 additions & 0 deletions libcloud/compute/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class Provider(object):
:cvar OUTSCALE_INC: Outscale INC driver.
:cvar PROFIT_BRICKS: ProfitBricks driver.
:cvar VULTR: vultr driver.
:cvar AURORACOMPUTE: Aurora Compute driver.
"""
DUMMY = 'dummy'
EC2 = 'ec2_us_east'
Expand Down Expand Up @@ -126,6 +127,7 @@ class Provider(object):
VSPHERE = 'vsphere'
PROFIT_BRICKS = 'profitbricks'
VULTR = 'vultr'
AURORACOMPUTE = 'Aurora Compute'

# OpenStack based providers
HPCLOUD = 'hpcloud'
Expand Down
26 changes: 26 additions & 0 deletions libcloud/test/compute/test_auroracompute.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import sys

from libcloud.compute.drivers.exoscale import AuroraComputeNodeDriver
from libcloud.test.compute.test_cloudstack import CloudStackCommonTestCase
from libcloud.test import unittest

class AuroraComputeNodeDriverTestCase(CloudStackCommonTestCase, unittest.TestCase):
driver_klass = AuroraComputeNodeDriver

if __name__ == '__main__':
sys.exit(unittest.main())