sync_neutron_to_infoblox tool fails with keystone V3 API - only Stable Liberty

Bug #1673475 reported by Akash Deep
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-infoblox
Fix Committed
High
Akash Deep

Bug Description

Use of v3 API of Keystone in the sync_neutron_to_infoblox tool fails with the following error:

root@cri2ctrl01t1lp:/usr/local/lib/python2.7/dist-packages/networking_infoblox/tools# python sync_neutron_to_infoblox.py
No handlers could be found for logger "oslo_config.cfg"
2017-03-15 21:49:24.154 17635 INFO neutron.common.config [-] Logging enabled!
2017-03-15 21:49:24.157 17635 INFO neutron.common.config [-] sync_neutron_to_infoblox.py version 7.2.0
2017-03-15 21:49:24.158 17635 DEBUG neutron.common.config [-] command line: sync_neutron_to_infoblox.py setup_logging /usr/lib/python2.7/dist-packages/neutron/common/config.py:225
2017-03-15 21:49:24.168 17635 DEBUG keystoneauth.identity.v3.base [req-674b42ee-64a1-46c5-a105-69b80ffe520a - - - - -] Making authentication request to http://controller:35357/v3/auth/tokens get_auth_ref /usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/v3/base.py:164
2017-03-15 21:49:24.497 17635 DEBUG oslo_db.sqlalchemy.engines [req-674b42ee-64a1-46c5-a105-69b80ffe520a e34cc99e5719469d9ee1a91234c50649 575ca1bab9e145a2af19498815c3bf53 - - -] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION _check_effective_sql_mode /usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/engines.py:256
2017-03-15 21:49:24.729 17635 INFO infoblox_client.connector [req-674b42ee-64a1-46c5-a105-69b80ffe520a e34cc99e5719469d9ee1a91234c50649 575ca1bab9e145a2af19498815c3bf53 - - -] Sending get request to https://10.18.126.232/wapi/v2.2.2/member?_return_fields=node_info%2Chost_name%2Cvip_setting%2Cextattrs%2Cipv6_setting%2Clan2_port_setting%2Cmgmt_port_setting&_max_results=-50000 with parameters {'headers': {'Content-type': 'application/json'}, 'timeout': 120}
2017-03-15 21:49:24.813 17635 INFO infoblox_client.connector [req-674b42ee-64a1-46c5-a105-69b80ffe520a e34cc99e5719469d9ee1a91234c50649 575ca1bab9e145a2af19498815c3bf53 - - -] Sending get request to https://10.18.126.232/wapi/v2.2.2/member%3Adhcpproperties?_return_fields=host_name%2Cenable_dhcp&_max_results=-50000 with parameters {'headers': {'Content-type': 'application/json'}, 'timeout': 120}
2017-03-15 21:49:24.835 17635 INFO infoblox_client.connector [req-674b42ee-64a1-46c5-a105-69b80ffe520a e34cc99e5719469d9ee1a91234c50649 575ca1bab9e145a2af19498815c3bf53 - - -] Sending get request to https://10.18.126.232/wapi/v2.2.2/member%3Alicense?_return_fields=expiry_date%2Chwid%2Ckind%2Ctype&_max_results=-50000 with parameters {'headers': {'Content-type': 'application/json'}, 'timeout': 120}
2017-03-15 21:49:24.877 17635 INFO infoblox_client.connector [req-674b42ee-64a1-46c5-a105-69b80ffe520a e34cc99e5719469d9ee1a91234c50649 575ca1bab9e145a2af19498815c3bf53 - - -] Sending get request to https://10.18.126.232/wapi/v2.2.2/member?_return_fields=extattrs%2Cipv6_setting&_max_results=-50000&host_name=infobloxt3.loc.addr with parameters {'headers': {'Content-type': 'application/json'}, 'timeout': 120}
2017-03-15 21:49:24.927 17635 DEBUG networking_infoblox.neutron.common.grid [req-674b42ee-64a1-46c5-a105-69b80ffe520a e34cc99e5719469d9ee1a91234c50649 575ca1bab9e145a2af19498815c3bf53 - - -] grid config synced: {'wapi_max_results': -50000, 'allow_service_restart': True, 'grid_sync_support': True, 'external_domain_name_pattern': u'{subnet_id}.external.global.com', 'grid_id': 1, 'default_host_name_pattern': u'host-{ip_address}', 'dhcp_support': False, 'dns_record_removable_types': [u'record:a', u'record:aaaa', u'record:ptr', u'record:txt'], 'external_host_name_pattern': u'{instance_name}', 'grid_sync_minimum_wait_time': 60, '_is_cloud_wapi': True, 'dns_support': False, 'grid_master_host': '10.18.126.232', 'default_network_view_scope': u'Single', 'zone_creation_strategy': [u'Forward', u'Reverse'], 'network_template': None, 'grid_sync_maximum_wait_time': 300, 'grid_name': '', 'allow_static_zone_deletion': False, 'admin_password': '123456Aa', 'grid_master_name': 'infobloxt3.loc.addr', 'admin_user_name': 'testuser', 'relay_support': False, 'default_domain_name_pattern': u'{subnet_id}.cloud.global.com', 'ssl_verify': 'False', 'admin_network_deletion': False, 'use_grid_master_for_dhcp': True, 'default_network_view': u'default', 'http_pool_maxsize': 100, 'http_request_timeout': 120, '_wapi_version': '2.2.2', 'dns_record_binding_types': [u'record:a', u'record:aaaa', u'record:ptr'], 'gm_connector': <infoblox_client.connector.Connector object at 0x7f44080e4150>, 'ns_group': None, 'report_grid_sync_time': False, 'tenant_name_persistence': False, 'ip_allocation_strategy': u'Fixed Address', 'dns_view': u'default', 'context': <neutron.context.Context object at 0x7f44080efb10>, 'http_pool_connections': 100, 'dns_record_unbinding_types': [u'record:a', u'record:aaaa', u'record:ptr']} sync /usr/local/lib/python2.7/dist-packages/networking_infoblox/neutron/common/grid.py:261
2017-03-15 21:49:24.937 17635 INFO infoblox_client.connector [req-674b42ee-64a1-46c5-a105-69b80ffe520a e34cc99e5719469d9ee1a91234c50649 575ca1bab9e145a2af19498815c3bf53 - - -] Sending get request to https://10.18.126.232/wapi/v2.2.2/networkview?_return_fields=name%2Cis_default%2Cextattrs%2Ccloud_info&_max_results=-50000 with parameters {'headers': {'Content-type': 'application/json'}, 'timeout': 120}
2017-03-15 21:49:24.959 17635 INFO infoblox_client.connector [req-674b42ee-64a1-46c5-a105-69b80ffe520a e34cc99e5719469d9ee1a91234c50649 575ca1bab9e145a2af19498815c3bf53 - - -] Sending get request to https://10.18.126.232/wapi/v2.2.2/view?_return_fields=name%2Cnetwork_view&_max_results=-50000 with parameters {'headers': {'Content-type': 'application/json'}, 'timeout': 120}
2017-03-15 21:49:25.026 17635 INFO infoblox_client.connector [req-674b42ee-64a1-46c5-a105-69b80ffe520a e34cc99e5719469d9ee1a91234c50649 575ca1bab9e145a2af19498815c3bf53 - - -] Sending get request to https://10.18.126.232/wapi/v2.2.2/network?_return_fields=members%2Cnetwork_view%2Cnetwork%2Coptions%2Ccloud_info&_max_results=-50000 with parameters {'headers': {'Content-type': 'application/json'}, 'timeout': 120}
2017-03-15 21:49:25.067 17635 INFO infoblox_client.connector [req-674b42ee-64a1-46c5-a105-69b80ffe520a e34cc99e5719469d9ee1a91234c50649 575ca1bab9e145a2af19498815c3bf53 - - -] Sending get request to https://10.18.126.232/wapi/v2.2.2/ipv6network?_return_fields=members%2Cnetwork_view%2Cnetwork%2Coptions%2Ccloud_info&_max_results=-50000 with parameters {'headers': {'Content-type': 'application/json'}, 'timeout': 120}
2017-03-15 21:49:25.090 17635 INFO infoblox_client.connector [req-674b42ee-64a1-46c5-a105-69b80ffe520a e34cc99e5719469d9ee1a91234c50649 575ca1bab9e145a2af19498815c3bf53 - - -] Sending get request to https://10.18.126.232/wapi/v2.2.2/ipv6network?_return_fields=members%2Cnetwork_view%2Cnetwork%2Coptions%2Ccloud_info&_max_results=-50000&_proxy_search=GM with parameters {'headers': {'Content-type': 'application/json'}, 'timeout': 120}
2017-03-15 21:49:25.147 17635 INFO networking_infoblox.neutron.common.grid [req-674b42ee-64a1-46c5-a105-69b80ffe520a e34cc99e5719469d9ee1a91234c50649 575ca1bab9e145a2af19498815c3bf53 - - -] Infoblox grid has been synced up.
2017-03-15 21:49:25.147 17635 INFO __main__ [req-674b42ee-64a1-46c5-a105-69b80ffe520a e34cc99e5719469d9ee1a91234c50649 575ca1bab9e145a2af19498815c3bf53 - - -] Starting migration...

