2026-01-19 02:38:08,967 - INFO - Domain Default found not creating 2026-01-19 02:38:09,126 - INFO - Project ctest-TestBasicPolicy-80971940 not found, creating it 2026-01-19 02:38:09,710 - INFO - Created Project:ctest-TestBasicPolicy-80971940, ID : fe2efa4f-6213-4b00-9bc7-073c817cbd2e 2026-01-19 02:38:11,216 - INFO - ================================================================================ 2026-01-19 02:38:11,216 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-01-19 02:38:11,216 - 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 2026-01-19 02:38:12,489 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.25': '0', '10.20.0.193': '0'}, '10.0.0.65': {'10.20.0.17': '0', '10.20.0.25': '0'}} with 2026-01-19 02:38:12,489 - INFO - Initial checks done. Running the testcase now 2026-01-19 02:38:12,489 - INFO - 2026-01-19 02:38:13,164 - DEBUG - Response for create_network : {'network': {'id': '58058b6f-a475-4a17-bf0e-6f4e610e387b', 'name': 'ctest-vn-16358512', 'tenant_id': 'fe2efa4f62134b009bc7073c817cbd2e', 'project_id': 'fe2efa4f62134b009bc7073c817cbd2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80971940', 'ctest-vn-16358512'], 'port_security_enabled': True, 'description': ''}} 2026-01-19 02:38:13,450 - DEBUG - Response for create_subnet : {'subnet': {'id': '29a9f5b4-a087-4648-bec8-8c5088e94926', 'name': '', 'tenant_id': 'fe2efa4f62134b009bc7073c817cbd2e', 'network_id': '58058b6f-a475-4a17-bf0e-6f4e610e387b', 'ip_version': 4, 'cidr': '129.56.153.128/26', 'allocation_pools': [{'start': '129.56.153.130', 'end': '129.56.153.190'}], 'gateway_ip': '129.56.153.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.56.153.130', 'tags': [], 'project_id': 'fe2efa4f62134b009bc7073c817cbd2e'}} 2026-01-19 02:38:13,470 - INFO - Created VN ctest-vn-16358512 2026-01-19 02:38:13,483 - DEBUG - VN ctest-vn-16358512 UUID is 58058b6f-a475-4a17-bf0e-6f4e610e387b 2026-01-19 02:38:13,830 - DEBUG - Response for create_network : {'network': {'id': '013b39c6-c840-4d7d-a942-51ca3d072938', 'name': 'ctest-vn-93361117', 'tenant_id': 'fe2efa4f62134b009bc7073c817cbd2e', 'project_id': 'fe2efa4f62134b009bc7073c817cbd2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80971940', 'ctest-vn-93361117'], 'port_security_enabled': True, 'description': ''}} 2026-01-19 02:38:14,090 - DEBUG - Response for create_subnet : {'subnet': {'id': '7553098f-8669-4777-9ff7-e621a0ad45e9', 'name': '', 'tenant_id': 'fe2efa4f62134b009bc7073c817cbd2e', 'network_id': '013b39c6-c840-4d7d-a942-51ca3d072938', 'ip_version': 4, 'cidr': '147.183.123.192/26', 'allocation_pools': [{'start': '147.183.123.194', 'end': '147.183.123.254'}], 'gateway_ip': '147.183.123.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.183.123.194', 'tags': [], 'project_id': 'fe2efa4f62134b009bc7073c817cbd2e'}} 2026-01-19 02:38:14,112 - INFO - Created VN ctest-vn-93361117 2026-01-19 02:38:14,123 - DEBUG - VN ctest-vn-93361117 UUID is 013b39c6-c840-4d7d-a942-51ca3d072938 2026-01-19 02:38:14,204 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512, 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-80971940:ctest-vn-93361117, 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] 2026-01-19 02:38:14,526 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58058b6f-a475-4a17-bf0e-6f4e610e387b', 'name': 'ctest-vn-16358512', 'tenant_id': 'fe2efa4f62134b009bc7073c817cbd2e', 'project_id': 'fe2efa4f62134b009bc7073c817cbd2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['29a9f5b4-a087-4648-bec8-8c5088e94926'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80971940', 'ctest-vn-16358512'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80971940', 'ctest-policy-allow-all-01843859']], 'subnet_ipam': [{'subnet_cidr': '129.56.153.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-19 02:38:14,720 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '013b39c6-c840-4d7d-a942-51ca3d072938', 'name': 'ctest-vn-93361117', 'tenant_id': 'fe2efa4f62134b009bc7073c817cbd2e', 'project_id': 'fe2efa4f62134b009bc7073c817cbd2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7553098f-8669-4777-9ff7-e621a0ad45e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80971940', 'ctest-vn-93361117'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80971940', 'ctest-policy-allow-all-01843859']], 'subnet_ipam': [{'subnet_cidr': '147.183.123.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-19 02:38:14,814 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-19 02:38:15,159 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-19 02:38:15,187 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bc123c74-c45e-4d7a-a955-76f59d7a4cc7 2026-01-19 02:38:15,202 - DEBUG - Requesting: http://10.0.0.27:8082/project/fe2efa4f-6213-4b00-9bc7-073c817cbd2e 2026-01-19 02:38:15,292 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/58058b6f-a475-4a17-bf0e-6f4e610e387b 2026-01-19 02:38:15,304 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/58058b6f-a475-4a17-bf0e-6f4e610e387b 2026-01-19 02:38:15,313 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/08ac153a-a2e7-40f9-a353-2343e11248c0 2026-01-19 02:38:15,320 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/08ac153a-a2e7-40f9-a353-2343e11248c0 2026-01-19 02:38:15,327 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/f18da095-e3db-4573-a090-0fea7a799f96 2026-01-19 02:38:15,335 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-19 02:38:15,335 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/58058b6f-a475-4a17-bf0e-6f4e610e387b 2026-01-19 02:38:15,344 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/08ac153a-a2e7-40f9-a353-2343e11248c0 2026-01-19 02:38:15,361 - INFO - Verified VN network id 16 for VN 58058b6f-a475-4a17-bf0e-6f4e610e387b 2026-01-19 02:38:15,361 - INFO - Verifications in API Server for VN ctest-vn-16358512 passed 2026-01-19 02:38:15,362 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/58058b6f-a475-4a17-bf0e-6f4e610e387b 2026-01-19 02:38:15,372 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/08ac153a-a2e7-40f9-a353-2343e11248c0 2026-01-19 02:38:15,380 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/08ac153a-a2e7-40f9-a353-2343e11248c0 2026-01-19 02:38:15,389 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/f18da095-e3db-4573-a090-0fea7a799f96 2026-01-19 02:38:15,402 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80971940', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6342628961837992471', 'uuid-lslong': '13767063493344639099'}, 'enable': 'true', 'created': '2026-01-19T02:38:13', 'last-modified': '2026-01-19T02:38:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.914404'} 2026-01-19 02:38:15,408 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-19 02:38:15,415 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80971940', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6342628961837992471', 'uuid-lslong': '13767063493344639099'}, 'enable': 'true', 'created': '2026-01-19T02:38:13', 'last-modified': '2026-01-19T02:38:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.922843'} 2026-01-19 02:38:15,421 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-19 02:38:15,427 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80971940', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6342628961837992471', 'uuid-lslong': '13767063493344639099'}, 'enable': 'true', 'created': '2026-01-19T02:38:13', 'last-modified': '2026-01-19T02:38:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.938127'} 2026-01-19 02:38:15,432 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-19 02:38:15,432 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16358512 passed 2026-01-19 02:38:15,432 - DEBUG - ====Verifying policy data for ctest-vn-16358512 in API_Server ====== 2026-01-19 02:38:15,432 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-19 02:38:15,439 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bc123c74-c45e-4d7a-a955-76f59d7a4cc7 2026-01-19 02:38:15,451 - DEBUG - Requesting: http://10.0.0.27:8082/project/fe2efa4f-6213-4b00-9bc7-073c817cbd2e 2026-01-19 02:38:15,547 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/58058b6f-a475-4a17-bf0e-6f4e610e387b 2026-01-19 02:38:15,572 - DEBUG - ==>Verifying data for policy with id: e04fe1b4-19d9-4eb1-b066-a1842c74efe3, fqn: ['default-domain', 'ctest-TestBasicPolicy-80971940', 'ctest-policy-allow-all-01843859'] 2026-01-19 02:38:15,572 - INFO - VN ctest-vn-16358512 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-19 02:38:15,572 - DEBUG - Verifying the vn in opserver 2026-01-19 02:38:15,572 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512 virtual network link through opserver 10.0.0.27 2026-01-19 02:38:15,572 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-19 02:38:15,868 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-19 02:38:15,923 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512?flat'} 2026-01-19 02:38:15,923 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512 virtual network link through opserver 10.0.0.50 2026-01-19 02:38:15,924 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-19 02:38:16,223 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-19 02:38:16,283 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512?flat'} 2026-01-19 02:38:16,283 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512 virtual network link through opserver 10.0.0.23 2026-01-19 02:38:16,284 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-19 02:38:16,578 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-19 02:38:16,653 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512?flat'} 2026-01-19 02:38:16,653 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512 is found in opserver 2026-01-19 02:38:16,672 - DEBUG - Do not have enough data to verify VN in agent 2026-01-19 02:38:16,682 - DEBUG - VRF ids for VN ctest-vn-16358512: {} 2026-01-19 02:38:16,682 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-19 02:38:16,687 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bc123c74-c45e-4d7a-a955-76f59d7a4cc7 2026-01-19 02:38:16,698 - DEBUG - Requesting: http://10.0.0.27:8082/project/fe2efa4f-6213-4b00-9bc7-073c817cbd2e 2026-01-19 02:38:16,784 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/013b39c6-c840-4d7d-a942-51ca3d072938 2026-01-19 02:38:16,799 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/013b39c6-c840-4d7d-a942-51ca3d072938 2026-01-19 02:38:16,807 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/24616ac3-8824-4b47-a03b-3ddf8d579987 2026-01-19 02:38:16,816 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/24616ac3-8824-4b47-a03b-3ddf8d579987 2026-01-19 02:38:16,823 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ecd44676-244f-40a6-827b-8d81cc2110a7 2026-01-19 02:38:16,831 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-19 02:38:16,831 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/013b39c6-c840-4d7d-a942-51ca3d072938 2026-01-19 02:38:16,841 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/24616ac3-8824-4b47-a03b-3ddf8d579987 2026-01-19 02:38:16,856 - INFO - Verified VN network id 17 for VN 013b39c6-c840-4d7d-a942-51ca3d072938 2026-01-19 02:38:16,856 - INFO - Verifications in API Server for VN ctest-vn-93361117 passed 2026-01-19 02:38:16,856 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/013b39c6-c840-4d7d-a942-51ca3d072938 2026-01-19 02:38:16,866 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/24616ac3-8824-4b47-a03b-3ddf8d579987 2026-01-19 02:38:16,872 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/24616ac3-8824-4b47-a03b-3ddf8d579987 2026-01-19 02:38:16,879 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ecd44676-244f-40a6-827b-8d81cc2110a7 2026-01-19 02:38:16,891 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-93361117', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80971940', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '88728143589821821', 'uuid-lslong': '12196400669921847608'}, 'enable': 'true', 'created': '2026-01-19T02:38:13', 'last-modified': '2026-01-19T02:38:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.200333'} 2026-01-19 02:38:16,896 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-19 02:38:16,902 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-93361117', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80971940', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '88728143589821821', 'uuid-lslong': '12196400669921847608'}, 'enable': 'true', 'created': '2026-01-19T02:38:13', 'last-modified': '2026-01-19T02:38:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.215719'} 2026-01-19 02:38:16,908 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-19 02:38:16,912 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-93361117', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80971940', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '88728143589821821', 'uuid-lslong': '12196400669921847608'}, 'enable': 'true', 'created': '2026-01-19T02:38:13', 'last-modified': '2026-01-19T02:38:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.229412'} 2026-01-19 02:38:16,918 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-19 02:38:16,918 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93361117 passed 2026-01-19 02:38:16,919 - DEBUG - ====Verifying policy data for ctest-vn-93361117 in API_Server ====== 2026-01-19 02:38:16,919 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-19 02:38:16,925 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bc123c74-c45e-4d7a-a955-76f59d7a4cc7 2026-01-19 02:38:16,936 - DEBUG - Requesting: http://10.0.0.27:8082/project/fe2efa4f-6213-4b00-9bc7-073c817cbd2e 2026-01-19 02:38:17,022 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/013b39c6-c840-4d7d-a942-51ca3d072938 2026-01-19 02:38:17,031 - DEBUG - ==>Verifying data for policy with id: e04fe1b4-19d9-4eb1-b066-a1842c74efe3, fqn: ['default-domain', 'ctest-TestBasicPolicy-80971940', 'ctest-policy-allow-all-01843859'] 2026-01-19 02:38:17,031 - INFO - VN ctest-vn-93361117 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-19 02:38:17,031 - DEBUG - Verifying the vn in opserver 2026-01-19 02:38:17,031 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-93361117 virtual network link through opserver 10.0.0.27 2026-01-19 02:38:17,032 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-19 02:38:17,093 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-93361117', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-93361117?flat'} 2026-01-19 02:38:17,093 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-93361117 virtual network link through opserver 10.0.0.50 2026-01-19 02:38:17,093 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-19 02:38:17,154 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-93361117', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-93361117?flat'} 2026-01-19 02:38:17,154 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-93361117 virtual network link through opserver 10.0.0.23 2026-01-19 02:38:17,154 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-19 02:38:17,219 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-93361117', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-93361117?flat'} 2026-01-19 02:38:17,219 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-93361117 is found in opserver 2026-01-19 02:38:17,238 - DEBUG - Do not have enough data to verify VN in agent 2026-01-19 02:38:17,248 - DEBUG - VRF ids for VN ctest-vn-93361117: {} 2026-01-19 02:38:17,306 - DEBUG - Services list from nova: [, , , ] 2026-01-19 02:38:18,324 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5040-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5040-1) 2026-01-19 02:38:19,767 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5040-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5040-2) 2026-01-19 02:38:19,767 - INFO - Waiting for VM ctest-TestBasicPolicy-80971940-80588333 to be up.. 2026-01-19 02:38:19,861 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-01-19 02:38:24,952 - DEBUG - VM is in ACTIVE state now 2026-01-19 02:38:24,952 - INFO - VM name : ctest-TestBasicPolicy-80971940-80588333 2026-01-19 02:38:25,035 - DEBUG - VM ctest-TestBasicPolicy-80971940-80588333 ID is 87708798-34a1-4fef-a88e-b91b12d6e35e 2026-01-19 02:38:25,059 - DEBUG - VM ctest-TestBasicPolicy-80971940-80588333 launched on Node an-jenkins-deploy-platform-ansible-os-5040-1 2026-01-19 02:38:25,144 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/87708798-34a1-4fef-a88e-b91b12d6e35e 2026-01-19 02:38:25,462 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/87708798-34a1-4fef-a88e-b91b12d6e35e 2026-01-19 02:38:25,503 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/d21db056-54f9-4275-9a12-91dff1e2a852 2026-01-19 02:38:28,680 - 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 1001ms') 2026-01-19 02:38:28,680 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80971940-80588333 failed! 2026-01-19 02:38:28,693 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512 is 129.56.153.129 and allocation pool is NOT set 2026-01-19 02:38:32,776 - 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') 2026-01-19 02:38:32,776 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80971940-80588333 failed! 2026-01-19 02:38:32,792 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512 is 129.56.153.129 and allocation pool is NOT set 2026-01-19 02:38:36,864 - 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 1012ms') 2026-01-19 02:38:36,864 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80971940-80588333 failed! 2026-01-19 02:38:36,878 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512 is 129.56.153.129 and allocation pool is NOT set 2026-01-19 02:38:40,967 - 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') 2026-01-19 02:38:40,967 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80971940-80588333 failed! 2026-01-19 02:38:40,981 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512 is 129.56.153.129 and allocation pool is NOT set 2026-01-19 02:38:45,058 - 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 1015ms') 2026-01-19 02:38:45,059 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80971940-80588333 failed! 2026-01-19 02:38:45,076 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512 is 129.56.153.129 and allocation pool is NOT set 2026-01-19 02:38:49,159 - 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 1020ms') 2026-01-19 02:38:49,159 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80971940-80588333 failed! 2026-01-19 02:38:49,173 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512 is 129.56.153.129 and allocation pool is NOT set 2026-01-19 02:38:53,252 - 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') 2026-01-19 02:38:53,252 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80971940-80588333 failed! 2026-01-19 02:38:53,268 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512 is 129.56.153.129 and allocation pool is NOT set 2026-01-19 02:38:57,348 - 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 1017ms') 2026-01-19 02:38:57,348 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80971940-80588333 failed! 2026-01-19 02:38:57,364 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80971940:ctest-vn-16358512 is 129.56.153.129 and allocation pool is NOT set 2026-01-19 02:38:59,431 - 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=8.94 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.63 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.631/5.284/8.937/3.653 ms') 2026-01-19 02:38:59,431 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80971940-80588333 passed 2026-01-19 02:38:59,527 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-19 02:38:59,527 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80971940-80588333, IP 129.56.153.131, Port 22 2026-01-19 02:38:59,593 - 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': ''} 2026-01-19 02:38:59,679 - DEBUG - VM ctest-TestBasicPolicy-80971940-80588333 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-19 02:39:04,679 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-19 02:39:04,680 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80971940-80588333, IP 129.56.153.131, Port 22 2026-01-19 02:39:04,734 - 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': ''} 2026-01-19 02:39:04,810 - DEBUG - VM ctest-TestBasicPolicy-80971940-80588333 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-19 02:39:09,810 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-19 02:39:09,811 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80971940-80588333, IP 129.56.153.131, Port 22 2026-01-19 02:39:09,877 - 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': ''} 2026-01-19 02:39:09,976 - DEBUG - VM ctest-TestBasicPolicy-80971940-80588333 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-19 02:39:14,977 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-19 02:39:14,977 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80971940-80588333, IP 129.56.153.131, Port 22 2026-01-19 02:39:15,045 - 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': ''} 2026-01-19 02:39:15,124 - DEBUG - VM ctest-TestBasicPolicy-80971940-80588333 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-19 02:39:20,125 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-19 02:39:20,125 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80971940-80588333, IP 129.56.153.131, Port 22 2026-01-19 02:39:20,310 - DEBUG - VM ctest-TestBasicPolicy-80971940-80588333 is ready for SSH connections 2026-01-19 02:39:20,310 - INFO - Waiting for VM ctest-TestBasicPolicy-80971940-80718110 to be up.. 2026-01-19 02:39:20,397 - DEBUG - VM is in ACTIVE state now 2026-01-19 02:39:20,397 - INFO - VM name : ctest-TestBasicPolicy-80971940-80718110 2026-01-19 02:39:20,476 - DEBUG - VM ctest-TestBasicPolicy-80971940-80718110 ID is 05900dae-a6ff-454e-8559-b198b0643f1c 2026-01-19 02:39:20,476 - DEBUG - VM ctest-TestBasicPolicy-80971940-80718110 launched on Node an-jenkins-deploy-platform-ansible-os-5040-2 2026-01-19 02:39:20,553 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/05900dae-a6ff-454e-8559-b198b0643f1c 2026-01-19 02:39:20,564 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/70aa6c1b-8b21-468c-96dc-aa73e5533d68 2026-01-19 02:39:21,730 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=3.74 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.787 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.787/2.264/3.742/1.477 ms') 2026-01-19 02:39:21,730 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80971940-80718110 passed 2026-01-19 02:39:21,800 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-19 02:39:21,800 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80971940-80718110, IP 147.183.123.195, Port 22 2026-01-19 02:39:21,970 - DEBUG - VM ctest-TestBasicPolicy-80971940-80718110 is ready for SSH connections 2026-01-19 02:39:21,970 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-19 02:39:21,970 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 147.183.123.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2026-01-19 02:39:21,970 - DEBUG - ping -s 56 -c 3 -W 1 147.183.123.195 2026-01-19 02:39:42,013 - DEBUG - PING 147.183.123.195 (147.183.123.195) 56(84) bytes of data. 64 bytes from 147.183.123.195: icmp_req=1 ttl=63 time=8.18 ms 64 bytes from 147.183.123.195: icmp_req=2 ttl=63 time=1.37 ms 64 bytes from 147.183.123.195: icmp_req=3 ttl=63 time=1.17 ms --- 147.183.123.195 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 1.177/3.579/8.186/3.258 ms 2026-01-19 02:39:42,013 - INFO - Ping to IP 147.183.123.195 from VM ctest-TestBasicPolicy-80971940-80588333 passed 2026-01-19 02:39:42,219 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e04fe1b4-19d9-4eb1-b066-a1842c74efe3", "href": "http://10.0.0.23:8082/network-policy/e04fe1b4-19d9-4eb1-b066-a1842c74efe3"}} 2026-01-19 02:39:42,219 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-19 02:39:42,219 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 147.183.123.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2026-01-19 02:39:42,219 - DEBUG - ping -s 56 -c 3 -W 1 147.183.123.195 2026-01-19 02:39:45,663 - DEBUG - PING 147.183.123.195 (147.183.123.195) 56(84) bytes of data. 64 bytes from 147.183.123.195: icmp_req=1 ttl=63 time=4.21 ms --- 147.183.123.195 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2002ms rtt min/avg/max/mdev = 4.210/4.210/4.210/0.000 ms 2026-01-19 02:39:45,663 - WARNING - Ping to IP 147.183.123.195 from VM ctest-TestBasicPolicy-80971940-80588333 failed 2026-01-19 02:39:45,664 - INFO - Deleting VM ctest-TestBasicPolicy-80971940-80718110 2026-01-19 02:39:45,735 - INFO - Deleting VM ctest-TestBasicPolicy-80971940-80588333 2026-01-19 02:39:46,196 - INFO - Deleted policy ctest-policy-allow-all-01843859 2026-01-19 02:39:46,196 - INFO - Deleting VN ctest-vn-93361117 2026-01-19 02:39:46,238 - DEBUG - VN 013b39c6-c840-4d7d-a942-51ca3d072938 still in use: Unable to complete operation on network 013b39c6-c840-4d7d-a942-51ca3d072938. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e26011eb-2db6-4c50-a7a5-dad266a4761b'] 2026-01-19 02:39:46,238 - WARNING - Deleting VN ctest-vn-93361117 failed..Will retry 2026-01-19 02:39:48,387 - DEBUG - Response for deleting network () 2026-01-19 02:39:48,388 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/24616ac3-8824-4b47-a03b-3ddf8d579987 2026-01-19 02:39:48,393 - DEBUG - Response Code: 404 2026-01-19 02:39:48,393 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-19 02:39:48,397 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bc123c74-c45e-4d7a-a955-76f59d7a4cc7 2026-01-19 02:39:48,458 - DEBUG - Requesting: http://10.0.0.27:8082/project/fe2efa4f-6213-4b00-9bc7-073c817cbd2e 2026-01-19 02:39:48,543 - INFO - Validated that VN ctest-vn-93361117 is not found in API Server 2026-01-19 02:39:48,555 - DEBUG - VN ctest-vn-93361117 is not present in Agent 10.0.0.249 2026-01-19 02:39:48,564 - DEBUG - VN ctest-vn-93361117 is not present in Agent 10.0.0.65 2026-01-19 02:39:48,564 - INFO - Validated that VN ctest-vn-93361117 is not in any agent 2026-01-19 02:39:48,594 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-93361117 info 2026-01-19 02:39:48,594 - INFO - Deleting VN ctest-vn-16358512 2026-01-19 02:39:48,760 - DEBUG - Response for deleting network () 2026-01-19 02:39:48,760 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/08ac153a-a2e7-40f9-a353-2343e11248c0 2026-01-19 02:39:48,766 - DEBUG - Response Code: 404 2026-01-19 02:39:48,766 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-19 02:39:48,772 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bc123c74-c45e-4d7a-a955-76f59d7a4cc7 2026-01-19 02:39:48,784 - DEBUG - Requesting: http://10.0.0.27:8082/project/fe2efa4f-6213-4b00-9bc7-073c817cbd2e 2026-01-19 02:39:48,898 - INFO - Validated that VN ctest-vn-16358512 is not found in API Server 2026-01-19 02:39:48,908 - DEBUG - VN ctest-vn-16358512 is not present in Agent 10.0.0.249 2026-01-19 02:39:48,917 - DEBUG - VN ctest-vn-16358512 is not present in Agent 10.0.0.65 2026-01-19 02:39:48,917 - INFO - Validated that VN ctest-vn-16358512 is not in any agent 2026-01-19 02:39:48,950 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-16358512 info 2026-01-19 02:39:50,213 - DEBUG - No XMPP flaps were noticed during the test
2026-01-19 02:39:50,213 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:39]
2026-01-19 02:39:50,213 - INFO - -------------------------------------------------------------------------------- 2026-01-19 02:39:50,907 - INFO - Deleted project: ctest-TestBasicPolicy-80971940, ID : fe2efa4f-6213-4b00-9bc7-073c817cbd2e