8 Commits

Author SHA1 Message Date
Salvatore Orlando
957aaf7767 Anothher step towards Python 3 compatibility
Changes to ensure vmware-nsx modules are python 3 compatible.
This patch does the following:
- Deal with library renames
- Use key attribute in sorting list of dicts
- Handle removed built-in functions such as unicode
- Handle changes in function prototypes
- Remove "L" suffixes, which were improperly used anyway.

This patch alone does not make vmware-nsx completely python 3
compatible. There are still some issues arising from the different
semantics of dict's items method.
Moreover, the dependency on neutron means this repository cannot
be completely python 3 compatible until neutron isn't.

Change-Id: Ifd5397585544201d4e50ca71f4611a16896a514f
2015-07-19 05:19:09 +00:00
Gary Kotton
94aead783a Make use of oslo_service for loopingcall
No longer need openstack-common conf that pulls in the above
code.

In addition this this uses the translation imports from Neutron.

Change-Id: I475aa6936f126264d6de3ba9e25838d5dffddf3d
2015-07-07 03:53:22 -07:00
Salvatore Orlando
ce0e969681 Adopt oslo incubator
This patch removes usage of incubated libraries from
neutron.openstack.common and starts "copying" such libraries from
the oslo incubator as any other project.

As vmware-nsx currently only uses i18n, and loopingcall, these are
the only modules added to openstack-common.conf
All the imports pointing out to neutron.i18n or
neutron.openstack.common.loopingcall are amended in this patch.

Closes-Bug: #1432783
Change-Id: I6b9d576bad33310598139c7169627c44014301af
2015-03-24 13:12:38 +00:00
Gary Kotton
bf7b098788 Enable hacking to be run
Ensure that Neuteron hacking is run when doing pep8

Ensures the following:
1. oslo.whatever => oslo_whatever
2. LOG messages should have cortrect translations
3. using jsonutils instead of json

Change-Id: I85cf69d483fd5d624ed3876ec9bacd83f7b7b70b
2015-03-08 06:05:28 -07:00
Kobi Samoray
8c87875f62 Use oslo_log for logging
neutron.openstack.common.log replaced with oslo_log.log

Change-Id: Ieaf19ec19aa7d9c75ad2c04c7f80045062977171
2015-03-04 20:06:51 +02:00
Han Zhou
89beca8f87 Fix retry logic for UnAuthorizedRequest in race-condition
Authentication cookie can be set to None by another thread thus
cause current thread retry get aborted by mistake.

The fix is removing the abort logic, because even if the cookie is
None, it would then re-login and get a new cookie before retry.

Change-Id: I8b94de41fa2f3be17d317fd80e4becdad9285f7d
Closes-Bug: 1410805
2015-01-14 14:10:56 +00:00
Gary Kotton
9254b0aeda VMware: initial NSXv developments
Add the NSXv code to the repo.

Co-Authored-By: Kobi Samoray <ksamoray@vmware.com>

Change-Id: Iefc76e0d6bfab8136bd2e3300a8b3d4a3fdb3a46
2014-12-28 06:22:43 -08:00
Gary Kotton
3a96a43c53 VMware: fix gitreview
Fix the correct repo

Change-Id: I1deed42fb003f06bc97634e3908c6d82c8620e85
2014-12-21 23:24:18 -08:00