2025-10-15 10:46:51,795 - INFO - Domain Default found not creating
2025-10-15 10:46:51,947 - INFO - Project ctest-TestBasicPolicy-22035750 not found, creating it
2025-10-15 10:46:52,424 - INFO - Created Project:ctest-TestBasicPolicy-22035750, ID : a924d07f-1412-4722-82d2-e2d61c439f12
2025-10-15 10:46:53,857 - INFO - ================================================================================
2025-10-15 10:46:53,858 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-15 10:46:53,858 - 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-10-15 10:46:54,117 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.145': '0'}} with
2025-10-15 10:46:54,117 - INFO - Initial checks done. Running the testcase now
2025-10-15 10:46:54,117 - INFO -
2025-10-15 10:46:54,668 - DEBUG - Response for create_network : {'network': {'id': 'cc512f49-8144-45d3-9cd5-3f7e876fa888', 'name': 'ctest-vn-24448525', 'tenant_id': 'a924d07f1412472282d2e2d61c439f12', 'project_id': 'a924d07f1412472282d2e2d61c439f12', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22035750', 'ctest-vn-24448525'], 'port_security_enabled': True, 'description': ''}}
2025-10-15 10:46:54,853 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fee8233a-f984-4fd6-a078-61265fc90259', 'name': '', 'tenant_id': 'a924d07f1412472282d2e2d61c439f12', 'network_id': 'cc512f49-8144-45d3-9cd5-3f7e876fa888', 'ip_version': 4, 'cidr': '207.162.18.0/26', 'allocation_pools': [{'start': '207.162.18.2', 'end': '207.162.18.62'}], 'gateway_ip': '207.162.18.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.162.18.2', 'tags': [], 'project_id': 'a924d07f1412472282d2e2d61c439f12'}}
2025-10-15 10:46:54,872 - INFO - Created VN ctest-vn-24448525
2025-10-15 10:46:54,924 - DEBUG - VN ctest-vn-24448525 UUID is cc512f49-8144-45d3-9cd5-3f7e876fa888
2025-10-15 10:46:55,255 - DEBUG - Response for create_network : {'network': {'id': '094dde11-3e67-4035-a33e-e815baa96fa1', 'name': 'ctest-vn-05478893', 'tenant_id': 'a924d07f1412472282d2e2d61c439f12', 'project_id': 'a924d07f1412472282d2e2d61c439f12', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22035750', 'ctest-vn-05478893'], 'port_security_enabled': True, 'description': ''}}
2025-10-15 10:46:55,443 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad71e8e5-d5d1-47a0-929d-3aecf5c21564', 'name': '', 'tenant_id': 'a924d07f1412472282d2e2d61c439f12', 'network_id': '094dde11-3e67-4035-a33e-e815baa96fa1', 'ip_version': 4, 'cidr': '188.217.224.0/26', 'allocation_pools': [{'start': '188.217.224.2', 'end': '188.217.224.62'}], 'gateway_ip': '188.217.224.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.217.224.2', 'tags': [], 'project_id': 'a924d07f1412472282d2e2d61c439f12'}}
2025-10-15 10:46:55,463 - INFO - Created VN ctest-vn-05478893
2025-10-15 10:46:55,512 - DEBUG - VN ctest-vn-05478893 UUID is 094dde11-3e67-4035-a33e-e815baa96fa1
2025-10-15 10:46:55,664 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22035750:ctest-vn-24448525, 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-22035750:ctest-vn-05478893, 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-10-15 10:46:55,957 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cc512f49-8144-45d3-9cd5-3f7e876fa888', 'name': 'ctest-vn-24448525', 'tenant_id': 'a924d07f1412472282d2e2d61c439f12', 'project_id': 'a924d07f1412472282d2e2d61c439f12', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fee8233a-f984-4fd6-a078-61265fc90259'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22035750', 'ctest-vn-24448525'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22035750', 'ctest-policy-allow-all-52242869']], 'subnet_ipam': [{'subnet_cidr': '207.162.18.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-15 10:46:56,178 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '094dde11-3e67-4035-a33e-e815baa96fa1', 'name': 'ctest-vn-05478893', 'tenant_id': 'a924d07f1412472282d2e2d61c439f12', 'project_id': 'a924d07f1412472282d2e2d61c439f12', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad71e8e5-d5d1-47a0-929d-3aecf5c21564'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22035750', 'ctest-vn-05478893'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22035750', 'ctest-policy-allow-all-52242869']], 'subnet_ipam': [{'subnet_cidr': '188.217.224.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-15 10:46:56,328 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-15 10:46:56,625 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-15 10:46:56,658 - DEBUG - Requesting: http://10.0.0.241:8082/domain/58e85365-4abb-4301-b346-bf3f20865322
2025-10-15 10:46:56,670 - DEBUG - Requesting: http://10.0.0.241:8082/project/a924d07f-1412-4722-82d2-e2d61c439f12
2025-10-15 10:46:56,744 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/cc512f49-8144-45d3-9cd5-3f7e876fa888
2025-10-15 10:46:56,755 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/cc512f49-8144-45d3-9cd5-3f7e876fa888
2025-10-15 10:46:56,766 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/e3f80c9e-e698-4bb6-a2b8-b6651002c24b
2025-10-15 10:46:56,774 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/e3f80c9e-e698-4bb6-a2b8-b6651002c24b
2025-10-15 10:46:56,783 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/35398553-715d-4994-bd60-2f71a79a8ada
2025-10-15 10:46:56,790 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-15 10:46:56,790 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/cc512f49-8144-45d3-9cd5-3f7e876fa888
2025-10-15 10:46:56,801 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/e3f80c9e-e698-4bb6-a2b8-b6651002c24b
2025-10-15 10:46:56,816 - INFO - Verified VN network id 11 for VN cc512f49-8144-45d3-9cd5-3f7e876fa888
2025-10-15 10:46:56,817 - INFO - Verifications in API Server for VN ctest-vn-24448525 passed
2025-10-15 10:46:56,817 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/cc512f49-8144-45d3-9cd5-3f7e876fa888
2025-10-15 10:46:56,826 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/e3f80c9e-e698-4bb6-a2b8-b6651002c24b
2025-10-15 10:46:56,834 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/e3f80c9e-e698-4bb6-a2b8-b6651002c24b
2025-10-15 10:46:56,842 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/35398553-715d-4994-bd60-2f71a79a8ada
2025-10-15 10:46:56,855 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22035750:ctest-vn-24448525', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22035750', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14722600649598715347', 'uuid-lslong': '11301008652626798728'}, 'enable': 'true', 'created': '2025-10-15T10:46:54', 'last-modified': '2025-10-15T10:46:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.923188'}
2025-10-15 10:46:56,860 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-15 10:46:56,860 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24448525 passed
2025-10-15 10:46:56,861 - DEBUG - ====Verifying policy data for ctest-vn-24448525 in API_Server ======
2025-10-15 10:46:56,861 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-15 10:46:56,866 - DEBUG - Requesting: http://10.0.0.241:8082/domain/58e85365-4abb-4301-b346-bf3f20865322
2025-10-15 10:46:56,877 - DEBUG - Requesting: http://10.0.0.241:8082/project/a924d07f-1412-4722-82d2-e2d61c439f12
2025-10-15 10:46:56,949 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/cc512f49-8144-45d3-9cd5-3f7e876fa888
2025-10-15 10:46:56,959 - DEBUG - ==>Verifying data for policy with id: 0aabd42b-b2a8-4ae6-a90f-9257449be4bd, fqn: ['default-domain', 'ctest-TestBasicPolicy-22035750', 'ctest-policy-allow-all-52242869']
2025-10-15 10:46:56,959 - INFO - VN ctest-vn-24448525 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-15 10:46:56,959 - DEBUG - Verifying the vn in opserver
2025-10-15 10:46:56,959 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22035750:ctest-vn-24448525 virtual network link through opserver 10.0.0.241
2025-10-15 10:46:56,959 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-10-15 10:46:57,254 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-10-15 10:46:57,318 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22035750:ctest-vn-24448525', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22035750:ctest-vn-24448525?flat'}
2025-10-15 10:46:57,318 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22035750:ctest-vn-24448525 is found in opserver
2025-10-15 10:46:57,327 - DEBUG - Do not have enough data to verify VN in agent
2025-10-15 10:46:57,333 - DEBUG - VRF ids for VN ctest-vn-24448525: {}
2025-10-15 10:46:57,333 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-15 10:46:57,339 - DEBUG - Requesting: http://10.0.0.241:8082/domain/58e85365-4abb-4301-b346-bf3f20865322
2025-10-15 10:46:57,351 - DEBUG - Requesting: http://10.0.0.241:8082/project/a924d07f-1412-4722-82d2-e2d61c439f12
2025-10-15 10:46:57,430 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/094dde11-3e67-4035-a33e-e815baa96fa1
2025-10-15 10:46:57,448 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/094dde11-3e67-4035-a33e-e815baa96fa1
2025-10-15 10:46:57,459 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/a4823176-a4aa-4699-8170-667ad961de80
2025-10-15 10:46:57,467 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/a4823176-a4aa-4699-8170-667ad961de80
2025-10-15 10:46:57,474 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/bc4b9ec5-1025-4914-afdc-2a1fe39d1418
2025-10-15 10:46:57,482 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-15 10:46:57,482 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/094dde11-3e67-4035-a33e-e815baa96fa1
2025-10-15 10:46:57,493 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/a4823176-a4aa-4699-8170-667ad961de80
2025-10-15 10:46:57,510 - INFO - Verified VN network id 12 for VN 094dde11-3e67-4035-a33e-e815baa96fa1
2025-10-15 10:46:57,510 - INFO - Verifications in API Server for VN ctest-vn-05478893 passed
2025-10-15 10:46:57,511 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/094dde11-3e67-4035-a33e-e815baa96fa1
2025-10-15 10:46:57,521 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/a4823176-a4aa-4699-8170-667ad961de80
2025-10-15 10:46:57,530 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/a4823176-a4aa-4699-8170-667ad961de80
2025-10-15 10:46:57,538 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/bc4b9ec5-1025-4914-afdc-2a1fe39d1418
2025-10-15 10:46:57,553 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22035750:ctest-vn-05478893', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22035750', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '670436085190836277', 'uuid-lslong': '11763094456761937825'}, 'enable': 'true', 'created': '2025-10-15T10:46:55', 'last-modified': '2025-10-15T10:46:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.396712'}
2025-10-15 10:46:57,559 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-15 10:46:57,559 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05478893 passed
2025-10-15 10:46:57,560 - DEBUG - ====Verifying policy data for ctest-vn-05478893 in API_Server ======
2025-10-15 10:46:57,560 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-15 10:46:57,567 - DEBUG - Requesting: http://10.0.0.241:8082/domain/58e85365-4abb-4301-b346-bf3f20865322
2025-10-15 10:46:57,580 - DEBUG - Requesting: http://10.0.0.241:8082/project/a924d07f-1412-4722-82d2-e2d61c439f12
2025-10-15 10:46:57,662 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/094dde11-3e67-4035-a33e-e815baa96fa1
2025-10-15 10:46:57,670 - DEBUG - ==>Verifying data for policy with id: 0aabd42b-b2a8-4ae6-a90f-9257449be4bd, fqn: ['default-domain', 'ctest-TestBasicPolicy-22035750', 'ctest-policy-allow-all-52242869']
2025-10-15 10:46:57,670 - INFO - VN ctest-vn-05478893 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-15 10:46:57,670 - DEBUG - Verifying the vn in opserver
2025-10-15 10:46:57,670 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22035750:ctest-vn-05478893 virtual network link through opserver 10.0.0.241
2025-10-15 10:46:57,670 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-10-15 10:46:57,679 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22035750:ctest-vn-05478893', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22035750:ctest-vn-05478893?flat'}
2025-10-15 10:46:57,679 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22035750:ctest-vn-05478893 is found in opserver
2025-10-15 10:46:57,689 - DEBUG - Do not have enough data to verify VN in agent
2025-10-15 10:46:57,694 - DEBUG - VRF ids for VN ctest-vn-05478893: {}
2025-10-15 10:46:57,748 - DEBUG - Services list from nova: [