summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ceilometer/collector.py8
-rwxr-xr-xceilometer/compute/virt/vmware/inspector.py6
-rw-r--r--ceilometer/opts.py13
-rw-r--r--requirements.txt2
4 files changed, 15 insertions, 14 deletions
diff --git a/ceilometer/collector.py b/ceilometer/collector.py
index df4beff7..c11613c3 100644
--- a/ceilometer/collector.py
+++ b/ceilometer/collector.py
@@ -32,10 +32,10 @@ from ceilometer.publisher import utils as publisher_utils
from ceilometer import utils
OPTS = [
- cfg.StrOpt('udp_address',
- default='0.0.0.0',
- help='Address to which the UDP socket is bound. Set to '
- 'an empty string to disable.'),
+ cfg.HostAddressOpt('udp_address',
+ default='0.0.0.0',
+ help='Address to which the UDP socket is bound. Set to '
+ 'an empty string to disable.'),
cfg.PortOpt('udp_port',
default=4952,
help='Port to which the UDP socket is bound.'),
diff --git a/ceilometer/compute/virt/vmware/inspector.py b/ceilometer/compute/virt/vmware/inspector.py
index 2b1530c3..b7bd9ee1 100755
--- a/ceilometer/compute/virt/vmware/inspector.py
+++ b/ceilometer/compute/virt/vmware/inspector.py
@@ -29,9 +29,9 @@ opt_group = cfg.OptGroup(name='vmware',
title='Options for VMware')
OPTS = [
- cfg.StrOpt('host_ip',
- default='',
- help='IP address of the VMware vSphere host.'),
+ cfg.HostAddressOpt('host_ip',
+ default='127.0.0.1',
+ help='IP address of the VMware vSphere host.'),
cfg.PortOpt('host_port',
default=443,
help='Port of the VMware vSphere host.'),
diff --git a/ceilometer/opts.py b/ceilometer/opts.py
index 4da8bac1..52ba520d 100644
--- a/ceilometer/opts.py
+++ b/ceilometer/opts.py
@@ -57,12 +57,13 @@ import ceilometer.volume.discovery
OPTS = [
- cfg.StrOpt('host',
- default=socket.gethostname(),
- sample_default='<your_hostname>',
- help='Name of this node, which must be valid in an AMQP '
- 'key. Can be an opaque identifier. For ZeroMQ only, must '
- 'be a valid host name, FQDN, or IP address.'),
+ cfg.HostAddressOpt('host',
+ default=socket.gethostname(),
+ sample_default='<your_hostname>',
+ help='Name of this node, which must be valid in an '
+ 'AMQP key. Can be an opaque identifier. For ZeroMQ '
+ 'only, must be a valid host name, FQDN, or IP '
+ 'address.'),
cfg.IntOpt('http_timeout',
default=600,
help='Timeout seconds for HTTP requests. Set it to None to '
diff --git a/requirements.txt b/requirements.txt
index e8bf9888..90dfab9d 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -15,7 +15,7 @@ keystonemiddleware!=4.1.0,>=4.0.0 # Apache-2.0
lxml>=2.3 # BSD
msgpack-python>=0.4.0 # Apache-2.0
oslo.concurrency>=3.5.0 # Apache-2.0
-oslo.config>=3.9.0 # Apache-2.0
+oslo.config>=3.22.0 # Apache-2.0
oslo.db>=4.1.0 # Apache-2.0
oslo.i18n>=2.1.0 # Apache-2.0
oslo.log>=1.14.0 # Apache-2.0