2025-08-28 18:40:24,119 - INFO - Domain Default found not creating
2025-08-28 18:40:24,309 - INFO - Project ctest-TestBasicPolicy-96060668 not found, creating it
2025-08-28 18:40:24,795 - INFO - Created Project:ctest-TestBasicPolicy-96060668, ID : 5beaaf29-ae2e-4a98-8f52-2439254c19be
2025-08-28 18:40:26,372 - INFO - ================================================================================
2025-08-28 18:40:26,373 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-28 18:40:26,373 - 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-08-28 18:40:26,636 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-08-28 18:40:26,636 - INFO - Initial checks done. Running the testcase now
2025-08-28 18:40:26,636 - INFO -
2025-08-28 18:40:27,259 - DEBUG - Response for create_network : {'network': {'id': '3232f989-9482-407f-9e3b-c700f18de0ce', 'name': 'ctest-vn-49047248', 'tenant_id': '5beaaf29ae2e4a988f522439254c19be', 'project_id': '5beaaf29ae2e4a988f522439254c19be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96060668', 'ctest-vn-49047248'], 'port_security_enabled': True, 'description': ''}}
2025-08-28 18:40:27,474 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd6b6f8ac-09b6-478a-a096-4d50b93c5729', 'name': '', 'tenant_id': '5beaaf29ae2e4a988f522439254c19be', 'network_id': '3232f989-9482-407f-9e3b-c700f18de0ce', 'ip_version': 4, 'cidr': '132.38.228.0/26', 'allocation_pools': [{'start': '132.38.228.2', 'end': '132.38.228.62'}], 'gateway_ip': '132.38.228.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.38.228.2', 'tags': [], 'project_id': '5beaaf29ae2e4a988f522439254c19be'}}
2025-08-28 18:40:27,497 - INFO - Created VN ctest-vn-49047248
2025-08-28 18:40:27,549 - DEBUG - VN ctest-vn-49047248 UUID is 3232f989-9482-407f-9e3b-c700f18de0ce
2025-08-28 18:40:27,874 - DEBUG - Response for create_network : {'network': {'id': '847dec56-5274-4bb9-b89f-5844f9b7c3b1', 'name': 'ctest-vn-62418409', 'tenant_id': '5beaaf29ae2e4a988f522439254c19be', 'project_id': '5beaaf29ae2e4a988f522439254c19be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96060668', 'ctest-vn-62418409'], 'port_security_enabled': True, 'description': ''}}
2025-08-28 18:40:28,049 - DEBUG - Response for create_subnet : {'subnet': {'id': '57c30b7a-3fda-46ce-9f63-ef0f300005c2', 'name': '', 'tenant_id': '5beaaf29ae2e4a988f522439254c19be', 'network_id': '847dec56-5274-4bb9-b89f-5844f9b7c3b1', 'ip_version': 4, 'cidr': '55.183.5.0/26', 'allocation_pools': [{'start': '55.183.5.2', 'end': '55.183.5.62'}], 'gateway_ip': '55.183.5.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.183.5.2', 'tags': [], 'project_id': '5beaaf29ae2e4a988f522439254c19be'}}
2025-08-28 18:40:28,069 - INFO - Created VN ctest-vn-62418409
2025-08-28 18:40:28,125 - DEBUG - VN ctest-vn-62418409 UUID is 847dec56-5274-4bb9-b89f-5844f9b7c3b1
2025-08-28 18:40:28,251 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96060668:ctest-vn-49047248, 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-96060668:ctest-vn-62418409, 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-08-28 18:40:28,556 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3232f989-9482-407f-9e3b-c700f18de0ce', 'name': 'ctest-vn-49047248', 'tenant_id': '5beaaf29ae2e4a988f522439254c19be', 'project_id': '5beaaf29ae2e4a988f522439254c19be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d6b6f8ac-09b6-478a-a096-4d50b93c5729'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96060668', 'ctest-vn-49047248'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96060668', 'ctest-policy-allow-all-20329421']], 'subnet_ipam': [{'subnet_cidr': '132.38.228.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-28 18:40:28,797 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '847dec56-5274-4bb9-b89f-5844f9b7c3b1', 'name': 'ctest-vn-62418409', 'tenant_id': '5beaaf29ae2e4a988f522439254c19be', 'project_id': '5beaaf29ae2e4a988f522439254c19be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['57c30b7a-3fda-46ce-9f63-ef0f300005c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96060668', 'ctest-vn-62418409'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96060668', 'ctest-policy-allow-all-20329421']], 'subnet_ipam': [{'subnet_cidr': '55.183.5.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-28 18:40:28,993 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-28 18:40:29,294 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-28 18:40:29,325 - DEBUG - Requesting: http://10.0.0.254:8082/domain/eb4e0600-9558-4345-8dba-38d7c5747ae8
2025-08-28 18:40:29,337 - DEBUG - Requesting: http://10.0.0.254:8082/project/5beaaf29-ae2e-4a98-8f52-2439254c19be
2025-08-28 18:40:29,416 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3232f989-9482-407f-9e3b-c700f18de0ce
2025-08-28 18:40:29,427 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3232f989-9482-407f-9e3b-c700f18de0ce
2025-08-28 18:40:29,437 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34b95a68-fbad-440a-91fd-cb898164d931
2025-08-28 18:40:29,444 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34b95a68-fbad-440a-91fd-cb898164d931
2025-08-28 18:40:29,452 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5820a2cc-469b-4741-b0b5-3cc6b9f56fff
2025-08-28 18:40:29,459 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-28 18:40:29,459 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3232f989-9482-407f-9e3b-c700f18de0ce
2025-08-28 18:40:29,468 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34b95a68-fbad-440a-91fd-cb898164d931
2025-08-28 18:40:29,483 - INFO - Verified VN network id 11 for VN 3232f989-9482-407f-9e3b-c700f18de0ce
2025-08-28 18:40:29,483 - INFO - Verifications in API Server for VN ctest-vn-49047248 passed
2025-08-28 18:40:29,483 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3232f989-9482-407f-9e3b-c700f18de0ce
2025-08-28 18:40:29,493 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34b95a68-fbad-440a-91fd-cb898164d931
2025-08-28 18:40:29,500 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34b95a68-fbad-440a-91fd-cb898164d931
2025-08-28 18:40:29,507 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5820a2cc-469b-4741-b0b5-3cc6b9f56fff
2025-08-28 18:40:29,520 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96060668:ctest-vn-49047248', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96060668', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3617227820029329535', 'uuid-lslong': '11401925688485077198'}, 'enable': 'true', 'created': '2025-08-28T18:40:27', 'last-modified': '2025-08-28T18:40:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.981533'}
2025-08-28 18:40:29,526 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-28 18:40:29,526 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49047248 passed
2025-08-28 18:40:29,526 - DEBUG - ====Verifying policy data for ctest-vn-49047248 in API_Server ======
2025-08-28 18:40:29,526 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-28 18:40:29,533 - DEBUG - Requesting: http://10.0.0.254:8082/domain/eb4e0600-9558-4345-8dba-38d7c5747ae8
2025-08-28 18:40:29,544 - DEBUG - Requesting: http://10.0.0.254:8082/project/5beaaf29-ae2e-4a98-8f52-2439254c19be
2025-08-28 18:40:29,614 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3232f989-9482-407f-9e3b-c700f18de0ce
2025-08-28 18:40:29,625 - DEBUG - ==>Verifying data for policy with id: 850d05af-2a4a-471c-b539-93566d8bcca2, fqn: ['default-domain', 'ctest-TestBasicPolicy-96060668', 'ctest-policy-allow-all-20329421']
2025-08-28 18:40:29,625 - INFO - VN ctest-vn-49047248 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-28 18:40:29,625 - DEBUG - Verifying the vn in opserver
2025-08-28 18:40:29,625 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96060668:ctest-vn-49047248 virtual network link through opserver 10.0.0.254
2025-08-28 18:40:29,625 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-28 18:40:29,929 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-28 18:40:29,994 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96060668:ctest-vn-49047248', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96060668:ctest-vn-49047248?flat'}
2025-08-28 18:40:29,994 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96060668:ctest-vn-49047248 is found in opserver
2025-08-28 18:40:30,004 - DEBUG - Do not have enough data to verify VN in agent
2025-08-28 18:40:30,008 - DEBUG - VRF ids for VN ctest-vn-49047248: {}
2025-08-28 18:40:30,008 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-28 18:40:30,014 - DEBUG - Requesting: http://10.0.0.254:8082/domain/eb4e0600-9558-4345-8dba-38d7c5747ae8
2025-08-28 18:40:30,027 - DEBUG - Requesting: http://10.0.0.254:8082/project/5beaaf29-ae2e-4a98-8f52-2439254c19be
2025-08-28 18:40:30,100 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/847dec56-5274-4bb9-b89f-5844f9b7c3b1
2025-08-28 18:40:30,111 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/847dec56-5274-4bb9-b89f-5844f9b7c3b1
2025-08-28 18:40:30,124 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7b71db5-6b94-4936-97a1-a75c62b3b3a3
2025-08-28 18:40:30,131 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7b71db5-6b94-4936-97a1-a75c62b3b3a3
2025-08-28 18:40:30,139 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/795f3b0f-2da7-4c5e-bbda-d72ef53a3c39
2025-08-28 18:40:30,148 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-28 18:40:30,148 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/847dec56-5274-4bb9-b89f-5844f9b7c3b1
2025-08-28 18:40:30,160 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7b71db5-6b94-4936-97a1-a75c62b3b3a3
2025-08-28 18:40:30,176 - INFO - Verified VN network id 12 for VN 847dec56-5274-4bb9-b89f-5844f9b7c3b1
2025-08-28 18:40:30,177 - INFO - Verifications in API Server for VN ctest-vn-62418409 passed
2025-08-28 18:40:30,177 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/847dec56-5274-4bb9-b89f-5844f9b7c3b1
2025-08-28 18:40:30,188 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7b71db5-6b94-4936-97a1-a75c62b3b3a3
2025-08-28 18:40:30,197 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7b71db5-6b94-4936-97a1-a75c62b3b3a3
2025-08-28 18:40:30,205 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/795f3b0f-2da7-4c5e-bbda-d72ef53a3c39
2025-08-28 18:40:30,217 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96060668:ctest-vn-62418409', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96060668', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9547046640590015417', 'uuid-lslong': '13303448877546324913'}, 'enable': 'true', 'created': '2025-08-28T18:40:27', 'last-modified': '2025-08-28T18:40:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.445414'}
2025-08-28 18:40:30,223 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-28 18:40:30,224 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62418409 passed
2025-08-28 18:40:30,224 - DEBUG - ====Verifying policy data for ctest-vn-62418409 in API_Server ======
2025-08-28 18:40:30,224 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-28 18:40:30,230 - DEBUG - Requesting: http://10.0.0.254:8082/domain/eb4e0600-9558-4345-8dba-38d7c5747ae8
2025-08-28 18:40:30,243 - DEBUG - Requesting: http://10.0.0.254:8082/project/5beaaf29-ae2e-4a98-8f52-2439254c19be
2025-08-28 18:40:30,310 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/847dec56-5274-4bb9-b89f-5844f9b7c3b1
2025-08-28 18:40:30,320 - DEBUG - ==>Verifying data for policy with id: 850d05af-2a4a-471c-b539-93566d8bcca2, fqn: ['default-domain', 'ctest-TestBasicPolicy-96060668', 'ctest-policy-allow-all-20329421']
2025-08-28 18:40:30,320 - INFO - VN ctest-vn-62418409 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-28 18:40:30,320 - DEBUG - Verifying the vn in opserver
2025-08-28 18:40:30,320 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96060668:ctest-vn-62418409 virtual network link through opserver 10.0.0.254
2025-08-28 18:40:30,320 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-28 18:40:30,331 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96060668:ctest-vn-62418409', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96060668:ctest-vn-62418409?flat'}
2025-08-28 18:40:30,331 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96060668:ctest-vn-62418409 is found in opserver
2025-08-28 18:40:30,341 - DEBUG - Do not have enough data to verify VN in agent
2025-08-28 18:40:30,345 - DEBUG - VRF ids for VN ctest-vn-62418409: {}
2025-08-28 18:40:30,408 - DEBUG - Services list from nova: [