2025-11-02 10:28:26,404 - INFO - Domain Default found not creating
2025-11-02 10:28:26,610 - INFO - Project ctest-TestBasicPolicy-41277364 not found, creating it
2025-11-02 10:28:27,222 - INFO - Created Project:ctest-TestBasicPolicy-41277364, ID : 49e8180b-0a31-4224-a8d4-69df80aafbb8
2025-11-02 10:28:29,087 - INFO - ================================================================================
2025-11-02 10:28:29,087 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-02 10:28:29,087 - 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-11-02 10:28:29,367 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-11-02 10:28:29,367 - INFO - Initial checks done. Running the testcase now
2025-11-02 10:28:29,367 - INFO -
2025-11-02 10:28:30,166 - DEBUG - Response for create_network : {'network': {'id': 'c8553da2-4b6f-45cd-868a-753a2cc2d83c', 'name': 'ctest-vn-95237093', 'tenant_id': '49e8180b0a314224a8d469df80aafbb8', 'project_id': '49e8180b0a314224a8d469df80aafbb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41277364', 'ctest-vn-95237093'], 'port_security_enabled': True, 'description': ''}}
2025-11-02 10:28:30,430 - DEBUG - Response for create_subnet : {'subnet': {'id': '645fd2ce-62a0-4bff-85f7-57563a2891bd', 'name': '', 'tenant_id': '49e8180b0a314224a8d469df80aafbb8', 'network_id': 'c8553da2-4b6f-45cd-868a-753a2cc2d83c', 'ip_version': 4, 'cidr': '138.138.68.0/26', 'allocation_pools': [{'start': '138.138.68.2', 'end': '138.138.68.62'}], 'gateway_ip': '138.138.68.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.138.68.2', 'tags': [], 'project_id': '49e8180b0a314224a8d469df80aafbb8'}}
2025-11-02 10:28:30,453 - INFO - Created VN ctest-vn-95237093
2025-11-02 10:28:30,510 - DEBUG - VN ctest-vn-95237093 UUID is c8553da2-4b6f-45cd-868a-753a2cc2d83c
2025-11-02 10:28:30,866 - DEBUG - Response for create_network : {'network': {'id': 'f795e3c2-a992-456d-849a-593bfe314fbe', 'name': 'ctest-vn-66128156', 'tenant_id': '49e8180b0a314224a8d469df80aafbb8', 'project_id': '49e8180b0a314224a8d469df80aafbb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41277364', 'ctest-vn-66128156'], 'port_security_enabled': True, 'description': ''}}
2025-11-02 10:28:31,028 - DEBUG - Response for create_subnet : {'subnet': {'id': '77ef8a39-8d5b-4ada-b05f-3182bc11e8e9', 'name': '', 'tenant_id': '49e8180b0a314224a8d469df80aafbb8', 'network_id': 'f795e3c2-a992-456d-849a-593bfe314fbe', 'ip_version': 4, 'cidr': '67.185.1.128/26', 'allocation_pools': [{'start': '67.185.1.130', 'end': '67.185.1.190'}], 'gateway_ip': '67.185.1.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.185.1.130', 'tags': [], 'project_id': '49e8180b0a314224a8d469df80aafbb8'}}
2025-11-02 10:28:31,048 - INFO - Created VN ctest-vn-66128156
2025-11-02 10:28:31,102 - DEBUG - VN ctest-vn-66128156 UUID is f795e3c2-a992-456d-849a-593bfe314fbe
2025-11-02 10:28:31,229 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-95237093, 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-41277364:ctest-vn-66128156, 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-11-02 10:28:31,534 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c8553da2-4b6f-45cd-868a-753a2cc2d83c', 'name': 'ctest-vn-95237093', 'tenant_id': '49e8180b0a314224a8d469df80aafbb8', 'project_id': '49e8180b0a314224a8d469df80aafbb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['645fd2ce-62a0-4bff-85f7-57563a2891bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41277364', 'ctest-vn-95237093'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41277364', 'ctest-policy-allow-all-21853785']], 'subnet_ipam': [{'subnet_cidr': '138.138.68.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-02 10:28:31,768 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f795e3c2-a992-456d-849a-593bfe314fbe', 'name': 'ctest-vn-66128156', 'tenant_id': '49e8180b0a314224a8d469df80aafbb8', 'project_id': '49e8180b0a314224a8d469df80aafbb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['77ef8a39-8d5b-4ada-b05f-3182bc11e8e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41277364', 'ctest-vn-66128156'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41277364', 'ctest-policy-allow-all-21853785']], 'subnet_ipam': [{'subnet_cidr': '67.185.1.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-02 10:28:31,942 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-02 10:28:32,285 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-02 10:28:32,316 - DEBUG - Requesting: http://10.0.0.48:8082/domain/acbe4b74-975a-4a45-be44-71065b65aab0
2025-11-02 10:28:32,328 - DEBUG - Requesting: http://10.0.0.48:8082/project/49e8180b-0a31-4224-a8d4-69df80aafbb8
2025-11-02 10:28:32,400 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c8553da2-4b6f-45cd-868a-753a2cc2d83c
2025-11-02 10:28:32,411 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c8553da2-4b6f-45cd-868a-753a2cc2d83c
2025-11-02 10:28:32,422 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7f497423-7d94-48ad-8590-f07efa1547dd
2025-11-02 10:28:32,430 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7f497423-7d94-48ad-8590-f07efa1547dd
2025-11-02 10:28:32,439 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/b55346d3-39f4-4c65-aaf0-0d1051400247
2025-11-02 10:28:32,447 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-02 10:28:32,447 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c8553da2-4b6f-45cd-868a-753a2cc2d83c
2025-11-02 10:28:32,459 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7f497423-7d94-48ad-8590-f07efa1547dd
2025-11-02 10:28:32,474 - INFO - Verified VN network id 11 for VN c8553da2-4b6f-45cd-868a-753a2cc2d83c
2025-11-02 10:28:32,474 - INFO - Verifications in API Server for VN ctest-vn-95237093 passed
2025-11-02 10:28:32,474 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c8553da2-4b6f-45cd-868a-753a2cc2d83c
2025-11-02 10:28:32,484 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7f497423-7d94-48ad-8590-f07efa1547dd
2025-11-02 10:28:32,492 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7f497423-7d94-48ad-8590-f07efa1547dd
2025-11-02 10:28:32,500 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/b55346d3-39f4-4c65-aaf0-0d1051400247
2025-11-02 10:28:32,513 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-95237093', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41277364', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14435511947865572813', 'uuid-lslong': '9694690040587933756'}, 'enable': 'true', 'created': '2025-11-02T10:28:30', 'last-modified': '2025-11-02T10:28:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.009323'}
2025-11-02 10:28:32,519 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-02 10:28:32,519 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95237093 passed
2025-11-02 10:28:32,519 - DEBUG - ====Verifying policy data for ctest-vn-95237093 in API_Server ======
2025-11-02 10:28:32,519 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-02 10:28:32,526 - DEBUG - Requesting: http://10.0.0.48:8082/domain/acbe4b74-975a-4a45-be44-71065b65aab0
2025-11-02 10:28:32,539 - DEBUG - Requesting: http://10.0.0.48:8082/project/49e8180b-0a31-4224-a8d4-69df80aafbb8
2025-11-02 10:28:32,612 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c8553da2-4b6f-45cd-868a-753a2cc2d83c
2025-11-02 10:28:32,621 - DEBUG - ==>Verifying data for policy with id: 60c922c1-0aff-4cae-8f3b-5b69b86a3e22, fqn: ['default-domain', 'ctest-TestBasicPolicy-41277364', 'ctest-policy-allow-all-21853785']
2025-11-02 10:28:32,621 - INFO - VN ctest-vn-95237093 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-02 10:28:32,621 - DEBUG - Verifying the vn in opserver
2025-11-02 10:28:32,621 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-95237093 virtual network link through opserver 10.0.0.48
2025-11-02 10:28:32,621 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-11-02 10:28:32,966 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-11-02 10:28:33,043 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-95237093', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-95237093?flat'}
2025-11-02 10:28:33,043 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-95237093 is found in opserver
2025-11-02 10:28:33,056 - DEBUG - Do not have enough data to verify VN in agent
2025-11-02 10:28:33,062 - DEBUG - VRF ids for VN ctest-vn-95237093: {}
2025-11-02 10:28:33,062 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-02 10:28:33,069 - DEBUG - Requesting: http://10.0.0.48:8082/domain/acbe4b74-975a-4a45-be44-71065b65aab0
2025-11-02 10:28:33,081 - DEBUG - Requesting: http://10.0.0.48:8082/project/49e8180b-0a31-4224-a8d4-69df80aafbb8
2025-11-02 10:28:33,159 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f795e3c2-a992-456d-849a-593bfe314fbe
2025-11-02 10:28:33,172 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f795e3c2-a992-456d-849a-593bfe314fbe
2025-11-02 10:28:33,185 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/cc379bce-1e21-43d0-bcc2-e819aae22f16
2025-11-02 10:28:33,193 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/cc379bce-1e21-43d0-bcc2-e819aae22f16
2025-11-02 10:28:33,200 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e511dfa8-1629-48cf-a17f-c005a05a33b2
2025-11-02 10:28:33,207 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-02 10:28:33,207 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f795e3c2-a992-456d-849a-593bfe314fbe
2025-11-02 10:28:33,218 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/cc379bce-1e21-43d0-bcc2-e819aae22f16
2025-11-02 10:28:33,237 - INFO - Verified VN network id 12 for VN f795e3c2-a992-456d-849a-593bfe314fbe
2025-11-02 10:28:33,237 - INFO - Verifications in API Server for VN ctest-vn-66128156 passed
2025-11-02 10:28:33,237 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f795e3c2-a992-456d-849a-593bfe314fbe
2025-11-02 10:28:33,251 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/cc379bce-1e21-43d0-bcc2-e819aae22f16
2025-11-02 10:28:33,261 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/cc379bce-1e21-43d0-bcc2-e819aae22f16
2025-11-02 10:28:33,270 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e511dfa8-1629-48cf-a17f-c005a05a33b2
2025-11-02 10:28:33,287 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-66128156', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41277364', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17840415924106184045', 'uuid-lslong': '9555047673622515646'}, 'enable': 'true', 'created': '2025-11-02T10:28:30', 'last-modified': '2025-11-02T10:28:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.545169'}
2025-11-02 10:28:33,296 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-02 10:28:33,296 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66128156 passed
2025-11-02 10:28:33,296 - DEBUG - ====Verifying policy data for ctest-vn-66128156 in API_Server ======
2025-11-02 10:28:33,296 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-02 10:28:33,304 - DEBUG - Requesting: http://10.0.0.48:8082/domain/acbe4b74-975a-4a45-be44-71065b65aab0
2025-11-02 10:28:33,316 - DEBUG - Requesting: http://10.0.0.48:8082/project/49e8180b-0a31-4224-a8d4-69df80aafbb8
2025-11-02 10:28:33,392 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f795e3c2-a992-456d-849a-593bfe314fbe
2025-11-02 10:28:33,402 - DEBUG - ==>Verifying data for policy with id: 60c922c1-0aff-4cae-8f3b-5b69b86a3e22, fqn: ['default-domain', 'ctest-TestBasicPolicy-41277364', 'ctest-policy-allow-all-21853785']
2025-11-02 10:28:33,402 - INFO - VN ctest-vn-66128156 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-02 10:28:33,402 - DEBUG - Verifying the vn in opserver
2025-11-02 10:28:33,402 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-66128156 virtual network link through opserver 10.0.0.48
2025-11-02 10:28:33,402 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-11-02 10:28:33,412 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-66128156', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-66128156?flat'}
2025-11-02 10:28:33,412 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-66128156 is found in opserver
2025-11-02 10:28:33,422 - DEBUG - Do not have enough data to verify VN in agent
2025-11-02 10:28:33,428 - DEBUG - VRF ids for VN ctest-vn-66128156: {}
2025-11-02 10:28:33,501 - DEBUG - Services list from nova: [