Undercloud Installation is failing in periodic promotion jobs after new openstacksdk release

Bug #1755465 reported by yatin
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Unassigned

Bug Description

Undercloud installation failing with ERROR:-
2018-03-10 04:48:38 | 2018-03-10 04:48:38,450 INFO: Network create/update failed get_session_client() got an unexpected keyword argument 'constructor'
2018-03-10 04:48:38 | 2018-03-10 04:48:38,450 DEBUG: An exception occurred
2018-03-10 04:48:38 | Traceback (most recent call last):
2018-03-10 04:48:38 | File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 2324, in install
2018-03-10 04:48:38 | _post_config(instack_env, upgrade)
2018-03-10 04:48:38 | File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 1989, in _post_config
2018-03-10 04:48:38 | network = _ensure_neutron_network(sdk)
2018-03-10 04:48:38 | File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 2034, in _ensure_neutron_network
2018-03-10 04:48:38 | network = list(sdk.network.networks(name=PHYSICAL_NETWORK))
2018-03-10 04:48:38 | File "/usr/lib/python2.7/site-packages/openstack/service_description.py", line 95, in __get__
2018-03-10 04:48:38 | allow_version_hack=True,
2018-03-10 04:48:38 | TypeError: get_session_client() got an unexpected keyword argument 'constructor'
2018-03-10 04:48:38 | 2018-03-10 04:48:38,451 ERROR:

Failure logs:-
https://logs.rdoproject.org/openstack-periodic/periodic-tripleo-centos-7-master-containers-build/84776b9/undercloud/home/jenkins/undercloud_install.log.txt.gz#_2018-03-13_09_43_04
https://logs.rdoproject.org/openstack-periodic/periodic-tripleo-centos-7-master-containers-build/7ab45da/undercloud/home/jenkins/undercloud_install.log.txt.gz#_2018-03-10_09_51_14

Last undercloud installation completed with openstacksdk 0.11.3:-
https://logs.rdoproject.org/openstack-periodic/periodic-tripleo-centos-7-master-containers-build/ea065a9/undercloud/home/jenkins/undercloud_install.log.txt.gz

New openstacksdk release is 0.12.0(previous was 0.11.3):-https://review.rdoproject.org/r/#/c/12817/2/rdo.yml

Looks like get_session_client is used from os_client_config https://github.com/openstack/os-client-config/blob/master/os_client_config/cloud_config.py#L260 while "constructor" argument is defined in openstacksdk: https://github.com/openstack/python-openstacksdk/blob/e7b58ce7d76368632cf2fc05e41a3aca50cec20c/openstack/config/cloud_region.py#L309-L311

So looks like after new release there is some interface change.

Related Review: https://review.openstack.org/#/c/549307/

Tags: ci tech-debt
Changed in tripleo:
status: New → Triaged
importance: Undecided → High
milestone: none → rocky-1
Revision history for this message
John Trowbridge (trown) wrote :

That review for os-client-config will require a packaging change, since it changes the requirements[1]. I am trying to setup up a reproducer on master with that change, but dlrn fails to build the package because the unit tests require openstacksdk with that change and we dont have it in the Build-Requires[2].

[1]https://review.openstack.org/#/c/549307/3/requirements.txt
[2]https://review.rdoproject.org/r/gitweb?p=openstack/os-client-config-distgit.git;a=blob;f=python-os-client-config.spec;h=1b3a487c6984d7cdbec624c5e9c68eb3859722a3;hb=refs/heads/rpm-master

Revision history for this message
Alex Schultz (alex-schultz) wrote :

Adding tech-debt label since we pinned to an older version, https://review.rdoproject.org/r/#/c/12876

tags: added: ci promotion-blocker tech-debt
Revision history for this message
John Trowbridge (trown) wrote :

I think we also need https://review.rdoproject.org/r/12887 to actually get the package to rebuild.

Matt Young (halcyondude)
tags: removed: promotion-blocker
Changed in tripleo:
assignee: nobody → Rafael Folco (rafaelfolco)
Revision history for this message
Rafael Folco (rafaelfolco) wrote :

Per comments in [1] we should remove pinning when os-client-config works with new openstacksdk-12.0, WIP in [2]

[1] https://review.rdoproject.org/r/#/c/12876
[2] https://review.openstack.org/#/c/549307/

Changed in tripleo:
assignee: Rafael Folco (rafaelfolco) → nobody
Changed in tripleo:
milestone: rocky-1 → rocky-2
Changed in tripleo:
milestone: rocky-2 → rocky-3
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Changed in tripleo:
milestone: rocky-rc1 → stein-1
Revision history for this message
Alex Schultz (alex-schultz) wrote :

This was resolved during the rocky timeframe.

Changed in tripleo:
milestone: stein-1 → rocky-rc1
status: Triaged → 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.