Thanks Jason adding prometheus_host = 0.0.0.0 to iscsi-gateway.cfg does not work - the error message is
"..rbd-target-gw: ValueError: invalid literal for int() with base 10: '0.0.0.0' " adding prometheus_exporter = false works However I'd like to use prometheus_exporter if possible Any suggestions will be appreciated Steven On Tue, 9 Oct 2018 at 14:25, Jason Dillaman <jdill...@redhat.com> wrote: > You can try adding "prometheus_exporter = false" in your > "/etc/ceph/iscsi-gateway.cfg"'s "config" section if you aren't using > "cephmetrics", or try setting "prometheus_host = 0.0.0.0" since it > sounds like you have the IPv6 stack disabled. > > [1] > https://github.com/ceph/ceph-iscsi-config/blob/master/ceph_iscsi_config/settings.py#L90 > On Tue, Oct 9, 2018 at 2:09 PM Steven Vacaroaia <ste...@gmail.com> wrote: > > > > here is some info from /var/log/messages ..in case someone has the time > to take a look > > > > Oct 9 13:58:35 osd03 systemd: Started Setup system to export rbd images > through LIO. > > Oct 9 13:58:35 osd03 systemd: Starting Setup system to export rbd > images through LIO... > > Oct 9 13:58:35 osd03 journal: Processing osd blacklist entries for this > node > > Oct 9 13:58:35 osd03 journal: No OSD blacklist entries found > > Oct 9 13:58:35 osd03 journal: Reading the configuration object to > update local LIO configuration > > Oct 9 13:58:35 osd03 journal: Configuration does not have an entry for > this host(osd03) - nothing to define to LIO > > Oct 9 13:58:35 osd03 journal: Integrated Prometheus exporter is enabled > > Oct 9 13:58:35 osd03 journal: * Running on http://[::]:9287/ > > Oct 9 13:58:35 osd03 journal: Removing iSCSI target from LIO > > Oct 9 13:58:35 osd03 journal: Removing LUNs from LIO > > Oct 9 13:58:35 osd03 journal: Active Ceph iSCSI gateway configuration > removed > > Oct 9 13:58:35 osd03 rbd-target-gw: Traceback (most recent call last): > > Oct 9 13:58:35 osd03 rbd-target-gw: File "/usr/bin/rbd-target-gw", line > 5, in <module> > > Oct 9 13:58:35 osd03 rbd-target-gw: > pkg_resources.run_script('ceph-iscsi-config==2.6', 'rbd-target-gw') > > Oct 9 13:58:35 osd03 rbd-target-gw: File > "/usr/lib/python2.7/site-packages/pkg_resources.py", line 540, in run_script > > Oct 9 13:58:35 osd03 rbd-target-gw: > self.require(requires)[0].run_script(script_name, ns) > > Oct 9 13:58:35 osd03 rbd-target-gw: File > "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1462, in > run_script > > Oct 9 13:58:35 osd03 rbd-target-gw: exec_(script_code, namespace, > namespace) > > Oct 9 13:58:35 osd03 rbd-target-gw: File > "/usr/lib/python2.7/site-packages/pkg_resources.py", line 41, in exec_ > > Oct 9 13:58:35 osd03 rbd-target-gw: exec("""exec code in globs, locs""") > > Oct 9 13:58:35 osd03 rbd-target-gw: File "<string>", line 1, in <module> > > Oct 9 13:58:35 osd03 rbd-target-gw: File > "/usr/lib/python2.7/site-packages/ceph_iscsi_config-2.6-py2.7.egg/EGG-INFO/scripts/rbd-target-gw", > line 432, in <module> > > Oct 9 13:58:35 osd03 rbd-target-gw: File > "/usr/lib/python2.7/site-packages/ceph_iscsi_config-2.6-py2.7.egg/EGG-INFO/scripts/rbd-target-gw", > line 379, in main > > Oct 9 13:58:35 osd03 rbd-target-gw: File > "/usr/lib/python2.7/site-packages/flask/app.py", line 772, in run > > Oct 9 13:58:35 osd03 rbd-target-gw: run_simple(host, port, self, > **options) > > Oct 9 13:58:35 osd03 rbd-target-gw: File > "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 710, in > run_simple > > Oct 9 13:58:35 osd03 rbd-target-gw: inner() > > Oct 9 13:58:35 osd03 rbd-target-gw: File > "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 692, in inner > > Oct 9 13:58:35 osd03 rbd-target-gw: passthrough_errors, > ssl_context).serve_forever() > > Oct 9 13:58:35 osd03 rbd-target-gw: File > "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 480, in > make_server > > Oct 9 13:58:35 osd03 rbd-target-gw: passthrough_errors, ssl_context) > > Oct 9 13:58:35 osd03 rbd-target-gw: File > "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 410, in > __init__ > > Oct 9 13:58:35 osd03 rbd-target-gw: HTTPServer.__init__(self, (host, > int(port)), handler) > > Oct 9 13:58:35 osd03 rbd-target-gw: File > "/usr/lib64/python2.7/SocketServer.py", line 417, in __init__ > > Oct 9 13:58:35 osd03 rbd-target-gw: self.socket_type) > > Oct 9 13:58:35 osd03 rbd-target-gw: File > "/usr/lib64/python2.7/socket.py", line 187, in __init__ > > Oct 9 13:58:35 osd03 rbd-target-gw: _sock = _realsocket(family, type, > proto) > > Oct 9 13:58:35 osd03 rbd-target-gw: socket.error: [Errno 97] Address > family not supported by protocol > > Oct 9 13:58:35 osd03 systemd: rbd-target-gw.service: main process > exited, code=exited, status=1/FAILURE > > > > > > On Tue, 9 Oct 2018 at 13:16, Steven Vacaroaia <ste...@gmail.com> wrote: > >> > >> Hi , > >> I am using Mimic 13.2 and kernel 4.18 > >> Was using gwcli 2.5 and decided to upgrade to latest (2.7) as people > reported improved performance > >> > >> What is the proper methodology ? > >> How should I troubleshoot this? > >> > >> > >> > >> What I did ( and it broke it) was > >> > >> cd tcmu-runner; git pull ; make && make install > >> cd ceph-iscsi-cli; git pull;python setup.py install > >> cd ceph-iscsi-config;git pull; python setup.py install > >> cd rtslib-fb;git pull; python setup.py install > >> > >> After a reboot, I cannot start rbd-target-gw and the logs are not very > helpful > >> ( Note: > >> I removed /etc/ceph/iscsi-gateway.cfg and gateway.conf object as I > wanted to start fresh > >> /etc/ceph/iscsi-gatway.conf was left unchanged ) > >> > >> > >> 2018-10-09 12:47:50,593 [ INFO] - Processing osd blacklist entries > for this node > >> 2018-10-09 12:47:50,893 [ INFO] - No OSD blacklist entries found > >> 2018-10-09 12:47:50,893 [ INFO] - Reading the configuration object > to update local LIO configuration > >> 2018-10-09 12:47:50,893 [ INFO] - Configuration does not have an > entry for this host(osd03) - nothing to define to LIO > >> 2018-10-09 12:47:50,893 [ INFO] - Integrated Prometheus exporter is > enabled > >> 2018-10-09 12:47:50,895 [ INFO] - * Running on http://[::]:9287/ > >> 2018-10-09 12:47:50,896 [ INFO] - Removing iSCSI target from LIO > >> 2018-10-09 12:47:50,896 [ INFO] - Removing LUNs from LIO > >> 2018-10-09 12:47:50,896 [ INFO] - Active Ceph iSCSI gateway > configuration removed > >> > >> Many thanks > >> Steven > >> > > _______________________________________________ > > ceph-users mailing list > > ceph-users@lists.ceph.com > > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > > > > -- > Jason >
_______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com