2025-06-19 10:38:22,125 - INFO - Domain Default found not creating
2025-06-19 10:38:22,279 - INFO - Project ctest-TestBasicPolicy-92466342 not found, creating it
2025-06-19 10:38:22,762 - INFO - Created Project:ctest-TestBasicPolicy-92466342, ID : 5f85a1dd-46c6-4287-bf00-81f924a5fc3c
2025-06-19 10:38:24,319 - INFO - ================================================================================
2025-06-19 10:38:24,320 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-19 10:38:24,320 - 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-19 10:38:24,575 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with
2025-06-19 10:38:24,575 - INFO - Initial checks done. Running the testcase now
2025-06-19 10:38:24,575 - INFO -
2025-06-19 10:38:25,152 - DEBUG - Response for create_network : {'network': {'id': '22e7fb07-b118-49d0-9edf-2c2a3ca34e50', 'name': 'ctest-vn-50806425', 'tenant_id': '5f85a1dd46c64287bf0081f924a5fc3c', 'project_id': '5f85a1dd46c64287bf0081f924a5fc3c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92466342', 'ctest-vn-50806425'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 10:38:25,378 - DEBUG - Response for create_subnet : {'subnet': {'id': 'abaad4d6-4800-4507-a968-c1d41a5e2b4e', 'name': '', 'tenant_id': '5f85a1dd46c64287bf0081f924a5fc3c', 'network_id': '22e7fb07-b118-49d0-9edf-2c2a3ca34e50', 'ip_version': 4, 'cidr': '149.189.156.192/26', 'allocation_pools': [{'start': '149.189.156.194', 'end': '149.189.156.254'}], 'gateway_ip': '149.189.156.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.189.156.194', 'tags': [], 'project_id': '5f85a1dd46c64287bf0081f924a5fc3c'}}
2025-06-19 10:38:25,397 - INFO - Created VN ctest-vn-50806425
2025-06-19 10:38:25,449 - DEBUG - VN ctest-vn-50806425 UUID is 22e7fb07-b118-49d0-9edf-2c2a3ca34e50
2025-06-19 10:38:25,752 - DEBUG - Response for create_network : {'network': {'id': '2908c723-7eda-499f-bc4a-ac33581366b1', 'name': 'ctest-vn-60693629', 'tenant_id': '5f85a1dd46c64287bf0081f924a5fc3c', 'project_id': '5f85a1dd46c64287bf0081f924a5fc3c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92466342', 'ctest-vn-60693629'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 10:38:25,927 - DEBUG - Response for create_subnet : {'subnet': {'id': '9065290b-d4b8-403d-bcc4-5195be623290', 'name': '', 'tenant_id': '5f85a1dd46c64287bf0081f924a5fc3c', 'network_id': '2908c723-7eda-499f-bc4a-ac33581366b1', 'ip_version': 4, 'cidr': '188.143.0.64/26', 'allocation_pools': [{'start': '188.143.0.66', 'end': '188.143.0.126'}], 'gateway_ip': '188.143.0.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.143.0.66', 'tags': [], 'project_id': '5f85a1dd46c64287bf0081f924a5fc3c'}}
2025-06-19 10:38:25,945 - INFO - Created VN ctest-vn-60693629
2025-06-19 10:38:26,001 - DEBUG - VN ctest-vn-60693629 UUID is 2908c723-7eda-499f-bc4a-ac33581366b1
2025-06-19 10:38:26,118 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92466342:ctest-vn-50806425, 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-92466342:ctest-vn-60693629, 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-19 10:38:26,429 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '22e7fb07-b118-49d0-9edf-2c2a3ca34e50', 'name': 'ctest-vn-50806425', 'tenant_id': '5f85a1dd46c64287bf0081f924a5fc3c', 'project_id': '5f85a1dd46c64287bf0081f924a5fc3c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['abaad4d6-4800-4507-a968-c1d41a5e2b4e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92466342', 'ctest-vn-50806425'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92466342', 'ctest-policy-allow-all-48191224']], 'subnet_ipam': [{'subnet_cidr': '149.189.156.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 10:38:26,673 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2908c723-7eda-499f-bc4a-ac33581366b1', 'name': 'ctest-vn-60693629', 'tenant_id': '5f85a1dd46c64287bf0081f924a5fc3c', 'project_id': '5f85a1dd46c64287bf0081f924a5fc3c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9065290b-d4b8-403d-bcc4-5195be623290'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92466342', 'ctest-vn-60693629'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92466342', 'ctest-policy-allow-all-48191224']], 'subnet_ipam': [{'subnet_cidr': '188.143.0.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 10:38:26,853 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-06-19 10:38:27,152 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-06-19 10:38:27,191 - DEBUG - Requesting: http://10.0.0.22:8082/domain/07aedad4-36ce-437d-bbd9-4751bf76742c
2025-06-19 10:38:27,208 - DEBUG - Requesting: http://10.0.0.22:8082/project/5f85a1dd-46c6-4287-bf00-81f924a5fc3c
2025-06-19 10:38:27,295 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/22e7fb07-b118-49d0-9edf-2c2a3ca34e50
2025-06-19 10:38:27,312 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/22e7fb07-b118-49d0-9edf-2c2a3ca34e50
2025-06-19 10:38:27,326 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0804bb53-4e19-4122-ac34-35f43297caee
2025-06-19 10:38:27,338 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0804bb53-4e19-4122-ac34-35f43297caee
2025-06-19 10:38:27,350 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/1dae6487-7664-4a55-976c-a791ab272fbf
2025-06-19 10:38:27,359 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 10:38:27,359 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/22e7fb07-b118-49d0-9edf-2c2a3ca34e50
2025-06-19 10:38:27,370 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0804bb53-4e19-4122-ac34-35f43297caee
2025-06-19 10:38:27,386 - INFO - Verified VN network id 8 for VN 22e7fb07-b118-49d0-9edf-2c2a3ca34e50
2025-06-19 10:38:27,386 - INFO - Verifications in API Server for VN ctest-vn-50806425 passed
2025-06-19 10:38:27,387 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/22e7fb07-b118-49d0-9edf-2c2a3ca34e50
2025-06-19 10:38:27,402 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0804bb53-4e19-4122-ac34-35f43297caee
2025-06-19 10:38:27,412 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0804bb53-4e19-4122-ac34-35f43297caee
2025-06-19 10:38:27,424 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/1dae6487-7664-4a55-976c-a791ab272fbf
2025-06-19 10:38:27,438 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92466342:ctest-vn-50806425', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92466342', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2515254927364213200', 'uuid-lslong': '11447917337716674128'}, 'enable': 'true', 'created': '2025-06-19T10:38:25', 'last-modified': '2025-06-19T10:38:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.034145'}
2025-06-19 10:38:27,447 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 10:38:27,448 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50806425 passed
2025-06-19 10:38:27,448 - DEBUG - ====Verifying policy data for ctest-vn-50806425 in API_Server ======
2025-06-19 10:38:27,448 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-06-19 10:38:27,455 - DEBUG - Requesting: http://10.0.0.22:8082/domain/07aedad4-36ce-437d-bbd9-4751bf76742c
2025-06-19 10:38:27,468 - DEBUG - Requesting: http://10.0.0.22:8082/project/5f85a1dd-46c6-4287-bf00-81f924a5fc3c
2025-06-19 10:38:27,542 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/22e7fb07-b118-49d0-9edf-2c2a3ca34e50
2025-06-19 10:38:27,553 - DEBUG - ==>Verifying data for policy with id: c7fe08f5-6341-45cd-a31f-49cb43ec874e, fqn: ['default-domain', 'ctest-TestBasicPolicy-92466342', 'ctest-policy-allow-all-48191224']
2025-06-19 10:38:27,553 - INFO - VN ctest-vn-50806425 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 10:38:27,553 - DEBUG - Verifying the vn in opserver
2025-06-19 10:38:27,553 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92466342:ctest-vn-50806425 virtual network link through opserver 10.0.0.22
2025-06-19 10:38:27,553 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-06-19 10:38:27,852 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-06-19 10:38:27,920 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92466342:ctest-vn-50806425', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92466342:ctest-vn-50806425?flat'}
2025-06-19 10:38:27,920 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92466342:ctest-vn-50806425 is found in opserver
2025-06-19 10:38:27,934 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 10:38:27,941 - DEBUG - VRF ids for VN ctest-vn-50806425: {}
2025-06-19 10:38:27,941 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-06-19 10:38:27,947 - DEBUG - Requesting: http://10.0.0.22:8082/domain/07aedad4-36ce-437d-bbd9-4751bf76742c
2025-06-19 10:38:27,960 - DEBUG - Requesting: http://10.0.0.22:8082/project/5f85a1dd-46c6-4287-bf00-81f924a5fc3c
2025-06-19 10:38:28,038 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2908c723-7eda-499f-bc4a-ac33581366b1
2025-06-19 10:38:28,051 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2908c723-7eda-499f-bc4a-ac33581366b1
2025-06-19 10:38:28,063 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b1a791c6-bc16-4c6f-967f-5c2ce59cb9a8
2025-06-19 10:38:28,073 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b1a791c6-bc16-4c6f-967f-5c2ce59cb9a8
2025-06-19 10:38:28,082 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6a2692ea-acbb-4903-aabb-e025701d8ebd
2025-06-19 10:38:28,091 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 10:38:28,091 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2908c723-7eda-499f-bc4a-ac33581366b1
2025-06-19 10:38:28,104 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b1a791c6-bc16-4c6f-967f-5c2ce59cb9a8
2025-06-19 10:38:28,123 - INFO - Verified VN network id 9 for VN 2908c723-7eda-499f-bc4a-ac33581366b1
2025-06-19 10:38:28,124 - INFO - Verifications in API Server for VN ctest-vn-60693629 passed
2025-06-19 10:38:28,124 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2908c723-7eda-499f-bc4a-ac33581366b1
2025-06-19 10:38:28,136 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b1a791c6-bc16-4c6f-967f-5c2ce59cb9a8
2025-06-19 10:38:28,144 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b1a791c6-bc16-4c6f-967f-5c2ce59cb9a8
2025-06-19 10:38:28,153 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6a2692ea-acbb-4903-aabb-e025701d8ebd
2025-06-19 10:38:28,171 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92466342:ctest-vn-60693629', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92466342', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2956832110634748319', 'uuid-lslong': '13567846163928016561'}, 'enable': 'true', 'created': '2025-06-19T10:38:25', 'last-modified': '2025-06-19T10:38:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.519533'}
2025-06-19 10:38:28,178 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 10:38:28,178 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60693629 passed
2025-06-19 10:38:28,178 - DEBUG - ====Verifying policy data for ctest-vn-60693629 in API_Server ======
2025-06-19 10:38:28,178 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-06-19 10:38:28,186 - DEBUG - Requesting: http://10.0.0.22:8082/domain/07aedad4-36ce-437d-bbd9-4751bf76742c
2025-06-19 10:38:28,201 - DEBUG - Requesting: http://10.0.0.22:8082/project/5f85a1dd-46c6-4287-bf00-81f924a5fc3c
2025-06-19 10:38:28,284 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2908c723-7eda-499f-bc4a-ac33581366b1
2025-06-19 10:38:28,296 - DEBUG - ==>Verifying data for policy with id: c7fe08f5-6341-45cd-a31f-49cb43ec874e, fqn: ['default-domain', 'ctest-TestBasicPolicy-92466342', 'ctest-policy-allow-all-48191224']
2025-06-19 10:38:28,296 - INFO - VN ctest-vn-60693629 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 10:38:28,296 - DEBUG - Verifying the vn in opserver
2025-06-19 10:38:28,296 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92466342:ctest-vn-60693629 virtual network link through opserver 10.0.0.22
2025-06-19 10:38:28,296 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-06-19 10:38:28,310 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92466342:ctest-vn-60693629', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92466342:ctest-vn-60693629?flat'}
2025-06-19 10:38:28,310 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92466342:ctest-vn-60693629 is found in opserver
2025-06-19 10:38:28,321 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 10:38:28,328 - DEBUG - VRF ids for VN ctest-vn-60693629: {}
2025-06-19 10:38:28,386 - DEBUG - Services list from nova: [