interface_list still returns 'unknown' server name

Bug #1621995 reported by Drew Fisher
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Undecided
NidhiMittalHada

Bug Description

I'm still seeing issues as originally reported here:
https://bugs.launchpad.net/python-novaclient/+bug/1280453

Nova: 13.1.0 (Mitaka)
python-novaclient: 3.3.1

$ nova list
+--------------------------------------+---------+--------+------------+-------------+----------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+---------+--------+------------+-------------+----------------------------+
| 351bfeb3-25a6-4003-b82b-5dea06151c7c | footest | ACTIVE | - | Running | internal_net=192.168.200.9 |
+--------------------------------------+---------+--------+------------+-------------+----------------------------+

$ python
Python 2.7.12 (default, Aug 12 2016, 21:47:15) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import novaclient.client
>>> import novaclient.client as nclient
>>> nova = nclient.Client('2', 'admin', '********', 'demo', 'http://localhost:5000/v2.0')
>>> footest = nova.servers.get('351bfeb3-25a6-4003-b82b-5dea06151c7c')
>>> print footest.interface_list()
[<Server: unknown-name>]

tamil vanan (tamilhce)
Changed in python-novaclient:
assignee: nobody → tamil vanan (tamilhce)
Revision history for this message
tamil vanan (tamilhce) wrote :

In python-openstackclient==3.2.0, i coldn't face this issue.its working fine

Changed in python-novaclient:
status: New → Invalid
Revision history for this message
Drew Fisher (drew-fisher) wrote :

What version of python-novaclient are you using? This wasn't a bug filed against python-openstackclient so I'm confused how that's part of this?

Changed in python-novaclient:
status: Invalid → New
Revision history for this message
Darragh O'Reilly (darragh-oreilly) wrote :

I also found this problem on python-novaclient 3.3.1.

I tried on the latest - 6.0.1 - and it does not have the problem.

In [2]: s = novac.servers.get('acd0da5a-2e29-4805-b0a9-d3db49435eb9')

In [3]: s.interface_list()
Out[3]:
[<NetworkInterface: 18148578-cfa5-4846-8dba-ea4153d5c2ed>,
 <NetworkInterface: 4d181436-592a-4cf8-8dfc-898992746863>]

In [4]: novaclient.__version__
Out[4]: '6.0.1'

Revision history for this message
Ali Jabbar (jabbar-ali) wrote :

Problem is visible in some other form

stack@cinv-V:/home/cinv/devstack$ nova list
+--------------------------------------+------+--------+------------+-------------+--------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------+--------+------------+-------------+--------------------+
| 78e7f066-5ef1-4791-a781-71251491ffb1 | test | ACTIVE | - | Running | private=10.0.0.119 |
+--------------------------------------+------+--------+------------+-------------+--------------------+
stack@cinv-V:/home/cinv/devstack$ python test.py
{'username': 'admin', 'project_id': 'admin', 'api_key': 'abc123', 'auth_url': 'http://192.168.59.20:5000/v2.0'}
Traceback (most recent call last):
  File "test.py", line 8, in <module>
    print footest.interface_list()
  File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/servers.py", line 511, in interface_list
    return self.manager.interface_list(self)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/servers.py", line 1639, in interface_list
    'interfaceAttachments')
  File "/usr/local/lib/python2.7/dist-packages/novaclient/base.py", line 242, in _list
    resp, body = self.api.client.get(url)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 452, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 430, in _cs_request
    resp, body = self._time_request(url, method, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 403, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 397, in request
    raise exceptions.from_response(resp, body, url, method)
novaclient.exceptions.HTTPNotImplemented: The requested functionality is not supported. (HTTP 501) (Request-ID: req-568a9301-79d2-4fd9-8b90-92633f851201)
stack@cinv-V:/home/cinv/devstack$

Changed in python-novaclient:
assignee: tamil vanan (tamilhce) → NidhiMittalHada (nidhimittal19)
Revision history for this message
Takashi Natsume (natsume-takashi) wrote :

The issue mentioned in comment #4 seems another bug. It should be reported in another bug report.
The original bug has been fixed since the following fix.

https://bugs.launchpad.net/python-novaclient/+bug/1554907
https://review.openstack.org/#/c/290359/

The fix has been included since 3.4.0 release.
So set the status to 'Fix Released'.

Changed in python-novaclient:
status: New → 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.