2024-10-24 09:27:42,698 - INFO - Domain Default found not creating 2024-10-24 09:27:42,911 - INFO - Project ctest-TestBasicPolicy-38184171 not found, creating it 2024-10-24 09:27:43,423 - INFO - Created Project:ctest-TestBasicPolicy-38184171, ID : 6f643d82-725d-4d0e-9fce-fd97a51cdd6b 2024-10-24 09:27:45,090 - INFO - ================================================================================ 2024-10-24 09:27:45,090 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-24 09:27:45,090 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2024-10-24 09:27:45,344 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.12': '0'}} with 2024-10-24 09:27:45,344 - INFO - Initial checks done. Running the testcase now 2024-10-24 09:27:45,344 - INFO - 2024-10-24 09:27:46,045 - DEBUG - Response for create_network : {'network': {'id': '81b29519-4090-4c28-9819-49f7e63ac41b', 'name': 'ctest-vn-26397928', 'tenant_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'project_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38184171', 'ctest-vn-26397928'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 09:27:46,227 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e8b0d48-edbd-48f2-853d-7243b24e0942', 'name': '', 'tenant_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'network_id': '81b29519-4090-4c28-9819-49f7e63ac41b', 'ip_version': 4, 'cidr': '140.8.29.0/26', 'allocation_pools': [{'start': '140.8.29.2', 'end': '140.8.29.62'}], 'gateway_ip': '140.8.29.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.8.29.2', 'tags': [], 'project_id': '6f643d82725d4d0e9fcefd97a51cdd6b'}} 2024-10-24 09:27:46,249 - INFO - Created VN ctest-vn-26397928 2024-10-24 09:27:46,314 - DEBUG - VN ctest-vn-26397928 UUID is 81b29519-4090-4c28-9819-49f7e63ac41b 2024-10-24 09:27:46,648 - DEBUG - Response for create_network : {'network': {'id': '96b9f96c-3801-44dc-8bb4-b5551dc4c044', 'name': 'ctest-vn-32821477', 'tenant_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'project_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38184171', 'ctest-vn-32821477'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 09:27:46,911 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db415144-d993-4ca5-981d-942634492393', 'name': '', 'tenant_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'network_id': '96b9f96c-3801-44dc-8bb4-b5551dc4c044', 'ip_version': 4, 'cidr': '16.208.153.0/26', 'allocation_pools': [{'start': '16.208.153.2', 'end': '16.208.153.62'}], 'gateway_ip': '16.208.153.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.208.153.2', 'tags': [], 'project_id': '6f643d82725d4d0e9fcefd97a51cdd6b'}} 2024-10-24 09:27:46,933 - INFO - Created VN ctest-vn-32821477 2024-10-24 09:27:46,994 - DEBUG - VN ctest-vn-32821477 UUID is 96b9f96c-3801-44dc-8bb4-b5551dc4c044 2024-10-24 09:27:47,133 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-26397928, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-32821477, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2024-10-24 09:27:47,477 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81b29519-4090-4c28-9819-49f7e63ac41b', 'name': 'ctest-vn-26397928', 'tenant_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'project_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e8b0d48-edbd-48f2-853d-7243b24e0942'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38184171', 'ctest-vn-26397928'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38184171', 'ctest-policy-allow-all-88703926']], 'subnet_ipam': [{'subnet_cidr': '140.8.29.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-24 09:27:47,778 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '96b9f96c-3801-44dc-8bb4-b5551dc4c044', 'name': 'ctest-vn-32821477', 'tenant_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'project_id': '6f643d82725d4d0e9fcefd97a51cdd6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db415144-d993-4ca5-981d-942634492393'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38184171', 'ctest-vn-32821477'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38184171', 'ctest-policy-allow-all-88703926']], 'subnet_ipam': [{'subnet_cidr': '16.208.153.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-24 09:27:47,962 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-24 09:27:48,279 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-24 09:27:48,320 - DEBUG - Requesting: http://10.0.0.43:8082/domain/1ca953df-fadf-4f68-8030-feae95965e14 2024-10-24 09:27:48,340 - DEBUG - Requesting: http://10.0.0.43:8082/project/6f643d82-725d-4d0e-9fce-fd97a51cdd6b 2024-10-24 09:27:48,432 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/81b29519-4090-4c28-9819-49f7e63ac41b 2024-10-24 09:27:48,450 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/81b29519-4090-4c28-9819-49f7e63ac41b 2024-10-24 09:27:48,467 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/4337e3ad-9cb0-4970-abc7-7e781acb6843 2024-10-24 09:27:48,478 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/4337e3ad-9cb0-4970-abc7-7e781acb6843 2024-10-24 09:27:48,490 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/4d3ee92c-76db-4704-a2de-faecec322d9e 2024-10-24 09:27:48,500 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-24 09:27:48,500 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/81b29519-4090-4c28-9819-49f7e63ac41b 2024-10-24 09:27:48,515 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/4337e3ad-9cb0-4970-abc7-7e781acb6843 2024-10-24 09:27:48,540 - INFO - Verified VN network id 9 for VN 81b29519-4090-4c28-9819-49f7e63ac41b 2024-10-24 09:27:48,540 - INFO - Verifications in API Server for VN ctest-vn-26397928 passed 2024-10-24 09:27:48,540 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/81b29519-4090-4c28-9819-49f7e63ac41b 2024-10-24 09:27:48,556 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/4337e3ad-9cb0-4970-abc7-7e781acb6843 2024-10-24 09:27:48,571 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/4337e3ad-9cb0-4970-abc7-7e781acb6843 2024-10-24 09:27:48,586 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/4d3ee92c-76db-4704-a2de-faecec322d9e 2024-10-24 09:27:48,606 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-26397928', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38184171', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9345696112437120040', 'uuid-lslong': '10959872497251173403'}, 'enable': 'true', 'created': '2024-10-24T09:27:46', 'last-modified': '2024-10-24T09:27:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.155003'} 2024-10-24 09:27:48,617 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-24 09:27:48,617 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26397928 passed 2024-10-24 09:27:48,617 - DEBUG - ====Verifying policy data for ctest-vn-26397928 in API_Server ====== 2024-10-24 09:27:48,617 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-24 09:27:48,624 - DEBUG - Requesting: http://10.0.0.43:8082/domain/1ca953df-fadf-4f68-8030-feae95965e14 2024-10-24 09:27:48,642 - DEBUG - Requesting: http://10.0.0.43:8082/project/6f643d82-725d-4d0e-9fce-fd97a51cdd6b 2024-10-24 09:27:48,740 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/81b29519-4090-4c28-9819-49f7e63ac41b 2024-10-24 09:27:48,756 - DEBUG - ==>Verifying data for policy with id: 032ca906-9132-4892-976f-b6e0f1883b76, fqn: ['default-domain', 'ctest-TestBasicPolicy-38184171', 'ctest-policy-allow-all-88703926'] 2024-10-24 09:27:48,756 - INFO - VN ctest-vn-26397928 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-24 09:27:48,756 - DEBUG - Verifying the vn in opserver 2024-10-24 09:27:48,756 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-26397928 virtual network link through opserver 10.0.0.43 2024-10-24 09:27:48,757 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks 2024-10-24 09:27:49,062 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks 2024-10-24 09:27:49,146 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-26397928', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-26397928?flat'} 2024-10-24 09:27:49,146 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-26397928 is found in opserver 2024-10-24 09:27:49,159 - DEBUG - Do not have enough data to verify VN in agent 2024-10-24 09:27:49,168 - DEBUG - VRF ids for VN ctest-vn-26397928: {} 2024-10-24 09:27:49,168 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-24 09:27:49,176 - DEBUG - Requesting: http://10.0.0.43:8082/domain/1ca953df-fadf-4f68-8030-feae95965e14 2024-10-24 09:27:49,191 - DEBUG - Requesting: http://10.0.0.43:8082/project/6f643d82-725d-4d0e-9fce-fd97a51cdd6b 2024-10-24 09:27:49,287 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/96b9f96c-3801-44dc-8bb4-b5551dc4c044 2024-10-24 09:27:49,308 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/96b9f96c-3801-44dc-8bb4-b5551dc4c044 2024-10-24 09:27:49,324 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/0bac9bc0-52e7-4a82-8dda-5f25fae157f0 2024-10-24 09:27:49,334 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/0bac9bc0-52e7-4a82-8dda-5f25fae157f0 2024-10-24 09:27:49,343 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/509491c5-b018-4135-a5b8-870eb93f1140 2024-10-24 09:27:49,353 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-24 09:27:49,353 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/96b9f96c-3801-44dc-8bb4-b5551dc4c044 2024-10-24 09:27:49,369 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/0bac9bc0-52e7-4a82-8dda-5f25fae157f0 2024-10-24 09:27:49,396 - INFO - Verified VN network id 10 for VN 96b9f96c-3801-44dc-8bb4-b5551dc4c044 2024-10-24 09:27:49,399 - INFO - Verifications in API Server for VN ctest-vn-32821477 passed 2024-10-24 09:27:49,399 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/96b9f96c-3801-44dc-8bb4-b5551dc4c044 2024-10-24 09:27:49,416 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/0bac9bc0-52e7-4a82-8dda-5f25fae157f0 2024-10-24 09:27:49,428 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/0bac9bc0-52e7-4a82-8dda-5f25fae157f0 2024-10-24 09:27:49,437 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/509491c5-b018-4135-a5b8-870eb93f1140 2024-10-24 09:27:49,454 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-32821477', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38184171', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10860986219572053212', 'uuid-lslong': '10066870444256182340'}, 'enable': 'true', 'created': '2024-10-24T09:27:46', 'last-modified': '2024-10-24T09:27:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.710374'} 2024-10-24 09:27:49,462 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-24 09:27:49,462 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32821477 passed 2024-10-24 09:27:49,463 - DEBUG - ====Verifying policy data for ctest-vn-32821477 in API_Server ====== 2024-10-24 09:27:49,463 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-24 09:27:49,470 - DEBUG - Requesting: http://10.0.0.43:8082/domain/1ca953df-fadf-4f68-8030-feae95965e14 2024-10-24 09:27:49,486 - DEBUG - Requesting: http://10.0.0.43:8082/project/6f643d82-725d-4d0e-9fce-fd97a51cdd6b 2024-10-24 09:27:49,577 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/96b9f96c-3801-44dc-8bb4-b5551dc4c044 2024-10-24 09:27:49,594 - DEBUG - ==>Verifying data for policy with id: 032ca906-9132-4892-976f-b6e0f1883b76, fqn: ['default-domain', 'ctest-TestBasicPolicy-38184171', 'ctest-policy-allow-all-88703926'] 2024-10-24 09:27:49,594 - INFO - VN ctest-vn-32821477 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-24 09:27:49,594 - DEBUG - Verifying the vn in opserver 2024-10-24 09:27:49,594 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-32821477 virtual network link through opserver 10.0.0.43 2024-10-24 09:27:49,594 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks 2024-10-24 09:27:49,611 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-32821477', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-32821477?flat'} 2024-10-24 09:27:49,611 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-32821477 is found in opserver 2024-10-24 09:27:49,623 - DEBUG - Do not have enough data to verify VN in agent 2024-10-24 09:27:49,629 - DEBUG - VRF ids for VN ctest-vn-32821477: {} 2024-10-24 09:27:49,694 - DEBUG - Services list from nova: [, , ] 2024-10-24 09:27:50,944 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2137-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2137-1) 2024-10-24 09:27:52,718 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2137-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2137-1) 2024-10-24 09:27:52,719 - INFO - Waiting for VM ctest-TestBasicPolicy-38184171-20533089 to be up.. 2024-10-24 09:27:52,900 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-24 09:27:58,001 - DEBUG - VM is in ACTIVE state now 2024-10-24 09:27:58,002 - INFO - VM name : ctest-TestBasicPolicy-38184171-20533089 2024-10-24 09:27:58,103 - DEBUG - VM ctest-TestBasicPolicy-38184171-20533089 ID is 2c4d1f91-8726-4f60-a314-2493772250a6 2024-10-24 09:27:58,124 - DEBUG - VM ctest-TestBasicPolicy-38184171-20533089 launched on Node cn-jenkins-deploy-platform-ansible-os-2137-1 2024-10-24 09:27:58,227 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/2c4d1f91-8726-4f60-a314-2493772250a6 2024-10-24 09:27:58,241 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/68771b58-ac31-4a6f-8eb8-b2264db766e9 2024-10-24 09:28:01,539 - 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 1029ms') 2024-10-24 09:28:01,539 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38184171-20533089 failed! 2024-10-24 09:28:01,602 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38184171:ctest-vn-26397928 is 140.8.29.1 and allocation pool is NOT set 2024-10-24 09:28:03,666 - 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=9.22 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.15 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 = 1.146/5.180/9.215/4.034 ms') 2024-10-24 09:28:03,666 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38184171-20533089 passed 2024-10-24 09:28:03,826 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 09:28:03,826 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38184171-20533089, IP 140.8.29.3, Port 22 2024-10-24 09:28:03,892 - 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': ''} 2024-10-24 09:28:03,986 - DEBUG - VM ctest-TestBasicPolicy-38184171-20533089 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-24 09:28:08,987 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 09:28:08,987 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38184171-20533089, IP 140.8.29.3, Port 22 2024-10-24 09:28:09,156 - DEBUG - VM ctest-TestBasicPolicy-38184171-20533089 is ready for SSH connections 2024-10-24 09:28:09,157 - INFO - Waiting for VM ctest-TestBasicPolicy-38184171-67146436 to be up.. 2024-10-24 09:28:09,254 - DEBUG - VM is in ACTIVE state now 2024-10-24 09:28:09,255 - INFO - VM name : ctest-TestBasicPolicy-38184171-67146436 2024-10-24 09:28:09,349 - DEBUG - VM ctest-TestBasicPolicy-38184171-67146436 ID is 3d221e2d-dba9-4cd8-81be-6e1b1d7db347 2024-10-24 09:28:09,349 - DEBUG - VM ctest-TestBasicPolicy-38184171-67146436 launched on Node cn-jenkins-deploy-platform-ansible-os-2137-1 2024-10-24 09:28:09,459 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/3d221e2d-dba9-4cd8-81be-6e1b1d7db347 2024-10-24 09:28:09,476 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/32afa550-e86f-4e01-b034-2afed732a80b 2024-10-24 09:28:10,752 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=2.99 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.640 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.640/1.815/2.991/1.175 ms') 2024-10-24 09:28:10,752 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-38184171-67146436 passed 2024-10-24 09:28:10,918 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 09:28:10,918 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38184171-67146436, IP 16.208.153.3, Port 22 2024-10-24 09:28:11,088 - DEBUG - VM ctest-TestBasicPolicy-38184171-67146436 is ready for SSH connections 2024-10-24 09:28:11,088 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 09:28:11,088 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.208.153.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123 2024-10-24 09:28:11,088 - DEBUG - ping -s 56 -c 3 -W 1 16.208.153.3 2024-10-24 09:28:15,175 - DEBUG - PING 16.208.153.3 (16.208.153.3): 56 data bytes 64 bytes from 16.208.153.3: seq=0 ttl=63 time=4.530 ms 64 bytes from 16.208.153.3: seq=1 ttl=63 time=0.901 ms 64 bytes from 16.208.153.3: seq=2 ttl=63 time=1.251 ms --- 16.208.153.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.901/2.227/4.530 ms 2024-10-24 09:28:15,175 - INFO - Ping to IP 16.208.153.3 from VM ctest-TestBasicPolicy-38184171-20533089 passed 2024-10-24 09:28:15,390 - DEBUG - Policy Update Response {"network-policy": {"uuid": "032ca906-9132-4892-976f-b6e0f1883b76", "href": "http://10.0.0.43:8082/network-policy/032ca906-9132-4892-976f-b6e0f1883b76"}} 2024-10-24 09:28:15,390 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 09:28:15,390 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.208.153.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123 2024-10-24 09:28:15,390 - DEBUG - ping -s 56 -c 3 -W 1 16.208.153.3 2024-10-24 09:28:18,633 - DEBUG - PING 16.208.153.3 (16.208.153.3): 56 data bytes 64 bytes from 16.208.153.3: seq=0 ttl=63 time=1.425 ms --- 16.208.153.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.425/1.425/1.425 ms 2024-10-24 09:28:18,634 - WARNING - Ping to IP 16.208.153.3 from VM ctest-TestBasicPolicy-38184171-20533089 failed 2024-10-24 09:28:18,634 - INFO - Deleting VM ctest-TestBasicPolicy-38184171-67146436 2024-10-24 09:28:18,713 - INFO - Deleting VM ctest-TestBasicPolicy-38184171-20533089 2024-10-24 09:28:19,183 - INFO - Deleted policy ctest-policy-allow-all-88703926 2024-10-24 09:28:19,183 - INFO - Deleting VN ctest-vn-32821477 2024-10-24 09:28:19,237 - DEBUG - VN 96b9f96c-3801-44dc-8bb4-b5551dc4c044 still in use: Unable to complete operation on network 96b9f96c-3801-44dc-8bb4-b5551dc4c044. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-570c8918-02dd-434f-b5c8-ef5a293fb9eb'] 2024-10-24 09:28:19,237 - WARNING - Deleting VN ctest-vn-32821477 failed..Will retry 2024-10-24 09:28:21,364 - DEBUG - Response for deleting network () 2024-10-24 09:28:21,364 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/0bac9bc0-52e7-4a82-8dda-5f25fae157f0 2024-10-24 09:28:21,383 - DEBUG - Response Code: 404 2024-10-24 09:28:21,383 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-24 09:28:21,392 - DEBUG - Requesting: http://10.0.0.43:8082/domain/1ca953df-fadf-4f68-8030-feae95965e14 2024-10-24 09:28:21,417 - DEBUG - Requesting: http://10.0.0.43:8082/project/6f643d82-725d-4d0e-9fce-fd97a51cdd6b 2024-10-24 09:28:21,529 - INFO - Validated that VN ctest-vn-32821477 is not found in API Server 2024-10-24 09:28:21,542 - DEBUG - VN ctest-vn-32821477 is not present in Agent 10.0.0.43 2024-10-24 09:28:21,542 - INFO - Validated that VN ctest-vn-32821477 is not in any agent 2024-10-24 09:28:21,567 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-32821477 info 2024-10-24 09:28:21,567 - INFO - Deleting VN ctest-vn-26397928 2024-10-24 09:28:21,723 - DEBUG - Response for deleting network () 2024-10-24 09:28:21,724 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/4337e3ad-9cb0-4970-abc7-7e781acb6843 2024-10-24 09:28:21,729 - DEBUG - Response Code: 404 2024-10-24 09:28:21,730 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-24 09:28:21,738 - DEBUG - Requesting: http://10.0.0.43:8082/domain/1ca953df-fadf-4f68-8030-feae95965e14 2024-10-24 09:28:21,796 - DEBUG - Requesting: http://10.0.0.43:8082/project/6f643d82-725d-4d0e-9fce-fd97a51cdd6b 2024-10-24 09:28:21,896 - INFO - Validated that VN ctest-vn-26397928 is not found in API Server 2024-10-24 09:28:21,908 - DEBUG - VN ctest-vn-26397928 is not present in Agent 10.0.0.43 2024-10-24 09:28:21,908 - INFO - Validated that VN ctest-vn-26397928 is not in any agent 2024-10-24 09:28:21,930 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26397928 info 2024-10-24 09:28:22,184 - DEBUG - No XMPP flaps were noticed during the test 2024-10-24 09:28:22,184 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2024-10-24 09:28:22,184 - INFO - -------------------------------------------------------------------------------- 2024-10-24 09:28:22,983 - INFO - Deleted project: ctest-TestBasicPolicy-38184171, ID : 6f643d82-725d-4d0e-9fce-fd97a51cdd6b