Comment 2 for bug 1187698

Revision history for this message
Akihiro Motoki (amotoki) wrote :

As of Dec 2015, it is now fixed. After the bug was reported, I made refactoring of neutronclient exception so that we can map an exception from neturon API more easily. I think it was fixed as a part of the refactoring.

In [5]: nc = client.Client(username='demo', password='cloudstack-wakame-aws', auth_url='http://172.16.18.47:5000/v2.0', tenant_name='demo')

In [6]: try:
   ...: nc.create_network({'network': {'name': 'testnet'}})
   ...: except Exception as e:
   ...: exc = e
   ...:

In [7]: exc.status_code
Out[7]: 409

In [8]: print(e)
Quota exceeded for resources: ['network'].