2026-05-06 14:11:01,597 - INFO - Domain Default found not creating
2026-05-06 14:11:01,819 - INFO - Project ctest-TestBasicPolicy-36616890 not found, creating it
2026-05-06 14:11:02,360 - INFO - Created Project:ctest-TestBasicPolicy-36616890, ID : bb1e3f4c-2756-4dda-89bd-ad1cab3c219e
2026-05-06 14:11:03,996 - INFO - ================================================================================
2026-05-06 14:11:03,996 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-06 14:11:03,996 - 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-05-06 14:11:04,267 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-05-06 14:11:04,267 - INFO - Initial checks done. Running the testcase now
2026-05-06 14:11:04,267 - INFO -
2026-05-06 14:11:04,893 - DEBUG - Response for create_network : {'network': {'id': '5ccb911c-440b-42f3-bbe1-8a0292d0149e', 'name': 'ctest-vn-52942748', 'tenant_id': 'bb1e3f4c27564dda89bdad1cab3c219e', 'project_id': 'bb1e3f4c27564dda89bdad1cab3c219e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36616890', 'ctest-vn-52942748'], 'port_security_enabled': True, 'description': ''}}
2026-05-06 14:11:05,123 - DEBUG - Response for create_subnet : {'subnet': {'id': '89862c33-270f-4901-9f2e-c5baaa28f720', 'name': '', 'tenant_id': 'bb1e3f4c27564dda89bdad1cab3c219e', 'network_id': '5ccb911c-440b-42f3-bbe1-8a0292d0149e', 'ip_version': 4, 'cidr': '122.150.164.0/26', 'allocation_pools': [{'start': '122.150.164.2', 'end': '122.150.164.62'}], 'gateway_ip': '122.150.164.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.150.164.2', 'tags': [], 'project_id': 'bb1e3f4c27564dda89bdad1cab3c219e'}}
2026-05-06 14:11:05,145 - INFO - Created VN ctest-vn-52942748
2026-05-06 14:11:05,201 - DEBUG - VN ctest-vn-52942748 UUID is 5ccb911c-440b-42f3-bbe1-8a0292d0149e
2026-05-06 14:11:05,516 - DEBUG - Response for create_network : {'network': {'id': '0d3f11a7-9f6d-4d6e-9155-20aec973ea5e', 'name': 'ctest-vn-09092519', 'tenant_id': 'bb1e3f4c27564dda89bdad1cab3c219e', 'project_id': 'bb1e3f4c27564dda89bdad1cab3c219e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36616890', 'ctest-vn-09092519'], 'port_security_enabled': True, 'description': ''}}
2026-05-06 14:11:05,709 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bdcf247c-a890-47c9-a0f0-6dd01356b3d8', 'name': '', 'tenant_id': 'bb1e3f4c27564dda89bdad1cab3c219e', 'network_id': '0d3f11a7-9f6d-4d6e-9155-20aec973ea5e', 'ip_version': 4, 'cidr': '79.83.232.64/26', 'allocation_pools': [{'start': '79.83.232.66', 'end': '79.83.232.126'}], 'gateway_ip': '79.83.232.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.83.232.66', 'tags': [], 'project_id': 'bb1e3f4c27564dda89bdad1cab3c219e'}}
2026-05-06 14:11:05,731 - INFO - Created VN ctest-vn-09092519
2026-05-06 14:11:05,781 - DEBUG - VN ctest-vn-09092519 UUID is 0d3f11a7-9f6d-4d6e-9155-20aec973ea5e
2026-05-06 14:11:05,914 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36616890:ctest-vn-52942748, 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-36616890:ctest-vn-09092519, 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-05-06 14:11:06,247 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5ccb911c-440b-42f3-bbe1-8a0292d0149e', 'name': 'ctest-vn-52942748', 'tenant_id': 'bb1e3f4c27564dda89bdad1cab3c219e', 'project_id': 'bb1e3f4c27564dda89bdad1cab3c219e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['89862c33-270f-4901-9f2e-c5baaa28f720'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36616890', 'ctest-vn-52942748'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36616890', 'ctest-policy-allow-all-33633213']], 'subnet_ipam': [{'subnet_cidr': '122.150.164.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-06 14:11:06,500 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0d3f11a7-9f6d-4d6e-9155-20aec973ea5e', 'name': 'ctest-vn-09092519', 'tenant_id': 'bb1e3f4c27564dda89bdad1cab3c219e', 'project_id': 'bb1e3f4c27564dda89bdad1cab3c219e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bdcf247c-a890-47c9-a0f0-6dd01356b3d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36616890', 'ctest-vn-09092519'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36616890', 'ctest-policy-allow-all-33633213']], 'subnet_ipam': [{'subnet_cidr': '79.83.232.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-06 14:11:06,693 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-06 14:11:06,990 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-06 14:11:07,024 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f42ad9d-5ab3-4d08-a15b-3c7ba53893d2
2026-05-06 14:11:07,039 - DEBUG - Requesting: http://10.0.0.50:8082/project/bb1e3f4c-2756-4dda-89bd-ad1cab3c219e
2026-05-06 14:11:07,115 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5ccb911c-440b-42f3-bbe1-8a0292d0149e
2026-05-06 14:11:07,127 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5ccb911c-440b-42f3-bbe1-8a0292d0149e
2026-05-06 14:11:07,138 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/78e260e3-d6c1-4948-baf5-e457332a2160
2026-05-06 14:11:07,147 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/78e260e3-d6c1-4948-baf5-e457332a2160
2026-05-06 14:11:07,154 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/963c0790-30a2-499e-b923-5c9876f59668
2026-05-06 14:11:07,161 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-06 14:11:07,161 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5ccb911c-440b-42f3-bbe1-8a0292d0149e
2026-05-06 14:11:07,171 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/78e260e3-d6c1-4948-baf5-e457332a2160
2026-05-06 14:11:07,189 - INFO - Verified VN network id 11 for VN 5ccb911c-440b-42f3-bbe1-8a0292d0149e
2026-05-06 14:11:07,189 - INFO - Verifications in API Server for VN ctest-vn-52942748 passed
2026-05-06 14:11:07,189 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5ccb911c-440b-42f3-bbe1-8a0292d0149e
2026-05-06 14:11:07,201 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/78e260e3-d6c1-4948-baf5-e457332a2160
2026-05-06 14:11:07,209 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/78e260e3-d6c1-4948-baf5-e457332a2160
2026-05-06 14:11:07,217 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/963c0790-30a2-499e-b923-5c9876f59668
2026-05-06 14:11:07,232 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36616890:ctest-vn-52942748', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36616890', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6686597622348333811', 'uuid-lslong': '13538253698510099614'}, 'enable': 'true', 'created': '2026-05-06T14:11:04', 'last-modified': '2026-05-06T14:11:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.007082'}
2026-05-06 14:11:07,241 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-06 14:11:07,241 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52942748 passed
2026-05-06 14:11:07,242 - DEBUG - ====Verifying policy data for ctest-vn-52942748 in API_Server ======
2026-05-06 14:11:07,242 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-06 14:11:07,249 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f42ad9d-5ab3-4d08-a15b-3c7ba53893d2
2026-05-06 14:11:07,262 - DEBUG - Requesting: http://10.0.0.50:8082/project/bb1e3f4c-2756-4dda-89bd-ad1cab3c219e
2026-05-06 14:11:07,339 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5ccb911c-440b-42f3-bbe1-8a0292d0149e
2026-05-06 14:11:07,351 - DEBUG - ==>Verifying data for policy with id: 63d50ab9-fb39-4144-bb0e-7a07d6f11aae, fqn: ['default-domain', 'ctest-TestBasicPolicy-36616890', 'ctest-policy-allow-all-33633213']
2026-05-06 14:11:07,351 - INFO - VN ctest-vn-52942748 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-06 14:11:07,351 - DEBUG - Verifying the vn in opserver
2026-05-06 14:11:07,351 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36616890:ctest-vn-52942748 virtual network link through opserver 10.0.0.50
2026-05-06 14:11:07,352 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-06 14:11:07,649 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-06 14:11:07,731 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36616890:ctest-vn-52942748', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36616890:ctest-vn-52942748?flat'}
2026-05-06 14:11:07,731 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36616890:ctest-vn-52942748 is found in opserver
2026-05-06 14:11:07,742 - DEBUG - Do not have enough data to verify VN in agent
2026-05-06 14:11:07,746 - DEBUG - VRF ids for VN ctest-vn-52942748: {}
2026-05-06 14:11:07,746 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-06 14:11:07,752 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f42ad9d-5ab3-4d08-a15b-3c7ba53893d2
2026-05-06 14:11:07,764 - DEBUG - Requesting: http://10.0.0.50:8082/project/bb1e3f4c-2756-4dda-89bd-ad1cab3c219e
2026-05-06 14:11:07,842 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d3f11a7-9f6d-4d6e-9155-20aec973ea5e
2026-05-06 14:11:07,859 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d3f11a7-9f6d-4d6e-9155-20aec973ea5e
2026-05-06 14:11:07,873 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/adae5363-0a6f-42ee-aaa5-71826a4203b9
2026-05-06 14:11:07,884 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/adae5363-0a6f-42ee-aaa5-71826a4203b9
2026-05-06 14:11:07,895 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/39dcae2a-25b3-4343-8e46-73d8da017594
2026-05-06 14:11:07,905 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-06 14:11:07,905 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d3f11a7-9f6d-4d6e-9155-20aec973ea5e
2026-05-06 14:11:07,919 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/adae5363-0a6f-42ee-aaa5-71826a4203b9
2026-05-06 14:11:07,938 - INFO - Verified VN network id 12 for VN 0d3f11a7-9f6d-4d6e-9155-20aec973ea5e
2026-05-06 14:11:07,941 - INFO - Verifications in API Server for VN ctest-vn-09092519 passed
2026-05-06 14:11:07,941 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d3f11a7-9f6d-4d6e-9155-20aec973ea5e
2026-05-06 14:11:07,953 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/adae5363-0a6f-42ee-aaa5-71826a4203b9
2026-05-06 14:11:07,963 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/adae5363-0a6f-42ee-aaa5-71826a4203b9
2026-05-06 14:11:07,972 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/39dcae2a-25b3-4343-8e46-73d8da017594
2026-05-06 14:11:07,987 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36616890:ctest-vn-09092519', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36616890', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '954501057657785710', 'uuid-lslong': '10472312443596171870'}, 'enable': 'true', 'created': '2026-05-06T14:11:05', 'last-modified': '2026-05-06T14:11:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.511733'}
2026-05-06 14:11:07,994 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-06 14:11:07,994 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09092519 passed
2026-05-06 14:11:07,994 - DEBUG - ====Verifying policy data for ctest-vn-09092519 in API_Server ======
2026-05-06 14:11:07,994 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-06 14:11:08,002 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f42ad9d-5ab3-4d08-a15b-3c7ba53893d2
2026-05-06 14:11:08,017 - DEBUG - Requesting: http://10.0.0.50:8082/project/bb1e3f4c-2756-4dda-89bd-ad1cab3c219e
2026-05-06 14:11:08,097 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d3f11a7-9f6d-4d6e-9155-20aec973ea5e
2026-05-06 14:11:08,108 - DEBUG - ==>Verifying data for policy with id: 63d50ab9-fb39-4144-bb0e-7a07d6f11aae, fqn: ['default-domain', 'ctest-TestBasicPolicy-36616890', 'ctest-policy-allow-all-33633213']
2026-05-06 14:11:08,108 - INFO - VN ctest-vn-09092519 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-06 14:11:08,108 - DEBUG - Verifying the vn in opserver
2026-05-06 14:11:08,108 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36616890:ctest-vn-09092519 virtual network link through opserver 10.0.0.50
2026-05-06 14:11:08,108 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-06 14:11:08,121 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36616890:ctest-vn-09092519', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36616890:ctest-vn-09092519?flat'}
2026-05-06 14:11:08,121 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36616890:ctest-vn-09092519 is found in opserver
2026-05-06 14:11:08,132 - DEBUG - Do not have enough data to verify VN in agent
2026-05-06 14:11:08,138 - DEBUG - VRF ids for VN ctest-vn-09092519: {}
2026-05-06 14:11:08,213 - DEBUG - Services list from nova: [