2025-06-05 16:25:55,086 - INFO - Domain Default found not creating
2025-06-05 16:25:55,240 - INFO - Project ctest-TestBasicPolicy-58659383 not found, creating it
2025-06-05 16:25:55,722 - INFO - Created Project:ctest-TestBasicPolicy-58659383, ID : dbed5b7f-164f-473b-b07c-3d013317df18
2025-06-05 16:25:57,405 - INFO - ================================================================================
2025-06-05 16:25:57,405 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-05 16:25:57,405 - 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-05 16:25:57,671 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-05 16:25:57,671 - INFO - Initial checks done. Running the testcase now
2025-06-05 16:25:57,671 - INFO -
2025-06-05 16:25:58,284 - DEBUG - Response for create_network : {'network': {'id': '5f2bbe60-8003-4ec2-bbdd-6244b863ce35', 'name': 'ctest-vn-11444634', 'tenant_id': 'dbed5b7f164f473bb07c3d013317df18', 'project_id': 'dbed5b7f164f473bb07c3d013317df18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58659383', 'ctest-vn-11444634'], 'port_security_enabled': True, 'description': ''}}
2025-06-05 16:25:58,533 - DEBUG - Response for create_subnet : {'subnet': {'id': '7518f81b-6a2a-4566-b8d8-fd435ef30445', 'name': '', 'tenant_id': 'dbed5b7f164f473bb07c3d013317df18', 'network_id': '5f2bbe60-8003-4ec2-bbdd-6244b863ce35', 'ip_version': 4, 'cidr': '82.197.236.192/26', 'allocation_pools': [{'start': '82.197.236.194', 'end': '82.197.236.254'}], 'gateway_ip': '82.197.236.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.197.236.194', 'tags': [], 'project_id': 'dbed5b7f164f473bb07c3d013317df18'}}
2025-06-05 16:25:58,555 - INFO - Created VN ctest-vn-11444634
2025-06-05 16:25:58,608 - DEBUG - VN ctest-vn-11444634 UUID is 5f2bbe60-8003-4ec2-bbdd-6244b863ce35
2025-06-05 16:25:58,940 - DEBUG - Response for create_network : {'network': {'id': '38eb799a-a216-4b9b-a924-f22bcc9e9689', 'name': 'ctest-vn-26533213', 'tenant_id': 'dbed5b7f164f473bb07c3d013317df18', 'project_id': 'dbed5b7f164f473bb07c3d013317df18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58659383', 'ctest-vn-26533213'], 'port_security_enabled': True, 'description': ''}}
2025-06-05 16:25:59,157 - DEBUG - Response for create_subnet : {'subnet': {'id': '6028b644-17d6-4316-9375-3e861241e901', 'name': '', 'tenant_id': 'dbed5b7f164f473bb07c3d013317df18', 'network_id': '38eb799a-a216-4b9b-a924-f22bcc9e9689', 'ip_version': 4, 'cidr': '161.106.84.64/26', 'allocation_pools': [{'start': '161.106.84.66', 'end': '161.106.84.126'}], 'gateway_ip': '161.106.84.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.106.84.66', 'tags': [], 'project_id': 'dbed5b7f164f473bb07c3d013317df18'}}
2025-06-05 16:25:59,176 - INFO - Created VN ctest-vn-26533213
2025-06-05 16:25:59,228 - DEBUG - VN ctest-vn-26533213 UUID is 38eb799a-a216-4b9b-a924-f22bcc9e9689
2025-06-05 16:25:59,349 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-11444634, 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-58659383:ctest-vn-26533213, 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-05 16:25:59,677 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f2bbe60-8003-4ec2-bbdd-6244b863ce35', 'name': 'ctest-vn-11444634', 'tenant_id': 'dbed5b7f164f473bb07c3d013317df18', 'project_id': 'dbed5b7f164f473bb07c3d013317df18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7518f81b-6a2a-4566-b8d8-fd435ef30445'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58659383', 'ctest-vn-11444634'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58659383', 'ctest-policy-allow-all-29980115']], 'subnet_ipam': [{'subnet_cidr': '82.197.236.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-05 16:26:00,003 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '38eb799a-a216-4b9b-a924-f22bcc9e9689', 'name': 'ctest-vn-26533213', 'tenant_id': 'dbed5b7f164f473bb07c3d013317df18', 'project_id': 'dbed5b7f164f473bb07c3d013317df18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6028b644-17d6-4316-9375-3e861241e901'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58659383', 'ctest-vn-26533213'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58659383', 'ctest-policy-allow-all-29980115']], 'subnet_ipam': [{'subnet_cidr': '161.106.84.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-05 16:26:00,156 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-05 16:26:00,499 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-05 16:26:00,529 - DEBUG - Requesting: http://10.0.0.38:8082/domain/305d856b-6a36-4b2e-ab47-88cae01053be
2025-06-05 16:26:00,544 - DEBUG - Requesting: http://10.0.0.38:8082/project/dbed5b7f-164f-473b-b07c-3d013317df18
2025-06-05 16:26:00,621 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f2bbe60-8003-4ec2-bbdd-6244b863ce35
2025-06-05 16:26:00,634 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f2bbe60-8003-4ec2-bbdd-6244b863ce35
2025-06-05 16:26:00,645 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e41fa6b-26c0-4f7c-bc91-a2773b183bcb
2025-06-05 16:26:00,653 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e41fa6b-26c0-4f7c-bc91-a2773b183bcb
2025-06-05 16:26:00,662 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/554fd094-6fe7-4521-8bc3-0b068518f452
2025-06-05 16:26:00,670 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-05 16:26:00,670 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f2bbe60-8003-4ec2-bbdd-6244b863ce35
2025-06-05 16:26:00,680 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e41fa6b-26c0-4f7c-bc91-a2773b183bcb
2025-06-05 16:26:00,697 - INFO - Verified VN network id 9 for VN 5f2bbe60-8003-4ec2-bbdd-6244b863ce35
2025-06-05 16:26:00,697 - INFO - Verifications in API Server for VN ctest-vn-11444634 passed
2025-06-05 16:26:00,697 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f2bbe60-8003-4ec2-bbdd-6244b863ce35
2025-06-05 16:26:00,710 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e41fa6b-26c0-4f7c-bc91-a2773b183bcb
2025-06-05 16:26:00,720 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e41fa6b-26c0-4f7c-bc91-a2773b183bcb
2025-06-05 16:26:00,729 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/554fd094-6fe7-4521-8bc3-0b068518f452
2025-06-05 16:26:00,746 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-11444634', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58659383', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6857784179275550402', 'uuid-lslong': '13537084102236425781'}, 'enable': 'true', 'created': '2025-06-05T16:25:58', 'last-modified': '2025-06-05T16:25:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.103475'}
2025-06-05 16:26:00,755 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-05 16:26:00,755 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11444634 passed
2025-06-05 16:26:00,755 - DEBUG - ====Verifying policy data for ctest-vn-11444634 in API_Server ======
2025-06-05 16:26:00,755 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-05 16:26:00,761 - DEBUG - Requesting: http://10.0.0.38:8082/domain/305d856b-6a36-4b2e-ab47-88cae01053be
2025-06-05 16:26:00,776 - DEBUG - Requesting: http://10.0.0.38:8082/project/dbed5b7f-164f-473b-b07c-3d013317df18
2025-06-05 16:26:00,849 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f2bbe60-8003-4ec2-bbdd-6244b863ce35
2025-06-05 16:26:00,861 - DEBUG - ==>Verifying data for policy with id: 91abcf59-a58b-4374-a4a2-d2bc410a0403, fqn: ['default-domain', 'ctest-TestBasicPolicy-58659383', 'ctest-policy-allow-all-29980115']
2025-06-05 16:26:00,861 - INFO - VN ctest-vn-11444634 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-05 16:26:00,861 - DEBUG - Verifying the vn in opserver
2025-06-05 16:26:00,861 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-11444634 virtual network link through opserver 10.0.0.38
2025-06-05 16:26:00,861 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-05 16:26:01,193 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-05 16:26:01,264 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-11444634', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-11444634?flat'}
2025-06-05 16:26:01,264 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-11444634 is found in opserver
2025-06-05 16:26:01,280 - DEBUG - Do not have enough data to verify VN in agent
2025-06-05 16:26:01,288 - DEBUG - VRF ids for VN ctest-vn-11444634: {}
2025-06-05 16:26:01,288 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-05 16:26:01,295 - DEBUG - Requesting: http://10.0.0.38:8082/domain/305d856b-6a36-4b2e-ab47-88cae01053be
2025-06-05 16:26:01,308 - DEBUG - Requesting: http://10.0.0.38:8082/project/dbed5b7f-164f-473b-b07c-3d013317df18
2025-06-05 16:26:01,393 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/38eb799a-a216-4b9b-a924-f22bcc9e9689
2025-06-05 16:26:01,408 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/38eb799a-a216-4b9b-a924-f22bcc9e9689
2025-06-05 16:26:01,422 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c3d2575-03f3-4abc-9250-36bfb888bdc9
2025-06-05 16:26:01,432 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c3d2575-03f3-4abc-9250-36bfb888bdc9
2025-06-05 16:26:01,442 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fe264d75-d5f0-4e00-979d-6fa329b19da5
2025-06-05 16:26:01,452 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-05 16:26:01,452 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/38eb799a-a216-4b9b-a924-f22bcc9e9689
2025-06-05 16:26:01,464 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c3d2575-03f3-4abc-9250-36bfb888bdc9
2025-06-05 16:26:01,480 - INFO - Verified VN network id 10 for VN 38eb799a-a216-4b9b-a924-f22bcc9e9689
2025-06-05 16:26:01,480 - INFO - Verifications in API Server for VN ctest-vn-26533213 passed
2025-06-05 16:26:01,480 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/38eb799a-a216-4b9b-a924-f22bcc9e9689
2025-06-05 16:26:01,491 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c3d2575-03f3-4abc-9250-36bfb888bdc9
2025-06-05 16:26:01,499 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c3d2575-03f3-4abc-9250-36bfb888bdc9
2025-06-05 16:26:01,507 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fe264d75-d5f0-4e00-979d-6fa329b19da5
2025-06-05 16:26:01,520 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-26533213', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58659383', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4101505590702263195', 'uuid-lslong': '12188132761501865609'}, 'enable': 'true', 'created': '2025-06-05T16:25:58', 'last-modified': '2025-06-05T16:25:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.599177'}
2025-06-05 16:26:01,527 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-05 16:26:01,527 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26533213 passed
2025-06-05 16:26:01,528 - DEBUG - ====Verifying policy data for ctest-vn-26533213 in API_Server ======
2025-06-05 16:26:01,528 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-05 16:26:01,534 - DEBUG - Requesting: http://10.0.0.38:8082/domain/305d856b-6a36-4b2e-ab47-88cae01053be
2025-06-05 16:26:01,550 - DEBUG - Requesting: http://10.0.0.38:8082/project/dbed5b7f-164f-473b-b07c-3d013317df18
2025-06-05 16:26:01,626 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/38eb799a-a216-4b9b-a924-f22bcc9e9689
2025-06-05 16:26:01,642 - DEBUG - ==>Verifying data for policy with id: 91abcf59-a58b-4374-a4a2-d2bc410a0403, fqn: ['default-domain', 'ctest-TestBasicPolicy-58659383', 'ctest-policy-allow-all-29980115']
2025-06-05 16:26:01,642 - INFO - VN ctest-vn-26533213 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-05 16:26:01,642 - DEBUG - Verifying the vn in opserver
2025-06-05 16:26:01,642 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-26533213 virtual network link through opserver 10.0.0.38
2025-06-05 16:26:01,642 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-05 16:26:01,654 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-26533213', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-26533213?flat'}
2025-06-05 16:26:01,654 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-26533213 is found in opserver
2025-06-05 16:26:01,666 - DEBUG - Do not have enough data to verify VN in agent
2025-06-05 16:26:01,673 - DEBUG - VRF ids for VN ctest-vn-26533213: {}
2025-06-05 16:26:01,740 - DEBUG - Services list from nova: [