2025-12-11 02:44:58,852 - INFO - Domain Default found not creating 2025-12-11 02:44:59,000 - INFO - Project ctest-TestBasicPolicy-07486786 not found, creating it 2025-12-11 02:44:59,537 - INFO - Created Project:ctest-TestBasicPolicy-07486786, ID : 3f6186ec-8921-4ef7-952e-8f8231d0fae4 2025-12-11 02:45:00,988 - INFO - ================================================================================ 2025-12-11 02:45:00,988 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-12-11 02:45:00,989 - 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-12-11 02:45:02,254 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.18': '0', '10.20.0.252': '0'}, '10.0.0.23': {'10.20.0.18': '0', '10.20.0.252': '0'}} with 2025-12-11 02:45:02,254 - INFO - Initial checks done. Running the testcase now 2025-12-11 02:45:02,254 - INFO - 2025-12-11 02:45:03,116 - DEBUG - Response for create_network : {'network': {'id': 'bd1ddfc8-d4d3-4e24-90f3-d22186ca9c16', 'name': 'ctest-vn-02392081', 'tenant_id': '3f6186ec89214ef7952e8f8231d0fae4', 'project_id': '3f6186ec89214ef7952e8f8231d0fae4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07486786', 'ctest-vn-02392081'], 'port_security_enabled': True, 'description': ''}} 2025-12-11 02:45:03,391 - DEBUG - Response for create_subnet : {'subnet': {'id': '10a611fe-91d0-4146-acf6-220db57dd7d2', 'name': '', 'tenant_id': '3f6186ec89214ef7952e8f8231d0fae4', 'network_id': 'bd1ddfc8-d4d3-4e24-90f3-d22186ca9c16', 'ip_version': 4, 'cidr': '219.187.155.192/26', 'allocation_pools': [{'start': '219.187.155.194', 'end': '219.187.155.254'}], 'gateway_ip': '219.187.155.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.187.155.194', 'tags': [], 'project_id': '3f6186ec89214ef7952e8f8231d0fae4'}} 2025-12-11 02:45:03,424 - INFO - Created VN ctest-vn-02392081 2025-12-11 02:45:03,438 - DEBUG - VN ctest-vn-02392081 UUID is bd1ddfc8-d4d3-4e24-90f3-d22186ca9c16 2025-12-11 02:45:03,792 - DEBUG - Response for create_network : {'network': {'id': '9ebad0e1-3d9d-4afd-98b8-cb57a419a4ef', 'name': 'ctest-vn-66242794', 'tenant_id': '3f6186ec89214ef7952e8f8231d0fae4', 'project_id': '3f6186ec89214ef7952e8f8231d0fae4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07486786', 'ctest-vn-66242794'], 'port_security_enabled': True, 'description': ''}} 2025-12-11 02:45:04,056 - DEBUG - Response for create_subnet : {'subnet': {'id': '655a6f76-72f7-4bde-8917-09ec9379edf2', 'name': '', 'tenant_id': '3f6186ec89214ef7952e8f8231d0fae4', 'network_id': '9ebad0e1-3d9d-4afd-98b8-cb57a419a4ef', 'ip_version': 4, 'cidr': '27.218.48.192/26', 'allocation_pools': [{'start': '27.218.48.194', 'end': '27.218.48.254'}], 'gateway_ip': '27.218.48.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.218.48.194', 'tags': [], 'project_id': '3f6186ec89214ef7952e8f8231d0fae4'}} 2025-12-11 02:45:04,082 - INFO - Created VN ctest-vn-66242794 2025-12-11 02:45:04,092 - DEBUG - VN ctest-vn-66242794 UUID is 9ebad0e1-3d9d-4afd-98b8-cb57a419a4ef 2025-12-11 02:45:04,175 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081, 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-07486786:ctest-vn-66242794, 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-12-11 02:45:04,511 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bd1ddfc8-d4d3-4e24-90f3-d22186ca9c16', 'name': 'ctest-vn-02392081', 'tenant_id': '3f6186ec89214ef7952e8f8231d0fae4', 'project_id': '3f6186ec89214ef7952e8f8231d0fae4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['10a611fe-91d0-4146-acf6-220db57dd7d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07486786', 'ctest-vn-02392081'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07486786', 'ctest-policy-allow-all-12304085']], 'subnet_ipam': [{'subnet_cidr': '219.187.155.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-11 02:45:04,699 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9ebad0e1-3d9d-4afd-98b8-cb57a419a4ef', 'name': 'ctest-vn-66242794', 'tenant_id': '3f6186ec89214ef7952e8f8231d0fae4', 'project_id': '3f6186ec89214ef7952e8f8231d0fae4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['655a6f76-72f7-4bde-8917-09ec9379edf2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07486786', 'ctest-vn-66242794'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07486786', 'ctest-policy-allow-all-12304085']], 'subnet_ipam': [{'subnet_cidr': '27.218.48.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-11 02:45:04,795 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-11 02:45:05,148 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-11 02:45:05,180 - DEBUG - Requesting: http://10.0.0.61:8082/domain/35136ed0-c5bb-4823-8f5c-ae1b4c17652e 2025-12-11 02:45:05,193 - DEBUG - Requesting: http://10.0.0.61:8082/project/3f6186ec-8921-4ef7-952e-8f8231d0fae4 2025-12-11 02:45:05,296 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/bd1ddfc8-d4d3-4e24-90f3-d22186ca9c16 2025-12-11 02:45:05,310 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/bd1ddfc8-d4d3-4e24-90f3-d22186ca9c16 2025-12-11 02:45:05,319 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/32f484dd-2b3d-4450-8560-0ac97fdbcb29 2025-12-11 02:45:05,330 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/32f484dd-2b3d-4450-8560-0ac97fdbcb29 2025-12-11 02:45:05,337 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/afedb233-683a-4d80-822c-05e727f27b6f 2025-12-11 02:45:05,345 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-11 02:45:05,345 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/bd1ddfc8-d4d3-4e24-90f3-d22186ca9c16 2025-12-11 02:45:05,354 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/32f484dd-2b3d-4450-8560-0ac97fdbcb29 2025-12-11 02:45:05,370 - INFO - Verified VN network id 14 for VN bd1ddfc8-d4d3-4e24-90f3-d22186ca9c16 2025-12-11 02:45:05,371 - INFO - Verifications in API Server for VN ctest-vn-02392081 passed 2025-12-11 02:45:05,371 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/bd1ddfc8-d4d3-4e24-90f3-d22186ca9c16 2025-12-11 02:45:05,380 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/32f484dd-2b3d-4450-8560-0ac97fdbcb29 2025-12-11 02:45:05,388 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/32f484dd-2b3d-4450-8560-0ac97fdbcb29 2025-12-11 02:45:05,394 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/afedb233-683a-4d80-822c-05e727f27b6f 2025-12-11 02:45:05,406 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07486786', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13627294101150060068', 'uuid-lslong': '10444923002239491094'}, 'enable': 'true', 'created': '2025-12-11T02:45:03', 'last-modified': '2025-12-11T02:45:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.923702'} 2025-12-11 02:45:05,413 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-11 02:45:05,420 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07486786', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13627294101150060068', 'uuid-lslong': '10444923002239491094'}, 'enable': 'true', 'created': '2025-12-11T02:45:03', 'last-modified': '2025-12-11T02:45:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.941074'} 2025-12-11 02:45:05,428 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-11 02:45:05,433 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07486786', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13627294101150060068', 'uuid-lslong': '10444923002239491094'}, 'enable': 'true', 'created': '2025-12-11T02:45:03', 'last-modified': '2025-12-11T02:45:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943503'} 2025-12-11 02:45:05,438 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-11 02:45:05,438 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02392081 passed 2025-12-11 02:45:05,439 - DEBUG - ====Verifying policy data for ctest-vn-02392081 in API_Server ====== 2025-12-11 02:45:05,439 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-11 02:45:05,445 - DEBUG - Requesting: http://10.0.0.61:8082/domain/35136ed0-c5bb-4823-8f5c-ae1b4c17652e 2025-12-11 02:45:05,459 - DEBUG - Requesting: http://10.0.0.61:8082/project/3f6186ec-8921-4ef7-952e-8f8231d0fae4 2025-12-11 02:45:05,554 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/bd1ddfc8-d4d3-4e24-90f3-d22186ca9c16 2025-12-11 02:45:05,566 - DEBUG - ==>Verifying data for policy with id: 5cd52632-c808-4232-aa39-56826a8a6318, fqn: ['default-domain', 'ctest-TestBasicPolicy-07486786', 'ctest-policy-allow-all-12304085'] 2025-12-11 02:45:05,566 - INFO - VN ctest-vn-02392081 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-11 02:45:05,567 - DEBUG - Verifying the vn in opserver 2025-12-11 02:45:05,567 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081 virtual network link through opserver 10.0.0.61 2025-12-11 02:45:05,567 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-12-11 02:45:05,876 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-12-11 02:45:05,937 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081?flat'} 2025-12-11 02:45:05,937 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081 virtual network link through opserver 10.0.0.33 2025-12-11 02:45:05,937 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-11 02:45:06,236 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-11 02:45:06,291 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081?flat'} 2025-12-11 02:45:06,291 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081 virtual network link through opserver 10.0.0.27 2025-12-11 02:45:06,291 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-11 02:45:06,585 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-11 02:45:06,650 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081?flat'} 2025-12-11 02:45:06,650 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081 is found in opserver 2025-12-11 02:45:06,675 - DEBUG - Do not have enough data to verify VN in agent 2025-12-11 02:45:06,688 - DEBUG - VRF ids for VN ctest-vn-02392081: {} 2025-12-11 02:45:06,688 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-11 02:45:06,695 - DEBUG - Requesting: http://10.0.0.61:8082/domain/35136ed0-c5bb-4823-8f5c-ae1b4c17652e 2025-12-11 02:45:06,706 - DEBUG - Requesting: http://10.0.0.61:8082/project/3f6186ec-8921-4ef7-952e-8f8231d0fae4 2025-12-11 02:45:06,794 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/9ebad0e1-3d9d-4afd-98b8-cb57a419a4ef 2025-12-11 02:45:06,807 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/9ebad0e1-3d9d-4afd-98b8-cb57a419a4ef 2025-12-11 02:45:06,817 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/46e4955c-39e8-4e02-aed9-ce3773257e2c 2025-12-11 02:45:06,824 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/46e4955c-39e8-4e02-aed9-ce3773257e2c 2025-12-11 02:45:06,830 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/62cdabd8-62aa-40ac-80d4-60874fbbf48c 2025-12-11 02:45:06,837 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-11 02:45:06,837 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/9ebad0e1-3d9d-4afd-98b8-cb57a419a4ef 2025-12-11 02:45:06,846 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/46e4955c-39e8-4e02-aed9-ce3773257e2c 2025-12-11 02:45:06,862 - INFO - Verified VN network id 15 for VN 9ebad0e1-3d9d-4afd-98b8-cb57a419a4ef 2025-12-11 02:45:06,862 - INFO - Verifications in API Server for VN ctest-vn-66242794 passed 2025-12-11 02:45:06,862 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/9ebad0e1-3d9d-4afd-98b8-cb57a419a4ef 2025-12-11 02:45:06,874 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/46e4955c-39e8-4e02-aed9-ce3773257e2c 2025-12-11 02:45:06,885 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/46e4955c-39e8-4e02-aed9-ce3773257e2c 2025-12-11 02:45:06,893 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/62cdabd8-62aa-40ac-80d4-60874fbbf48c 2025-12-11 02:45:06,906 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-66242794', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07486786', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11437683869480733437', 'uuid-lslong': '11004769266755544303'}, 'enable': 'true', 'created': '2025-12-11T02:45:03', 'last-modified': '2025-12-11T02:45:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.239689'} 2025-12-11 02:45:06,912 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-11 02:45:06,918 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-66242794', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07486786', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11437683869480733437', 'uuid-lslong': '11004769266755544303'}, 'enable': 'true', 'created': '2025-12-11T02:45:03', 'last-modified': '2025-12-11T02:45:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.249730'} 2025-12-11 02:45:06,926 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-11 02:45:06,932 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-66242794', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07486786', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11437683869480733437', 'uuid-lslong': '11004769266755544303'}, 'enable': 'true', 'created': '2025-12-11T02:45:03', 'last-modified': '2025-12-11T02:45:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.270216'} 2025-12-11 02:45:06,937 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-11 02:45:06,937 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66242794 passed 2025-12-11 02:45:06,937 - DEBUG - ====Verifying policy data for ctest-vn-66242794 in API_Server ====== 2025-12-11 02:45:06,937 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-11 02:45:06,944 - DEBUG - Requesting: http://10.0.0.61:8082/domain/35136ed0-c5bb-4823-8f5c-ae1b4c17652e 2025-12-11 02:45:06,956 - DEBUG - Requesting: http://10.0.0.61:8082/project/3f6186ec-8921-4ef7-952e-8f8231d0fae4 2025-12-11 02:45:07,048 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/9ebad0e1-3d9d-4afd-98b8-cb57a419a4ef 2025-12-11 02:45:07,058 - DEBUG - ==>Verifying data for policy with id: 5cd52632-c808-4232-aa39-56826a8a6318, fqn: ['default-domain', 'ctest-TestBasicPolicy-07486786', 'ctest-policy-allow-all-12304085'] 2025-12-11 02:45:07,059 - INFO - VN ctest-vn-66242794 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-11 02:45:07,059 - DEBUG - Verifying the vn in opserver 2025-12-11 02:45:07,059 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-66242794 virtual network link through opserver 10.0.0.61 2025-12-11 02:45:07,059 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-12-11 02:45:07,120 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-66242794', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-66242794?flat'} 2025-12-11 02:45:07,120 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-66242794 virtual network link through opserver 10.0.0.33 2025-12-11 02:45:07,120 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-11 02:45:07,179 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-66242794', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-66242794?flat'} 2025-12-11 02:45:07,179 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-66242794 virtual network link through opserver 10.0.0.27 2025-12-11 02:45:07,179 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-11 02:45:07,249 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-66242794', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-66242794?flat'} 2025-12-11 02:45:07,249 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-66242794 is found in opserver 2025-12-11 02:45:07,272 - DEBUG - Do not have enough data to verify VN in agent 2025-12-11 02:45:07,282 - DEBUG - VRF ids for VN ctest-vn-66242794: {} 2025-12-11 02:45:07,335 - DEBUG - Services list from nova: [, , , ] 2025-12-11 02:45:08,351 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4883-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4883-2) 2025-12-11 02:45:09,676 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4883-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4883-1) 2025-12-11 02:45:09,676 - INFO - Waiting for VM ctest-TestBasicPolicy-07486786-03019785 to be up.. 2025-12-11 02:45:09,757 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-12-11 02:45:14,833 - DEBUG - VM is in ACTIVE state now 2025-12-11 02:45:14,834 - INFO - VM name : ctest-TestBasicPolicy-07486786-03019785 2025-12-11 02:45:14,908 - DEBUG - VM ctest-TestBasicPolicy-07486786-03019785 ID is 06b3e510-7b96-43ab-ae3c-7afa4139b54a 2025-12-11 02:45:14,932 - DEBUG - VM ctest-TestBasicPolicy-07486786-03019785 launched on Node an-jenkins-deploy-platform-ansible-os-4883-2 2025-12-11 02:45:15,018 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/06b3e510-7b96-43ab-ae3c-7afa4139b54a 2025-12-11 02:45:15,317 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/06b3e510-7b96-43ab-ae3c-7afa4139b54a 2025-12-11 02:45:15,353 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/8b7fb0fb-a0bc-409b-ac3b-69bb464b7427 2025-12-11 02:45:18,522 - 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 1009ms') 2025-12-11 02:45:18,522 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07486786-03019785 failed! 2025-12-11 02:45:18,535 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081 is 219.187.155.193 and allocation pool is NOT set 2025-12-11 02:45:22,616 - 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 1023ms') 2025-12-11 02:45:22,616 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07486786-03019785 failed! 2025-12-11 02:45:22,629 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081 is 219.187.155.193 and allocation pool is NOT set 2025-12-11 02:45:26,709 - 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 1021ms') 2025-12-11 02:45:26,709 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07486786-03019785 failed! 2025-12-11 02:45:26,722 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081 is 219.187.155.193 and allocation pool is NOT set 2025-12-11 02:45:30,811 - 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-12-11 02:45:30,811 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07486786-03019785 failed! 2025-12-11 02:45:30,823 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081 is 219.187.155.193 and allocation pool is NOT set 2025-12-11 02:45:34,904 - 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 1019ms') 2025-12-11 02:45:34,904 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07486786-03019785 failed! 2025-12-11 02:45:34,919 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081 is 219.187.155.193 and allocation pool is NOT set 2025-12-11 02:45:39,005 - 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 1018ms') 2025-12-11 02:45:39,005 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07486786-03019785 failed! 2025-12-11 02:45:39,017 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081 is 219.187.155.193 and allocation pool is NOT set 2025-12-11 02:45:43,094 - 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 1019ms') 2025-12-11 02:45:43,094 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07486786-03019785 failed! 2025-12-11 02:45:43,107 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081 is 219.187.155.193 and allocation pool is NOT set 2025-12-11 02:45:47,194 - 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 1026ms') 2025-12-11 02:45:47,195 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07486786-03019785 failed! 2025-12-11 02:45:47,214 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07486786:ctest-vn-02392081 is 219.187.155.193 and allocation pool is NOT set 2025-12-11 02:45:49,275 - 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.03 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.582 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.582/3.304/6.026/2.722 ms') 2025-12-11 02:45:49,275 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07486786-03019785 passed 2025-12-11 02:45:49,340 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-11 02:45:49,340 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07486786-03019785, IP 219.187.155.195, Port 22 2025-12-11 02:45:49,405 - DEBUG - Error on ssh to ubuntu@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-12-11 02:45:49,486 - DEBUG - VM ctest-TestBasicPolicy-07486786-03019785 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-11 02:45:54,487 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-11 02:45:54,487 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07486786-03019785, IP 219.187.155.195, Port 22 2025-12-11 02:45:54,542 - DEBUG - Error on ssh to ubuntu@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-12-11 02:45:54,627 - DEBUG - VM ctest-TestBasicPolicy-07486786-03019785 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-11 02:45:59,628 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-11 02:45:59,628 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07486786-03019785, IP 219.187.155.195, Port 22 2025-12-11 02:45:59,692 - DEBUG - Error on ssh to ubuntu@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-12-11 02:45:59,772 - DEBUG - VM ctest-TestBasicPolicy-07486786-03019785 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-11 02:46:04,773 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-11 02:46:04,773 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07486786-03019785, IP 219.187.155.195, Port 22 2025-12-11 02:46:04,841 - DEBUG - Error on ssh to ubuntu@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-12-11 02:46:04,928 - DEBUG - VM ctest-TestBasicPolicy-07486786-03019785 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-11 02:46:09,928 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-11 02:46:09,928 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07486786-03019785, IP 219.187.155.195, Port 22 2025-12-11 02:46:10,097 - DEBUG - VM ctest-TestBasicPolicy-07486786-03019785 is ready for SSH connections 2025-12-11 02:46:10,097 - INFO - Waiting for VM ctest-TestBasicPolicy-07486786-40202232 to be up.. 2025-12-11 02:46:10,169 - DEBUG - VM is in ACTIVE state now 2025-12-11 02:46:10,169 - INFO - VM name : ctest-TestBasicPolicy-07486786-40202232 2025-12-11 02:46:10,244 - DEBUG - VM ctest-TestBasicPolicy-07486786-40202232 ID is 5a569629-ef41-4deb-8583-b9bb0c1ed243 2025-12-11 02:46:10,244 - DEBUG - VM ctest-TestBasicPolicy-07486786-40202232 launched on Node an-jenkins-deploy-platform-ansible-os-4883-1 2025-12-11 02:46:10,313 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/5a569629-ef41-4deb-8583-b9bb0c1ed243 2025-12-11 02:46:10,323 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/a31dd8c1-7cd0-4205-abe9-d174576851a1 2025-12-11 02:46:11,473 - 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.41 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.332 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.332/1.372/2.412/1.040 ms') 2025-12-11 02:46:11,473 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07486786-40202232 passed 2025-12-11 02:46:11,540 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-11 02:46:11,540 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07486786-40202232, IP 27.218.48.195, Port 22 2025-12-11 02:46:11,704 - DEBUG - VM ctest-TestBasicPolicy-07486786-40202232 is ready for SSH connections 2025-12-11 02:46:11,704 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-11 02:46:11,704 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 27.218.48.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-12-11 02:46:11,705 - DEBUG - ping -s 56 -c 3 -W 1 27.218.48.195 2025-12-11 02:46:31,325 - DEBUG - PING 27.218.48.195 (27.218.48.195) 56(84) bytes of data. 64 bytes from 27.218.48.195: icmp_req=1 ttl=63 time=8.76 ms 64 bytes from 27.218.48.195: icmp_req=2 ttl=63 time=1.43 ms 64 bytes from 27.218.48.195: icmp_req=3 ttl=63 time=1.28 ms --- 27.218.48.195 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 1.285/3.828/8.763/3.490 ms 2025-12-11 02:46:31,325 - INFO - Ping to IP 27.218.48.195 from VM ctest-TestBasicPolicy-07486786-03019785 passed 2025-12-11 02:46:31,512 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5cd52632-c808-4232-aa39-56826a8a6318", "href": "http://10.0.0.27:8082/network-policy/5cd52632-c808-4232-aa39-56826a8a6318"}} 2025-12-11 02:46:31,512 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-11 02:46:31,512 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 27.218.48.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-12-11 02:46:31,512 - DEBUG - ping -s 56 -c 3 -W 1 27.218.48.195 2025-12-11 02:46:34,986 - DEBUG - PING 27.218.48.195 (27.218.48.195) 56(84) bytes of data. 64 bytes from 27.218.48.195: icmp_req=1 ttl=63 time=4.63 ms --- 27.218.48.195 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2002ms rtt min/avg/max/mdev = 4.639/4.639/4.639/0.000 ms 2025-12-11 02:46:34,986 - WARNING - Ping to IP 27.218.48.195 from VM ctest-TestBasicPolicy-07486786-03019785 failed 2025-12-11 02:46:34,986 - INFO - Deleting VM ctest-TestBasicPolicy-07486786-40202232 2025-12-11 02:46:35,054 - INFO - Deleting VM ctest-TestBasicPolicy-07486786-03019785 2025-12-11 02:46:35,410 - INFO - Deleted policy ctest-policy-allow-all-12304085 2025-12-11 02:46:35,410 - INFO - Deleting VN ctest-vn-66242794 2025-12-11 02:46:35,450 - DEBUG - VN 9ebad0e1-3d9d-4afd-98b8-cb57a419a4ef still in use: Unable to complete operation on network 9ebad0e1-3d9d-4afd-98b8-cb57a419a4ef. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1ad90588-404a-47e4-affb-a206a976f921'] 2025-12-11 02:46:35,450 - WARNING - Deleting VN ctest-vn-66242794 failed..Will retry 2025-12-11 02:46:37,581 - DEBUG - Response for deleting network () 2025-12-11 02:46:37,581 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/46e4955c-39e8-4e02-aed9-ce3773257e2c 2025-12-11 02:46:37,586 - DEBUG - Response Code: 404 2025-12-11 02:46:37,586 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-11 02:46:37,591 - DEBUG - Requesting: http://10.0.0.61:8082/domain/35136ed0-c5bb-4823-8f5c-ae1b4c17652e 2025-12-11 02:46:37,647 - DEBUG - Requesting: http://10.0.0.61:8082/project/3f6186ec-8921-4ef7-952e-8f8231d0fae4 2025-12-11 02:46:37,735 - INFO - Validated that VN ctest-vn-66242794 is not found in API Server 2025-12-11 02:46:37,744 - DEBUG - VN ctest-vn-66242794 is not present in Agent 10.0.0.141 2025-12-11 02:46:37,754 - DEBUG - VN ctest-vn-66242794 is not present in Agent 10.0.0.23 2025-12-11 02:46:37,754 - INFO - Validated that VN ctest-vn-66242794 is not in any agent 2025-12-11 02:46:37,780 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-66242794 info 2025-12-11 02:46:37,780 - INFO - Deleting VN ctest-vn-02392081 2025-12-11 02:46:37,910 - DEBUG - Response for deleting network () 2025-12-11 02:46:37,911 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/32f484dd-2b3d-4450-8560-0ac97fdbcb29 2025-12-11 02:46:37,915 - DEBUG - Response Code: 404 2025-12-11 02:46:37,915 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-11 02:46:37,924 - DEBUG - Requesting: http://10.0.0.61:8082/domain/35136ed0-c5bb-4823-8f5c-ae1b4c17652e 2025-12-11 02:46:37,933 - DEBUG - Requesting: http://10.0.0.61:8082/project/3f6186ec-8921-4ef7-952e-8f8231d0fae4 2025-12-11 02:46:38,024 - INFO - Validated that VN ctest-vn-02392081 is not found in API Server 2025-12-11 02:46:38,033 - DEBUG - VN ctest-vn-02392081 is not present in Agent 10.0.0.141 2025-12-11 02:46:38,042 - DEBUG - VN ctest-vn-02392081 is not present in Agent 10.0.0.23 2025-12-11 02:46:38,042 - INFO - Validated that VN ctest-vn-02392081 is not in any agent 2025-12-11 02:46:38,068 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-02392081 info 2025-12-11 02:46:39,337 - DEBUG - No XMPP flaps were noticed during the test
2025-12-11 02:46:39,337 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:39]
2025-12-11 02:46:39,337 - INFO - -------------------------------------------------------------------------------- 2025-12-11 02:46:40,102 - INFO - Deleted project: ctest-TestBasicPolicy-07486786, ID : 3f6186ec-8921-4ef7-952e-8f8231d0fae4