diff --git a/ceilometer/api/__init__.py b/ceilometer/api/__init__.py index a3265747..6f313ea0 100644 --- a/ceilometer/api/__init__.py +++ b/ceilometer/api/__init__.py @@ -19,6 +19,7 @@ from oslo_config import cfg OPTS = [ cfg.IntOpt('port', default=8777, + min=1, max=65535, deprecated_name='metering_api_port', deprecated_group='DEFAULT', help='The port for the ceilometer API server.', diff --git a/ceilometer/collector.py b/ceilometer/collector.py index 4012dbe6..489da810 100644 --- a/ceilometer/collector.py +++ b/ceilometer/collector.py @@ -35,6 +35,7 @@ OPTS = [ 'an empty string to disable.'), cfg.IntOpt('udp_port', default=4952, + min=1, max=65535, help='Port to which the UDP socket is bound.'), cfg.BoolOpt('requeue_sample_on_dispatcher_error', default=False, diff --git a/ceilometer/compute/virt/vmware/inspector.py b/ceilometer/compute/virt/vmware/inspector.py index fb3b83bd..d1599eff 100644 --- a/ceilometer/compute/virt/vmware/inspector.py +++ b/ceilometer/compute/virt/vmware/inspector.py @@ -34,6 +34,7 @@ OPTS = [ help='IP address of the VMware vSphere host.'), cfg.IntOpt('host_port', default=443, + min=1, max=65535, help='Port of the VMware vSphere host.'), cfg.StrOpt('host_username', default='',