2026-04-02 14:25:17,096 - INFO - Domain Default found not creating
2026-04-02 14:25:17,264 - INFO - Project ctest-TestBasicPolicy-88246341 not found, creating it
2026-04-02 14:25:17,735 - INFO - Created Project:ctest-TestBasicPolicy-88246341, ID : 6c426ac3-84ac-4f9c-9d2d-60d0f6ef2ffc
2026-04-02 14:25:19,188 - INFO - ================================================================================
2026-04-02 14:25:19,189 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-02 14:25:19,189 - 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
2026-04-02 14:25:19,462 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-04-02 14:25:19,462 - INFO - Initial checks done. Running the testcase now
2026-04-02 14:25:19,462 - INFO -
2026-04-02 14:25:20,035 - DEBUG - Response for create_network : {'network': {'id': '44f48b86-2c4b-4784-ac2f-bdfaa6a24e3c', 'name': 'ctest-vn-63503919', 'tenant_id': '6c426ac384ac4f9c9d2d60d0f6ef2ffc', 'project_id': '6c426ac384ac4f9c9d2d60d0f6ef2ffc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88246341', 'ctest-vn-63503919'], 'port_security_enabled': True, 'description': ''}}
2026-04-02 14:25:20,201 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f502e95b-d7e3-4969-b7bb-5494b9926621', 'name': '', 'tenant_id': '6c426ac384ac4f9c9d2d60d0f6ef2ffc', 'network_id': '44f48b86-2c4b-4784-ac2f-bdfaa6a24e3c', 'ip_version': 4, 'cidr': '62.17.57.64/26', 'allocation_pools': [{'start': '62.17.57.66', 'end': '62.17.57.126'}], 'gateway_ip': '62.17.57.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.17.57.66', 'tags': [], 'project_id': '6c426ac384ac4f9c9d2d60d0f6ef2ffc'}}
2026-04-02 14:25:20,221 - INFO - Created VN ctest-vn-63503919
2026-04-02 14:25:20,273 - DEBUG - VN ctest-vn-63503919 UUID is 44f48b86-2c4b-4784-ac2f-bdfaa6a24e3c
2026-04-02 14:25:20,555 - DEBUG - Response for create_network : {'network': {'id': '822014e1-44ee-424e-ab25-ff7e224655ed', 'name': 'ctest-vn-49267558', 'tenant_id': '6c426ac384ac4f9c9d2d60d0f6ef2ffc', 'project_id': '6c426ac384ac4f9c9d2d60d0f6ef2ffc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88246341', 'ctest-vn-49267558'], 'port_security_enabled': True, 'description': ''}}
2026-04-02 14:25:20,747 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f798245b-db11-47b3-a34d-6a40fcc8a620', 'name': '', 'tenant_id': '6c426ac384ac4f9c9d2d60d0f6ef2ffc', 'network_id': '822014e1-44ee-424e-ab25-ff7e224655ed', 'ip_version': 4, 'cidr': '99.50.166.192/26', 'allocation_pools': [{'start': '99.50.166.194', 'end': '99.50.166.254'}], 'gateway_ip': '99.50.166.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.50.166.194', 'tags': [], 'project_id': '6c426ac384ac4f9c9d2d60d0f6ef2ffc'}}
2026-04-02 14:25:20,764 - INFO - Created VN ctest-vn-49267558
2026-04-02 14:25:20,813 - DEBUG - VN ctest-vn-49267558 UUID is 822014e1-44ee-424e-ab25-ff7e224655ed
2026-04-02 14:25:20,934 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88246341:ctest-vn-63503919, 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-88246341:ctest-vn-49267558, 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]
2026-04-02 14:25:21,234 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '44f48b86-2c4b-4784-ac2f-bdfaa6a24e3c', 'name': 'ctest-vn-63503919', 'tenant_id': '6c426ac384ac4f9c9d2d60d0f6ef2ffc', 'project_id': '6c426ac384ac4f9c9d2d60d0f6ef2ffc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f502e95b-d7e3-4969-b7bb-5494b9926621'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88246341', 'ctest-vn-63503919'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88246341', 'ctest-policy-allow-all-83685516']], 'subnet_ipam': [{'subnet_cidr': '62.17.57.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-02 14:25:21,465 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '822014e1-44ee-424e-ab25-ff7e224655ed', 'name': 'ctest-vn-49267558', 'tenant_id': '6c426ac384ac4f9c9d2d60d0f6ef2ffc', 'project_id': '6c426ac384ac4f9c9d2d60d0f6ef2ffc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f798245b-db11-47b3-a34d-6a40fcc8a620'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88246341', 'ctest-vn-49267558'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88246341', 'ctest-policy-allow-all-83685516']], 'subnet_ipam': [{'subnet_cidr': '99.50.166.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-02 14:25:21,617 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-02 14:25:21,916 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-02 14:25:21,947 - DEBUG - Requesting: http://10.0.0.50:8082/domain/812c6bd6-3913-4112-acaa-6c88ccb0fdb8
2026-04-02 14:25:21,958 - DEBUG - Requesting: http://10.0.0.50:8082/project/6c426ac3-84ac-4f9c-9d2d-60d0f6ef2ffc
2026-04-02 14:25:22,037 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/44f48b86-2c4b-4784-ac2f-bdfaa6a24e3c
2026-04-02 14:25:22,047 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/44f48b86-2c4b-4784-ac2f-bdfaa6a24e3c
2026-04-02 14:25:22,056 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3443b466-313f-4029-ab0d-7fa2c200eb97
2026-04-02 14:25:22,063 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3443b466-313f-4029-ab0d-7fa2c200eb97
2026-04-02 14:25:22,071 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4822739c-5cf4-4d0b-a3bd-09b989ce22d9
2026-04-02 14:25:22,077 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-02 14:25:22,077 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/44f48b86-2c4b-4784-ac2f-bdfaa6a24e3c
2026-04-02 14:25:22,085 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3443b466-313f-4029-ab0d-7fa2c200eb97
2026-04-02 14:25:22,099 - INFO - Verified VN network id 11 for VN 44f48b86-2c4b-4784-ac2f-bdfaa6a24e3c
2026-04-02 14:25:22,099 - INFO - Verifications in API Server for VN ctest-vn-63503919 passed
2026-04-02 14:25:22,099 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/44f48b86-2c4b-4784-ac2f-bdfaa6a24e3c
2026-04-02 14:25:22,108 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3443b466-313f-4029-ab0d-7fa2c200eb97
2026-04-02 14:25:22,114 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3443b466-313f-4029-ab0d-7fa2c200eb97
2026-04-02 14:25:22,121 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4822739c-5cf4-4d0b-a3bd-09b989ce22d9
2026-04-02 14:25:22,135 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88246341:ctest-vn-63503919', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88246341', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4968749697281509252', 'uuid-lslong': '12407344382664134204'}, 'enable': 'true', 'created': '2026-04-02T14:25:19', 'last-modified': '2026-04-02T14:25:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.928502'}
2026-04-02 14:25:22,141 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-02 14:25:22,141 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63503919 passed
2026-04-02 14:25:22,141 - DEBUG - ====Verifying policy data for ctest-vn-63503919 in API_Server ======
2026-04-02 14:25:22,141 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-02 14:25:22,146 - DEBUG - Requesting: http://10.0.0.50:8082/domain/812c6bd6-3913-4112-acaa-6c88ccb0fdb8
2026-04-02 14:25:22,156 - DEBUG - Requesting: http://10.0.0.50:8082/project/6c426ac3-84ac-4f9c-9d2d-60d0f6ef2ffc
2026-04-02 14:25:22,229 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/44f48b86-2c4b-4784-ac2f-bdfaa6a24e3c
2026-04-02 14:25:22,238 - DEBUG - ==>Verifying data for policy with id: 8aa126d5-7394-4357-af75-b4d156596e06, fqn: ['default-domain', 'ctest-TestBasicPolicy-88246341', 'ctest-policy-allow-all-83685516']
2026-04-02 14:25:22,238 - INFO - VN ctest-vn-63503919 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-02 14:25:22,239 - DEBUG - Verifying the vn in opserver
2026-04-02 14:25:22,239 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88246341:ctest-vn-63503919 virtual network link through opserver 10.0.0.50
2026-04-02 14:25:22,239 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-02 14:25:22,532 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-02 14:25:22,599 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88246341:ctest-vn-63503919', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88246341:ctest-vn-63503919?flat'}
2026-04-02 14:25:22,599 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88246341:ctest-vn-63503919 is found in opserver
2026-04-02 14:25:22,609 - DEBUG - Do not have enough data to verify VN in agent
2026-04-02 14:25:22,614 - DEBUG - VRF ids for VN ctest-vn-63503919: {}
2026-04-02 14:25:22,614 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-02 14:25:22,620 - DEBUG - Requesting: http://10.0.0.50:8082/domain/812c6bd6-3913-4112-acaa-6c88ccb0fdb8
2026-04-02 14:25:22,630 - DEBUG - Requesting: http://10.0.0.50:8082/project/6c426ac3-84ac-4f9c-9d2d-60d0f6ef2ffc
2026-04-02 14:25:22,701 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/822014e1-44ee-424e-ab25-ff7e224655ed
2026-04-02 14:25:22,712 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/822014e1-44ee-424e-ab25-ff7e224655ed
2026-04-02 14:25:22,721 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5db390e3-d955-482c-b057-101614b77dbc
2026-04-02 14:25:22,728 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5db390e3-d955-482c-b057-101614b77dbc
2026-04-02 14:25:22,735 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ebcd9c79-008b-4ddf-a281-496712b6c5e8
2026-04-02 14:25:22,742 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-02 14:25:22,742 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/822014e1-44ee-424e-ab25-ff7e224655ed
2026-04-02 14:25:22,750 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5db390e3-d955-482c-b057-101614b77dbc
2026-04-02 14:25:22,763 - INFO - Verified VN network id 12 for VN 822014e1-44ee-424e-ab25-ff7e224655ed
2026-04-02 14:25:22,763 - INFO - Verifications in API Server for VN ctest-vn-49267558 passed
2026-04-02 14:25:22,763 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/822014e1-44ee-424e-ab25-ff7e224655ed
2026-04-02 14:25:22,771 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5db390e3-d955-482c-b057-101614b77dbc
2026-04-02 14:25:22,778 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5db390e3-d955-482c-b057-101614b77dbc
2026-04-02 14:25:22,784 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ebcd9c79-008b-4ddf-a281-496712b6c5e8
2026-04-02 14:25:22,794 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88246341:ctest-vn-49267558', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88246341', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9376517381942035022', 'uuid-lslong': '12332544071829968365'}, 'enable': 'true', 'created': '2026-04-02T14:25:20', 'last-modified': '2026-04-02T14:25:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.349453'}
2026-04-02 14:25:22,803 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-02 14:25:22,804 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49267558 passed
2026-04-02 14:25:22,804 - DEBUG - ====Verifying policy data for ctest-vn-49267558 in API_Server ======
2026-04-02 14:25:22,804 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-02 14:25:22,810 - DEBUG - Requesting: http://10.0.0.50:8082/domain/812c6bd6-3913-4112-acaa-6c88ccb0fdb8
2026-04-02 14:25:22,820 - DEBUG - Requesting: http://10.0.0.50:8082/project/6c426ac3-84ac-4f9c-9d2d-60d0f6ef2ffc
2026-04-02 14:25:22,892 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/822014e1-44ee-424e-ab25-ff7e224655ed
2026-04-02 14:25:22,900 - DEBUG - ==>Verifying data for policy with id: 8aa126d5-7394-4357-af75-b4d156596e06, fqn: ['default-domain', 'ctest-TestBasicPolicy-88246341', 'ctest-policy-allow-all-83685516']
2026-04-02 14:25:22,900 - INFO - VN ctest-vn-49267558 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-02 14:25:22,900 - DEBUG - Verifying the vn in opserver
2026-04-02 14:25:22,901 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88246341:ctest-vn-49267558 virtual network link through opserver 10.0.0.50
2026-04-02 14:25:22,901 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-02 14:25:22,910 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88246341:ctest-vn-49267558', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88246341:ctest-vn-49267558?flat'}
2026-04-02 14:25:22,910 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88246341:ctest-vn-49267558 is found in opserver
2026-04-02 14:25:22,918 - DEBUG - Do not have enough data to verify VN in agent
2026-04-02 14:25:22,923 - DEBUG - VRF ids for VN ctest-vn-49267558: {}
2026-04-02 14:25:22,979 - DEBUG - Services list from nova: [