--os-interface option doesn't work

Bug #1764931 reported by takahara.kengo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-masakariclient
Fix Released
Undecided
Tushar Patil

Bug Description

[Environment]
The endpoint of masakari is set only for internal.
$ openstack endpoint list | grep "masakari"
| f271ebbb17534a19a8e174ed23db4eb0 | RegionOne | masakari | instance-ha | True | internal | http://192.168.10.20:15868/v1/ |

[Bug]
An error occurred when I executed segment list command with --os-interface option.

$ openstack --os-interface internal segment list
public endpoint for instance-ha service not found
$

The command was trying to access to the public endpoint even though it was specified "--os-interface internal" as an option.
But it should access to the internal endpoint.

And, masakari command doesn't implement the --os-interface.
So I think that it should be implemented as well.

description: updated
Changed in python-masakariclient:
assignee: nobody → takahara.kengo (takahara.kengo)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-masakariclient (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/562974

Revision history for this message
takahara.kengo (takahara.kengo) wrote :

I posted patches on both the master and stable/queens branch.

master:
https://review.openstack.org/#/c/562973/

stable/queens:
https://review.openstack.org/#/c/562974/

Changed in python-masakariclient:
status: New → In Progress
Changed in python-masakariclient:
assignee: takahara.kengo (takahara.kengo) → SamP (sampath-priyankara)
Changed in python-masakariclient:
assignee: SamP (sampath-priyankara) → Tushar Patil (tpatil)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-masakariclient (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/599971

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-masakariclient (master)

Reviewed: https://review.openstack.org/562973
Committed: https://git.openstack.org/cgit/openstack/python-masakariclient/commit/?id=8b6d55ff01bc73df0ff8355d9db73762222c00b5
Submitter: Zuul
Branch: master

commit 8b6d55ff01bc73df0ff8355d9db73762222c00b5
Author: Kengo Takahara <email address hidden>
Date: Fri Apr 20 16:39:22 2018 +0900

    Add --os-interface and --os-region-name options

    Added --os-region-name option so that operator can run masakari
    commands against multiple regions. By default, keystoneauth always
    tries to connect to the 'public' interface of endpoint so added
    --os-interface option as well as in most cases, operator will configure
    only "internal" interface.

    Co-Author: tpatil <email address hidden>
    Change-Id: I7194ed62d3df9760af61a505a43239097549f3d2
    Closes-Bug: #1764931

Changed in python-masakariclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-masakariclient (stable/rocky)

Reviewed: https://review.openstack.org/599971
Committed: https://git.openstack.org/cgit/openstack/python-masakariclient/commit/?id=8c121868027fd4e44712a1673f6b835c2469f1a5
Submitter: Zuul
Branch: stable/rocky

commit 8c121868027fd4e44712a1673f6b835c2469f1a5
Author: Kengo Takahara <email address hidden>
Date: Fri Apr 20 16:39:22 2018 +0900

    Add --os-interface and --os-region-name options

    Added --os-region-name option so that operator can run masakari
    commands against multiple regions. By default, keystoneauth always
    tries to connect to the 'public' interface of endpoint so added
    --os-interface option as well as in most cases, operator will configure
    only "internal" interface.

    Co-Author: tpatil <email address hidden>
    Change-Id: I7194ed62d3df9760af61a505a43239097549f3d2
    Closes-Bug: #1764931

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/masakari-monitors 7.0.0.0b1

This issue was fixed in the openstack/masakari-monitors 7.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-masakariclient 5.3.0

This issue was fixed in the openstack/python-masakariclient 5.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-masakariclient (stable/queens)

Change abandoned by Radosław Piliszek (<email address hidden>) on branch: stable/queens
Review: https://review.opendev.org/562974
Reason: very old; branch long unmaintained

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/masakari-monitors rocky-eol

This issue was fixed in the openstack/masakari-monitors rocky-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-masakariclient rocky-eol

This issue was fixed in the openstack/python-masakariclient rocky-eol release.

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.