2017-03-15 21:49:25.149 17635 CRITICAL neutron [req-674b42ee-64a1-46c5-a105-69b80ffe520a e34cc99e5719469d9ee1a91234c50649 575ca1bab9e145a2af19498815c3bf53 - - -] TypeError: __init__() got an unexpected keyword argument 'project_name'
2017-03-15 21:49:25.149 17635 ERROR neutron Traceback (most recent call last):
2017-03-15 21:49:25.149 17635 ERROR neutron File "sync_neutron_to_infoblox.py", line 403, in <module>
2017-03-15 21:49:25.149 17635 ERROR neutron main()
2017-03-15 21:49:25.149 17635 ERROR neutron File "sync_neutron_to_infoblox.py", line 110, in main
2017-03-15 21:49:25.149 17635 ERROR neutron sync_neutron_to_infoblox(context, credentials, grid_manager)
2017-03-15 21:49:25.149 17635 ERROR neutron File "sync_neutron_to_infoblox.py", line 162, in sync_neutron_to_infoblox
2017-03-15 21:49:25.149 17635 ERROR neutron neutron_api = neutron_client.Client(**credentials)
2017-03-15 21:49:25.149 17635 ERROR neutron File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1712, in __init__
2017-03-15 21:49:25.149 17635 ERROR neutron super(Client, self).__init__(**kwargs)
2017-03-15 21:49:25.149 17635 ERROR neutron File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 168, in __init__
2017-03-15 21:49:25.149 17635 ERROR neutron self.httpclient = client.construct_http_client(**kwargs)
2017-03-15 21:49:25.149 17635 ERROR neutron File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 372, in construct_http_client
2017-03-15 21:49:25.149 17635 ERROR neutron **kwargs)
2017-03-15 21:49:25.149 17635 ERROR neutron File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 337, in inner
2017-03-15 21:49:25.149 17635 ERROR neutron return func(*args, **kwargs)
2017-03-15 21:49:25.149 17635 ERROR neutron TypeError: __init__() got an unexpected keyword argument 'project_name'
2017-03-15 21:49:25.149 17635 ERROR neutron

Changed in networking-infoblox:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Akash Deep (akashdeep)
Akash Deep (akashdeep)
Changed in networking-infoblox:
status: Confirmed → Fix Committed
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.