2025-08-04 02:51:52,187 - INFO - Domain Default found not creating
2025-08-04 02:51:52,343 - INFO - Project ctest-TestPorts-10437657 not found, creating it
2025-08-04 02:51:52,921 - INFO - Created Project:ctest-TestPorts-10437657, ID : 17f872c7-feda-4a00-88c0-2d399f51225f
2025-08-04 02:51:54,620 - INFO - ================================================================================
2025-08-04 02:51:54,620 - INFO - STARTING TEST : test_aap_with_fip
2025-08-04 02:51:54,620 - INFO - TEST DESCRIPTION :
1. Create 2 VMs and enable keepalived between them, specifying a vIP.
2. Update the ports of the respective VMs to allow the vIP so configured.
3. Associate the same FIP to both the ports using API.
4. In the Floating IP object, add the vIP as the fixed_ip_address.
5. Ping to the vIP and FIP should be answered by the AAP active port.
6. Cause a keepalived mastership switchover.
7. The vIP and FIP should still be accessible via the new VRRP master.
Maintainer: ganeshahv@juniper.net
2025-08-04 02:51:55,972 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.18': '0', '10.20.0.129': '0'}, '10.0.0.57': {'10.20.0.193': '0', '10.20.0.18': '0'}} with
2025-08-04 02:51:55,972 - INFO - Initial checks done. Running the testcase now
2025-08-04 02:51:55,972 - INFO -
2025-08-04 02:51:55,972 - INFO - Create a FVN. Create a FIP-Pool and FIP
2025-08-04 02:51:56,699 - DEBUG - Response for create_network : {'network': {'id': '2860676f-10fd-4f92-817e-9cb1a5ead82b', 'name': 'ctest-fvn-55690424', 'tenant_id': '17f872c7feda4a0088c02d399f51225f', 'project_id': '17f872c7feda4a0088c02d399f51225f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestPorts-10437657', 'ctest-fvn-55690424'], 'port_security_enabled': True, 'description': ''}}
2025-08-04 02:51:57,015 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a4dd0d0f-a0c3-4804-9bb8-5d4fdf9e737e', 'name': '', 'tenant_id': '17f872c7feda4a0088c02d399f51225f', 'network_id': '2860676f-10fd-4f92-817e-9cb1a5ead82b', 'ip_version': 4, 'cidr': '8.69.149.192/26', 'allocation_pools': [{'start': '8.69.149.194', 'end': '8.69.149.254'}], 'gateway_ip': '8.69.149.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.69.149.194', 'tags': [], 'project_id': '17f872c7feda4a0088c02d399f51225f'}}
2025-08-04 02:51:57,044 - INFO - Created VN ctest-fvn-55690424
2025-08-04 02:51:57,060 - DEBUG - VN ctest-fvn-55690424 UUID is 2860676f-10fd-4f92-817e-9cb1a5ead82b
2025-08-04 02:51:57,232 - DEBUG - Services list from nova: [, , , ]
2025-08-04 02:51:58,441 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3750-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3750-2)
2025-08-04 02:51:58,441 - INFO - Waiting for VM ctest-fvn-vm-17480896 to be up..
2025-08-04 02:51:58,495 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-08-04 02:52:03,602 - DEBUG - VM is in ACTIVE state now
2025-08-04 02:52:03,602 - INFO - VM name : ctest-fvn-vm-17480896
2025-08-04 02:52:03,712 - DEBUG - VM ctest-fvn-vm-17480896 ID is 2840b5fe-773b-4566-8955-89b665e46987
2025-08-04 02:52:03,737 - DEBUG - VM ctest-fvn-vm-17480896 launched on Node an-jenkins-deploy-platform-ansible-os-3750-2
2025-08-04 02:52:03,833 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/2840b5fe-773b-4566-8955-89b665e46987
2025-08-04 02:52:04,145 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/2840b5fe-773b-4566-8955-89b665e46987
2025-08-04 02:52:04,184 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/07b0f4d5-406a-481b-b6bd-19236e1db1c8
2025-08-04 02:52:07,427 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1027ms')
2025-08-04 02:52:07,427 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-fvn-vm-17480896 failed!
2025-08-04 02:52:07,445 - DEBUG - Gateway for vn default-domain:ctest-TestPorts-10437657:ctest-fvn-55690424 is 8.69.149.193 and allocation pool is NOT set
2025-08-04 02:52:09,509 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=4.74 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.695 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.695/2.719/4.744/2.024 ms')
2025-08-04 02:52:09,509 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-fvn-vm-17480896 passed
2025-08-04 02:52:09,631 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-04 02:52:09,631 - DEBUG - Waiting to SSH to VM ctest-fvn-vm-17480896, IP 8.69.149.195, Port 22
2025-08-04 02:52:09,699 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2025-08-04 02:52:09,781 - DEBUG - VM ctest-fvn-vm-17480896 is NOT ready for SSH connections, VM status: ACTIVE
2025-08-04 02:52:14,782 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-04 02:52:14,782 - DEBUG - Waiting to SSH to VM ctest-fvn-vm-17480896, IP 8.69.149.195, Port 22
2025-08-04 02:52:14,944 - DEBUG - VM ctest-fvn-vm-17480896 is ready for SSH connections
2025-08-04 02:52:15,108 - INFO - Creating Floating IP pool some-pool1 in API Server
2025-08-04 02:52:15,307 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-04 02:52:15,652 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-04 02:52:15,686 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8d00e278-1e00-4abc-a644-cc23d080d5d1
2025-08-04 02:52:15,705 - DEBUG - Requesting: http://10.0.0.27:8082/project/17f872c7-feda-4a00-88c0-2d399f51225f
2025-08-04 02:52:15,817 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2860676f-10fd-4f92-817e-9cb1a5ead82b
2025-08-04 02:52:15,837 - DEBUG - Requesting: http://10.0.0.27:8082/floating-ip-pool/b7aef71d-af45-4035-954f-255bf96f755f
2025-08-04 02:52:15,849 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-04 02:52:15,861 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8d00e278-1e00-4abc-a644-cc23d080d5d1
2025-08-04 02:52:15,876 - DEBUG - Requesting: http://10.0.0.27:8082/project/17f872c7-feda-4a00-88c0-2d399f51225f
2025-08-04 02:52:15,988 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2860676f-10fd-4f92-817e-9cb1a5ead82b
2025-08-04 02:52:16,001 - DEBUG - FIP Pool some-pool1 found in API Server
2025-08-04 02:52:16,001 - INFO - Verification for FIP pool some-pool1 in API Server passed
2025-08-04 02:52:16,018 - DEBUG - Control-node Ifmap-view has FIP pool some-pool1 information
2025-08-04 02:52:16,024 - DEBUG - Control-node Ifmap-view has FIP pool some-pool1 information
2025-08-04 02:52:16,031 - DEBUG - Control-node Ifmap-view has FIP pool some-pool1 information
2025-08-04 02:52:16,031 - INFO - Verification for FIP pool some-pool1 in Control-node passed
2025-08-04 02:52:16,031 - INFO - Creating FIP from some-pool1
2025-08-04 02:52:16,555 - DEBUG - Response for create_network : {'network': {'id': '9c068706-ad58-465d-97c2-e843db6ee0c0', 'name': 'ctest-vn1-21915127', 'tenant_id': '17f872c7feda4a0088c02d399f51225f', 'project_id': '17f872c7feda4a0088c02d399f51225f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestPorts-10437657', 'ctest-vn1-21915127'], 'port_security_enabled': True, 'description': ''}}
2025-08-04 02:52:16,808 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e8e857e-4011-4207-aee7-099d49b6eb69', 'name': '', 'tenant_id': '17f872c7feda4a0088c02d399f51225f', 'network_id': '9c068706-ad58-465d-97c2-e843db6ee0c0', 'ip_version': 4, 'cidr': '126.144.94.128/26', 'allocation_pools': [{'start': '126.144.94.130', 'end': '126.144.94.190'}], 'gateway_ip': '126.144.94.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.144.94.130', 'tags': [], 'project_id': '17f872c7feda4a0088c02d399f51225f'}}
2025-08-04 02:52:16,834 - INFO - Created VN ctest-vn1-21915127
2025-08-04 02:52:16,848 - DEBUG - VN ctest-vn1-21915127 UUID is 9c068706-ad58-465d-97c2-e843db6ee0c0
2025-08-04 02:52:17,292 - DEBUG - Response for create_port : {'port': {'name': '18a321dc-1344-464d-8bc8-01aabbb7de4f', 'id': '18a321dc-1344-464d-8bc8-01aabbb7de4f', 'tenant_id': '17f872c7feda4a0088c02d399f51225f', 'network_id': '9c068706-ad58-465d-97c2-e843db6ee0c0', 'mac_address': '02:18:a3:21:dc:13', 'binding:vnic_type': 'normal', 'binding:vif_details': {'port_filter': True}, 'binding:vif_type': 'unbound', 'binding:host_id': None, 'allowed_address_pairs': [], 'fixed_ips': [{'ip_address': '126.144.94.131', 'subnet_id': '7e8e857e-4011-4207-aee7-099d49b6eb69'}], 'security_groups': ['ab0208b8-c225-4678-8c52-d9d6c463cb51'], 'admin_state_up': True, 'device_id': '', 'device_owner': '', 'status': 'DOWN', 'port_security_enabled': True, 'description': '', 'project_id': '17f872c7feda4a0088c02d399f51225f'}}
2025-08-04 02:52:17,539 - DEBUG - Response for create_port : {'port': {'name': '3c76493f-10af-421d-b363-8fa2c114e751', 'id': '3c76493f-10af-421d-b363-8fa2c114e751', 'tenant_id': '17f872c7feda4a0088c02d399f51225f', 'network_id': '9c068706-ad58-465d-97c2-e843db6ee0c0', 'mac_address': '02:3c:76:49:3f:10', 'binding:vnic_type': 'normal', 'binding:vif_details': {'port_filter': True}, 'binding:vif_type': 'unbound', 'binding:host_id': None, 'allowed_address_pairs': [], 'fixed_ips': [{'ip_address': '126.144.94.132', 'subnet_id': '7e8e857e-4011-4207-aee7-099d49b6eb69'}], 'security_groups': ['ab0208b8-c225-4678-8c52-d9d6c463cb51'], 'admin_state_up': True, 'device_id': '', 'device_owner': '', 'status': 'DOWN', 'port_security_enabled': True, 'description': '', 'project_id': '17f872c7feda4a0088c02d399f51225f'}}
2025-08-04 02:52:17,686 - DEBUG - Image by name ubuntu-keepalive not found
2025-08-04 02:52:17,687 - DEBUG - Installing image ubuntu-keepalive
2025-08-04 02:52:17,687 - DEBUG - Image info {'name': 'ubuntu-keepalive.img.gz', 'webserver': '', 'location': '/images/', 'username': 'ubuntu', 'password': 'ubuntu', 'type': 'os', 'flavor': 'contrail_flavor_large', 'params': '--container-format ovf --disk-format qcow2 --property hypervisor_type=qemu', 'name_docker': 'phusion-baseimage-enablesshd'}
2025-08-04 02:52:17,687 - DEBUG - Image build path http://nexus.opensdn.io/repository///images//ubuntu-keepalive.img.gz
2025-08-04 02:52:17,687 - DEBUG - Download image from web http://nexus.opensdn.io/repository///images//ubuntu-keepalive.img.gz
2025-08-04 02:52:17,702 - DEBUG - Image download (local=True) (proxy=None): Execute cmd: wget -nv http://nexus.opensdn.io/repository///images//ubuntu-keepalive.img.gz -O /contrail-test/images/ubuntu-keepalive.img.gz
2025-08-04 02:52:19,672 - DEBUG - Image has been downloaded to /contrail-test/images/ubuntu-keepalive.img.gz
2025-08-04 02:52:19,672 - DEBUG - Unzip image
2025-08-04 02:52:19,672 - DEBUG - Image download (local=True) (proxy=None): Execute cmd: gunzip -f /contrail-test/images/ubuntu-keepalive.img.gz
2025-08-04 02:52:27,500 - DEBUG - Try to create image in user context
2025-08-04 02:52:33,683 - DEBUG - Image has been created in user context
2025-08-04 02:52:33,684 - DEBUG - Image download (local=True) (proxy=None): Execute cmd: rm -f /contrail-test/images/ubuntu-keepalive.img
2025-08-04 02:52:33,821 - DEBUG - Downloaded image has been removed
2025-08-04 02:52:33,836 - DEBUG - Uploaded image status = active
2025-08-04 02:52:34,433 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3750-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3750-1)
2025-08-04 02:52:35,271 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3750-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3750-2)
2025-08-04 02:52:35,451 - DEBUG - Image by name ubuntu not found
2025-08-04 02:52:35,451 - DEBUG - Installing image ubuntu
2025-08-04 02:52:35,451 - DEBUG - Image info {'name': 'ubuntu.vmdk.gz', 'webserver': '', 'location': '/images/converts/', 'username': 'ubuntu', 'password': 'ubuntu', 'type': 'os', 'flavor': 'contrail_flavor_tiny', 'params': '--container-format bare --disk-format vmdk --property vmware_disktype="sparse" --property vmware_adaptertype="ide" --property hw_scsi_model=virtio-scsi --property hw_disk_bus_model=virtio-scsi --property hw_disk_bus=virtio', 'name_docker': 'phusion-baseimage-enablesshd'}
2025-08-04 02:52:35,452 - DEBUG - Image build path file:///contrail-test/images/ubuntu.vmdk.gz
2025-08-04 02:52:35,452 - DEBUG - Download image from local file file:///contrail-test/images/ubuntu.vmdk.gz
2025-08-04 02:52:35,452 - DEBUG - Unzip image
2025-08-04 02:52:35,452 - DEBUG - Image download (local=True) (proxy=None): Execute cmd: gunzip -f /contrail-test/images/ubuntu.vmdk.gz
2025-08-04 02:52:35,474 - INFO - image /contrail-test/images/ubuntu.vmdk is not found
2025-08-04 02:52:35,475 - INFO - Skip interface_detach for VM ctest-vm2-18482305 in state BUILD
2025-08-04 02:52:35,475 - INFO - Deleting VM ctest-vm2-18482305
2025-08-04 02:52:35,475 - ERROR - VM ctest-vm2-18482305 has failed to come up
2025-08-04 02:52:35,476 - ERROR - Nova failed to get host of the VM
2025-08-04 02:52:35,476 - ERROR - VM ctest-vm2-18482305 has failed to come up
2025-08-04 02:52:35,476 - ERROR - Nova failed to get host of the VM
2025-08-04 02:52:35,869 - INFO - Skip interface_detach for VM ctest-vm1-93360270 in state BUILD
2025-08-04 02:52:35,869 - INFO - Deleting VM ctest-vm1-93360270
2025-08-04 02:52:35,869 - ERROR - VM ctest-vm1-93360270 has failed to come up
2025-08-04 02:52:35,869 - ERROR - Nova failed to get host of the VM
2025-08-04 02:52:35,869 - ERROR - VM ctest-vm1-93360270 has failed to come up
2025-08-04 02:52:35,869 - ERROR - Nova failed to get host of the VM
2025-08-04 02:52:36,216 - DEBUG - Response for delete_port : ()
2025-08-04 02:52:36,546 - DEBUG - Response for delete_port : ()
2025-08-04 02:52:36,546 - INFO - Deleting VN ctest-vn1-21915127
2025-08-04 02:52:37,017 - DEBUG - Response for deleting network ()
2025-08-04 02:52:37,104 - INFO - Deleting the FIP pool some-pool1
2025-08-04 02:52:37,301 - DEBUG - Control-node Ifmap-view does not have FIP pool some-pool1 information
2025-08-04 02:52:37,310 - DEBUG - Control-node Ifmap-view does not have FIP pool some-pool1 information
2025-08-04 02:52:37,325 - DEBUG - Control-node Ifmap-view does not have FIP pool some-pool1 information
2025-08-04 02:52:37,325 - INFO - Deleting VM ctest-fvn-vm-17480896
2025-08-04 02:52:37,477 - INFO - Deleting VN ctest-fvn-55690424
2025-08-04 02:52:37,563 - DEBUG - VN 2860676f-10fd-4f92-817e-9cb1a5ead82b still in use: Unable to complete operation on network 2860676f-10fd-4f92-817e-9cb1a5ead82b. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-4da80430-315d-441b-8a0e-aa3cdb80bb07']
2025-08-04 02:52:37,563 - WARNING - Deleting VN ctest-fvn-55690424 failed..Will retry
2025-08-04 02:52:39,724 - DEBUG - Response for deleting network ()
2025-08-04 02:52:41,012 - DEBUG - No XMPP flaps were noticed during the test
2025-08-04 02:52:41,012 - INFO -
2025-08-04 02:52:41,012 - INFO - END TEST : test_aap_with_fip : SKIPPED[0:00:47]
2025-08-04 02:52:41,012 - INFO - --------------------------------------------------------------------------------
2025-08-04 02:52:41,019 - INFO - ================================================================================
2025-08-04 02:52:41,019 - INFO - STARTING TEST : test_aap_with_zero_mac
2025-08-04 02:52:41,019 - INFO - TEST DESCRIPTION :
Verify VIP reachability over L2 network when AAP MAC is configured with all zeo
1. Launch 2 vms on same virtual network.
2. Configure high availability between them with keepalived.
3. Launch third VM in same VM.
4. Check the reachability of VIP from 3rd VM.
5. Shutdown keepalive in master VM to induce VIP switch over.
6. Check the reachability of VIP from 3rd VM again.
7. Bring back master VM which will cause switchover of VIP again.
8. Check the reachability of VIP from 3rd VM again.
Pass criteria: Step 4,6 and 8 should pass
Maintainer: chhandak@juniper.net
2025-08-04 02:52:42,290 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.18': '0', '10.20.0.129': '0'}, '10.0.0.57': {'10.20.0.193': '0', '10.20.0.18': '0'}} with
2025-08-04 02:52:42,290 - INFO - Initial checks done. Running the testcase now
2025-08-04 02:52:42,290 - INFO -
2025-08-04 02:52:42,583 - DEBUG - Response for create_network : {'network': {'id': 'a24b6778-f152-403c-9606-de5654e1cf9e', 'name': 'ctest-vn1-28080192', 'tenant_id': '17f872c7feda4a0088c02d399f51225f', 'project_id': '17f872c7feda4a0088c02d399f51225f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestPorts-10437657', 'ctest-vn1-28080192'], 'port_security_enabled': True, 'description': ''}}
2025-08-04 02:52:42,848 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a38d04d2-4d9c-4646-80e5-91021c98f8ff', 'name': '', 'tenant_id': '17f872c7feda4a0088c02d399f51225f', 'network_id': 'a24b6778-f152-403c-9606-de5654e1cf9e', 'ip_version': 4, 'cidr': '43.64.161.0/26', 'allocation_pools': [{'start': '43.64.161.2', 'end': '43.64.161.62'}], 'gateway_ip': '43.64.161.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.64.161.2', 'tags': [], 'project_id': '17f872c7feda4a0088c02d399f51225f'}}
2025-08-04 02:52:42,878 - INFO - Created VN ctest-vn1-28080192
2025-08-04 02:52:42,895 - DEBUG - VN ctest-vn1-28080192 UUID is a24b6778-f152-403c-9606-de5654e1cf9e
2025-08-04 02:52:43,267 - DEBUG - Response for create_port : {'port': {'name': '5762504d-6338-4c54-a450-9d178e72021b', 'id': '5762504d-6338-4c54-a450-9d178e72021b', 'tenant_id': '17f872c7feda4a0088c02d399f51225f', 'network_id': 'a24b6778-f152-403c-9606-de5654e1cf9e', 'mac_address': '02:57:62:50:4d:63', 'binding:vnic_type': 'normal', 'binding:vif_details': {'port_filter': True}, 'binding:vif_type': 'unbound', 'binding:host_id': None, 'allowed_address_pairs': [], 'fixed_ips': [{'ip_address': '43.64.161.3', 'subnet_id': 'a38d04d2-4d9c-4646-80e5-91021c98f8ff'}], 'security_groups': ['ab0208b8-c225-4678-8c52-d9d6c463cb51'], 'admin_state_up': True, 'device_id': '', 'device_owner': '', 'status': 'DOWN', 'port_security_enabled': True, 'description': '', 'project_id': '17f872c7feda4a0088c02d399f51225f'}}
2025-08-04 02:52:43,549 - DEBUG - Response for create_port : {'port': {'name': '2a407e28-e196-4406-8c8c-1d1c0e1b6a6b', 'id': '2a407e28-e196-4406-8c8c-1d1c0e1b6a6b', 'tenant_id': '17f872c7feda4a0088c02d399f51225f', 'network_id': 'a24b6778-f152-403c-9606-de5654e1cf9e', 'mac_address': '02:2a:40:7e:28:e1', 'binding:vnic_type': 'normal', 'binding:vif_details': {'port_filter': True}, 'binding:vif_type': 'unbound', 'binding:host_id': None, 'allowed_address_pairs': [], 'fixed_ips': [{'ip_address': '43.64.161.4', 'subnet_id': 'a38d04d2-4d9c-4646-80e5-91021c98f8ff'}], 'security_groups': ['ab0208b8-c225-4678-8c52-d9d6c463cb51'], 'admin_state_up': True, 'device_id': '', 'device_owner': '', 'status': 'DOWN', 'port_security_enabled': True, 'description': '', 'project_id': '17f872c7feda4a0088c02d399f51225f'}}
2025-08-04 02:52:44,090 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3750-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3750-2)
2025-08-04 02:52:44,730 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3750-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3750-1)
2025-08-04 02:52:45,268 - DEBUG - Image by name ubuntu not found
2025-08-04 02:52:45,268 - DEBUG - Installing image ubuntu
2025-08-04 02:52:45,268 - DEBUG - Image info {'name': 'ubuntu.vmdk.gz', 'webserver': '', 'location': '/images/converts/', 'username': 'ubuntu', 'password': 'ubuntu', 'type': 'os', 'flavor': 'contrail_flavor_tiny', 'params': '--container-format bare --disk-format vmdk --property vmware_disktype="sparse" --property vmware_adaptertype="ide" --property hw_scsi_model=virtio-scsi --property hw_disk_bus_model=virtio-scsi --property hw_disk_bus=virtio', 'name_docker': 'phusion-baseimage-enablesshd'}
2025-08-04 02:52:45,269 - DEBUG - Image build path file:///contrail-test/images/ubuntu.vmdk.gz
2025-08-04 02:52:45,269 - DEBUG - Download image from local file file:///contrail-test/images/ubuntu.vmdk.gz
2025-08-04 02:52:45,269 - DEBUG - Unzip image
2025-08-04 02:52:45,269 - DEBUG - Image download (local=True) (proxy=None): Execute cmd: gunzip -f /contrail-test/images/ubuntu.vmdk.gz
2025-08-04 02:52:45,288 - INFO - image /contrail-test/images/ubuntu.vmdk is not found
2025-08-04 02:52:45,288 - INFO - Skip interface_detach for VM ctest-vm2-54005512 in state BUILD
2025-08-04 02:52:45,288 - INFO - Deleting VM ctest-vm2-54005512
2025-08-04 02:52:45,288 - ERROR - VM ctest-vm2-54005512 has failed to come up
2025-08-04 02:52:45,289 - ERROR - Nova failed to get host of the VM
2025-08-04 02:52:45,289 - ERROR - VM ctest-vm2-54005512 has failed to come up
2025-08-04 02:52:45,289 - ERROR - Nova failed to get host of the VM
2025-08-04 02:52:45,629 - INFO - Skip interface_detach for VM ctest-vm1-60131872 in state BUILD
2025-08-04 02:52:45,630 - INFO - Deleting VM ctest-vm1-60131872
2025-08-04 02:52:45,630 - ERROR - VM ctest-vm1-60131872 has failed to come up
2025-08-04 02:52:45,630 - ERROR - Nova failed to get host of the VM
2025-08-04 02:52:45,630 - ERROR - VM ctest-vm1-60131872 has failed to come up
2025-08-04 02:52:45,630 - ERROR - Nova failed to get host of the VM
2025-08-04 02:52:46,092 - DEBUG - Response for delete_port : ()
2025-08-04 02:52:46,683 - DEBUG - Response for delete_port : ()
2025-08-04 02:52:46,683 - INFO - Deleting VN ctest-vn1-28080192
2025-08-04 02:52:46,929 - DEBUG - Response for deleting network ()
2025-08-04 02:52:48,276 - DEBUG - No XMPP flaps were noticed during the test
2025-08-04 02:52:48,276 - INFO -
2025-08-04 02:52:48,276 - INFO - END TEST : test_aap_with_zero_mac : SKIPPED[0:00:07]
2025-08-04 02:52:48,276 - INFO - --------------------------------------------------------------------------------
2025-08-04 02:52:48,279 - INFO - ================================================================================
2025-08-04 02:52:48,279 - INFO - STARTING TEST : test_ports_bindings
2025-08-04 02:52:48,280 - INFO - TEST DESCRIPTION :
Verify that we are able to create a port with custom port bindings
Steps:
1) Create Port with Port bindings profile set to {'foo': 'bar'}
2) Retrieve and verify the same is set
2025-08-04 02:52:49,586 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.18': '0', '10.20.0.129': '0'}, '10.0.0.57': {'10.20.0.193': '0', '10.20.0.18': '0'}} with
2025-08-04 02:52:49,586 - INFO - Initial checks done. Running the testcase now
2025-08-04 02:52:49,586 - INFO -
2025-08-04 02:52:49,909 - DEBUG - Response for create_network : {'network': {'id': 'e85c34e0-0f0d-42e2-9454-ce9789644781', 'name': 'ctest-vn-82881031', 'tenant_id': '17f872c7feda4a0088c02d399f51225f', 'project_id': '17f872c7feda4a0088c02d399f51225f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestPorts-10437657', 'ctest-vn-82881031'], 'port_security_enabled': True, 'description': ''}}
2025-08-04 02:52:50,203 - DEBUG - Response for create_subnet : {'subnet': {'id': '7a77befb-ffe5-4afe-9574-6fd838d7b536', 'name': '', 'tenant_id': '17f872c7feda4a0088c02d399f51225f', 'network_id': 'e85c34e0-0f0d-42e2-9454-ce9789644781', 'ip_version': 4, 'cidr': '155.21.157.0/26', 'allocation_pools': [{'start': '155.21.157.2', 'end': '155.21.157.62'}], 'gateway_ip': '155.21.157.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.21.157.2', 'tags': [], 'project_id': '17f872c7feda4a0088c02d399f51225f'}}
2025-08-04 02:52:50,230 - INFO - Created VN ctest-vn-82881031
2025-08-04 02:52:50,246 - DEBUG - VN ctest-vn-82881031 UUID is e85c34e0-0f0d-42e2-9454-ce9789644781
2025-08-04 02:52:50,327 - DEBUG - Read virtual machine interface {'fq_name': ['default-domain', 'ctest-TestPorts-10437657', 'ctest-vmi-45724118']}
2025-08-04 02:52:50,627 - DEBUG - Response for create_port : {'port': {'name': 'ctest-vmi-45724118', 'id': 'b3b1dbc1-219d-4b49-aded-54766bb34065', 'tenant_id': '17f872c7feda4a0088c02d399f51225f', 'network_id': 'e85c34e0-0f0d-42e2-9454-ce9789644781', 'mac_address': '02:b3:b1:db:c1:21', 'binding:profile': {'foo': 'bar'}, 'binding:vnic_type': 'normal', 'binding:vif_details': {'port_filter': True}, 'binding:vif_type': 'unbound', 'binding:host_id': None, 'allowed_address_pairs': [], 'fixed_ips': [{'ip_address': '155.21.157.3', 'subnet_id': '7a77befb-ffe5-4afe-9574-6fd838d7b536'}], 'security_groups': ['ab0208b8-c225-4678-8c52-d9d6c463cb51'], 'admin_state_up': True, 'device_id': '', 'device_owner': '', 'status': 'DOWN', 'port_security_enabled': True, 'description': '', 'project_id': '17f872c7feda4a0088c02d399f51225f'}}
2025-08-04 02:52:50,627 - DEBUG - Created port b3b1dbc1-219d-4b49-aded-54766bb34065
2025-08-04 02:52:50,741 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/b3b1dbc1-219d-4b49-aded-54766bb34065
2025-08-04 02:52:50,763 - INFO - VMI b3b1dbc1-219d-4b49-aded-54766bb34065 verification in API Server passed
2025-08-04 02:52:50,925 - DEBUG - Response for delete_port : ()
2025-08-04 02:52:50,925 - INFO - Deleted port b3b1dbc1-219d-4b49-aded-54766bb34065
2025-08-04 02:52:50,925 - INFO - Deleting VN ctest-vn-82881031
2025-08-04 02:52:51,127 - DEBUG - Response for deleting network ()
2025-08-04 02:52:52,413 - DEBUG - No XMPP flaps were noticed during the test
2025-08-04 02:52:52,414 - INFO - END TEST : test_ports_bindings : PASSED[0:00:04]
2025-08-04 02:52:52,414 - INFO - --------------------------------------------------------------------------------
2025-08-04 02:52:52,416 - INFO - ================================================================================
2025-08-04 02:52:52,416 - INFO - STARTING TEST : test_ports_specific_subnet_ip
2025-08-04 02:52:52,416 - INFO - TEST DESCRIPTION : Create ports with specific Subnet and IP
Create two ports in a VN with 2 subnets and specific IPs
Attach to two VMs
Ping between them should pass
2025-08-04 02:52:53,722 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.18': '0', '10.20.0.129': '0'}, '10.0.0.57': {'10.20.0.193': '0', '10.20.0.18': '0'}} with
2025-08-04 02:52:53,722 - INFO - Initial checks done. Running the testcase now
2025-08-04 02:52:53,722 - INFO -
2025-08-04 02:52:54,049 - DEBUG - Response for create_network : {'network': {'id': '341428eb-a367-4740-aacd-43541829a437', 'name': 'ctest-vn1-25321104', 'tenant_id': '17f872c7feda4a0088c02d399f51225f', 'project_id': '17f872c7feda4a0088c02d399f51225f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestPorts-10437657', 'ctest-vn1-25321104'], 'port_security_enabled': True, 'description': ''}}
2025-08-04 02:52:54,348 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a5fa6eb-4f47-4d40-99e4-7e71d9ab61ae', 'name': '', 'tenant_id': '17f872c7feda4a0088c02d399f51225f', 'network_id': '341428eb-a367-4740-aacd-43541829a437', 'ip_version': 4, 'cidr': '197.222.208.128/26', 'allocation_pools': [{'start': '197.222.208.130', 'end': '197.222.208.190'}], 'gateway_ip': '197.222.208.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.222.208.130', 'tags': [], 'project_id': '17f872c7feda4a0088c02d399f51225f'}}
2025-08-04 02:52:54,588 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c81ec857-9e06-45d3-9bc4-bb79ef93f37c', 'name': '', 'tenant_id': '17f872c7feda4a0088c02d399f51225f', 'network_id': '341428eb-a367-4740-aacd-43541829a437', 'ip_version': 4, 'cidr': '158.27.19.64/26', 'allocation_pools': [{'start': '158.27.19.66', 'end': '158.27.19.126'}], 'gateway_ip': '158.27.19.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.27.19.66', 'tags': [], 'project_id': '17f872c7feda4a0088c02d399f51225f'}}
2025-08-04 02:52:54,629 - INFO - Created VN ctest-vn1-25321104
2025-08-04 02:52:54,642 - DEBUG - VN ctest-vn1-25321104 UUID is 341428eb-a367-4740-aacd-43541829a437
2025-08-04 02:52:55,093 - DEBUG - Response for create_port : {'port': {'name': 'd01d6149-56a4-4be7-9e44-f654c1e24354', 'id': 'd01d6149-56a4-4be7-9e44-f654c1e24354', 'tenant_id': '17f872c7feda4a0088c02d399f51225f', 'network_id': '341428eb-a367-4740-aacd-43541829a437', 'mac_address': '02:d0:1d:61:49:56', 'binding:vnic_type': 'normal', 'binding:vif_details': {'port_filter': True}, 'binding:vif_type': 'unbound', 'binding:host_id': None, 'allowed_address_pairs': [], 'fixed_ips': [{'ip_address': '197.222.208.133', 'subnet_id': '1a5fa6eb-4f47-4d40-99e4-7e71d9ab61ae'}], 'security_groups': ['ab0208b8-c225-4678-8c52-d9d6c463cb51'], 'admin_state_up': True, 'device_id': '', 'device_owner': '', 'status': 'DOWN', 'port_security_enabled': True, 'description': '', 'project_id': '17f872c7feda4a0088c02d399f51225f'}}
2025-08-04 02:52:55,452 - DEBUG - Response for create_port : {'port': {'name': 'd4b48248-a189-4cd7-9bfb-e77b0f316fd7', 'id': 'd4b48248-a189-4cd7-9bfb-e77b0f316fd7', 'tenant_id': '17f872c7feda4a0088c02d399f51225f', 'network_id': '341428eb-a367-4740-aacd-43541829a437', 'mac_address': '02:d4:b4:82:48:a1', 'binding:vnic_type': 'normal', 'binding:vif_details': {'port_filter': True}, 'binding:vif_type': 'unbound', 'binding:host_id': None, 'allowed_address_pairs': [], 'fixed_ips': [{'ip_address': '158.27.19.69', 'subnet_id': 'c81ec857-9e06-45d3-9bc4-bb79ef93f37c'}], 'security_groups': ['ab0208b8-c225-4678-8c52-d9d6c463cb51'], 'admin_state_up': True, 'device_id': '', 'device_owner': '', 'status': 'DOWN', 'port_security_enabled': True, 'description': '', 'project_id': '17f872c7feda4a0088c02d399f51225f'}}
2025-08-04 02:52:55,930 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3750-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3750-1)
2025-08-04 02:52:56,465 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3750-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3750-2)
2025-08-04 02:52:56,465 - INFO - Waiting for VM ctest-vn1-vm1-00061998 to be up..
2025-08-04 02:52:56,540 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-08-04 02:53:01,634 - DEBUG - VM is in ACTIVE state now
2025-08-04 02:53:01,634 - INFO - VM name : ctest-vn1-vm1-00061998
2025-08-04 02:53:01,743 - DEBUG - VM ctest-vn1-vm1-00061998 ID is 39718abb-a6d3-4828-92d4-a05d8dc09964
2025-08-04 02:53:01,744 - DEBUG - VM ctest-vn1-vm1-00061998 launched on Node an-jenkins-deploy-platform-ansible-os-3750-1
2025-08-04 02:53:01,843 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/39718abb-a6d3-4828-92d4-a05d8dc09964
2025-08-04 02:53:01,856 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/d01d6149-56a4-4be7-9e44-f654c1e24354
2025-08-04 02:53:05,104 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1011ms')
2025-08-04 02:53:05,104 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-vn1-vm1-00061998 failed!
2025-08-04 02:53:05,127 - DEBUG - Gateway for vn default-domain:ctest-TestPorts-10437657:ctest-vn1-25321104 is 197.222.208.129 and allocation pool is NOT set
2025-08-04 02:53:05,127 - DEBUG - Gateway for vn default-domain:ctest-TestPorts-10437657:ctest-vn1-25321104 is 158.27.19.65 and allocation pool is NOT set
2025-08-04 02:53:07,194 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=3.83 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.02 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 2.023/2.925/3.827/0.902 ms')
2025-08-04 02:53:07,194 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-vn1-vm1-00061998 passed
2025-08-04 02:53:07,314 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-04 02:53:07,314 - DEBUG - Waiting to SSH to VM ctest-vn1-vm1-00061998, IP 197.222.208.133, Port 22
2025-08-04 02:53:07,383 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2025-08-04 02:53:07,471 - DEBUG - VM ctest-vn1-vm1-00061998 is NOT ready for SSH connections, VM status: ACTIVE
2025-08-04 02:53:12,472 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-04 02:53:12,472 - DEBUG - Waiting to SSH to VM ctest-vn1-vm1-00061998, IP 197.222.208.133, Port 22
2025-08-04 02:53:12,644 - DEBUG - VM ctest-vn1-vm1-00061998 is ready for SSH connections
2025-08-04 02:53:12,644 - INFO - Waiting for VM ctest-vn1-vm2-34676898 to be up..
2025-08-04 02:53:12,736 - DEBUG - VM is in ACTIVE state now
2025-08-04 02:53:12,736 - INFO - VM name : ctest-vn1-vm2-34676898
2025-08-04 02:53:12,844 - DEBUG - VM ctest-vn1-vm2-34676898 ID is 05f867fa-24ca-480b-bcde-4efe5d54a35e
2025-08-04 02:53:12,844 - DEBUG - VM ctest-vn1-vm2-34676898 launched on Node an-jenkins-deploy-platform-ansible-os-3750-2
2025-08-04 02:53:12,937 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/05f867fa-24ca-480b-bcde-4efe5d54a35e
2025-08-04 02:53:12,954 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/d4b48248-a189-4cd7-9bfb-e77b0f316fd7
2025-08-04 02:53:14,176 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=2.95 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.351 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.351/1.652/2.953/1.301 ms')
2025-08-04 02:53:14,176 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-vn1-vm2-34676898 passed
2025-08-04 02:53:14,302 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-04 02:53:14,302 - DEBUG - Waiting to SSH to VM ctest-vn1-vm2-34676898, IP 158.27.19.69, Port 22
2025-08-04 02:53:14,466 - DEBUG - VM ctest-vn1-vm2-34676898 is ready for SSH connections
2025-08-04 02:53:14,467 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-04 02:53:14,467 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-04 02:53:14,467 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-08-04 02:53:14,467 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 197.222.208.133, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123
2025-08-04 02:53:14,467 - DEBUG - ping -s 56 -c 3 -W 1 197.222.208.133
2025-08-04 02:53:18,488 - DEBUG - PING 197.222.208.133 (197.222.208.133): 56 data bytes
64 bytes from 197.222.208.133: seq=0 ttl=63 time=4.695 ms
64 bytes from 197.222.208.133: seq=1 ttl=63 time=1.108 ms
64 bytes from 197.222.208.133: seq=2 ttl=63 time=0.998 ms
--- 197.222.208.133 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.998/2.267/4.695 ms
2025-08-04 02:53:18,488 - INFO - Ping to IP 197.222.208.133 from VM ctest-vn1-vm2-34676898 passed
2025-08-04 02:53:18,488 - INFO - Detaching port d4b48248-a189-4cd7-9bfb-e77b0f316fd7 from VM ctest-vn1-vm2-34676898
2025-08-04 02:53:18,540 - INFO - Deleting VM ctest-vn1-vm2-34676898
2025-08-04 02:53:18,630 - INFO - Detaching port d01d6149-56a4-4be7-9e44-f654c1e24354 from VM ctest-vn1-vm1-00061998
2025-08-04 02:53:18,672 - INFO - Deleting VM ctest-vn1-vm1-00061998
2025-08-04 02:53:19,014 - DEBUG - Response for delete_port : ()
2025-08-04 02:53:19,282 - DEBUG - Response for delete_port : ()
2025-08-04 02:53:19,282 - INFO - Deleting VN ctest-vn1-25321104
2025-08-04 02:53:19,530 - DEBUG - Response for deleting network ()
2025-08-04 02:53:20,832 - DEBUG - No XMPP flaps were noticed during the test
2025-08-04 02:53:20,832 - INFO - END TEST : test_ports_specific_subnet_ip : PASSED[0:00:28]
2025-08-04 02:53:20,832 - INFO - --------------------------------------------------------------------------------
2025-08-04 02:53:21,599 - INFO - Deleted project: ctest-TestPorts-10437657, ID : 17f872c7-feda-4a00-88c0-2d399f51225f