2025-11-14 10:09:26,661 - INFO - Domain Default found not creating
2025-11-14 10:09:26,924 - INFO - Project ctest-TestBasicPolicy-92046837 not found, creating it
2025-11-14 10:09:27,525 - INFO - Created Project:ctest-TestBasicPolicy-92046837, ID : e80cfd0e-a8ab-4ad0-8059-f09fc1a49120
2025-11-14 10:09:29,370 - INFO - ================================================================================
2025-11-14 10:09:29,370 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-14 10:09:29,370 - 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-14 10:09:29,657 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-11-14 10:09:29,657 - INFO - Initial checks done. Running the testcase now
2025-11-14 10:09:29,657 - INFO -
2025-11-14 10:09:30,287 - DEBUG - Response for create_network : {'network': {'id': '1054915f-d691-45e0-a0b0-0f53ed42a956', 'name': 'ctest-vn-72815612', 'tenant_id': 'e80cfd0ea8ab4ad08059f09fc1a49120', 'project_id': 'e80cfd0ea8ab4ad08059f09fc1a49120', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92046837', 'ctest-vn-72815612'], 'port_security_enabled': True, 'description': ''}}
2025-11-14 10:09:30,442 - DEBUG - Response for create_subnet : {'subnet': {'id': '76db67ad-f31c-4f95-b1bd-3a2e629971c0', 'name': '', 'tenant_id': 'e80cfd0ea8ab4ad08059f09fc1a49120', 'network_id': '1054915f-d691-45e0-a0b0-0f53ed42a956', 'ip_version': 4, 'cidr': '54.122.120.64/26', 'allocation_pools': [{'start': '54.122.120.66', 'end': '54.122.120.126'}], 'gateway_ip': '54.122.120.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.122.120.66', 'tags': [], 'project_id': 'e80cfd0ea8ab4ad08059f09fc1a49120'}}
2025-11-14 10:09:30,458 - INFO - Created VN ctest-vn-72815612
2025-11-14 10:09:30,510 - DEBUG - VN ctest-vn-72815612 UUID is 1054915f-d691-45e0-a0b0-0f53ed42a956
2025-11-14 10:09:30,910 - DEBUG - Response for create_network : {'network': {'id': 'ab11d77b-cd3d-4ecf-b0da-e7a00877dfbd', 'name': 'ctest-vn-48012132', 'tenant_id': 'e80cfd0ea8ab4ad08059f09fc1a49120', 'project_id': 'e80cfd0ea8ab4ad08059f09fc1a49120', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92046837', 'ctest-vn-48012132'], 'port_security_enabled': True, 'description': ''}}
2025-11-14 10:09:31,088 - DEBUG - Response for create_subnet : {'subnet': {'id': '0af2ebaf-05d9-4f44-9055-330b184925f7', 'name': '', 'tenant_id': 'e80cfd0ea8ab4ad08059f09fc1a49120', 'network_id': 'ab11d77b-cd3d-4ecf-b0da-e7a00877dfbd', 'ip_version': 4, 'cidr': '135.157.175.192/26', 'allocation_pools': [{'start': '135.157.175.194', 'end': '135.157.175.254'}], 'gateway_ip': '135.157.175.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.157.175.194', 'tags': [], 'project_id': 'e80cfd0ea8ab4ad08059f09fc1a49120'}}
2025-11-14 10:09:31,106 - INFO - Created VN ctest-vn-48012132
2025-11-14 10:09:31,163 - DEBUG - VN ctest-vn-48012132 UUID is ab11d77b-cd3d-4ecf-b0da-e7a00877dfbd
2025-11-14 10:09:31,302 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92046837:ctest-vn-72815612, 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-92046837:ctest-vn-48012132, 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-14 10:09:31,686 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1054915f-d691-45e0-a0b0-0f53ed42a956', 'name': 'ctest-vn-72815612', 'tenant_id': 'e80cfd0ea8ab4ad08059f09fc1a49120', 'project_id': 'e80cfd0ea8ab4ad08059f09fc1a49120', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76db67ad-f31c-4f95-b1bd-3a2e629971c0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92046837', 'ctest-vn-72815612'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92046837', 'ctest-policy-allow-all-79419354']], 'subnet_ipam': [{'subnet_cidr': '54.122.120.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-14 10:09:32,001 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab11d77b-cd3d-4ecf-b0da-e7a00877dfbd', 'name': 'ctest-vn-48012132', 'tenant_id': 'e80cfd0ea8ab4ad08059f09fc1a49120', 'project_id': 'e80cfd0ea8ab4ad08059f09fc1a49120', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0af2ebaf-05d9-4f44-9055-330b184925f7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92046837', 'ctest-vn-48012132'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92046837', 'ctest-policy-allow-all-79419354']], 'subnet_ipam': [{'subnet_cidr': '135.157.175.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-14 10:09:32,179 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-14 10:09:32,520 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-14 10:09:32,558 - DEBUG - Requesting: http://10.0.0.50:8082/domain/12bb2cbd-de3a-465c-9bb0-60b891b99a6b
2025-11-14 10:09:32,577 - DEBUG - Requesting: http://10.0.0.50:8082/project/e80cfd0e-a8ab-4ad0-8059-f09fc1a49120
2025-11-14 10:09:32,677 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1054915f-d691-45e0-a0b0-0f53ed42a956
2025-11-14 10:09:32,696 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1054915f-d691-45e0-a0b0-0f53ed42a956
2025-11-14 10:09:32,714 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/93e42843-7263-4e58-930e-5a4020a5bb83
2025-11-14 10:09:32,727 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/93e42843-7263-4e58-930e-5a4020a5bb83
2025-11-14 10:09:32,740 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fe92ac8f-a2a4-43b3-94c5-21a5ee0f48b9
2025-11-14 10:09:32,754 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-14 10:09:32,754 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1054915f-d691-45e0-a0b0-0f53ed42a956
2025-11-14 10:09:32,776 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/93e42843-7263-4e58-930e-5a4020a5bb83
2025-11-14 10:09:32,803 - INFO - Verified VN network id 10 for VN 1054915f-d691-45e0-a0b0-0f53ed42a956
2025-11-14 10:09:32,803 - INFO - Verifications in API Server for VN ctest-vn-72815612 passed
2025-11-14 10:09:32,803 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1054915f-d691-45e0-a0b0-0f53ed42a956
2025-11-14 10:09:32,818 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/93e42843-7263-4e58-930e-5a4020a5bb83
2025-11-14 10:09:32,829 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/93e42843-7263-4e58-930e-5a4020a5bb83
2025-11-14 10:09:32,841 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fe92ac8f-a2a4-43b3-94c5-21a5ee0f48b9
2025-11-14 10:09:32,857 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92046837:ctest-vn-72815612', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92046837', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1176725243458307552', 'uuid-lslong': '11578771495106816342'}, 'enable': 'true', 'created': '2025-11-14T10:09:30', 'last-modified': '2025-11-14T10:09:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.212630'}
2025-11-14 10:09:32,864 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-14 10:09:32,864 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72815612 passed
2025-11-14 10:09:32,865 - DEBUG - ====Verifying policy data for ctest-vn-72815612 in API_Server ======
2025-11-14 10:09:32,865 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-14 10:09:32,874 - DEBUG - Requesting: http://10.0.0.50:8082/domain/12bb2cbd-de3a-465c-9bb0-60b891b99a6b
2025-11-14 10:09:32,894 - DEBUG - Requesting: http://10.0.0.50:8082/project/e80cfd0e-a8ab-4ad0-8059-f09fc1a49120
2025-11-14 10:09:32,983 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1054915f-d691-45e0-a0b0-0f53ed42a956
2025-11-14 10:09:32,997 - DEBUG - ==>Verifying data for policy with id: 7e69d293-0b1c-4dc7-9e00-7dae6c25397d, fqn: ['default-domain', 'ctest-TestBasicPolicy-92046837', 'ctest-policy-allow-all-79419354']
2025-11-14 10:09:32,997 - INFO - VN ctest-vn-72815612 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-14 10:09:32,997 - DEBUG - Verifying the vn in opserver
2025-11-14 10:09:32,997 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92046837:ctest-vn-72815612 virtual network link through opserver 10.0.0.50
2025-11-14 10:09:32,997 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-14 10:09:33,323 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-14 10:09:33,423 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92046837:ctest-vn-72815612', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92046837:ctest-vn-72815612?flat'}
2025-11-14 10:09:33,423 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92046837:ctest-vn-72815612 is found in opserver
2025-11-14 10:09:33,453 - DEBUG - Do not have enough data to verify VN in agent
2025-11-14 10:09:33,468 - DEBUG - VRF ids for VN ctest-vn-72815612: {}
2025-11-14 10:09:33,469 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-14 10:09:33,482 - DEBUG - Requesting: http://10.0.0.50:8082/domain/12bb2cbd-de3a-465c-9bb0-60b891b99a6b
2025-11-14 10:09:33,518 - DEBUG - Requesting: http://10.0.0.50:8082/project/e80cfd0e-a8ab-4ad0-8059-f09fc1a49120
2025-11-14 10:09:33,612 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ab11d77b-cd3d-4ecf-b0da-e7a00877dfbd
2025-11-14 10:09:33,626 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ab11d77b-cd3d-4ecf-b0da-e7a00877dfbd
2025-11-14 10:09:33,642 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2188083d-7669-427c-8c48-eedbf4425680
2025-11-14 10:09:33,652 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2188083d-7669-427c-8c48-eedbf4425680
2025-11-14 10:09:33,666 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/51432f68-dbaf-4410-97fb-a17143b1ab76
2025-11-14 10:09:33,675 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-14 10:09:33,675 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ab11d77b-cd3d-4ecf-b0da-e7a00877dfbd
2025-11-14 10:09:33,687 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2188083d-7669-427c-8c48-eedbf4425680
2025-11-14 10:09:33,707 - INFO - Verified VN network id 11 for VN ab11d77b-cd3d-4ecf-b0da-e7a00877dfbd
2025-11-14 10:09:33,707 - INFO - Verifications in API Server for VN ctest-vn-48012132 passed
2025-11-14 10:09:33,708 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ab11d77b-cd3d-4ecf-b0da-e7a00877dfbd
2025-11-14 10:09:33,721 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2188083d-7669-427c-8c48-eedbf4425680
2025-11-14 10:09:33,732 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2188083d-7669-427c-8c48-eedbf4425680
2025-11-14 10:09:33,748 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/51432f68-dbaf-4410-97fb-a17143b1ab76
2025-11-14 10:09:33,764 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92046837:ctest-vn-48012132', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92046837', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12326870581814054607', 'uuid-lslong': '12743752770121097149'}, 'enable': 'true', 'created': '2025-11-14T10:09:30', 'last-modified': '2025-11-14T10:09:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.812119'}
2025-11-14 10:09:33,772 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-14 10:09:33,772 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48012132 passed
2025-11-14 10:09:33,772 - DEBUG - ====Verifying policy data for ctest-vn-48012132 in API_Server ======
2025-11-14 10:09:33,772 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-14 10:09:33,780 - DEBUG - Requesting: http://10.0.0.50:8082/domain/12bb2cbd-de3a-465c-9bb0-60b891b99a6b
2025-11-14 10:09:33,797 - DEBUG - Requesting: http://10.0.0.50:8082/project/e80cfd0e-a8ab-4ad0-8059-f09fc1a49120
2025-11-14 10:09:33,896 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ab11d77b-cd3d-4ecf-b0da-e7a00877dfbd
2025-11-14 10:09:33,910 - DEBUG - ==>Verifying data for policy with id: 7e69d293-0b1c-4dc7-9e00-7dae6c25397d, fqn: ['default-domain', 'ctest-TestBasicPolicy-92046837', 'ctest-policy-allow-all-79419354']
2025-11-14 10:09:33,910 - INFO - VN ctest-vn-48012132 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-14 10:09:33,910 - DEBUG - Verifying the vn in opserver
2025-11-14 10:09:33,910 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92046837:ctest-vn-48012132 virtual network link through opserver 10.0.0.50
2025-11-14 10:09:33,910 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-14 10:09:33,922 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92046837:ctest-vn-48012132', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92046837:ctest-vn-48012132?flat'}
2025-11-14 10:09:33,922 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92046837:ctest-vn-48012132 is found in opserver
2025-11-14 10:09:33,933 - DEBUG - Do not have enough data to verify VN in agent
2025-11-14 10:09:33,938 - DEBUG - VRF ids for VN ctest-vn-48012132: {}
2025-11-14 10:09:34,008 - DEBUG - Services list from nova: [