2025-06-10 23:32:51,528 - INFO - Domain Default found not creating
2025-06-10 23:32:51,664 - INFO - Project ctest-TestBasicPolicy-18289586 not found, creating it
2025-06-10 23:32:52,118 - INFO - Created Project:ctest-TestBasicPolicy-18289586, ID : 7b80df4d-4170-4b1a-9260-1dbeb47f42cd
2025-06-10 23:32:53,556 - INFO - ================================================================================
2025-06-10 23:32:53,557 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-10 23:32:53,557 - 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-06-10 23:32:53,820 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-06-10 23:32:53,820 - INFO - Initial checks done. Running the testcase now
2025-06-10 23:32:53,820 - INFO -
2025-06-10 23:32:54,344 - DEBUG - Response for create_network : {'network': {'id': '95e7fef5-bec9-4569-9d64-c8f0494a09ae', 'name': 'ctest-vn-41160985', 'tenant_id': '7b80df4d41704b1a92601dbeb47f42cd', 'project_id': '7b80df4d41704b1a92601dbeb47f42cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18289586', 'ctest-vn-41160985'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 23:32:54,503 - DEBUG - Response for create_subnet : {'subnet': {'id': '02a219a4-b11d-428f-b409-f9250ccbb394', 'name': '', 'tenant_id': '7b80df4d41704b1a92601dbeb47f42cd', 'network_id': '95e7fef5-bec9-4569-9d64-c8f0494a09ae', 'ip_version': 4, 'cidr': '3.157.232.0/26', 'allocation_pools': [{'start': '3.157.232.2', 'end': '3.157.232.62'}], 'gateway_ip': '3.157.232.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.157.232.2', 'tags': [], 'project_id': '7b80df4d41704b1a92601dbeb47f42cd'}}
2025-06-10 23:32:54,523 - INFO - Created VN ctest-vn-41160985
2025-06-10 23:32:54,575 - DEBUG - VN ctest-vn-41160985 UUID is 95e7fef5-bec9-4569-9d64-c8f0494a09ae
2025-06-10 23:32:54,858 - DEBUG - Response for create_network : {'network': {'id': '9d3ea143-2335-4920-b764-1eb09b71d445', 'name': 'ctest-vn-90005951', 'tenant_id': '7b80df4d41704b1a92601dbeb47f42cd', 'project_id': '7b80df4d41704b1a92601dbeb47f42cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18289586', 'ctest-vn-90005951'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 23:32:55,060 - DEBUG - Response for create_subnet : {'subnet': {'id': '2bb0805a-4237-4340-91e2-e84fa50bd956', 'name': '', 'tenant_id': '7b80df4d41704b1a92601dbeb47f42cd', 'network_id': '9d3ea143-2335-4920-b764-1eb09b71d445', 'ip_version': 4, 'cidr': '191.176.100.128/26', 'allocation_pools': [{'start': '191.176.100.130', 'end': '191.176.100.190'}], 'gateway_ip': '191.176.100.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.176.100.130', 'tags': [], 'project_id': '7b80df4d41704b1a92601dbeb47f42cd'}}
2025-06-10 23:32:55,078 - INFO - Created VN ctest-vn-90005951
2025-06-10 23:32:55,131 - DEBUG - VN ctest-vn-90005951 UUID is 9d3ea143-2335-4920-b764-1eb09b71d445
2025-06-10 23:32:55,278 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18289586:ctest-vn-41160985, 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-18289586:ctest-vn-90005951, 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-06-10 23:32:55,561 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '95e7fef5-bec9-4569-9d64-c8f0494a09ae', 'name': 'ctest-vn-41160985', 'tenant_id': '7b80df4d41704b1a92601dbeb47f42cd', 'project_id': '7b80df4d41704b1a92601dbeb47f42cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['02a219a4-b11d-428f-b409-f9250ccbb394'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18289586', 'ctest-vn-41160985'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18289586', 'ctest-policy-allow-all-95083251']], 'subnet_ipam': [{'subnet_cidr': '3.157.232.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 23:32:55,785 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9d3ea143-2335-4920-b764-1eb09b71d445', 'name': 'ctest-vn-90005951', 'tenant_id': '7b80df4d41704b1a92601dbeb47f42cd', 'project_id': '7b80df4d41704b1a92601dbeb47f42cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2bb0805a-4237-4340-91e2-e84fa50bd956'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18289586', 'ctest-vn-90005951'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18289586', 'ctest-policy-allow-all-95083251']], 'subnet_ipam': [{'subnet_cidr': '191.176.100.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 23:32:55,951 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-10 23:32:56,239 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-10 23:32:56,266 - DEBUG - Requesting: http://10.0.0.38:8082/domain/496cb727-ad41-4a83-8a4d-87d4edc8fe4f
2025-06-10 23:32:56,280 - DEBUG - Requesting: http://10.0.0.38:8082/project/7b80df4d-4170-4b1a-9260-1dbeb47f42cd
2025-06-10 23:32:56,355 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/95e7fef5-bec9-4569-9d64-c8f0494a09ae
2025-06-10 23:32:56,366 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/95e7fef5-bec9-4569-9d64-c8f0494a09ae
2025-06-10 23:32:56,375 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/00df1fe2-4d8e-493a-85f3-5d540a38f6d9
2025-06-10 23:32:56,382 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/00df1fe2-4d8e-493a-85f3-5d540a38f6d9
2025-06-10 23:32:56,389 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/534a4893-0239-456e-b482-b8be54e9a086
2025-06-10 23:32:56,395 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 23:32:56,395 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/95e7fef5-bec9-4569-9d64-c8f0494a09ae
2025-06-10 23:32:56,404 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/00df1fe2-4d8e-493a-85f3-5d540a38f6d9
2025-06-10 23:32:56,416 - INFO - Verified VN network id 8 for VN 95e7fef5-bec9-4569-9d64-c8f0494a09ae
2025-06-10 23:32:56,417 - INFO - Verifications in API Server for VN ctest-vn-41160985 passed
2025-06-10 23:32:56,417 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/95e7fef5-bec9-4569-9d64-c8f0494a09ae
2025-06-10 23:32:56,427 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/00df1fe2-4d8e-493a-85f3-5d540a38f6d9
2025-06-10 23:32:56,433 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/00df1fe2-4d8e-493a-85f3-5d540a38f6d9
2025-06-10 23:32:56,440 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/534a4893-0239-456e-b482-b8be54e9a086
2025-06-10 23:32:56,451 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18289586:ctest-vn-41160985', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18289586', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10801882562692728169', 'uuid-lslong': '11341410695973046702'}, 'enable': 'true', 'created': '2025-06-10T23:32:54', 'last-modified': '2025-06-10T23:32:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.905922'}
2025-06-10 23:32:56,457 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 23:32:56,457 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41160985 passed
2025-06-10 23:32:56,458 - DEBUG - ====Verifying policy data for ctest-vn-41160985 in API_Server ======
2025-06-10 23:32:56,458 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-10 23:32:56,462 - DEBUG - Requesting: http://10.0.0.38:8082/domain/496cb727-ad41-4a83-8a4d-87d4edc8fe4f
2025-06-10 23:32:56,473 - DEBUG - Requesting: http://10.0.0.38:8082/project/7b80df4d-4170-4b1a-9260-1dbeb47f42cd
2025-06-10 23:32:56,547 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/95e7fef5-bec9-4569-9d64-c8f0494a09ae
2025-06-10 23:32:56,556 - DEBUG - ==>Verifying data for policy with id: c9ef2ed5-2f78-4f91-88cb-023586ce0830, fqn: ['default-domain', 'ctest-TestBasicPolicy-18289586', 'ctest-policy-allow-all-95083251']
2025-06-10 23:32:56,556 - INFO - VN ctest-vn-41160985 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 23:32:56,556 - DEBUG - Verifying the vn in opserver
2025-06-10 23:32:56,556 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18289586:ctest-vn-41160985 virtual network link through opserver 10.0.0.38
2025-06-10 23:32:56,557 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-10 23:32:56,851 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-10 23:32:56,904 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18289586:ctest-vn-41160985', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18289586:ctest-vn-41160985?flat'}
2025-06-10 23:32:56,904 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18289586:ctest-vn-41160985 is found in opserver
2025-06-10 23:32:56,918 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 23:32:56,923 - DEBUG - VRF ids for VN ctest-vn-41160985: {}
2025-06-10 23:32:56,923 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-10 23:32:56,930 - DEBUG - Requesting: http://10.0.0.38:8082/domain/496cb727-ad41-4a83-8a4d-87d4edc8fe4f
2025-06-10 23:32:56,942 - DEBUG - Requesting: http://10.0.0.38:8082/project/7b80df4d-4170-4b1a-9260-1dbeb47f42cd
2025-06-10 23:32:57,016 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d3ea143-2335-4920-b764-1eb09b71d445
2025-06-10 23:32:57,029 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d3ea143-2335-4920-b764-1eb09b71d445
2025-06-10 23:32:57,040 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0468c97-012c-44fa-ad3b-e359d3e8c95e
2025-06-10 23:32:57,048 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0468c97-012c-44fa-ad3b-e359d3e8c95e
2025-06-10 23:32:57,056 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c75cc9cf-c624-456e-89d3-ddb436a1a249
2025-06-10 23:32:57,065 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 23:32:57,065 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d3ea143-2335-4920-b764-1eb09b71d445
2025-06-10 23:32:57,074 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0468c97-012c-44fa-ad3b-e359d3e8c95e
2025-06-10 23:32:57,088 - INFO - Verified VN network id 9 for VN 9d3ea143-2335-4920-b764-1eb09b71d445
2025-06-10 23:32:57,088 - INFO - Verifications in API Server for VN ctest-vn-90005951 passed
2025-06-10 23:32:57,088 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d3ea143-2335-4920-b764-1eb09b71d445
2025-06-10 23:32:57,098 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0468c97-012c-44fa-ad3b-e359d3e8c95e
2025-06-10 23:32:57,105 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0468c97-012c-44fa-ad3b-e359d3e8c95e
2025-06-10 23:32:57,112 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c75cc9cf-c624-456e-89d3-ddb436a1a249
2025-06-10 23:32:57,124 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18289586:ctest-vn-90005951', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18289586', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11330671022236322080', 'uuid-lslong': '13214720950482883653'}, 'enable': 'true', 'created': '2025-06-10T23:32:54', 'last-modified': '2025-06-10T23:32:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.358358'}
2025-06-10 23:32:57,129 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 23:32:57,129 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90005951 passed
2025-06-10 23:32:57,130 - DEBUG - ====Verifying policy data for ctest-vn-90005951 in API_Server ======
2025-06-10 23:32:57,130 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-10 23:32:57,137 - DEBUG - Requesting: http://10.0.0.38:8082/domain/496cb727-ad41-4a83-8a4d-87d4edc8fe4f
2025-06-10 23:32:57,150 - DEBUG - Requesting: http://10.0.0.38:8082/project/7b80df4d-4170-4b1a-9260-1dbeb47f42cd
2025-06-10 23:32:57,224 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d3ea143-2335-4920-b764-1eb09b71d445
2025-06-10 23:32:57,234 - DEBUG - ==>Verifying data for policy with id: c9ef2ed5-2f78-4f91-88cb-023586ce0830, fqn: ['default-domain', 'ctest-TestBasicPolicy-18289586', 'ctest-policy-allow-all-95083251']
2025-06-10 23:32:57,234 - INFO - VN ctest-vn-90005951 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 23:32:57,234 - DEBUG - Verifying the vn in opserver
2025-06-10 23:32:57,234 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18289586:ctest-vn-90005951 virtual network link through opserver 10.0.0.38
2025-06-10 23:32:57,234 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-10 23:32:57,244 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18289586:ctest-vn-90005951', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18289586:ctest-vn-90005951?flat'}
2025-06-10 23:32:57,244 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18289586:ctest-vn-90005951 is found in opserver
2025-06-10 23:32:57,254 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 23:32:57,259 - DEBUG - VRF ids for VN ctest-vn-90005951: {}
2025-06-10 23:32:57,309 - DEBUG - Services list from nova: [