Swiftcheck are broken

Bug #1580995 reported by Aleksey Zvyagintsev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Aleksey Zvyagintsev

Bug Description

Version: fuel8
cat /etc/fuel/version.yaml
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "570"
  build_id: "570"

even with updates:
rpm -qa |grep fuel-lib
fuel-library8.0-8.0.0-1.mos7801.noarch

$ cat osnailyfacter/modular/swift/swift.pp |grep -i scan_target -A 5 -B 3

      class { 'openstack::swift::status':
        endpoint => "${swift_internal_protocol}://${swift_internal_address}:${proxy_port}",
        scan_target => "${internal_auth_protocol}://${internal_auth_address}:5000",
        only_from => "127.0.0.1 240.0.0.2 ${storage_nets} ${mgmt_nets}",
        con_timeout => 5
      }

Problem: due wrong scan_target value , haproxy think that swift down :
$ daemon.log
<30>May 12 13:44:41 node-10 xinetd[91467]: START: swiftcheck pid=130411 from=240.0.0.2
<30>May 12 13:44:43 node-10 xinetd[91467]: START: swiftcheck pid=130576 from=240.0.0.2
<30>May 12 13:44:44 node-10 xinetd[91467]: EXIT: swiftcheck signal=13 pid=130411 duration=3(sec)

$ haproxy-status.sh |grep -i swift
swift FRONTEND Status: OPEN Sessions: 0 Rate: 0
swift node-10 Status: DOWN/L7RSP Sessions: 0 Rate: 0
swift node-7 Status: DOWN/L7RSP Sessions: 0 Rate: 0
swift BACKEND Status: DOWN Sessions: 0 Rate: 0

$ root@node-10:/etc/xinetd.d# swiftcheck http://10.168.113.2:8080 http://10.168.0.2:5000 5
nc: port number invalid: //10.168.0.2:5000
nc: port number invalid: //10.168.0.2:5000
nc: port number invalid: //10.168.0.2:5000
nc: port number invalid: //10.168.0.2:5000
HTTP/1.1 503 Service Unavailable
Content-Type: text/plain
Connection: close
Content-Length: 8

Error.
Since correct call should be :
$ swiftcheck http://10.168.113.2:8080 10.168.0.2:5000 5
HTTP/1.1 200 OK
Content-Type: text/plain
Connection: close
Content-Length: 5

OK.

tags: added: customer-found
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/8.0)

Fix proposed to branch: stable/8.0
Review: https://review.openstack.org/315509

Changed in fuel:
milestone: 8.0-updates → 8.0-mu-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/8.0)

Reviewed: https://review.openstack.org/315509
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=aa39e99152f5aa5108172efd42d2aea392a170ef
Submitter: Jenkins
Branch: stable/8.0

commit aa39e99152f5aa5108172efd42d2aea392a170ef
Author: alexz <email address hidden>
Date: Thu May 12 15:08:59 2016 +0300

    Fix haproxy(xinetd) swiftcheck

    Change-Id: I96ea220210187cf0f71e26f16a831100dc91669b
    Closes-bug: 1580995

Changed in fuel:
status: Confirmed → Fix Committed
tags: added: on-verification
tags: removed: on-verification
Revision history for this message
Aleksey Zvyagintsev (azvyagintsev) wrote :

Fix has been successfully tested on customer env. (using network templates)

Changed in fuel:
status: Fix Committed → Fix Released
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.