ConfigFileValueError: Value for option host is not valid: localhost is not IPv4 or IPv6 address

Bug #1673917 reported by Paul Greenberg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
BaGPipe
Fix Released
Medium
Unassigned

Bug Description

The /etc/bagpipe-bgp/bgp.conf.template contains the following lines:

```
[API]
# BGP component API IP address and port
host=localhost
port=8082
```

Unless changing `localhost` to `0.0.0.0`, the following error is being thrown:

```
# bagpipe-bgp -v
Option "verbose" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future.
2017-03-17 22:25:49.066 14818 INFO networking_bagpipe.bagpipe_bgp.bgp_daemon [-] Starting bagpipe-bgp...
2017-03-17 22:25:49.067 14818 ERROR networking_bagpipe.bagpipe_bgp.bgp_daemon [-] Error while starting BGP daemon: Value for option host is not valid: localhost is not IPv4 or IPv6 address
2017-03-17 22:25:49.067 14818 ERROR networking_bagpipe.bagpipe_bgp.bgp_daemon Traceback (most recent call last):
2017-03-17 22:25:49.067 14818 ERROR networking_bagpipe.bagpipe_bgp.bgp_daemon File "/usr/lib/python2.7/site-packages/networking_bagpipe/bagpipe_bgp/bgp_daemon.py", line 92, in daemon_main
2017-03-17 22:25:49.067 14818 ERROR networking_bagpipe.bagpipe_bgp.bgp_daemon pecan_api = api.PecanAPI()
2017-03-17 22:25:49.067 14818 ERROR networking_bagpipe.bagpipe_bgp.bgp_daemon File "/usr/lib/python2.7/site-packages/networking_bagpipe/bagpipe_bgp/api/api.py", line 70, in __init__
2017-03-17 22:25:49.067 14818 ERROR networking_bagpipe.bagpipe_bgp.bgp_daemon app = setup_app()
2017-03-17 22:25:49.067 14818 ERROR networking_bagpipe.bagpipe_bgp.bgp_daemon File "/usr/lib/python2.7/site-packages/networking_bagpipe/bagpipe_bgp/api/api.py", line 43, in setup_app
2017-03-17 22:25:49.067 14818 ERROR networking_bagpipe.bagpipe_bgp.bgp_daemon 'host': cfg.CONF.API.host,
2017-03-17 22:25:49.067 14818 ERROR networking_bagpipe.bagpipe_bgp.bgp_daemon File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 3257, in __getattr__
2017-03-17 22:25:49.067 14818 ERROR networking_bagpipe.bagpipe_bgp.bgp_daemon return self._conf._get(name, self._group)
2017-03-17 22:25:49.067 14818 ERROR networking_bagpipe.bagpipe_bgp.bgp_daemon File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2821, in _get
2017-03-17 22:25:49.067 14818 ERROR networking_bagpipe.bagpipe_bgp.bgp_daemon value = self._do_get(name, group, namespace)
2017-03-17 22:25:49.067 14818 ERROR networking_bagpipe.bagpipe_bgp.bgp_daemon File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2864, in _do_get
2017-03-17 22:25:49.067 14818 ERROR networking_bagpipe.bagpipe_bgp.bgp_daemon % (opt.name, str(ve)))
2017-03-17 22:25:49.067 14818 ERROR networking_bagpipe.bagpipe_bgp.bgp_daemon ConfigFileValueError: Value for option host is not valid: localhost is not IPv4 or IPv6 address
2017-03-17 22:25:49.067 14818 ERROR networking_bagpipe.bagpipe_bgp.bgp_daemon
```

Revision history for this message
Thomas Morin (tmmorin-orange) wrote :

Sorry, for totally failing to follow up here on this bug.

This has been fixed some time ago, in https://review.openstack.org/#/c/460494/ .

It is now supported to providing either a hostname or an IP address for this parameter.

Changed in networking-bagpipe:
status: New → Fix Released
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.