2025-11-10 20:14:40,967 - INFO - Domain Default found not creating
2025-11-10 20:14:41,347 - INFO - Project ctest-TestBasicPolicy-48682345 not found, creating it
2025-11-10 20:14:42,103 - INFO - Created Project:ctest-TestBasicPolicy-48682345, ID : 7c91d56b-6c89-44c2-83b1-7ceb74b77643
2025-11-10 20:14:44,336 - INFO - ================================================================================
2025-11-10 20:14:44,336 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-10 20:14:44,336 - 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-11-10 20:14:44,652 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with
2025-11-10 20:14:44,653 - INFO - Initial checks done. Running the testcase now
2025-11-10 20:14:44,653 - INFO -
2025-11-10 20:14:45,543 - DEBUG - Response for create_network : {'network': {'id': '40fb1fb8-4c53-4334-8941-1983e5f02cd2', 'name': 'ctest-vn-81145505', 'tenant_id': '7c91d56b6c8944c283b17ceb74b77643', 'project_id': '7c91d56b6c8944c283b17ceb74b77643', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48682345', 'ctest-vn-81145505'], 'port_security_enabled': True, 'description': ''}}
2025-11-10 20:14:45,796 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9a28956-e86e-4489-9781-1c53d8533a08', 'name': '', 'tenant_id': '7c91d56b6c8944c283b17ceb74b77643', 'network_id': '40fb1fb8-4c53-4334-8941-1983e5f02cd2', 'ip_version': 4, 'cidr': '130.144.135.64/26', 'allocation_pools': [{'start': '130.144.135.66', 'end': '130.144.135.126'}], 'gateway_ip': '130.144.135.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.144.135.66', 'tags': [], 'project_id': '7c91d56b6c8944c283b17ceb74b77643'}}
2025-11-10 20:14:45,826 - INFO - Created VN ctest-vn-81145505
2025-11-10 20:14:45,890 - DEBUG - VN ctest-vn-81145505 UUID is 40fb1fb8-4c53-4334-8941-1983e5f02cd2
2025-11-10 20:14:46,260 - DEBUG - Response for create_network : {'network': {'id': '37e5d363-4514-47f3-a248-a2bc00087ad4', 'name': 'ctest-vn-81601220', 'tenant_id': '7c91d56b6c8944c283b17ceb74b77643', 'project_id': '7c91d56b6c8944c283b17ceb74b77643', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48682345', 'ctest-vn-81601220'], 'port_security_enabled': True, 'description': ''}}
2025-11-10 20:14:46,451 - DEBUG - Response for create_subnet : {'subnet': {'id': '7cdfe0a8-a370-4a4e-94a6-ec362cb55b5d', 'name': '', 'tenant_id': '7c91d56b6c8944c283b17ceb74b77643', 'network_id': '37e5d363-4514-47f3-a248-a2bc00087ad4', 'ip_version': 4, 'cidr': '45.123.84.64/26', 'allocation_pools': [{'start': '45.123.84.66', 'end': '45.123.84.126'}], 'gateway_ip': '45.123.84.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.123.84.66', 'tags': [], 'project_id': '7c91d56b6c8944c283b17ceb74b77643'}}
2025-11-10 20:14:46,469 - INFO - Created VN ctest-vn-81601220
2025-11-10 20:14:46,526 - DEBUG - VN ctest-vn-81601220 UUID is 37e5d363-4514-47f3-a248-a2bc00087ad4
2025-11-10 20:14:46,704 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81145505, 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-48682345:ctest-vn-81601220, 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-11-10 20:14:47,156 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '40fb1fb8-4c53-4334-8941-1983e5f02cd2', 'name': 'ctest-vn-81145505', 'tenant_id': '7c91d56b6c8944c283b17ceb74b77643', 'project_id': '7c91d56b6c8944c283b17ceb74b77643', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9a28956-e86e-4489-9781-1c53d8533a08'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48682345', 'ctest-vn-81145505'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48682345', 'ctest-policy-allow-all-28713682']], 'subnet_ipam': [{'subnet_cidr': '130.144.135.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-10 20:14:47,444 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37e5d363-4514-47f3-a248-a2bc00087ad4', 'name': 'ctest-vn-81601220', 'tenant_id': '7c91d56b6c8944c283b17ceb74b77643', 'project_id': '7c91d56b6c8944c283b17ceb74b77643', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7cdfe0a8-a370-4a4e-94a6-ec362cb55b5d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48682345', 'ctest-vn-81601220'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48682345', 'ctest-policy-allow-all-28713682']], 'subnet_ipam': [{'subnet_cidr': '45.123.84.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-10 20:14:47,642 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-10 20:14:47,967 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-10 20:14:48,038 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c247b962-9cd7-4221-b33c-2806de491c2c
2025-11-10 20:14:48,073 - DEBUG - Requesting: http://10.0.0.141:8082/project/7c91d56b-6c89-44c2-83b1-7ceb74b77643
2025-11-10 20:14:48,190 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/40fb1fb8-4c53-4334-8941-1983e5f02cd2
2025-11-10 20:14:48,216 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/40fb1fb8-4c53-4334-8941-1983e5f02cd2
2025-11-10 20:14:48,234 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7c1da9c9-c918-4ffe-93db-bcc4382c1b71
2025-11-10 20:14:48,250 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7c1da9c9-c918-4ffe-93db-bcc4382c1b71
2025-11-10 20:14:48,266 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/147d3ee9-ff3a-4a03-b713-423256ab3116
2025-11-10 20:14:48,281 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-10 20:14:48,281 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/40fb1fb8-4c53-4334-8941-1983e5f02cd2
2025-11-10 20:14:48,302 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7c1da9c9-c918-4ffe-93db-bcc4382c1b71
2025-11-10 20:14:48,332 - INFO - Verified VN network id 11 for VN 40fb1fb8-4c53-4334-8941-1983e5f02cd2
2025-11-10 20:14:48,332 - INFO - Verifications in API Server for VN ctest-vn-81145505 passed
2025-11-10 20:14:48,333 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/40fb1fb8-4c53-4334-8941-1983e5f02cd2
2025-11-10 20:14:48,360 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7c1da9c9-c918-4ffe-93db-bcc4382c1b71
2025-11-10 20:14:48,375 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7c1da9c9-c918-4ffe-93db-bcc4382c1b71
2025-11-10 20:14:48,390 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/147d3ee9-ff3a-4a03-b713-423256ab3116
2025-11-10 20:14:48,422 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81145505', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48682345', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4682371113996731188', 'uuid-lslong': '9890214310971452626'}, 'enable': 'true', 'created': '2025-11-10T20:14:45', 'last-modified': '2025-11-10T20:14:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.307783'}
2025-11-10 20:14:48,443 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-10 20:14:48,444 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81145505 passed
2025-11-10 20:14:48,444 - DEBUG - ====Verifying policy data for ctest-vn-81145505 in API_Server ======
2025-11-10 20:14:48,444 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-10 20:14:48,458 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c247b962-9cd7-4221-b33c-2806de491c2c
2025-11-10 20:14:48,480 - DEBUG - Requesting: http://10.0.0.141:8082/project/7c91d56b-6c89-44c2-83b1-7ceb74b77643
2025-11-10 20:14:48,576 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/40fb1fb8-4c53-4334-8941-1983e5f02cd2
2025-11-10 20:14:48,597 - DEBUG - ==>Verifying data for policy with id: 16642ebb-de7f-4aed-9777-aa1cba9a6b7e, fqn: ['default-domain', 'ctest-TestBasicPolicy-48682345', 'ctest-policy-allow-all-28713682']
2025-11-10 20:14:48,597 - INFO - VN ctest-vn-81145505 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-10 20:14:48,597 - DEBUG - Verifying the vn in opserver
2025-11-10 20:14:48,597 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81145505 virtual network link through opserver 10.0.0.141
2025-11-10 20:14:48,598 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-10 20:14:48,941 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-10 20:14:49,024 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81145505', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81145505?flat'}
2025-11-10 20:14:49,024 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81145505 is found in opserver
2025-11-10 20:14:49,037 - DEBUG - Do not have enough data to verify VN in agent
2025-11-10 20:14:49,042 - DEBUG - VRF ids for VN ctest-vn-81145505: {}
2025-11-10 20:14:49,042 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-10 20:14:49,049 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c247b962-9cd7-4221-b33c-2806de491c2c
2025-11-10 20:14:49,063 - DEBUG - Requesting: http://10.0.0.141:8082/project/7c91d56b-6c89-44c2-83b1-7ceb74b77643
2025-11-10 20:14:49,146 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/37e5d363-4514-47f3-a248-a2bc00087ad4
2025-11-10 20:14:49,166 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/37e5d363-4514-47f3-a248-a2bc00087ad4
2025-11-10 20:14:49,181 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/37e09499-fb2f-4e29-afd7-25ddb80237a7
2025-11-10 20:14:49,194 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/37e09499-fb2f-4e29-afd7-25ddb80237a7
2025-11-10 20:14:49,207 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e0d3908e-d4ad-4416-b0d9-1e68a58b5133
2025-11-10 20:14:49,222 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-10 20:14:49,222 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/37e5d363-4514-47f3-a248-a2bc00087ad4
2025-11-10 20:14:49,238 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/37e09499-fb2f-4e29-afd7-25ddb80237a7
2025-11-10 20:14:49,263 - INFO - Verified VN network id 12 for VN 37e5d363-4514-47f3-a248-a2bc00087ad4
2025-11-10 20:14:49,263 - INFO - Verifications in API Server for VN ctest-vn-81601220 passed
2025-11-10 20:14:49,263 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/37e5d363-4514-47f3-a248-a2bc00087ad4
2025-11-10 20:14:49,279 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/37e09499-fb2f-4e29-afd7-25ddb80237a7
2025-11-10 20:14:49,290 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/37e09499-fb2f-4e29-afd7-25ddb80237a7
2025-11-10 20:14:49,302 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e0d3908e-d4ad-4416-b0d9-1e68a58b5133
2025-11-10 20:14:49,318 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81601220', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48682345', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4027857865066956787', 'uuid-lslong': '11693775360805599956'}, 'enable': 'true', 'created': '2025-11-10T20:14:46', 'last-modified': '2025-11-10T20:14:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.920531'}
2025-11-10 20:14:49,326 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-10 20:14:49,327 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81601220 passed
2025-11-10 20:14:49,327 - DEBUG - ====Verifying policy data for ctest-vn-81601220 in API_Server ======
2025-11-10 20:14:49,327 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-10 20:14:49,334 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c247b962-9cd7-4221-b33c-2806de491c2c
2025-11-10 20:14:49,350 - DEBUG - Requesting: http://10.0.0.141:8082/project/7c91d56b-6c89-44c2-83b1-7ceb74b77643
2025-11-10 20:14:49,460 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/37e5d363-4514-47f3-a248-a2bc00087ad4
2025-11-10 20:14:49,489 - DEBUG - ==>Verifying data for policy with id: 16642ebb-de7f-4aed-9777-aa1cba9a6b7e, fqn: ['default-domain', 'ctest-TestBasicPolicy-48682345', 'ctest-policy-allow-all-28713682']
2025-11-10 20:14:49,489 - INFO - VN ctest-vn-81601220 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-10 20:14:49,489 - DEBUG - Verifying the vn in opserver
2025-11-10 20:14:49,489 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81601220 virtual network link through opserver 10.0.0.141
2025-11-10 20:14:49,489 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-10 20:14:49,510 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81601220', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81601220?flat'}
2025-11-10 20:14:49,510 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81601220 is found in opserver
2025-11-10 20:14:49,544 - DEBUG - Do not have enough data to verify VN in agent
2025-11-10 20:14:49,556 - DEBUG - VRF ids for VN ctest-vn-81601220: {}
2025-11-10 20:14:49,704 - DEBUG - Services list from nova: [