2025-12-08 02:10:47,564 - INFO - Domain Default found not creating
2025-12-08 02:10:47,751 - INFO - Project ctest-TestBasicPolicy-72447035 not found, creating it
2025-12-08 02:10:48,208 - INFO - Created Project:ctest-TestBasicPolicy-72447035, ID : 0f8fe65b-4226-45da-adde-418c215afa42
2025-12-08 02:10:49,710 - INFO - ================================================================================
2025-12-08 02:10:49,710 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-08 02:10:49,710 - 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-12-08 02:10:49,973 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.129': '0'}} with
2025-12-08 02:10:49,973 - INFO - Initial checks done. Running the testcase now
2025-12-08 02:10:49,973 - INFO -
2025-12-08 02:10:50,528 - DEBUG - Response for create_network : {'network': {'id': 'd8a5ef64-fda1-4ffb-944f-989dfe229d1e', 'name': 'ctest-vn-41640373', 'tenant_id': '0f8fe65b422645daadde418c215afa42', 'project_id': '0f8fe65b422645daadde418c215afa42', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72447035', 'ctest-vn-41640373'], 'port_security_enabled': True, 'description': ''}}
2025-12-08 02:10:50,722 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c82c355b-6f69-4e45-be4e-da4237e2d3c9', 'name': '', 'tenant_id': '0f8fe65b422645daadde418c215afa42', 'network_id': 'd8a5ef64-fda1-4ffb-944f-989dfe229d1e', 'ip_version': 4, 'cidr': '134.94.221.128/26', 'allocation_pools': [{'start': '134.94.221.130', 'end': '134.94.221.190'}], 'gateway_ip': '134.94.221.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.94.221.130', 'tags': [], 'project_id': '0f8fe65b422645daadde418c215afa42'}}
2025-12-08 02:10:50,743 - INFO - Created VN ctest-vn-41640373
2025-12-08 02:10:50,795 - DEBUG - VN ctest-vn-41640373 UUID is d8a5ef64-fda1-4ffb-944f-989dfe229d1e
2025-12-08 02:10:51,129 - DEBUG - Response for create_network : {'network': {'id': '4b358330-7595-4a62-92d3-526f1673040d', 'name': 'ctest-vn-41318913', 'tenant_id': '0f8fe65b422645daadde418c215afa42', 'project_id': '0f8fe65b422645daadde418c215afa42', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72447035', 'ctest-vn-41318913'], 'port_security_enabled': True, 'description': ''}}
2025-12-08 02:10:51,306 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c8ce1ff-0413-42f2-a633-23b689fcf78f', 'name': '', 'tenant_id': '0f8fe65b422645daadde418c215afa42', 'network_id': '4b358330-7595-4a62-92d3-526f1673040d', 'ip_version': 4, 'cidr': '199.100.163.0/26', 'allocation_pools': [{'start': '199.100.163.2', 'end': '199.100.163.62'}], 'gateway_ip': '199.100.163.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.100.163.2', 'tags': [], 'project_id': '0f8fe65b422645daadde418c215afa42'}}
2025-12-08 02:10:51,328 - INFO - Created VN ctest-vn-41318913
2025-12-08 02:10:51,383 - DEBUG - VN ctest-vn-41318913 UUID is 4b358330-7595-4a62-92d3-526f1673040d
2025-12-08 02:10:51,502 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72447035:ctest-vn-41640373, 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-72447035:ctest-vn-41318913, 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-12-08 02:10:51,794 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd8a5ef64-fda1-4ffb-944f-989dfe229d1e', 'name': 'ctest-vn-41640373', 'tenant_id': '0f8fe65b422645daadde418c215afa42', 'project_id': '0f8fe65b422645daadde418c215afa42', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c82c355b-6f69-4e45-be4e-da4237e2d3c9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72447035', 'ctest-vn-41640373'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72447035', 'ctest-policy-allow-all-00464889']], 'subnet_ipam': [{'subnet_cidr': '134.94.221.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-08 02:10:52,085 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4b358330-7595-4a62-92d3-526f1673040d', 'name': 'ctest-vn-41318913', 'tenant_id': '0f8fe65b422645daadde418c215afa42', 'project_id': '0f8fe65b422645daadde418c215afa42', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c8ce1ff-0413-42f2-a633-23b689fcf78f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72447035', 'ctest-vn-41318913'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72447035', 'ctest-policy-allow-all-00464889']], 'subnet_ipam': [{'subnet_cidr': '199.100.163.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-08 02:10:52,239 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-12-08 02:10:52,548 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-12-08 02:10:52,584 - DEBUG - Requesting: http://10.0.0.27:8082/domain/855bbf38-d17a-4108-aa38-8bbcfb0e93f3
2025-12-08 02:10:52,595 - DEBUG - Requesting: http://10.0.0.27:8082/project/0f8fe65b-4226-45da-adde-418c215afa42
2025-12-08 02:10:52,666 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d8a5ef64-fda1-4ffb-944f-989dfe229d1e
2025-12-08 02:10:52,677 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d8a5ef64-fda1-4ffb-944f-989dfe229d1e
2025-12-08 02:10:52,685 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/82af5a38-b5fa-4a35-987e-b7f29d2636bd
2025-12-08 02:10:52,692 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/82af5a38-b5fa-4a35-987e-b7f29d2636bd
2025-12-08 02:10:52,699 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/88238961-14cd-499e-99f1-f7d40e2c110e
2025-12-08 02:10:52,704 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-08 02:10:52,704 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d8a5ef64-fda1-4ffb-944f-989dfe229d1e
2025-12-08 02:10:52,713 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/82af5a38-b5fa-4a35-987e-b7f29d2636bd
2025-12-08 02:10:52,727 - INFO - Verified VN network id 10 for VN d8a5ef64-fda1-4ffb-944f-989dfe229d1e
2025-12-08 02:10:52,727 - INFO - Verifications in API Server for VN ctest-vn-41640373 passed
2025-12-08 02:10:52,727 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d8a5ef64-fda1-4ffb-944f-989dfe229d1e
2025-12-08 02:10:52,736 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/82af5a38-b5fa-4a35-987e-b7f29d2636bd
2025-12-08 02:10:52,743 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/82af5a38-b5fa-4a35-987e-b7f29d2636bd
2025-12-08 02:10:52,750 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/88238961-14cd-499e-99f1-f7d40e2c110e
2025-12-08 02:10:52,762 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72447035:ctest-vn-41640373', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72447035', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15611146900380667899', 'uuid-lslong': '10686928245114445086'}, 'enable': 'true', 'created': '2025-12-08T02:10:50', 'last-modified': '2025-12-08T02:10:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.994521'}
2025-12-08 02:10:52,770 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-08 02:10:52,770 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41640373 passed
2025-12-08 02:10:52,770 - DEBUG - ====Verifying policy data for ctest-vn-41640373 in API_Server ======
2025-12-08 02:10:52,770 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-12-08 02:10:52,776 - DEBUG - Requesting: http://10.0.0.27:8082/domain/855bbf38-d17a-4108-aa38-8bbcfb0e93f3
2025-12-08 02:10:52,789 - DEBUG - Requesting: http://10.0.0.27:8082/project/0f8fe65b-4226-45da-adde-418c215afa42
2025-12-08 02:10:52,861 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d8a5ef64-fda1-4ffb-944f-989dfe229d1e
2025-12-08 02:10:52,871 - DEBUG - ==>Verifying data for policy with id: 08bf207c-cdf6-4fe9-bf1a-299f91037fc9, fqn: ['default-domain', 'ctest-TestBasicPolicy-72447035', 'ctest-policy-allow-all-00464889']
2025-12-08 02:10:52,871 - INFO - VN ctest-vn-41640373 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-08 02:10:52,871 - DEBUG - Verifying the vn in opserver
2025-12-08 02:10:52,871 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72447035:ctest-vn-41640373 virtual network link through opserver 10.0.0.27
2025-12-08 02:10:52,871 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-12-08 02:10:53,164 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-12-08 02:10:53,230 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72447035:ctest-vn-41640373', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72447035:ctest-vn-41640373?flat'}
2025-12-08 02:10:53,230 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72447035:ctest-vn-41640373 is found in opserver
2025-12-08 02:10:53,241 - DEBUG - Do not have enough data to verify VN in agent
2025-12-08 02:10:53,245 - DEBUG - VRF ids for VN ctest-vn-41640373: {}
2025-12-08 02:10:53,245 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-12-08 02:10:53,251 - DEBUG - Requesting: http://10.0.0.27:8082/domain/855bbf38-d17a-4108-aa38-8bbcfb0e93f3
2025-12-08 02:10:53,263 - DEBUG - Requesting: http://10.0.0.27:8082/project/0f8fe65b-4226-45da-adde-418c215afa42
2025-12-08 02:10:53,334 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4b358330-7595-4a62-92d3-526f1673040d
2025-12-08 02:10:53,346 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4b358330-7595-4a62-92d3-526f1673040d
2025-12-08 02:10:53,356 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7cf0b098-41d7-4fe3-a6a6-76ce75c57a6d
2025-12-08 02:10:53,364 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7cf0b098-41d7-4fe3-a6a6-76ce75c57a6d
2025-12-08 02:10:53,371 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0711bf54-384d-4b01-9f1b-b577753a9d83
2025-12-08 02:10:53,379 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-08 02:10:53,379 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4b358330-7595-4a62-92d3-526f1673040d
2025-12-08 02:10:53,389 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7cf0b098-41d7-4fe3-a6a6-76ce75c57a6d
2025-12-08 02:10:53,405 - INFO - Verified VN network id 11 for VN 4b358330-7595-4a62-92d3-526f1673040d
2025-12-08 02:10:53,405 - INFO - Verifications in API Server for VN ctest-vn-41318913 passed
2025-12-08 02:10:53,405 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4b358330-7595-4a62-92d3-526f1673040d
2025-12-08 02:10:53,416 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7cf0b098-41d7-4fe3-a6a6-76ce75c57a6d
2025-12-08 02:10:53,423 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7cf0b098-41d7-4fe3-a6a6-76ce75c57a6d
2025-12-08 02:10:53,432 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0711bf54-384d-4b01-9f1b-b577753a9d83
2025-12-08 02:10:53,446 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72447035:ctest-vn-41318913', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72447035', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5419381970764647010', 'uuid-lslong': '10579890586694910989'}, 'enable': 'true', 'created': '2025-12-08T02:10:51', 'last-modified': '2025-12-08T02:10:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.432748'}
2025-12-08 02:10:53,452 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-08 02:10:53,452 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41318913 passed
2025-12-08 02:10:53,452 - DEBUG - ====Verifying policy data for ctest-vn-41318913 in API_Server ======
2025-12-08 02:10:53,452 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-12-08 02:10:53,458 - DEBUG - Requesting: http://10.0.0.27:8082/domain/855bbf38-d17a-4108-aa38-8bbcfb0e93f3
2025-12-08 02:10:53,469 - DEBUG - Requesting: http://10.0.0.27:8082/project/0f8fe65b-4226-45da-adde-418c215afa42
2025-12-08 02:10:53,543 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4b358330-7595-4a62-92d3-526f1673040d
2025-12-08 02:10:53,551 - DEBUG - ==>Verifying data for policy with id: 08bf207c-cdf6-4fe9-bf1a-299f91037fc9, fqn: ['default-domain', 'ctest-TestBasicPolicy-72447035', 'ctest-policy-allow-all-00464889']
2025-12-08 02:10:53,552 - INFO - VN ctest-vn-41318913 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-08 02:10:53,552 - DEBUG - Verifying the vn in opserver
2025-12-08 02:10:53,552 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72447035:ctest-vn-41318913 virtual network link through opserver 10.0.0.27
2025-12-08 02:10:53,552 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-12-08 02:10:53,561 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72447035:ctest-vn-41318913', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72447035:ctest-vn-41318913?flat'}
2025-12-08 02:10:53,561 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72447035:ctest-vn-41318913 is found in opserver
2025-12-08 02:10:53,570 - DEBUG - Do not have enough data to verify VN in agent
2025-12-08 02:10:53,574 - DEBUG - VRF ids for VN ctest-vn-41318913: {}
2025-12-08 02:10:53,632 - DEBUG - Services list from nova: [