Containers: vm-topology tool is broken - baremetal keystone is used for nova client

Bug #1812915 reported by Yang Liu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Triaged
Low
Frank Miller

Bug Description

Brief Description
-----------------
vm-topology returns error on containerized system

Severity
--------
Major

Steps to Reproduce
------------------
- run 'sudo vm-topology' from active controller

Expected Behavior
------------------
- vm-topology returns proper vm info

Actual Behavior
----------------
vm-topology failed to run. It seems to be using baremetal keystone for nova client.

Reproducibility
---------------
Reproducible

System Configuration
--------------------
Any

Branch/Pull Time/Commit
-----------------------
master as of 2019-01-20_20-18-01

Timestamp/Logs
--------------
controller-0:~$ sudo vm-topology
Password:
vm-topology: 2019-01-22T20:44:35.222516 options: show:['brief']
2019-01-22 20:44:35,968 10050 ERROR vm_topology: cannot list images, Error finding address for http://192.168.204.2:9292/v1/images/detail?limit=20: Unable to establish connection to http://192.168.204.2:9292/v1/images/detail?limit=20: HTTPConnectionPool(host='192.168.204.2', port=9292): Max retries exceeded with url: /v1/images/detail?limit=20 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fcf25e6bf10>: Failed to establish a new connection: [Errno 111] Connection refused',))
2019-01-22 20:44:35,970 10050 ERROR vm_topology: cannot list servers
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/vm_topology/exec/vm_topology.py", line 1629, in get_info_and_display
    search_opts={'all_tenants': True})
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 904, in list
    "servers")
  File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 254, in _list
    resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 288, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 79, in request
    **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 447, in request
    resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 192, in request
    return self.session.request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
    return wrapped(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 703, in request
    resp = send(**kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 777, in _send_request
    raise exceptions.ConnectFailure(msg)
ConnectFailure: Unable to establish connection to http://192.168.204.2:8774/v2.1/d8e0e96d0a4940fea84c764e0a2536fb/servers/detail?all_tenants=True: HTTPConnectionPool(host='192.168.204.2', port=8774): Max retries exceeded with url: /v2.1/d8e0e96d0a4940fea84c764e0a2536fb/servers/detail?all_tenants=True (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fcf25c05050>: Failed to establish a new connection: [Errno 111] Connection refused',))

Revision history for this message
Ghada Khalil (gkhalil) wrote :

Marking as release gating; tool is useful in debugging.

Changed in starlingx:
assignee: nobody → Jim Gauld (jgauld)
importance: Undecided → Low
status: New → Triaged
tags: added: stx.2019.05 stx.containers
Ghada Khalil (gkhalil)
Changed in starlingx:
assignee: Jim Gauld (jgauld) → XiangYi (Irene) Chen (irenexychen)
Ken Young (kenyis)
tags: added: stx.2.0
removed: stx.2019.05
Ghada Khalil (gkhalil)
tags: added: stx.retestneeded
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Returning to Frank to re-assign. Irene is no longer contributing to the stx team as her coop term with WR ended.

Changed in starlingx:
assignee: XiangYi (Irene) Chen (irenexychen) → Frank Miller (sensfan22)
Revision history for this message
Frank Miller (sensfan22) wrote :

As this is a low priority LP and impacts a debug tool, removing the stx.2.0 tag.

tags: removed: stx.2.0
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.