2025-08-04 02:16:40,923 - INFO - Domain Default found not creating
2025-08-04 02:16:41,070 - INFO - Project ctest-TestBasicPolicy-09237531 not found, creating it
2025-08-04 02:16:41,529 - INFO - Created Project:ctest-TestBasicPolicy-09237531, ID : b4a5fc73-66b0-4ba0-8645-d74d182efe04
2025-08-04 02:16:43,070 - INFO - ================================================================================
2025-08-04 02:16:43,071 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-04 02:16:43,071 - 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-08-04 02:16:43,339 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-08-04 02:16:43,339 - INFO - Initial checks done. Running the testcase now
2025-08-04 02:16:43,339 - INFO -
2025-08-04 02:16:43,899 - DEBUG - Response for create_network : {'network': {'id': '81178ad2-2fe0-4050-a6dc-ff25911c807f', 'name': 'ctest-vn-35910331', 'tenant_id': 'b4a5fc7366b04ba08645d74d182efe04', 'project_id': 'b4a5fc7366b04ba08645d74d182efe04', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09237531', 'ctest-vn-35910331'], 'port_security_enabled': True, 'description': ''}}
2025-08-04 02:16:44,085 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd639a270-0fc1-4540-9cb9-acb1cd7fcbaf', 'name': '', 'tenant_id': 'b4a5fc7366b04ba08645d74d182efe04', 'network_id': '81178ad2-2fe0-4050-a6dc-ff25911c807f', 'ip_version': 4, 'cidr': '73.3.115.0/26', 'allocation_pools': [{'start': '73.3.115.2', 'end': '73.3.115.62'}], 'gateway_ip': '73.3.115.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.3.115.2', 'tags': [], 'project_id': 'b4a5fc7366b04ba08645d74d182efe04'}}
2025-08-04 02:16:44,105 - INFO - Created VN ctest-vn-35910331
2025-08-04 02:16:44,161 - DEBUG - VN ctest-vn-35910331 UUID is 81178ad2-2fe0-4050-a6dc-ff25911c807f
2025-08-04 02:16:44,479 - DEBUG - Response for create_network : {'network': {'id': 'e7f98712-5e11-4577-8843-6d50132101c8', 'name': 'ctest-vn-05749895', 'tenant_id': 'b4a5fc7366b04ba08645d74d182efe04', 'project_id': 'b4a5fc7366b04ba08645d74d182efe04', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09237531', 'ctest-vn-05749895'], 'port_security_enabled': True, 'description': ''}}
2025-08-04 02:16:44,665 - DEBUG - Response for create_subnet : {'subnet': {'id': '019b52a2-01f2-446d-af0e-b6b177e076cc', 'name': '', 'tenant_id': 'b4a5fc7366b04ba08645d74d182efe04', 'network_id': 'e7f98712-5e11-4577-8843-6d50132101c8', 'ip_version': 4, 'cidr': '99.23.243.0/26', 'allocation_pools': [{'start': '99.23.243.2', 'end': '99.23.243.62'}], 'gateway_ip': '99.23.243.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.23.243.2', 'tags': [], 'project_id': 'b4a5fc7366b04ba08645d74d182efe04'}}
2025-08-04 02:16:44,685 - INFO - Created VN ctest-vn-05749895
2025-08-04 02:16:44,741 - DEBUG - VN ctest-vn-05749895 UUID is e7f98712-5e11-4577-8843-6d50132101c8
2025-08-04 02:16:44,861 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09237531:ctest-vn-35910331, 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-09237531:ctest-vn-05749895, 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-08-04 02:16:45,184 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81178ad2-2fe0-4050-a6dc-ff25911c807f', 'name': 'ctest-vn-35910331', 'tenant_id': 'b4a5fc7366b04ba08645d74d182efe04', 'project_id': 'b4a5fc7366b04ba08645d74d182efe04', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d639a270-0fc1-4540-9cb9-acb1cd7fcbaf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09237531', 'ctest-vn-35910331'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09237531', 'ctest-policy-allow-all-77378665']], 'subnet_ipam': [{'subnet_cidr': '73.3.115.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-04 02:16:45,437 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e7f98712-5e11-4577-8843-6d50132101c8', 'name': 'ctest-vn-05749895', 'tenant_id': 'b4a5fc7366b04ba08645d74d182efe04', 'project_id': 'b4a5fc7366b04ba08645d74d182efe04', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['019b52a2-01f2-446d-af0e-b6b177e076cc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09237531', 'ctest-vn-05749895'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09237531', 'ctest-policy-allow-all-77378665']], 'subnet_ipam': [{'subnet_cidr': '99.23.243.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-04 02:16:45,605 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-04 02:16:45,919 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-04 02:16:45,951 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9451a3d0-e32d-470e-b8cb-194241f421ee
2025-08-04 02:16:45,970 - DEBUG - Requesting: http://10.0.0.254:8082/project/b4a5fc73-66b0-4ba0-8645-d74d182efe04
2025-08-04 02:16:46,059 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/81178ad2-2fe0-4050-a6dc-ff25911c807f
2025-08-04 02:16:46,072 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/81178ad2-2fe0-4050-a6dc-ff25911c807f
2025-08-04 02:16:46,082 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0905f6e3-7e36-4327-8e4a-5a64803af72f
2025-08-04 02:16:46,091 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0905f6e3-7e36-4327-8e4a-5a64803af72f
2025-08-04 02:16:46,102 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d2a5785f-8b0a-430b-89ff-e88228793e1c
2025-08-04 02:16:46,117 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-04 02:16:46,117 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/81178ad2-2fe0-4050-a6dc-ff25911c807f
2025-08-04 02:16:46,131 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0905f6e3-7e36-4327-8e4a-5a64803af72f
2025-08-04 02:16:46,153 - INFO - Verified VN network id 12 for VN 81178ad2-2fe0-4050-a6dc-ff25911c807f
2025-08-04 02:16:46,153 - INFO - Verifications in API Server for VN ctest-vn-35910331 passed
2025-08-04 02:16:46,153 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/81178ad2-2fe0-4050-a6dc-ff25911c807f
2025-08-04 02:16:46,167 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0905f6e3-7e36-4327-8e4a-5a64803af72f
2025-08-04 02:16:46,175 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0905f6e3-7e36-4327-8e4a-5a64803af72f
2025-08-04 02:16:46,182 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d2a5785f-8b0a-430b-89ff-e88228793e1c
2025-08-04 02:16:46,195 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09237531:ctest-vn-35910331', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09237531', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9302056190708039760', 'uuid-lslong': '12023765641985818751'}, 'enable': 'true', 'created': '2025-08-04T02:16:43', 'last-modified': '2025-08-04T02:16:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.039641'}
2025-08-04 02:16:46,204 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-04 02:16:46,205 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35910331 passed
2025-08-04 02:16:46,205 - DEBUG - ====Verifying policy data for ctest-vn-35910331 in API_Server ======
2025-08-04 02:16:46,205 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-04 02:16:46,212 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9451a3d0-e32d-470e-b8cb-194241f421ee
2025-08-04 02:16:46,228 - DEBUG - Requesting: http://10.0.0.254:8082/project/b4a5fc73-66b0-4ba0-8645-d74d182efe04
2025-08-04 02:16:46,315 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/81178ad2-2fe0-4050-a6dc-ff25911c807f
2025-08-04 02:16:46,329 - DEBUG - ==>Verifying data for policy with id: b4e8cdfb-77fc-46eb-9662-52fdea8c8af6, fqn: ['default-domain', 'ctest-TestBasicPolicy-09237531', 'ctest-policy-allow-all-77378665']
2025-08-04 02:16:46,329 - INFO - VN ctest-vn-35910331 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-04 02:16:46,329 - DEBUG - Verifying the vn in opserver
2025-08-04 02:16:46,330 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09237531:ctest-vn-35910331 virtual network link through opserver 10.0.0.254
2025-08-04 02:16:46,330 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-04 02:16:46,914 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-04 02:16:46,990 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09237531:ctest-vn-35910331', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09237531:ctest-vn-35910331?flat'}
2025-08-04 02:16:46,990 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09237531:ctest-vn-35910331 is found in opserver
2025-08-04 02:16:47,003 - DEBUG - Do not have enough data to verify VN in agent
2025-08-04 02:16:47,010 - DEBUG - VRF ids for VN ctest-vn-35910331: {}
2025-08-04 02:16:47,011 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-04 02:16:47,017 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9451a3d0-e32d-470e-b8cb-194241f421ee
2025-08-04 02:16:47,030 - DEBUG - Requesting: http://10.0.0.254:8082/project/b4a5fc73-66b0-4ba0-8645-d74d182efe04
2025-08-04 02:16:47,106 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7f98712-5e11-4577-8843-6d50132101c8
2025-08-04 02:16:47,121 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7f98712-5e11-4577-8843-6d50132101c8
2025-08-04 02:16:47,133 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d160b62d-c2b4-4f4f-a544-fc9bb2f522fb
2025-08-04 02:16:47,140 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d160b62d-c2b4-4f4f-a544-fc9bb2f522fb
2025-08-04 02:16:47,148 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/df68fa3a-deb5-45bb-bfdd-83a62ad6b611
2025-08-04 02:16:47,156 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-04 02:16:47,156 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7f98712-5e11-4577-8843-6d50132101c8
2025-08-04 02:16:47,167 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d160b62d-c2b4-4f4f-a544-fc9bb2f522fb
2025-08-04 02:16:47,181 - INFO - Verified VN network id 13 for VN e7f98712-5e11-4577-8843-6d50132101c8
2025-08-04 02:16:47,181 - INFO - Verifications in API Server for VN ctest-vn-05749895 passed
2025-08-04 02:16:47,181 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7f98712-5e11-4577-8843-6d50132101c8
2025-08-04 02:16:47,192 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d160b62d-c2b4-4f4f-a544-fc9bb2f522fb
2025-08-04 02:16:47,200 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d160b62d-c2b4-4f4f-a544-fc9bb2f522fb
2025-08-04 02:16:47,208 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/df68fa3a-deb5-45bb-bfdd-83a62ad6b611
2025-08-04 02:16:47,225 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09237531:ctest-vn-05749895', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09237531', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16715540004919657847', 'uuid-lslong': '9818811803283554760'}, 'enable': 'true', 'created': '2025-08-04T02:16:44', 'last-modified': '2025-08-04T02:16:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.811744'}
2025-08-04 02:16:47,233 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-04 02:16:47,233 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05749895 passed
2025-08-04 02:16:47,233 - DEBUG - ====Verifying policy data for ctest-vn-05749895 in API_Server ======
2025-08-04 02:16:47,233 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-04 02:16:47,241 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9451a3d0-e32d-470e-b8cb-194241f421ee
2025-08-04 02:16:47,253 - DEBUG - Requesting: http://10.0.0.254:8082/project/b4a5fc73-66b0-4ba0-8645-d74d182efe04
2025-08-04 02:16:47,329 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7f98712-5e11-4577-8843-6d50132101c8
2025-08-04 02:16:47,339 - DEBUG - ==>Verifying data for policy with id: b4e8cdfb-77fc-46eb-9662-52fdea8c8af6, fqn: ['default-domain', 'ctest-TestBasicPolicy-09237531', 'ctest-policy-allow-all-77378665']
2025-08-04 02:16:47,339 - INFO - VN ctest-vn-05749895 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-04 02:16:47,339 - DEBUG - Verifying the vn in opserver
2025-08-04 02:16:47,339 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09237531:ctest-vn-05749895 virtual network link through opserver 10.0.0.254
2025-08-04 02:16:47,339 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-04 02:16:47,351 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09237531:ctest-vn-05749895', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09237531:ctest-vn-05749895?flat'}
2025-08-04 02:16:47,351 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09237531:ctest-vn-05749895 is found in opserver
2025-08-04 02:16:47,361 - DEBUG - Do not have enough data to verify VN in agent
2025-08-04 02:16:47,366 - DEBUG - VRF ids for VN ctest-vn-05749895: {}
2025-08-04 02:16:47,430 - DEBUG - Services list from nova: [