Skip to content

Commit 09af976

Browse files
Zuulopenstack-gerrit
Zuul
authored andcommitted
Merge "remove ec2 in service and cmd"
2 parents 888cd51 + 6db94da commit 09af976

File tree

5 files changed

+4
-15
lines changed

5 files changed

+4
-15
lines changed

nova/api/openstack/compute/availability_zone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _describe_availability_zones_verbose(self, context, **kwargs):
6565

6666
zone_hosts = {}
6767
host_services = {}
68-
api_services = ('nova-osapi_compute', 'nova-ec2', 'nova-metadata')
68+
api_services = ('nova-osapi_compute', 'nova-metadata')
6969
for service in enabled_services:
7070
if service.binary in api_services:
7171
# Skip API services in the listing since they are not

nova/api/openstack/compute/hosts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def index(self, req):
8888
services = self.api.service_get_all(context, filters=filters,
8989
set_zones=True, all_cells=True)
9090
hosts = []
91-
api_services = ('nova-osapi_compute', 'nova-ec2', 'nova-metadata')
91+
api_services = ('nova-osapi_compute', 'nova-metadata')
9292
for service in services:
9393
if service.binary not in api_services:
9494
hosts.append({'host_name': service['host'],

nova/api/openstack/compute/services.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _get_services(self, req):
4545
# The API services are filtered out since they are not RPC services
4646
# and therefore their state is not reported through the service group
4747
# API, so they would always be reported as 'down' (see bug 1543625).
48-
api_services = ('nova-osapi_compute', 'nova-ec2', 'nova-metadata')
48+
api_services = ('nova-osapi_compute', 'nova-metadata')
4949

5050
context = req.environ['nova.context']
5151
context.can(services_policies.BASE_POLICY_NAME)

nova/cmd/manage.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
import six.moves.urllib.parse as urlparse
4545
from sqlalchemy.engine import url as sqla_url
4646

47-
from nova.api.ec2 import ec2utils
4847
from nova.cmd import common as cmd_common
4948
import nova.conf
5049
from nova import config
@@ -83,16 +82,6 @@
8382
action_description = cmd_common.action_description
8483

8584

86-
def param2id(object_id):
87-
"""Helper function to convert various volume id types to internal id.
88-
args: [object_id], e.g. 'vol-0000000a' or 'volume-0000000a' or '10'
89-
"""
90-
if '-' in object_id:
91-
return ec2utils.ec2_vol_id_to_uuid(object_id)
92-
else:
93-
return object_id
94-
95-
9685
def mask_passwd_in_url(url):
9786
parsed = urlparse.urlparse(url)
9887
safe_netloc = re.sub(':.*@', ':****@', parsed.netloc)

nova/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def __init__(self, name, loader=None, use_ssl=False, max_url_len=None):
322322
323323
"""
324324
self.name = name
325-
# NOTE(danms): Name can be metadata, osapi_compute, or ec2, per
325+
# NOTE(danms): Name can be metadata, osapi_compute, per
326326
# nova.service's enabled_apis
327327
self.binary = 'nova-%s' % name
328328
self.topic = None

0 commit comments

Comments
 (0)