summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorSoren Hansen <soren.hansen@rackspace.com>2010-12-14 18:11:30 +0100
committerSoren Hansen <soren.hansen@rackspace.com>2010-12-14 18:11:30 +0100
commit31c1407f7fe39b5a366e75b3131769efbfb50b57 (patch)
tree44a5e436b947934676cd1e3b7f1d0b1f28a062a8 /bin
parentbfe019e0de486eea09e4702262cd228791a4694c (diff)
parent911f11139926a772a5d90b8ec65cc4cb7ad850e9 (diff)
Merge trunk
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nova-compute2
-rwxr-xr-xbin/nova-instancemonitor2
-rwxr-xr-xbin/nova-manage11
-rwxr-xr-xbin/nova-network2
-rwxr-xr-xbin/nova-objectstore2
-rwxr-xr-xbin/nova-scheduler2
-rwxr-xr-xbin/nova-volume2
7 files changed, 14 insertions, 9 deletions
diff --git a/bin/nova-compute b/bin/nova-compute
index a66477af5..ac6378f75 100755
--- a/bin/nova-compute
+++ b/bin/nova-compute
@@ -38,8 +38,8 @@ from nova import utils
if __name__ == '__main__':
+ utils.default_flagfile()
twistd.serve(__file__)
if __name__ == '__builtin__':
- utils.default_flagfile()
application = service.Service.create() # pylint: disable=C0103
diff --git a/bin/nova-instancemonitor b/bin/nova-instancemonitor
index a7b7fb0c6..9b6c40e82 100755
--- a/bin/nova-instancemonitor
+++ b/bin/nova-instancemonitor
@@ -42,10 +42,10 @@ logging.getLogger('boto').setLevel(logging.WARN)
if __name__ == '__main__':
+ utils.default_flagfile()
twistd.serve(__file__)
if __name__ == '__builtin__':
- utils.default_flagfile()
logging.warn('Starting instance monitor')
# pylint: disable-msg=C0103
monitor = monitor.InstanceMonitor()
diff --git a/bin/nova-manage b/bin/nova-manage
index eb7c6b87b..62eec8353 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -359,9 +359,14 @@ class ProjectCommands(object):
def zipfile(self, project_id, user_id, filename='nova.zip'):
"""Exports credentials for project to a zip file
arguments: project_id user_id [filename='nova.zip]"""
- zip_file = self.manager.get_credentials(user_id, project_id)
- with open(filename, 'w') as f:
- f.write(zip_file)
+ try:
+ zip_file = self.manager.get_credentials(user_id, project_id)
+ with open(filename, 'w') as f:
+ f.write(zip_file)
+ except db.api.NoMoreNetworks:
+ print ('No more networks available. If this is a new '
+ 'installation, you need\nto call something like this:\n\n'
+ ' nova-manage network create 10.0.0.0/8 10 64\n\n')
class FloatingIpCommands(object):
diff --git a/bin/nova-network b/bin/nova-network
index 342a63058..d1fb55261 100755
--- a/bin/nova-network
+++ b/bin/nova-network
@@ -38,8 +38,8 @@ from nova import utils
if __name__ == '__main__':
+ utils.default_flagfile()
twistd.serve(__file__)
if __name__ == '__builtin__':
- utils.default_flagfile()
application = service.Service.create() # pylint: disable-msg=C0103
diff --git a/bin/nova-objectstore b/bin/nova-objectstore
index 728f2ee5b..00ae27af9 100755
--- a/bin/nova-objectstore
+++ b/bin/nova-objectstore
@@ -42,8 +42,8 @@ FLAGS = flags.FLAGS
if __name__ == '__main__':
+ utils.default_flagfile()
twistd.serve(__file__)
if __name__ == '__builtin__':
- utils.default_flagfile()
application = handler.get_application() # pylint: disable-msg=C0103
diff --git a/bin/nova-scheduler b/bin/nova-scheduler
index 069b5a6fa..4d1a40cf1 100755
--- a/bin/nova-scheduler
+++ b/bin/nova-scheduler
@@ -38,8 +38,8 @@ from nova import utils
if __name__ == '__main__':
+ utils.default_flagfile()
twistd.serve(__file__)
if __name__ == '__builtin__':
- utils.default_flagfile()
application = service.Service.create()
diff --git a/bin/nova-volume b/bin/nova-volume
index 26148b0ec..e7281d6c0 100755
--- a/bin/nova-volume
+++ b/bin/nova-volume
@@ -38,8 +38,8 @@ from nova import utils
if __name__ == '__main__':
+ utils.default_flagfile()
twistd.serve(__file__)
if __name__ == '__builtin__':
- utils.default_flagfile()
application = service.Service.create() # pylint: disable-msg=C0103