2025-03-28 18:17:55,556 - INFO - Domain Default found not creating 2025-03-28 18:17:55,724 - INFO - Project ctest-TestBasicPolicy-95816823 not found, creating it 2025-03-28 18:17:56,205 - INFO - Created Project:ctest-TestBasicPolicy-95816823, ID : 06ec53c6-6696-4775-9c8f-eefab6b52512 2025-03-28 18:17:57,761 - INFO - ================================================================================ 2025-03-28 18:17:57,761 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-28 18:17:57,761 - 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-28 18:17:58,022 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.5': '0'}} with 2025-03-28 18:17:58,022 - INFO - Initial checks done. Running the testcase now 2025-03-28 18:17:58,022 - INFO - 2025-03-28 18:17:58,605 - DEBUG - Response for create_network : {'network': {'id': '3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec', 'name': 'ctest-vn-81906114', 'tenant_id': '06ec53c6669647759c8feefab6b52512', 'project_id': '06ec53c6669647759c8feefab6b52512', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95816823', 'ctest-vn-81906114'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 18:17:58,805 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1da77ca-76ad-49aa-9f0b-9a700abd0bb3', 'name': '', 'tenant_id': '06ec53c6669647759c8feefab6b52512', 'network_id': '3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec', 'ip_version': 4, 'cidr': '82.42.34.64/26', 'allocation_pools': [{'start': '82.42.34.66', 'end': '82.42.34.126'}], 'gateway_ip': '82.42.34.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.42.34.66', 'tags': [], 'project_id': '06ec53c6669647759c8feefab6b52512'}} 2025-03-28 18:17:58,825 - INFO - Created VN ctest-vn-81906114 2025-03-28 18:17:58,881 - DEBUG - VN ctest-vn-81906114 UUID is 3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec 2025-03-28 18:17:59,231 - DEBUG - Response for create_network : {'network': {'id': 'e9c94229-309f-4740-815c-53c2e7cce45f', 'name': 'ctest-vn-70489536', 'tenant_id': '06ec53c6669647759c8feefab6b52512', 'project_id': '06ec53c6669647759c8feefab6b52512', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95816823', 'ctest-vn-70489536'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 18:17:59,460 - DEBUG - Response for create_subnet : {'subnet': {'id': '764c5f64-f7ba-4e9c-b36b-5b51c85a1d05', 'name': '', 'tenant_id': '06ec53c6669647759c8feefab6b52512', 'network_id': 'e9c94229-309f-4740-815c-53c2e7cce45f', 'ip_version': 4, 'cidr': '107.166.245.64/26', 'allocation_pools': [{'start': '107.166.245.66', 'end': '107.166.245.126'}], 'gateway_ip': '107.166.245.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.166.245.66', 'tags': [], 'project_id': '06ec53c6669647759c8feefab6b52512'}} 2025-03-28 18:17:59,479 - INFO - Created VN ctest-vn-70489536 2025-03-28 18:17:59,533 - DEBUG - VN ctest-vn-70489536 UUID is e9c94229-309f-4740-815c-53c2e7cce45f 2025-03-28 18:17:59,655 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-81906114, 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-95816823:ctest-vn-70489536, 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-28 18:17:59,973 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec', 'name': 'ctest-vn-81906114', 'tenant_id': '06ec53c6669647759c8feefab6b52512', 'project_id': '06ec53c6669647759c8feefab6b52512', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e1da77ca-76ad-49aa-9f0b-9a700abd0bb3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95816823', 'ctest-vn-81906114'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95816823', 'ctest-policy-allow-all-45300506']], 'subnet_ipam': [{'subnet_cidr': '82.42.34.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-28 18:18:00,277 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e9c94229-309f-4740-815c-53c2e7cce45f', 'name': 'ctest-vn-70489536', 'tenant_id': '06ec53c6669647759c8feefab6b52512', 'project_id': '06ec53c6669647759c8feefab6b52512', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['764c5f64-f7ba-4e9c-b36b-5b51c85a1d05'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95816823', 'ctest-vn-70489536'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95816823', 'ctest-policy-allow-all-45300506']], 'subnet_ipam': [{'subnet_cidr': '107.166.245.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-28 18:18:00,425 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-03-28 18:18:00,726 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-03-28 18:18:00,759 - DEBUG - Requesting: http://10.0.0.23:8082/domain/64cb566e-7451-49bf-8929-6e3dcc03b7fe 2025-03-28 18:18:00,775 - DEBUG - Requesting: http://10.0.0.23:8082/project/06ec53c6-6696-4775-9c8f-eefab6b52512 2025-03-28 18:18:00,855 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec 2025-03-28 18:18:00,870 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec 2025-03-28 18:18:00,884 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fb2629df-c60e-41b0-9b8c-8c8134d34426 2025-03-28 18:18:00,895 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fb2629df-c60e-41b0-9b8c-8c8134d34426 2025-03-28 18:18:00,905 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/7274eddf-cdf9-421d-9042-bc6b4fece4c1 2025-03-28 18:18:00,915 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-28 18:18:00,916 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec 2025-03-28 18:18:00,927 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fb2629df-c60e-41b0-9b8c-8c8134d34426 2025-03-28 18:18:00,947 - INFO - Verified VN network id 8 for VN 3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec 2025-03-28 18:18:00,947 - INFO - Verifications in API Server for VN ctest-vn-81906114 passed 2025-03-28 18:18:00,947 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec 2025-03-28 18:18:00,959 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fb2629df-c60e-41b0-9b8c-8c8134d34426 2025-03-28 18:18:00,970 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fb2629df-c60e-41b0-9b8c-8c8134d34426 2025-03-28 18:18:00,980 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/7274eddf-cdf9-421d-9042-bc6b4fece4c1 2025-03-28 18:18:00,994 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-81906114', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95816823', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4480631632345518041', 'uuid-lslong': '13775319653099694316'}, 'enable': 'true', 'created': '2025-03-28T18:17:58', 'last-modified': '2025-03-28T18:17:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.046098'} 2025-03-28 18:18:01,002 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-28 18:18:01,003 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81906114 passed 2025-03-28 18:18:01,003 - DEBUG - ====Verifying policy data for ctest-vn-81906114 in API_Server ====== 2025-03-28 18:18:01,003 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-03-28 18:18:01,011 - DEBUG - Requesting: http://10.0.0.23:8082/domain/64cb566e-7451-49bf-8929-6e3dcc03b7fe 2025-03-28 18:18:01,027 - DEBUG - Requesting: http://10.0.0.23:8082/project/06ec53c6-6696-4775-9c8f-eefab6b52512 2025-03-28 18:18:01,105 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3e2e66ba-ef55-4fd9-bf2b-c43d5e76e8ec 2025-03-28 18:18:01,116 - DEBUG - ==>Verifying data for policy with id: 6c9e7011-7a3f-4172-bcc0-272dc939c13e, fqn: ['default-domain', 'ctest-TestBasicPolicy-95816823', 'ctest-policy-allow-all-45300506'] 2025-03-28 18:18:01,116 - INFO - VN ctest-vn-81906114 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-28 18:18:01,116 - DEBUG - Verifying the vn in opserver 2025-03-28 18:18:01,116 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-81906114 virtual network link through opserver 10.0.0.23 2025-03-28 18:18:01,116 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-03-28 18:18:01,426 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-03-28 18:18:01,503 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-81906114', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-81906114?flat'} 2025-03-28 18:18:01,503 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-81906114 is found in opserver 2025-03-28 18:18:01,516 - DEBUG - Do not have enough data to verify VN in agent 2025-03-28 18:18:01,523 - DEBUG - VRF ids for VN ctest-vn-81906114: {} 2025-03-28 18:18:01,524 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-03-28 18:18:01,532 - DEBUG - Requesting: http://10.0.0.23:8082/domain/64cb566e-7451-49bf-8929-6e3dcc03b7fe 2025-03-28 18:18:01,550 - DEBUG - Requesting: http://10.0.0.23:8082/project/06ec53c6-6696-4775-9c8f-eefab6b52512 2025-03-28 18:18:01,635 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e9c94229-309f-4740-815c-53c2e7cce45f 2025-03-28 18:18:01,649 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e9c94229-309f-4740-815c-53c2e7cce45f 2025-03-28 18:18:01,662 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb4166f4-57bf-41cf-b0a1-96eeda30aa1e 2025-03-28 18:18:01,674 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb4166f4-57bf-41cf-b0a1-96eeda30aa1e 2025-03-28 18:18:01,684 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/eb35c4c2-b6b8-4cc2-9cd7-52d0aa2a9071 2025-03-28 18:18:01,694 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-28 18:18:01,694 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e9c94229-309f-4740-815c-53c2e7cce45f 2025-03-28 18:18:01,708 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb4166f4-57bf-41cf-b0a1-96eeda30aa1e 2025-03-28 18:18:01,726 - INFO - Verified VN network id 9 for VN e9c94229-309f-4740-815c-53c2e7cce45f 2025-03-28 18:18:01,726 - INFO - Verifications in API Server for VN ctest-vn-70489536 passed 2025-03-28 18:18:01,726 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e9c94229-309f-4740-815c-53c2e7cce45f 2025-03-28 18:18:01,738 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb4166f4-57bf-41cf-b0a1-96eeda30aa1e 2025-03-28 18:18:01,748 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb4166f4-57bf-41cf-b0a1-96eeda30aa1e 2025-03-28 18:18:01,760 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/eb35c4c2-b6b8-4cc2-9cd7-52d0aa2a9071 2025-03-28 18:18:01,779 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-70489536', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95816823', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16846068625832888128', 'uuid-lslong': '9321417425327809631'}, 'enable': 'true', 'created': '2025-03-28T18:17:59', 'last-modified': '2025-03-28T18:18:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.573044'} 2025-03-28 18:18:01,788 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-28 18:18:01,789 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70489536 passed 2025-03-28 18:18:01,789 - DEBUG - ====Verifying policy data for ctest-vn-70489536 in API_Server ====== 2025-03-28 18:18:01,789 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-03-28 18:18:01,797 - DEBUG - Requesting: http://10.0.0.23:8082/domain/64cb566e-7451-49bf-8929-6e3dcc03b7fe 2025-03-28 18:18:01,814 - DEBUG - Requesting: http://10.0.0.23:8082/project/06ec53c6-6696-4775-9c8f-eefab6b52512 2025-03-28 18:18:01,890 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e9c94229-309f-4740-815c-53c2e7cce45f 2025-03-28 18:18:01,901 - DEBUG - ==>Verifying data for policy with id: 6c9e7011-7a3f-4172-bcc0-272dc939c13e, fqn: ['default-domain', 'ctest-TestBasicPolicy-95816823', 'ctest-policy-allow-all-45300506'] 2025-03-28 18:18:01,901 - INFO - VN ctest-vn-70489536 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-28 18:18:01,901 - DEBUG - Verifying the vn in opserver 2025-03-28 18:18:01,902 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-70489536 virtual network link through opserver 10.0.0.23 2025-03-28 18:18:01,902 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-03-28 18:18:01,917 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-70489536', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-70489536?flat'} 2025-03-28 18:18:01,918 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-70489536 is found in opserver 2025-03-28 18:18:01,933 - DEBUG - Do not have enough data to verify VN in agent 2025-03-28 18:18:01,942 - DEBUG - VRF ids for VN ctest-vn-70489536: {} 2025-03-28 18:18:02,043 - DEBUG - Services list from nova: [, , ] 2025-03-28 18:18:03,313 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2994-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2994-1) 2025-03-28 18:18:04,695 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2994-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2994-1) 2025-03-28 18:18:04,696 - INFO - Waiting for VM ctest-TestBasicPolicy-95816823-41950649 to be up.. 2025-03-28 18:18:04,804 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-28 18:18:09,892 - DEBUG - VM is in ACTIVE state now 2025-03-28 18:18:09,893 - INFO - VM name : ctest-TestBasicPolicy-95816823-41950649 2025-03-28 18:18:09,994 - DEBUG - VM ctest-TestBasicPolicy-95816823-41950649 ID is ab10e358-a6e3-4807-9c4d-d1ba62d248f2 2025-03-28 18:18:10,016 - DEBUG - VM ctest-TestBasicPolicy-95816823-41950649 launched on Node cn-jenkins-deploy-platform-ansible-os-2994-1 2025-03-28 18:18:10,122 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/ab10e358-a6e3-4807-9c4d-d1ba62d248f2 2025-03-28 18:18:10,135 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/5d625f4d-4a53-4e10-bc1f-dba095f1d343 2025-03-28 18:18:13,412 - 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 1016ms') 2025-03-28 18:18:13,413 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95816823-41950649 failed! 2025-03-28 18:18:13,469 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-95816823:ctest-vn-81906114 is 82.42.34.65 and allocation pool is NOT set 2025-03-28 18:18:15,543 - 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=6.67 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.453 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 = 0.453/3.562/6.672/3.109 ms') 2025-03-28 18:18:15,543 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95816823-41950649 passed 2025-03-28 18:18:15,713 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 18:18:15,713 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-95816823-41950649, IP 82.42.34.67, Port 22 2025-03-28 18:18:15,879 - DEBUG - VM ctest-TestBasicPolicy-95816823-41950649 is ready for SSH connections 2025-03-28 18:18:15,879 - INFO - Waiting for VM ctest-TestBasicPolicy-95816823-41120536 to be up.. 2025-03-28 18:18:15,968 - DEBUG - VM is in ACTIVE state now 2025-03-28 18:18:15,968 - INFO - VM name : ctest-TestBasicPolicy-95816823-41120536 2025-03-28 18:18:16,062 - DEBUG - VM ctest-TestBasicPolicy-95816823-41120536 ID is 008e1475-c4fb-4b42-b240-ff29fffc275c 2025-03-28 18:18:16,062 - DEBUG - VM ctest-TestBasicPolicy-95816823-41120536 launched on Node cn-jenkins-deploy-platform-ansible-os-2994-1 2025-03-28 18:18:16,151 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/008e1475-c4fb-4b42-b240-ff29fffc275c 2025-03-28 18:18:16,163 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/9ed3ae1a-fe3b-4f4b-a418-743ebc372e4f 2025-03-28 18:18:17,416 - 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=4.30 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.28 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 = 1.277/2.788/4.299/1.511 ms') 2025-03-28 18:18:17,416 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-95816823-41120536 passed 2025-03-28 18:18:17,573 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 18:18:17,573 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-95816823-41120536, IP 107.166.245.67, Port 22 2025-03-28 18:18:17,747 - DEBUG - VM ctest-TestBasicPolicy-95816823-41120536 is ready for SSH connections 2025-03-28 18:18:17,747 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 18:18:17,748 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 107.166.245.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-03-28 18:18:17,748 - DEBUG - ping -s 56 -c 3 -W 1 107.166.245.67 2025-03-28 18:18:21,872 - DEBUG - PING 107.166.245.67 (107.166.245.67): 56 data bytes 64 bytes from 107.166.245.67: seq=0 ttl=63 time=3.834 ms 64 bytes from 107.166.245.67: seq=1 ttl=63 time=1.284 ms 64 bytes from 107.166.245.67: seq=2 ttl=63 time=1.239 ms --- 107.166.245.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.239/2.119/3.834 ms 2025-03-28 18:18:21,872 - INFO - Ping to IP 107.166.245.67 from VM ctest-TestBasicPolicy-95816823-41950649 passed 2025-03-28 18:18:22,057 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6c9e7011-7a3f-4172-bcc0-272dc939c13e", "href": "http://10.0.0.23:8082/network-policy/6c9e7011-7a3f-4172-bcc0-272dc939c13e"}} 2025-03-28 18:18:22,057 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 18:18:22,057 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 107.166.245.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-03-28 18:18:22,057 - DEBUG - ping -s 56 -c 3 -W 1 107.166.245.67 2025-03-28 18:18:25,270 - DEBUG - PING 107.166.245.67 (107.166.245.67): 56 data bytes 64 bytes from 107.166.245.67: seq=0 ttl=63 time=1.480 ms --- 107.166.245.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.480/1.480/1.480 ms 2025-03-28 18:18:25,270 - WARNING - Ping to IP 107.166.245.67 from VM ctest-TestBasicPolicy-95816823-41950649 failed 2025-03-28 18:18:25,271 - INFO - Deleting VM ctest-TestBasicPolicy-95816823-41120536 2025-03-28 18:18:25,352 - INFO - Deleting VM ctest-TestBasicPolicy-95816823-41950649 2025-03-28 18:18:25,809 - INFO - Deleted policy ctest-policy-allow-all-45300506 2025-03-28 18:18:25,809 - INFO - Deleting VN ctest-vn-70489536 2025-03-28 18:18:25,855 - DEBUG - VN e9c94229-309f-4740-815c-53c2e7cce45f still in use: Unable to complete operation on network e9c94229-309f-4740-815c-53c2e7cce45f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-928f7f9e-3af1-4759-bc4f-722815b199b7'] 2025-03-28 18:18:25,855 - WARNING - Deleting VN ctest-vn-70489536 failed..Will retry 2025-03-28 18:18:27,992 - DEBUG - Response for deleting network () 2025-03-28 18:18:27,992 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb4166f4-57bf-41cf-b0a1-96eeda30aa1e 2025-03-28 18:18:28,000 - DEBUG - Response Code: 404 2025-03-28 18:18:28,000 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-03-28 18:18:28,007 - DEBUG - Requesting: http://10.0.0.23:8082/domain/64cb566e-7451-49bf-8929-6e3dcc03b7fe 2025-03-28 18:18:28,065 - DEBUG - Requesting: http://10.0.0.23:8082/project/06ec53c6-6696-4775-9c8f-eefab6b52512 2025-03-28 18:18:28,144 - INFO - Validated that VN ctest-vn-70489536 is not found in API Server 2025-03-28 18:18:28,160 - DEBUG - VN ctest-vn-70489536 is not present in Agent 10.0.0.23 2025-03-28 18:18:28,160 - INFO - Validated that VN ctest-vn-70489536 is not in any agent 2025-03-28 18:18:28,185 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-70489536 info 2025-03-28 18:18:28,185 - INFO - Deleting VN ctest-vn-81906114 2025-03-28 18:18:28,347 - DEBUG - Response for deleting network () 2025-03-28 18:18:28,347 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fb2629df-c60e-41b0-9b8c-8c8134d34426 2025-03-28 18:18:28,360 - DEBUG - Response Code: 404 2025-03-28 18:18:28,360 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-03-28 18:18:28,368 - DEBUG - Requesting: http://10.0.0.23:8082/domain/64cb566e-7451-49bf-8929-6e3dcc03b7fe 2025-03-28 18:18:28,424 - DEBUG - Requesting: http://10.0.0.23:8082/project/06ec53c6-6696-4775-9c8f-eefab6b52512 2025-03-28 18:18:28,499 - INFO - Validated that VN ctest-vn-81906114 is not found in API Server 2025-03-28 18:18:28,515 - DEBUG - VN ctest-vn-81906114 is not present in Agent 10.0.0.23 2025-03-28 18:18:28,515 - INFO - Validated that VN ctest-vn-81906114 is not in any agent 2025-03-28 18:18:28,535 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81906114 info 2025-03-28 18:18:28,807 - DEBUG - No XMPP flaps were noticed during the test 2025-03-28 18:18:28,807 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2025-03-28 18:18:28,807 - INFO - -------------------------------------------------------------------------------- 2025-03-28 18:18:29,492 - INFO - Deleted project: ctest-TestBasicPolicy-95816823, ID : 06ec53c6-6696-4775-9c8f-eefab6b52512