Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1939560

Summary: [4.7] e2e-metal-assisted-baremetalds-assisted-setup step failing because of unexpected kwarg
Product: OpenShift Container Platform Reporter: Micah Abbott <miabbott>
Component: assisted-installerAssignee: yevgeny shnaidman <yshnaidm>
assisted-installer sub component: Installer QA Contact: Udi Kalifon <ukalifon>
Status: CLOSED WONTFIX Docs Contact:
Severity: unspecified    
Priority: urgent CC: aos-bugs, miabbott
Version: 4.7   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
job=pull-ci-openshift-machine-config-operator-release-4.7-e2e-metal-assisted=all
Last Closed: 2021-04-04 20:11:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Micah Abbott 2021-03-16 16:04:54 UTC
The `e2e-metal-assisted` job for 4.7 is permafailing over the last 7 days on the `baremetalds-assisted-setup` step:


https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_machine-config-operator/2462/pull-ci-openshift-machine-config-operator-release-4.7-e2e-metal-assisted/1371837495410429952

https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_machine-config-operator/2464/pull-ci-openshift-machine-config-operator-release-4.7-e2e-metal-assisted/1371587384788914176

https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_machine-config-operator/2455/pull-ci-openshift-machine-config-operator-release-4.7-e2e-metal-assisted/1369993235857936384


```
2021-03-16 15:19:50,794 INFO       - 140286242069376 - Creating cluster with params {'_name': 'test-infra-cluster-assisted-installer', '_high_availability_mode': 'Full', '_openshift_version': '4.7', '_base_dns_domain': 'redhat.com', '_cluster_network_cidr': '10.128.0.0/14', '_cluster_network_host_prefix': 23, '_service_network_cidr': '172.30.0.0/16', '_ingress_vip': None, '_pull_secret': '*** PULL_SECRET ***', '_ssh_public_key': '*** SSH_KEY ***', '_vip_dhcp_allocation': True, '_http_proxy': '', '_https_proxy': '', '_no_proxy': '', '_user_managed_networking': False, '_additional_ntp_source': '192.168.126.1', '_operators': None, 'discriminator': None} 	(/home/assisted/discovery-infra/test_infra/assisted_service_api.py:92)
2021-03-16 15:19:50,859 INFO       - 140286242069376 - Generating image for cluster b6fbadd1-4b67-43bd-b7fb-766ba03ebb66 	(/home/assisted/discovery-infra/test_infra/assisted_service_api.py:139)
Traceback (most recent call last):
  File "discovery-infra/start_discovery.py", line 903, in <module>
    main()
  File "discovery-infra/start_discovery.py", line 585, in main
    cluster_id = execute_day1_flow(cluster_name)
  File "discovery-infra/start_discovery.py", line 555, in execute_day1_flow
    static_network_config=static_network_config,
  File "/home/assisted/discovery-infra/test_infra/assisted_service_api.py", line 157, in generate_and_download_image
    self.generate_image(cluster_id=cluster_id, ssh_key=ssh_key, image_type=image_type, static_network_config=static_network_config)
  File "/home/assisted/discovery-infra/test_infra/assisted_service_api.py", line 140, in generate_image
    image_create_params = models.ImageCreateParams(ssh_public_key=ssh_key, static_network_config=static_network_config, image_type=image_type)
TypeError: __init__() got an unexpected keyword argument 'static_network_config'
make: *** [Makefile:301: _deploy_nodes] Error 1
make: *** [Makefile:305: deploy_nodes_with_install] Error 2
{"component":"entrypoint","error":"wrapped process failed: exit status 2","file":"prow/entrypoint/run.go:80","func":"k8s.io/test-infra/prow/entrypoint.Options.Run","level":"error","msg":"Error executing test process","severity":"error","time":"2021-03-16T15:19:51Z"}
error: failed to execute wrapped command: exit status 2
```

Comment 1 yevgeny shnaidman 2021-04-04 20:11:01 UTC
the issue is that the test uses an outdated assisted-service client that does not include support for static network configuration