2025-03-25 05:42:17,380 - INFO - Domain Default found not creating 2025-03-25 05:42:17,545 - INFO - Project ctest-TestBasicPolicy-62399388 not found, creating it 2025-03-25 05:42:18,028 - INFO - Created Project:ctest-TestBasicPolicy-62399388, ID : ca1739ae-590a-4550-95a0-d03181085590 2025-03-25 05:42:19,658 - INFO - ================================================================================ 2025-03-25 05:42:19,658 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-25 05:42:19,658 - 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 2025-03-25 05:42:19,927 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.11': '0'}} with 2025-03-25 05:42:19,927 - INFO - Initial checks done. Running the testcase now 2025-03-25 05:42:19,927 - INFO - 2025-03-25 05:42:20,592 - DEBUG - Response for create_network : {'network': {'id': '3cf801e1-54a4-41a1-8d56-ff62b720408b', 'name': 'ctest-vn-09925309', 'tenant_id': 'ca1739ae590a455095a0d03181085590', 'project_id': 'ca1739ae590a455095a0d03181085590', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62399388', 'ctest-vn-09925309'], 'port_security_enabled': True, 'description': ''}} 2025-03-25 05:42:20,787 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e8adf0ad-29cc-4e26-9add-33b0cd762eae', 'name': '', 'tenant_id': 'ca1739ae590a455095a0d03181085590', 'network_id': '3cf801e1-54a4-41a1-8d56-ff62b720408b', 'ip_version': 4, 'cidr': '210.132.166.0/26', 'allocation_pools': [{'start': '210.132.166.2', 'end': '210.132.166.62'}], 'gateway_ip': '210.132.166.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.132.166.2', 'tags': [], 'project_id': 'ca1739ae590a455095a0d03181085590'}} 2025-03-25 05:42:20,815 - INFO - Created VN ctest-vn-09925309 2025-03-25 05:42:20,874 - DEBUG - VN ctest-vn-09925309 UUID is 3cf801e1-54a4-41a1-8d56-ff62b720408b 2025-03-25 05:42:21,218 - DEBUG - Response for create_network : {'network': {'id': 'cfc66bb2-fbae-4ca2-aaf7-96e2564fba47', 'name': 'ctest-vn-69868566', 'tenant_id': 'ca1739ae590a455095a0d03181085590', 'project_id': 'ca1739ae590a455095a0d03181085590', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62399388', 'ctest-vn-69868566'], 'port_security_enabled': True, 'description': ''}} 2025-03-25 05:42:21,462 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf2bc3e3-667b-4e2b-8acd-76cb57588d5a', 'name': '', 'tenant_id': 'ca1739ae590a455095a0d03181085590', 'network_id': 'cfc66bb2-fbae-4ca2-aaf7-96e2564fba47', 'ip_version': 4, 'cidr': '38.112.32.0/26', 'allocation_pools': [{'start': '38.112.32.2', 'end': '38.112.32.62'}], 'gateway_ip': '38.112.32.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.112.32.2', 'tags': [], 'project_id': 'ca1739ae590a455095a0d03181085590'}} 2025-03-25 05:42:21,485 - INFO - Created VN ctest-vn-69868566 2025-03-25 05:42:21,542 - DEBUG - VN ctest-vn-69868566 UUID is cfc66bb2-fbae-4ca2-aaf7-96e2564fba47 2025-03-25 05:42:21,673 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-09925309, 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-62399388:ctest-vn-69868566, 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] 2025-03-25 05:42:22,014 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3cf801e1-54a4-41a1-8d56-ff62b720408b', 'name': 'ctest-vn-09925309', 'tenant_id': 'ca1739ae590a455095a0d03181085590', 'project_id': 'ca1739ae590a455095a0d03181085590', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e8adf0ad-29cc-4e26-9add-33b0cd762eae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62399388', 'ctest-vn-09925309'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62399388', 'ctest-policy-allow-all-11184087']], 'subnet_ipam': [{'subnet_cidr': '210.132.166.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-25 05:42:22,348 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cfc66bb2-fbae-4ca2-aaf7-96e2564fba47', 'name': 'ctest-vn-69868566', 'tenant_id': 'ca1739ae590a455095a0d03181085590', 'project_id': 'ca1739ae590a455095a0d03181085590', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bf2bc3e3-667b-4e2b-8acd-76cb57588d5a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62399388', 'ctest-vn-69868566'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62399388', 'ctest-policy-allow-all-11184087']], 'subnet_ipam': [{'subnet_cidr': '38.112.32.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-25 05:42:22,514 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-25 05:42:22,822 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-25 05:42:22,864 - DEBUG - Requesting: http://10.0.0.22:8082/domain/68d3f220-2d73-4b3e-a52f-b5d3b6856a46 2025-03-25 05:42:22,883 - DEBUG - Requesting: http://10.0.0.22:8082/project/ca1739ae-590a-4550-95a0-d03181085590 2025-03-25 05:42:22,984 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3cf801e1-54a4-41a1-8d56-ff62b720408b 2025-03-25 05:42:22,998 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3cf801e1-54a4-41a1-8d56-ff62b720408b 2025-03-25 05:42:23,014 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f3e67c07-024d-40a2-a22c-5e0cce3778d1 2025-03-25 05:42:23,026 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f3e67c07-024d-40a2-a22c-5e0cce3778d1 2025-03-25 05:42:23,037 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/93a2edb7-4b0c-4140-89fa-4b3c3b8afc84 2025-03-25 05:42:23,047 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-25 05:42:23,047 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3cf801e1-54a4-41a1-8d56-ff62b720408b 2025-03-25 05:42:23,060 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f3e67c07-024d-40a2-a22c-5e0cce3778d1 2025-03-25 05:42:23,079 - INFO - Verified VN network id 8 for VN 3cf801e1-54a4-41a1-8d56-ff62b720408b 2025-03-25 05:42:23,080 - INFO - Verifications in API Server for VN ctest-vn-09925309 passed 2025-03-25 05:42:23,080 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3cf801e1-54a4-41a1-8d56-ff62b720408b 2025-03-25 05:42:23,092 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f3e67c07-024d-40a2-a22c-5e0cce3778d1 2025-03-25 05:42:23,102 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f3e67c07-024d-40a2-a22c-5e0cce3778d1 2025-03-25 05:42:23,111 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/93a2edb7-4b0c-4140-89fa-4b3c3b8afc84 2025-03-25 05:42:23,127 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-09925309', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62399388', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4393263503799239073', 'uuid-lslong': '10184608406789177483'}, 'enable': 'true', 'created': '2025-03-25T05:42:20', 'last-modified': '2025-03-25T05:42:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.158333'} 2025-03-25 05:42:23,134 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-25 05:42:23,134 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09925309 passed 2025-03-25 05:42:23,135 - DEBUG - ====Verifying policy data for ctest-vn-09925309 in API_Server ====== 2025-03-25 05:42:23,135 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-25 05:42:23,142 - DEBUG - Requesting: http://10.0.0.22:8082/domain/68d3f220-2d73-4b3e-a52f-b5d3b6856a46 2025-03-25 05:42:23,156 - DEBUG - Requesting: http://10.0.0.22:8082/project/ca1739ae-590a-4550-95a0-d03181085590 2025-03-25 05:42:23,230 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3cf801e1-54a4-41a1-8d56-ff62b720408b 2025-03-25 05:42:23,240 - DEBUG - ==>Verifying data for policy with id: 4f54ca5d-6c7f-488b-b573-5a6d6f7b4260, fqn: ['default-domain', 'ctest-TestBasicPolicy-62399388', 'ctest-policy-allow-all-11184087'] 2025-03-25 05:42:23,241 - INFO - VN ctest-vn-09925309 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-25 05:42:23,241 - DEBUG - Verifying the vn in opserver 2025-03-25 05:42:23,241 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-09925309 virtual network link through opserver 10.0.0.22 2025-03-25 05:42:23,241 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-03-25 05:42:23,553 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-03-25 05:42:23,628 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-09925309', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-09925309?flat'} 2025-03-25 05:42:23,628 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-09925309 is found in opserver 2025-03-25 05:42:23,643 - DEBUG - Do not have enough data to verify VN in agent 2025-03-25 05:42:23,650 - DEBUG - VRF ids for VN ctest-vn-09925309: {} 2025-03-25 05:42:23,650 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-25 05:42:23,656 - DEBUG - Requesting: http://10.0.0.22:8082/domain/68d3f220-2d73-4b3e-a52f-b5d3b6856a46 2025-03-25 05:42:23,672 - DEBUG - Requesting: http://10.0.0.22:8082/project/ca1739ae-590a-4550-95a0-d03181085590 2025-03-25 05:42:23,762 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cfc66bb2-fbae-4ca2-aaf7-96e2564fba47 2025-03-25 05:42:23,775 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cfc66bb2-fbae-4ca2-aaf7-96e2564fba47 2025-03-25 05:42:23,786 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b36ceded-d454-4f66-850c-b6e0047b1b08 2025-03-25 05:42:23,794 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b36ceded-d454-4f66-850c-b6e0047b1b08 2025-03-25 05:42:23,805 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9f4580a9-32da-4e95-8aa2-90076b820508 2025-03-25 05:42:23,814 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-25 05:42:23,814 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cfc66bb2-fbae-4ca2-aaf7-96e2564fba47 2025-03-25 05:42:23,826 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b36ceded-d454-4f66-850c-b6e0047b1b08 2025-03-25 05:42:23,850 - INFO - Verified VN network id 9 for VN cfc66bb2-fbae-4ca2-aaf7-96e2564fba47 2025-03-25 05:42:23,850 - INFO - Verifications in API Server for VN ctest-vn-69868566 passed 2025-03-25 05:42:23,850 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cfc66bb2-fbae-4ca2-aaf7-96e2564fba47 2025-03-25 05:42:23,874 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b36ceded-d454-4f66-850c-b6e0047b1b08 2025-03-25 05:42:23,885 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b36ceded-d454-4f66-850c-b6e0047b1b08 2025-03-25 05:42:23,894 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9f4580a9-32da-4e95-8aa2-90076b820508 2025-03-25 05:42:23,910 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-69868566', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62399388', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14971772427710647458', 'uuid-lslong': '12319481204550122055'}, 'enable': 'true', 'created': '2025-03-25T05:42:21', 'last-modified': '2025-03-25T05:42:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.655168'} 2025-03-25 05:42:23,918 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-25 05:42:23,919 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69868566 passed 2025-03-25 05:42:23,919 - DEBUG - ====Verifying policy data for ctest-vn-69868566 in API_Server ====== 2025-03-25 05:42:23,919 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-25 05:42:23,926 - DEBUG - Requesting: http://10.0.0.22:8082/domain/68d3f220-2d73-4b3e-a52f-b5d3b6856a46 2025-03-25 05:42:23,940 - DEBUG - Requesting: http://10.0.0.22:8082/project/ca1739ae-590a-4550-95a0-d03181085590 2025-03-25 05:42:24,020 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cfc66bb2-fbae-4ca2-aaf7-96e2564fba47 2025-03-25 05:42:24,033 - DEBUG - ==>Verifying data for policy with id: 4f54ca5d-6c7f-488b-b573-5a6d6f7b4260, fqn: ['default-domain', 'ctest-TestBasicPolicy-62399388', 'ctest-policy-allow-all-11184087'] 2025-03-25 05:42:24,034 - INFO - VN ctest-vn-69868566 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-25 05:42:24,034 - DEBUG - Verifying the vn in opserver 2025-03-25 05:42:24,034 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-69868566 virtual network link through opserver 10.0.0.22 2025-03-25 05:42:24,034 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-03-25 05:42:24,047 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-69868566', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-69868566?flat'} 2025-03-25 05:42:24,047 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-69868566 is found in opserver 2025-03-25 05:42:24,061 - DEBUG - Do not have enough data to verify VN in agent 2025-03-25 05:42:24,067 - DEBUG - VRF ids for VN ctest-vn-69868566: {} 2025-03-25 05:42:24,128 - DEBUG - Services list from nova: [, , ] 2025-03-25 05:42:25,246 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2948-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2948-1) 2025-03-25 05:42:26,602 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2948-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2948-1) 2025-03-25 05:42:26,602 - INFO - Waiting for VM ctest-TestBasicPolicy-62399388-64429512 to be up.. 2025-03-25 05:42:26,710 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-25 05:42:31,806 - DEBUG - VM is in ACTIVE state now 2025-03-25 05:42:31,806 - INFO - VM name : ctest-TestBasicPolicy-62399388-64429512 2025-03-25 05:42:31,915 - DEBUG - VM ctest-TestBasicPolicy-62399388-64429512 ID is 3e16c576-4402-42a3-afc9-5d610c492419 2025-03-25 05:42:31,940 - DEBUG - VM ctest-TestBasicPolicy-62399388-64429512 launched on Node cn-jenkins-deploy-platform-ansible-os-2948-1 2025-03-25 05:42:32,037 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/3e16c576-4402-42a3-afc9-5d610c492419 2025-03-25 05:42:32,048 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/a4f9984b-0978-4798-bc69-e04bab3f0eb9 2025-03-25 05:42:35,308 - 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 1010ms') 2025-03-25 05:42:35,308 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-62399388-64429512 failed! 2025-03-25 05:42:35,366 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-09925309 is 210.132.166.1 and allocation pool is NOT set 2025-03-25 05:42:37,439 - 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=10.9 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=6.51 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 = 6.508/8.682/10.857/2.174 ms') 2025-03-25 05:42:37,439 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-62399388-64429512 passed 2025-03-25 05:42:37,598 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 05:42:37,598 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62399388-64429512, IP 210.132.166.3, Port 22 2025-03-25 05:42:37,755 - DEBUG - VM ctest-TestBasicPolicy-62399388-64429512 is ready for SSH connections 2025-03-25 05:42:37,755 - INFO - Waiting for VM ctest-TestBasicPolicy-62399388-15261122 to be up.. 2025-03-25 05:42:37,844 - DEBUG - VM is in ACTIVE state now 2025-03-25 05:42:37,844 - INFO - VM name : ctest-TestBasicPolicy-62399388-15261122 2025-03-25 05:42:37,932 - DEBUG - VM ctest-TestBasicPolicy-62399388-15261122 ID is 98b1dae9-d363-4f77-b03c-ba48695216be 2025-03-25 05:42:37,933 - DEBUG - VM ctest-TestBasicPolicy-62399388-15261122 launched on Node cn-jenkins-deploy-platform-ansible-os-2948-1 2025-03-25 05:42:38,018 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/98b1dae9-d363-4f77-b03c-ba48695216be 2025-03-25 05:42:38,028 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/f79509d8-768b-4d56-a527-877c59a4e402 2025-03-25 05:42:39,275 - 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=3.47 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.723 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.723/2.098/3.474/1.375 ms') 2025-03-25 05:42:39,276 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-62399388-15261122 passed 2025-03-25 05:42:39,434 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 05:42:39,434 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62399388-15261122, IP 38.112.32.3, Port 22 2025-03-25 05:42:39,602 - DEBUG - VM ctest-TestBasicPolicy-62399388-15261122 is ready for SSH connections 2025-03-25 05:42:39,602 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 05:42:39,603 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 38.112.32.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-03-25 05:42:39,603 - DEBUG - ping -s 56 -c 3 -W 1 38.112.32.3 2025-03-25 05:42:43,797 - DEBUG - PING 38.112.32.3 (38.112.32.3): 56 data bytes 64 bytes from 38.112.32.3: seq=0 ttl=63 time=5.205 ms 64 bytes from 38.112.32.3: seq=1 ttl=63 time=2.120 ms 64 bytes from 38.112.32.3: seq=2 ttl=63 time=1.293 ms --- 38.112.32.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.293/2.872/5.205 ms 2025-03-25 05:42:43,797 - INFO - Ping to IP 38.112.32.3 from VM ctest-TestBasicPolicy-62399388-64429512 passed 2025-03-25 05:42:43,985 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4f54ca5d-6c7f-488b-b573-5a6d6f7b4260", "href": "http://10.0.0.22:8082/network-policy/4f54ca5d-6c7f-488b-b573-5a6d6f7b4260"}} 2025-03-25 05:42:43,986 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 05:42:43,986 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 38.112.32.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-03-25 05:42:43,986 - DEBUG - ping -s 56 -c 3 -W 1 38.112.32.3 2025-03-25 05:42:47,262 - DEBUG - PING 38.112.32.3 (38.112.32.3): 56 data bytes 64 bytes from 38.112.32.3: seq=0 ttl=63 time=1.552 ms --- 38.112.32.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.552/1.552/1.552 ms 2025-03-25 05:42:47,262 - WARNING - Ping to IP 38.112.32.3 from VM ctest-TestBasicPolicy-62399388-64429512 failed 2025-03-25 05:42:47,262 - INFO - Deleting VM ctest-TestBasicPolicy-62399388-15261122 2025-03-25 05:42:47,346 - INFO - Deleting VM ctest-TestBasicPolicy-62399388-64429512 2025-03-25 05:42:47,770 - INFO - Deleted policy ctest-policy-allow-all-11184087 2025-03-25 05:42:47,771 - INFO - Deleting VN ctest-vn-69868566 2025-03-25 05:42:47,808 - DEBUG - VN cfc66bb2-fbae-4ca2-aaf7-96e2564fba47 still in use: Unable to complete operation on network cfc66bb2-fbae-4ca2-aaf7-96e2564fba47. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a1dc0bc1-ce43-4e99-a222-2f0c1e538050'] 2025-03-25 05:42:47,808 - WARNING - Deleting VN ctest-vn-69868566 failed..Will retry 2025-03-25 05:42:49,930 - DEBUG - Response for deleting network () 2025-03-25 05:42:49,930 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b36ceded-d454-4f66-850c-b6e0047b1b08 2025-03-25 05:42:49,939 - DEBUG - Response Code: 404 2025-03-25 05:42:49,939 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-25 05:42:49,947 - DEBUG - Requesting: http://10.0.0.22:8082/domain/68d3f220-2d73-4b3e-a52f-b5d3b6856a46 2025-03-25 05:42:50,003 - DEBUG - Requesting: http://10.0.0.22:8082/project/ca1739ae-590a-4550-95a0-d03181085590 2025-03-25 05:42:50,075 - INFO - Validated that VN ctest-vn-69868566 is not found in API Server 2025-03-25 05:42:50,089 - DEBUG - VN ctest-vn-69868566 is not present in Agent 10.0.0.22 2025-03-25 05:42:50,089 - INFO - Validated that VN ctest-vn-69868566 is not in any agent 2025-03-25 05:42:50,105 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-69868566 info 2025-03-25 05:42:50,105 - INFO - Deleting VN ctest-vn-09925309 2025-03-25 05:42:50,220 - DEBUG - Response for deleting network () 2025-03-25 05:42:50,220 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f3e67c07-024d-40a2-a22c-5e0cce3778d1 2025-03-25 05:42:50,226 - DEBUG - Response Code: 404 2025-03-25 05:42:50,227 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-25 05:42:50,233 - DEBUG - Requesting: http://10.0.0.22:8082/domain/68d3f220-2d73-4b3e-a52f-b5d3b6856a46 2025-03-25 05:42:50,287 - DEBUG - Requesting: http://10.0.0.22:8082/project/ca1739ae-590a-4550-95a0-d03181085590 2025-03-25 05:42:50,380 - INFO - Validated that VN ctest-vn-09925309 is not found in API Server 2025-03-25 05:42:50,393 - DEBUG - VN ctest-vn-09925309 is not present in Agent 10.0.0.22 2025-03-25 05:42:50,393 - INFO - Validated that VN ctest-vn-09925309 is not in any agent 2025-03-25 05:42:50,413 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-09925309 info 2025-03-25 05:42:50,680 - DEBUG - No XMPP flaps were noticed during the test
2025-03-25 05:42:50,680 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2025-03-25 05:42:50,680 - INFO - -------------------------------------------------------------------------------- 2025-03-25 05:42:51,383 - INFO - Deleted project: ctest-TestBasicPolicy-62399388, ID : ca1739ae-590a-4550-95a0-d03181085590