2025-12-15 02:09:51,964 - INFO - Domain Default found not creating
2025-12-15 02:09:52,116 - INFO - Project ctest-TestBasicPolicy-95259812 not found, creating it
2025-12-15 02:09:52,541 - INFO - Created Project:ctest-TestBasicPolicy-95259812, ID : 92b26256-74d6-40bc-9db6-70474d308b94
2025-12-15 02:09:53,948 - INFO - ================================================================================
2025-12-15 02:09:53,948 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-15 02:09:53,949 - 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-12-15 02:09:54,203 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with
2025-12-15 02:09:54,203 - INFO - Initial checks done. Running the testcase now
2025-12-15 02:09:54,203 - INFO -
2025-12-15 02:09:54,731 - DEBUG - Response for create_network : {'network': {'id': '21c5daae-750b-4920-85f8-2612b4388e2b', 'name': 'ctest-vn-41181169', 'tenant_id': '92b2625674d640bc9db670474d308b94', 'project_id': '92b2625674d640bc9db670474d308b94', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95259812', 'ctest-vn-41181169'], 'port_security_enabled': True, 'description': ''}}
2025-12-15 02:09:54,858 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dede7340-41c2-4364-a7f2-6a084ebc9327', 'name': '', 'tenant_id': '92b2625674d640bc9db670474d308b94', 'network_id': '21c5daae-750b-4920-85f8-2612b4388e2b', 'ip_version': 4, 'cidr': '217.92.226.128/26', 'allocation_pools': [{'start': '217.92.226.130', 'end': '217.92.226.190'}], 'gateway_ip': '217.92.226.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.92.226.130', 'tags': [], 'project_id': '92b2625674d640bc9db670474d308b94'}}
2025-12-15 02:09:54,874 - INFO - Created VN ctest-vn-41181169
2025-12-15 02:09:54,926 - DEBUG - VN ctest-vn-41181169 UUID is 21c5daae-750b-4920-85f8-2612b4388e2b
2025-12-15 02:09:55,219 - DEBUG - Response for create_network : {'network': {'id': '37450c38-5f67-45ea-85b7-430883bfae4d', 'name': 'ctest-vn-95502516', 'tenant_id': '92b2625674d640bc9db670474d308b94', 'project_id': '92b2625674d640bc9db670474d308b94', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95259812', 'ctest-vn-95502516'], 'port_security_enabled': True, 'description': ''}}
2025-12-15 02:09:55,424 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af336220-9c6e-4545-8af2-abde72352b42', 'name': '', 'tenant_id': '92b2625674d640bc9db670474d308b94', 'network_id': '37450c38-5f67-45ea-85b7-430883bfae4d', 'ip_version': 4, 'cidr': '94.95.40.192/26', 'allocation_pools': [{'start': '94.95.40.194', 'end': '94.95.40.254'}], 'gateway_ip': '94.95.40.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.95.40.194', 'tags': [], 'project_id': '92b2625674d640bc9db670474d308b94'}}
2025-12-15 02:09:55,440 - INFO - Created VN ctest-vn-95502516
2025-12-15 02:09:55,490 - DEBUG - VN ctest-vn-95502516 UUID is 37450c38-5f67-45ea-85b7-430883bfae4d
2025-12-15 02:09:55,630 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95259812:ctest-vn-41181169, 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-95259812:ctest-vn-95502516, 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-12-15 02:09:55,903 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21c5daae-750b-4920-85f8-2612b4388e2b', 'name': 'ctest-vn-41181169', 'tenant_id': '92b2625674d640bc9db670474d308b94', 'project_id': '92b2625674d640bc9db670474d308b94', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dede7340-41c2-4364-a7f2-6a084ebc9327'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95259812', 'ctest-vn-41181169'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95259812', 'ctest-policy-allow-all-75359278']], 'subnet_ipam': [{'subnet_cidr': '217.92.226.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-15 02:09:56,187 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37450c38-5f67-45ea-85b7-430883bfae4d', 'name': 'ctest-vn-95502516', 'tenant_id': '92b2625674d640bc9db670474d308b94', 'project_id': '92b2625674d640bc9db670474d308b94', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af336220-9c6e-4545-8af2-abde72352b42'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95259812', 'ctest-vn-95502516'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95259812', 'ctest-policy-allow-all-75359278']], 'subnet_ipam': [{'subnet_cidr': '94.95.40.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-15 02:09:56,334 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-12-15 02:09:56,627 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-12-15 02:09:56,654 - DEBUG - Requesting: http://10.0.0.141:8082/domain/3c5bd4c5-e0fa-476f-b476-0bfe0230bd5a
2025-12-15 02:09:56,666 - DEBUG - Requesting: http://10.0.0.141:8082/project/92b26256-74d6-40bc-9db6-70474d308b94
2025-12-15 02:09:56,735 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/21c5daae-750b-4920-85f8-2612b4388e2b
2025-12-15 02:09:56,744 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/21c5daae-750b-4920-85f8-2612b4388e2b
2025-12-15 02:09:56,751 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2deea986-08b5-42e4-b973-8444b0ea2ff2
2025-12-15 02:09:56,756 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2deea986-08b5-42e4-b973-8444b0ea2ff2
2025-12-15 02:09:56,762 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/dcf1340d-fbf0-476a-a4af-820d6528813c
2025-12-15 02:09:56,767 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-15 02:09:56,767 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/21c5daae-750b-4920-85f8-2612b4388e2b
2025-12-15 02:09:56,774 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2deea986-08b5-42e4-b973-8444b0ea2ff2
2025-12-15 02:09:56,783 - INFO - Verified VN network id 12 for VN 21c5daae-750b-4920-85f8-2612b4388e2b
2025-12-15 02:09:56,783 - INFO - Verifications in API Server for VN ctest-vn-41181169 passed
2025-12-15 02:09:56,784 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/21c5daae-750b-4920-85f8-2612b4388e2b
2025-12-15 02:09:56,790 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2deea986-08b5-42e4-b973-8444b0ea2ff2
2025-12-15 02:09:56,795 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2deea986-08b5-42e4-b973-8444b0ea2ff2
2025-12-15 02:09:56,800 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/dcf1340d-fbf0-476a-a4af-820d6528813c
2025-12-15 02:09:56,809 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95259812:ctest-vn-41181169', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95259812', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2433591616486459680', 'uuid-lslong': '9653507663043530283'}, 'enable': 'true', 'created': '2025-12-15T02:09:54', 'last-modified': '2025-12-15T02:09:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.922519'}
2025-12-15 02:09:56,815 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-15 02:09:56,816 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41181169 passed
2025-12-15 02:09:56,816 - DEBUG - ====Verifying policy data for ctest-vn-41181169 in API_Server ======
2025-12-15 02:09:56,816 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-12-15 02:09:56,820 - DEBUG - Requesting: http://10.0.0.141:8082/domain/3c5bd4c5-e0fa-476f-b476-0bfe0230bd5a
2025-12-15 02:09:56,829 - DEBUG - Requesting: http://10.0.0.141:8082/project/92b26256-74d6-40bc-9db6-70474d308b94
2025-12-15 02:09:56,893 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/21c5daae-750b-4920-85f8-2612b4388e2b
2025-12-15 02:09:56,901 - DEBUG - ==>Verifying data for policy with id: c0ab3797-fa36-4cc9-800c-a5602d05b77e, fqn: ['default-domain', 'ctest-TestBasicPolicy-95259812', 'ctest-policy-allow-all-75359278']
2025-12-15 02:09:56,901 - INFO - VN ctest-vn-41181169 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-15 02:09:56,901 - DEBUG - Verifying the vn in opserver
2025-12-15 02:09:56,901 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95259812:ctest-vn-41181169 virtual network link through opserver 10.0.0.141
2025-12-15 02:09:56,901 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-12-15 02:09:57,193 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-12-15 02:09:57,249 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95259812:ctest-vn-41181169', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95259812:ctest-vn-41181169?flat'}
2025-12-15 02:09:57,249 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95259812:ctest-vn-41181169 is found in opserver
2025-12-15 02:09:57,259 - DEBUG - Do not have enough data to verify VN in agent
2025-12-15 02:09:57,264 - DEBUG - VRF ids for VN ctest-vn-41181169: {}
2025-12-15 02:09:57,264 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-12-15 02:09:57,269 - DEBUG - Requesting: http://10.0.0.141:8082/domain/3c5bd4c5-e0fa-476f-b476-0bfe0230bd5a
2025-12-15 02:09:57,280 - DEBUG - Requesting: http://10.0.0.141:8082/project/92b26256-74d6-40bc-9db6-70474d308b94
2025-12-15 02:09:57,348 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/37450c38-5f67-45ea-85b7-430883bfae4d
2025-12-15 02:09:57,357 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/37450c38-5f67-45ea-85b7-430883bfae4d
2025-12-15 02:09:57,365 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/56381c8e-04f4-46ad-b718-4007a3953fd1
2025-12-15 02:09:57,370 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/56381c8e-04f4-46ad-b718-4007a3953fd1
2025-12-15 02:09:57,375 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/9a4041e6-d6a6-4cca-93dc-0b17e9444492
2025-12-15 02:09:57,380 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-15 02:09:57,380 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/37450c38-5f67-45ea-85b7-430883bfae4d
2025-12-15 02:09:57,387 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/56381c8e-04f4-46ad-b718-4007a3953fd1
2025-12-15 02:09:57,398 - INFO - Verified VN network id 13 for VN 37450c38-5f67-45ea-85b7-430883bfae4d
2025-12-15 02:09:57,398 - INFO - Verifications in API Server for VN ctest-vn-95502516 passed
2025-12-15 02:09:57,398 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/37450c38-5f67-45ea-85b7-430883bfae4d
2025-12-15 02:09:57,407 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/56381c8e-04f4-46ad-b718-4007a3953fd1
2025-12-15 02:09:57,413 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/56381c8e-04f4-46ad-b718-4007a3953fd1
2025-12-15 02:09:57,418 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/9a4041e6-d6a6-4cca-93dc-0b17e9444492
2025-12-15 02:09:57,427 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95259812:ctest-vn-95502516', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95259812', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3982602881737377258', 'uuid-lslong': '9635243631631642189'}, 'enable': 'true', 'created': '2025-12-15T02:09:55', 'last-modified': '2025-12-15T02:09:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.329489'}
2025-12-15 02:09:57,432 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-15 02:09:57,432 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95502516 passed
2025-12-15 02:09:57,432 - DEBUG - ====Verifying policy data for ctest-vn-95502516 in API_Server ======
2025-12-15 02:09:57,432 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-12-15 02:09:57,436 - DEBUG - Requesting: http://10.0.0.141:8082/domain/3c5bd4c5-e0fa-476f-b476-0bfe0230bd5a
2025-12-15 02:09:57,445 - DEBUG - Requesting: http://10.0.0.141:8082/project/92b26256-74d6-40bc-9db6-70474d308b94
2025-12-15 02:09:57,516 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/37450c38-5f67-45ea-85b7-430883bfae4d
2025-12-15 02:09:57,524 - DEBUG - ==>Verifying data for policy with id: c0ab3797-fa36-4cc9-800c-a5602d05b77e, fqn: ['default-domain', 'ctest-TestBasicPolicy-95259812', 'ctest-policy-allow-all-75359278']
2025-12-15 02:09:57,524 - INFO - VN ctest-vn-95502516 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-15 02:09:57,524 - DEBUG - Verifying the vn in opserver
2025-12-15 02:09:57,524 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95259812:ctest-vn-95502516 virtual network link through opserver 10.0.0.141
2025-12-15 02:09:57,524 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-12-15 02:09:57,532 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95259812:ctest-vn-95502516', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95259812:ctest-vn-95502516?flat'}
2025-12-15 02:09:57,532 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95259812:ctest-vn-95502516 is found in opserver
2025-12-15 02:09:57,540 - DEBUG - Do not have enough data to verify VN in agent
2025-12-15 02:09:57,544 - DEBUG - VRF ids for VN ctest-vn-95502516: {}
2025-12-15 02:09:57,597 - DEBUG - Services list from nova: [