2025-10-30 02:23:57,414 - INFO - Domain Default found not creating
2025-10-30 02:23:57,565 - INFO - Project ctest-TestBasicPolicy-06835089 not found, creating it
2025-10-30 02:23:58,002 - INFO - Created Project:ctest-TestBasicPolicy-06835089, ID : 5cd8206b-17fb-43c1-b735-915f3519c1e8
2025-10-30 02:24:00,087 - INFO - ================================================================================
2025-10-30 02:24:00,088 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-30 02:24:00,088 - 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-10-30 02:24:00,347 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with
2025-10-30 02:24:00,347 - INFO - Initial checks done. Running the testcase now
2025-10-30 02:24:00,347 - INFO -
2025-10-30 02:24:00,923 - DEBUG - Response for create_network : {'network': {'id': 'c8c75466-5d1d-4e25-bef7-a611df7dc8cf', 'name': 'ctest-vn-99184064', 'tenant_id': '5cd8206b17fb43c1b735915f3519c1e8', 'project_id': '5cd8206b17fb43c1b735915f3519c1e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06835089', 'ctest-vn-99184064'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 02:24:01,171 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c47de507-f723-4316-9e83-17cd519fe9c3', 'name': '', 'tenant_id': '5cd8206b17fb43c1b735915f3519c1e8', 'network_id': 'c8c75466-5d1d-4e25-bef7-a611df7dc8cf', 'ip_version': 4, 'cidr': '217.237.138.128/26', 'allocation_pools': [{'start': '217.237.138.130', 'end': '217.237.138.190'}], 'gateway_ip': '217.237.138.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.237.138.130', 'tags': [], 'project_id': '5cd8206b17fb43c1b735915f3519c1e8'}}
2025-10-30 02:24:01,197 - INFO - Created VN ctest-vn-99184064
2025-10-30 02:24:01,249 - DEBUG - VN ctest-vn-99184064 UUID is c8c75466-5d1d-4e25-bef7-a611df7dc8cf
2025-10-30 02:24:01,542 - DEBUG - Response for create_network : {'network': {'id': '8478d23c-63e6-48ca-a165-6e70c9faa7dd', 'name': 'ctest-vn-29962638', 'tenant_id': '5cd8206b17fb43c1b735915f3519c1e8', 'project_id': '5cd8206b17fb43c1b735915f3519c1e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06835089', 'ctest-vn-29962638'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 02:24:01,698 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b20f6790-5aae-47d7-9099-9f323da81265', 'name': '', 'tenant_id': '5cd8206b17fb43c1b735915f3519c1e8', 'network_id': '8478d23c-63e6-48ca-a165-6e70c9faa7dd', 'ip_version': 4, 'cidr': '156.119.189.0/26', 'allocation_pools': [{'start': '156.119.189.2', 'end': '156.119.189.62'}], 'gateway_ip': '156.119.189.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.119.189.2', 'tags': [], 'project_id': '5cd8206b17fb43c1b735915f3519c1e8'}}
2025-10-30 02:24:01,716 - INFO - Created VN ctest-vn-29962638
2025-10-30 02:24:01,769 - DEBUG - VN ctest-vn-29962638 UUID is 8478d23c-63e6-48ca-a165-6e70c9faa7dd
2025-10-30 02:24:01,921 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06835089:ctest-vn-99184064, 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-06835089:ctest-vn-29962638, 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-10-30 02:24:02,227 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c8c75466-5d1d-4e25-bef7-a611df7dc8cf', 'name': 'ctest-vn-99184064', 'tenant_id': '5cd8206b17fb43c1b735915f3519c1e8', 'project_id': '5cd8206b17fb43c1b735915f3519c1e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c47de507-f723-4316-9e83-17cd519fe9c3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06835089', 'ctest-vn-99184064'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06835089', 'ctest-policy-allow-all-34566122']], 'subnet_ipam': [{'subnet_cidr': '217.237.138.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 02:24:02,458 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8478d23c-63e6-48ca-a165-6e70c9faa7dd', 'name': 'ctest-vn-29962638', 'tenant_id': '5cd8206b17fb43c1b735915f3519c1e8', 'project_id': '5cd8206b17fb43c1b735915f3519c1e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b20f6790-5aae-47d7-9099-9f323da81265'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06835089', 'ctest-vn-29962638'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06835089', 'ctest-policy-allow-all-34566122']], 'subnet_ipam': [{'subnet_cidr': '156.119.189.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 02:24:02,625 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 02:24:02,926 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 02:24:02,959 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b719b592-ac22-43f0-b0ca-68b60797a902
2025-10-30 02:24:02,973 - DEBUG - Requesting: http://10.0.0.38:8082/project/5cd8206b-17fb-43c1-b735-915f3519c1e8
2025-10-30 02:24:03,047 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c8c75466-5d1d-4e25-bef7-a611df7dc8cf
2025-10-30 02:24:03,059 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c8c75466-5d1d-4e25-bef7-a611df7dc8cf
2025-10-30 02:24:03,068 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c78afa4-f424-4a31-acc5-b941b9b88c19
2025-10-30 02:24:03,075 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c78afa4-f424-4a31-acc5-b941b9b88c19
2025-10-30 02:24:03,084 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a990af60-fefe-4e80-bdb9-4ed69bf9db22
2025-10-30 02:24:03,092 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 02:24:03,092 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c8c75466-5d1d-4e25-bef7-a611df7dc8cf
2025-10-30 02:24:03,103 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c78afa4-f424-4a31-acc5-b941b9b88c19
2025-10-30 02:24:03,116 - INFO - Verified VN network id 10 for VN c8c75466-5d1d-4e25-bef7-a611df7dc8cf
2025-10-30 02:24:03,116 - INFO - Verifications in API Server for VN ctest-vn-99184064 passed
2025-10-30 02:24:03,117 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c8c75466-5d1d-4e25-bef7-a611df7dc8cf
2025-10-30 02:24:03,125 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c78afa4-f424-4a31-acc5-b941b9b88c19
2025-10-30 02:24:03,131 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c78afa4-f424-4a31-acc5-b941b9b88c19
2025-10-30 02:24:03,139 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a990af60-fefe-4e80-bdb9-4ed69bf9db22
2025-10-30 02:24:03,157 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06835089:ctest-vn-99184064', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06835089', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14467625126576606757', 'uuid-lslong': '13760649782148057295'}, 'enable': 'true', 'created': '2025-10-30T02:24:00', 'last-modified': '2025-10-30T02:24:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953887'}
2025-10-30 02:24:03,164 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 02:24:03,164 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99184064 passed
2025-10-30 02:24:03,164 - DEBUG - ====Verifying policy data for ctest-vn-99184064 in API_Server ======
2025-10-30 02:24:03,164 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 02:24:03,170 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b719b592-ac22-43f0-b0ca-68b60797a902
2025-10-30 02:24:03,180 - DEBUG - Requesting: http://10.0.0.38:8082/project/5cd8206b-17fb-43c1-b735-915f3519c1e8
2025-10-30 02:24:03,256 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c8c75466-5d1d-4e25-bef7-a611df7dc8cf
2025-10-30 02:24:03,264 - DEBUG - ==>Verifying data for policy with id: 223dd0a3-14bd-4bb3-bd8e-f9b04463e214, fqn: ['default-domain', 'ctest-TestBasicPolicy-06835089', 'ctest-policy-allow-all-34566122']
2025-10-30 02:24:03,264 - INFO - VN ctest-vn-99184064 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 02:24:03,264 - DEBUG - Verifying the vn in opserver
2025-10-30 02:24:03,264 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06835089:ctest-vn-99184064 virtual network link through opserver 10.0.0.38
2025-10-30 02:24:03,264 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-30 02:24:03,557 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-30 02:24:03,623 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06835089:ctest-vn-99184064', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06835089:ctest-vn-99184064?flat'}
2025-10-30 02:24:03,623 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06835089:ctest-vn-99184064 is found in opserver
2025-10-30 02:24:03,633 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 02:24:03,638 - DEBUG - VRF ids for VN ctest-vn-99184064: {}
2025-10-30 02:24:03,638 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 02:24:03,643 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b719b592-ac22-43f0-b0ca-68b60797a902
2025-10-30 02:24:03,657 - DEBUG - Requesting: http://10.0.0.38:8082/project/5cd8206b-17fb-43c1-b735-915f3519c1e8
2025-10-30 02:24:03,725 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8478d23c-63e6-48ca-a165-6e70c9faa7dd
2025-10-30 02:24:03,738 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8478d23c-63e6-48ca-a165-6e70c9faa7dd
2025-10-30 02:24:03,747 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14b1edc9-f03f-45ff-a73c-b99da158999b
2025-10-30 02:24:03,753 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14b1edc9-f03f-45ff-a73c-b99da158999b
2025-10-30 02:24:03,759 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0c1a7149-0e01-4d32-bc6b-3ebffdf17771
2025-10-30 02:24:03,765 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 02:24:03,765 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8478d23c-63e6-48ca-a165-6e70c9faa7dd
2025-10-30 02:24:03,773 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14b1edc9-f03f-45ff-a73c-b99da158999b
2025-10-30 02:24:03,785 - INFO - Verified VN network id 11 for VN 8478d23c-63e6-48ca-a165-6e70c9faa7dd
2025-10-30 02:24:03,785 - INFO - Verifications in API Server for VN ctest-vn-29962638 passed
2025-10-30 02:24:03,785 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8478d23c-63e6-48ca-a165-6e70c9faa7dd
2025-10-30 02:24:03,793 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14b1edc9-f03f-45ff-a73c-b99da158999b
2025-10-30 02:24:03,798 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14b1edc9-f03f-45ff-a73c-b99da158999b
2025-10-30 02:24:03,804 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0c1a7149-0e01-4d32-bc6b-3ebffdf17771
2025-10-30 02:24:03,813 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06835089:ctest-vn-29962638', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06835089', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9545610567027673290', 'uuid-lslong': '11629823043458213853'}, 'enable': 'true', 'created': '2025-10-30T02:24:01', 'last-modified': '2025-10-30T02:24:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.375658'}
2025-10-30 02:24:03,818 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 02:24:03,819 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29962638 passed
2025-10-30 02:24:03,819 - DEBUG - ====Verifying policy data for ctest-vn-29962638 in API_Server ======
2025-10-30 02:24:03,819 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 02:24:03,826 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b719b592-ac22-43f0-b0ca-68b60797a902
2025-10-30 02:24:03,835 - DEBUG - Requesting: http://10.0.0.38:8082/project/5cd8206b-17fb-43c1-b735-915f3519c1e8
2025-10-30 02:24:03,907 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8478d23c-63e6-48ca-a165-6e70c9faa7dd
2025-10-30 02:24:03,915 - DEBUG - ==>Verifying data for policy with id: 223dd0a3-14bd-4bb3-bd8e-f9b04463e214, fqn: ['default-domain', 'ctest-TestBasicPolicy-06835089', 'ctest-policy-allow-all-34566122']
2025-10-30 02:24:03,915 - INFO - VN ctest-vn-29962638 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 02:24:03,915 - DEBUG - Verifying the vn in opserver
2025-10-30 02:24:03,915 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06835089:ctest-vn-29962638 virtual network link through opserver 10.0.0.38
2025-10-30 02:24:03,915 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-30 02:24:03,924 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06835089:ctest-vn-29962638', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06835089:ctest-vn-29962638?flat'}
2025-10-30 02:24:03,924 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06835089:ctest-vn-29962638 is found in opserver
2025-10-30 02:24:03,933 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 02:24:03,938 - DEBUG - VRF ids for VN ctest-vn-29962638: {}
2025-10-30 02:24:03,992 - DEBUG - Services list from nova: [