2025-06-24 13:18:35,323 - INFO - Domain Default found not creating
2025-06-24 13:18:35,476 - INFO - Project ctest-TestBasicPolicy-63884855 not found, creating it
2025-06-24 13:18:35,939 - INFO - Created Project:ctest-TestBasicPolicy-63884855, ID : 36580f81-91fb-4aa3-a8ed-4ccc9d8da36d
2025-06-24 13:18:37,419 - INFO - ================================================================================
2025-06-24 13:18:37,420 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-24 13:18:37,420 - 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-24 13:18:37,674 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-24 13:18:37,674 - INFO - Initial checks done. Running the testcase now
2025-06-24 13:18:37,674 - INFO -
2025-06-24 13:18:38,264 - DEBUG - Response for create_network : {'network': {'id': '9701ecee-ed92-48cd-84ac-cdc59f1abc60', 'name': 'ctest-vn-44870584', 'tenant_id': '36580f8191fb4aa3a8ed4ccc9d8da36d', 'project_id': '36580f8191fb4aa3a8ed4ccc9d8da36d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63884855', 'ctest-vn-44870584'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 13:18:38,453 - DEBUG - Response for create_subnet : {'subnet': {'id': '47c08e5d-47a6-4e83-97db-1f404ffe039a', 'name': '', 'tenant_id': '36580f8191fb4aa3a8ed4ccc9d8da36d', 'network_id': '9701ecee-ed92-48cd-84ac-cdc59f1abc60', 'ip_version': 4, 'cidr': '97.200.95.64/26', 'allocation_pools': [{'start': '97.200.95.66', 'end': '97.200.95.126'}], 'gateway_ip': '97.200.95.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.200.95.66', 'tags': [], 'project_id': '36580f8191fb4aa3a8ed4ccc9d8da36d'}}
2025-06-24 13:18:38,471 - INFO - Created VN ctest-vn-44870584
2025-06-24 13:18:38,527 - DEBUG - VN ctest-vn-44870584 UUID is 9701ecee-ed92-48cd-84ac-cdc59f1abc60
2025-06-24 13:18:38,827 - DEBUG - Response for create_network : {'network': {'id': '7ed07440-5449-472f-82ad-838e6bab73c8', 'name': 'ctest-vn-47379411', 'tenant_id': '36580f8191fb4aa3a8ed4ccc9d8da36d', 'project_id': '36580f8191fb4aa3a8ed4ccc9d8da36d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63884855', 'ctest-vn-47379411'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 13:18:39,064 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d52e015-af9d-44b1-a119-7837364a4604', 'name': '', 'tenant_id': '36580f8191fb4aa3a8ed4ccc9d8da36d', 'network_id': '7ed07440-5449-472f-82ad-838e6bab73c8', 'ip_version': 4, 'cidr': '80.175.193.128/26', 'allocation_pools': [{'start': '80.175.193.130', 'end': '80.175.193.190'}], 'gateway_ip': '80.175.193.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.175.193.130', 'tags': [], 'project_id': '36580f8191fb4aa3a8ed4ccc9d8da36d'}}
2025-06-24 13:18:39,084 - INFO - Created VN ctest-vn-47379411
2025-06-24 13:18:39,139 - DEBUG - VN ctest-vn-47379411 UUID is 7ed07440-5449-472f-82ad-838e6bab73c8
2025-06-24 13:18:39,256 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63884855:ctest-vn-44870584, 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-63884855:ctest-vn-47379411, 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-24 13:18:39,560 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9701ecee-ed92-48cd-84ac-cdc59f1abc60', 'name': 'ctest-vn-44870584', 'tenant_id': '36580f8191fb4aa3a8ed4ccc9d8da36d', 'project_id': '36580f8191fb4aa3a8ed4ccc9d8da36d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47c08e5d-47a6-4e83-97db-1f404ffe039a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63884855', 'ctest-vn-44870584'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63884855', 'ctest-policy-allow-all-16731500']], 'subnet_ipam': [{'subnet_cidr': '97.200.95.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 13:18:39,812 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7ed07440-5449-472f-82ad-838e6bab73c8', 'name': 'ctest-vn-47379411', 'tenant_id': '36580f8191fb4aa3a8ed4ccc9d8da36d', 'project_id': '36580f8191fb4aa3a8ed4ccc9d8da36d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d52e015-af9d-44b1-a119-7837364a4604'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63884855', 'ctest-vn-47379411'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63884855', 'ctest-policy-allow-all-16731500']], 'subnet_ipam': [{'subnet_cidr': '80.175.193.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 13:18:39,979 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-24 13:18:40,280 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-24 13:18:40,312 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a978b3a6-c333-42fa-a37a-0b7f3cacfed1
2025-06-24 13:18:40,326 - DEBUG - Requesting: http://10.0.0.254:8082/project/36580f81-91fb-4aa3-a8ed-4ccc9d8da36d
2025-06-24 13:18:40,400 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9701ecee-ed92-48cd-84ac-cdc59f1abc60
2025-06-24 13:18:40,413 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9701ecee-ed92-48cd-84ac-cdc59f1abc60
2025-06-24 13:18:40,425 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8669f282-48c9-471d-b33c-0e93c556ea7b
2025-06-24 13:18:40,433 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8669f282-48c9-471d-b33c-0e93c556ea7b
2025-06-24 13:18:40,440 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d81e9025-97b7-4a15-9a4c-87c25891954a
2025-06-24 13:18:40,447 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 13:18:40,447 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9701ecee-ed92-48cd-84ac-cdc59f1abc60
2025-06-24 13:18:40,459 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8669f282-48c9-471d-b33c-0e93c556ea7b
2025-06-24 13:18:40,475 - INFO - Verified VN network id 8 for VN 9701ecee-ed92-48cd-84ac-cdc59f1abc60
2025-06-24 13:18:40,475 - INFO - Verifications in API Server for VN ctest-vn-44870584 passed
2025-06-24 13:18:40,475 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9701ecee-ed92-48cd-84ac-cdc59f1abc60
2025-06-24 13:18:40,487 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8669f282-48c9-471d-b33c-0e93c556ea7b
2025-06-24 13:18:40,494 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8669f282-48c9-471d-b33c-0e93c556ea7b
2025-06-24 13:18:40,502 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d81e9025-97b7-4a15-9a4c-87c25891954a
2025-06-24 13:18:40,516 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63884855:ctest-vn-44870584', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63884855', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10881238685635987661', 'uuid-lslong': '9560242357662301280'}, 'enable': 'true', 'created': '2025-06-24T13:18:38', 'last-modified': '2025-06-24T13:18:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978748'}
2025-06-24 13:18:40,523 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 13:18:40,523 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44870584 passed
2025-06-24 13:18:40,523 - DEBUG - ====Verifying policy data for ctest-vn-44870584 in API_Server ======
2025-06-24 13:18:40,523 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-24 13:18:40,529 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a978b3a6-c333-42fa-a37a-0b7f3cacfed1
2025-06-24 13:18:40,542 - DEBUG - Requesting: http://10.0.0.254:8082/project/36580f81-91fb-4aa3-a8ed-4ccc9d8da36d
2025-06-24 13:18:40,615 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9701ecee-ed92-48cd-84ac-cdc59f1abc60
2025-06-24 13:18:40,626 - DEBUG - ==>Verifying data for policy with id: dfb14398-2525-48c6-8301-130ae4df6a3a, fqn: ['default-domain', 'ctest-TestBasicPolicy-63884855', 'ctest-policy-allow-all-16731500']
2025-06-24 13:18:40,626 - INFO - VN ctest-vn-44870584 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 13:18:40,626 - DEBUG - Verifying the vn in opserver
2025-06-24 13:18:40,626 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63884855:ctest-vn-44870584 virtual network link through opserver 10.0.0.254
2025-06-24 13:18:40,627 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-24 13:18:40,942 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-24 13:18:41,014 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63884855:ctest-vn-44870584', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63884855:ctest-vn-44870584?flat'}
2025-06-24 13:18:41,014 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63884855:ctest-vn-44870584 is found in opserver
2025-06-24 13:18:41,027 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 13:18:41,033 - DEBUG - VRF ids for VN ctest-vn-44870584: {}
2025-06-24 13:18:41,033 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-24 13:18:41,039 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a978b3a6-c333-42fa-a37a-0b7f3cacfed1
2025-06-24 13:18:41,053 - DEBUG - Requesting: http://10.0.0.254:8082/project/36580f81-91fb-4aa3-a8ed-4ccc9d8da36d
2025-06-24 13:18:41,142 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ed07440-5449-472f-82ad-838e6bab73c8
2025-06-24 13:18:41,158 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ed07440-5449-472f-82ad-838e6bab73c8
2025-06-24 13:18:41,170 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/10093a51-53dc-4c77-bf34-05918ddd51b6
2025-06-24 13:18:41,179 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/10093a51-53dc-4c77-bf34-05918ddd51b6
2025-06-24 13:18:41,191 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c4e42f14-3062-48ef-a176-9617e15a9b26
2025-06-24 13:18:41,200 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 13:18:41,201 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ed07440-5449-472f-82ad-838e6bab73c8
2025-06-24 13:18:41,214 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/10093a51-53dc-4c77-bf34-05918ddd51b6
2025-06-24 13:18:41,234 - INFO - Verified VN network id 9 for VN 7ed07440-5449-472f-82ad-838e6bab73c8
2025-06-24 13:18:41,234 - INFO - Verifications in API Server for VN ctest-vn-47379411 passed
2025-06-24 13:18:41,235 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ed07440-5449-472f-82ad-838e6bab73c8
2025-06-24 13:18:41,247 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/10093a51-53dc-4c77-bf34-05918ddd51b6
2025-06-24 13:18:41,256 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/10093a51-53dc-4c77-bf34-05918ddd51b6
2025-06-24 13:18:41,264 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c4e42f14-3062-48ef-a176-9617e15a9b26
2025-06-24 13:18:41,278 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63884855:ctest-vn-47379411', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63884855', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9137931463575553839', 'uuid-lslong': '9416327043616568264'}, 'enable': 'true', 'created': '2025-06-24T13:18:38', 'last-modified': '2025-06-24T13:18:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.500647'}
2025-06-24 13:18:41,286 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 13:18:41,286 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47379411 passed
2025-06-24 13:18:41,286 - DEBUG - ====Verifying policy data for ctest-vn-47379411 in API_Server ======
2025-06-24 13:18:41,286 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-24 13:18:41,294 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a978b3a6-c333-42fa-a37a-0b7f3cacfed1
2025-06-24 13:18:41,310 - DEBUG - Requesting: http://10.0.0.254:8082/project/36580f81-91fb-4aa3-a8ed-4ccc9d8da36d
2025-06-24 13:18:41,392 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ed07440-5449-472f-82ad-838e6bab73c8
2025-06-24 13:18:41,407 - DEBUG - ==>Verifying data for policy with id: dfb14398-2525-48c6-8301-130ae4df6a3a, fqn: ['default-domain', 'ctest-TestBasicPolicy-63884855', 'ctest-policy-allow-all-16731500']
2025-06-24 13:18:41,407 - INFO - VN ctest-vn-47379411 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 13:18:41,407 - DEBUG - Verifying the vn in opserver
2025-06-24 13:18:41,407 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63884855:ctest-vn-47379411 virtual network link through opserver 10.0.0.254
2025-06-24 13:18:41,407 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-24 13:18:41,420 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63884855:ctest-vn-47379411', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63884855:ctest-vn-47379411?flat'}
2025-06-24 13:18:41,420 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63884855:ctest-vn-47379411 is found in opserver
2025-06-24 13:18:41,432 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 13:18:41,438 - DEBUG - VRF ids for VN ctest-vn-47379411: {}
2025-06-24 13:18:41,524 - DEBUG - Services list from nova: [