2025-11-18 03:36:53,373 - INFO - Domain Default found not creating
2025-11-18 03:36:53,533 - INFO - Project ctest-TestBasicPolicy-40088157 not found, creating it
2025-11-18 03:36:53,981 - INFO - Created Project:ctest-TestBasicPolicy-40088157, ID : 05b5201a-1150-49c9-8064-e141c680d9d7
2025-11-18 03:36:55,457 - INFO - ================================================================================
2025-11-18 03:36:55,458 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-18 03:36:55,458 - 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-18 03:36:55,713 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-11-18 03:36:55,713 - INFO - Initial checks done. Running the testcase now
2025-11-18 03:36:55,713 - INFO -
2025-11-18 03:36:56,256 - DEBUG - Response for create_network : {'network': {'id': '4303fe56-eda9-43e0-aa28-20960c87f05b', 'name': 'ctest-vn-96507006', 'tenant_id': '05b5201a115049c98064e141c680d9d7', 'project_id': '05b5201a115049c98064e141c680d9d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40088157', 'ctest-vn-96507006'], 'port_security_enabled': True, 'description': ''}}
2025-11-18 03:36:56,468 - DEBUG - Response for create_subnet : {'subnet': {'id': '16711704-879f-45f9-aebe-245bf67c8b78', 'name': '', 'tenant_id': '05b5201a115049c98064e141c680d9d7', 'network_id': '4303fe56-eda9-43e0-aa28-20960c87f05b', 'ip_version': 4, 'cidr': '19.254.128.0/26', 'allocation_pools': [{'start': '19.254.128.2', 'end': '19.254.128.62'}], 'gateway_ip': '19.254.128.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.254.128.2', 'tags': [], 'project_id': '05b5201a115049c98064e141c680d9d7'}}
2025-11-18 03:36:56,489 - INFO - Created VN ctest-vn-96507006
2025-11-18 03:36:56,540 - DEBUG - VN ctest-vn-96507006 UUID is 4303fe56-eda9-43e0-aa28-20960c87f05b
2025-11-18 03:36:56,841 - DEBUG - Response for create_network : {'network': {'id': '461f162a-3921-40be-9d36-57553295f99d', 'name': 'ctest-vn-54630037', 'tenant_id': '05b5201a115049c98064e141c680d9d7', 'project_id': '05b5201a115049c98064e141c680d9d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40088157', 'ctest-vn-54630037'], 'port_security_enabled': True, 'description': ''}}
2025-11-18 03:36:57,063 - DEBUG - Response for create_subnet : {'subnet': {'id': '396c1b10-aef4-4a8b-a7f1-89c456d950f7', 'name': '', 'tenant_id': '05b5201a115049c98064e141c680d9d7', 'network_id': '461f162a-3921-40be-9d36-57553295f99d', 'ip_version': 4, 'cidr': '83.180.76.0/26', 'allocation_pools': [{'start': '83.180.76.2', 'end': '83.180.76.62'}], 'gateway_ip': '83.180.76.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.180.76.2', 'tags': [], 'project_id': '05b5201a115049c98064e141c680d9d7'}}
2025-11-18 03:36:57,081 - INFO - Created VN ctest-vn-54630037
2025-11-18 03:36:57,139 - DEBUG - VN ctest-vn-54630037 UUID is 461f162a-3921-40be-9d36-57553295f99d
2025-11-18 03:36:57,252 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40088157:ctest-vn-96507006, 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-40088157:ctest-vn-54630037, 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-18 03:36:57,550 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4303fe56-eda9-43e0-aa28-20960c87f05b', 'name': 'ctest-vn-96507006', 'tenant_id': '05b5201a115049c98064e141c680d9d7', 'project_id': '05b5201a115049c98064e141c680d9d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['16711704-879f-45f9-aebe-245bf67c8b78'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40088157', 'ctest-vn-96507006'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40088157', 'ctest-policy-allow-all-73965029']], 'subnet_ipam': [{'subnet_cidr': '19.254.128.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-18 03:36:57,779 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '461f162a-3921-40be-9d36-57553295f99d', 'name': 'ctest-vn-54630037', 'tenant_id': '05b5201a115049c98064e141c680d9d7', 'project_id': '05b5201a115049c98064e141c680d9d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['396c1b10-aef4-4a8b-a7f1-89c456d950f7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40088157', 'ctest-vn-54630037'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40088157', 'ctest-policy-allow-all-73965029']], 'subnet_ipam': [{'subnet_cidr': '83.180.76.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-18 03:36:57,940 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-18 03:36:58,241 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-18 03:36:58,272 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1f8b821e-1abc-4a0a-9ad4-565d9c19cf67
2025-11-18 03:36:58,284 - DEBUG - Requesting: http://10.0.0.50:8082/project/05b5201a-1150-49c9-8064-e141c680d9d7
2025-11-18 03:36:58,355 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4303fe56-eda9-43e0-aa28-20960c87f05b
2025-11-18 03:36:58,365 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4303fe56-eda9-43e0-aa28-20960c87f05b
2025-11-18 03:36:58,373 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c36d0f0b-b759-48a1-a293-48bdd7cb9ab8
2025-11-18 03:36:58,380 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c36d0f0b-b759-48a1-a293-48bdd7cb9ab8
2025-11-18 03:36:58,386 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/35bd4803-632d-4487-98e1-1425001b684a
2025-11-18 03:36:58,392 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-18 03:36:58,392 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4303fe56-eda9-43e0-aa28-20960c87f05b
2025-11-18 03:36:58,400 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c36d0f0b-b759-48a1-a293-48bdd7cb9ab8
2025-11-18 03:36:58,414 - INFO - Verified VN network id 11 for VN 4303fe56-eda9-43e0-aa28-20960c87f05b
2025-11-18 03:36:58,414 - INFO - Verifications in API Server for VN ctest-vn-96507006 passed
2025-11-18 03:36:58,414 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4303fe56-eda9-43e0-aa28-20960c87f05b
2025-11-18 03:36:58,422 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c36d0f0b-b759-48a1-a293-48bdd7cb9ab8
2025-11-18 03:36:58,430 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c36d0f0b-b759-48a1-a293-48bdd7cb9ab8
2025-11-18 03:36:58,437 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/35bd4803-632d-4487-98e1-1425001b684a
2025-11-18 03:36:58,449 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40088157:ctest-vn-96507006', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40088157', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4828982874779239392', 'uuid-lslong': '12261085814343594075'}, 'enable': 'true', 'created': '2025-11-18T03:36:56', 'last-modified': '2025-11-18T03:36:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.921118'}
2025-11-18 03:36:58,456 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-18 03:36:58,456 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96507006 passed
2025-11-18 03:36:58,457 - DEBUG - ====Verifying policy data for ctest-vn-96507006 in API_Server ======
2025-11-18 03:36:58,457 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-18 03:36:58,461 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1f8b821e-1abc-4a0a-9ad4-565d9c19cf67
2025-11-18 03:36:58,471 - DEBUG - Requesting: http://10.0.0.50:8082/project/05b5201a-1150-49c9-8064-e141c680d9d7
2025-11-18 03:36:58,539 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4303fe56-eda9-43e0-aa28-20960c87f05b
2025-11-18 03:36:58,551 - DEBUG - ==>Verifying data for policy with id: 9435ebba-1464-428f-aadf-66bb023f9acd, fqn: ['default-domain', 'ctest-TestBasicPolicy-40088157', 'ctest-policy-allow-all-73965029']
2025-11-18 03:36:58,551 - INFO - VN ctest-vn-96507006 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-18 03:36:58,551 - DEBUG - Verifying the vn in opserver
2025-11-18 03:36:58,551 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40088157:ctest-vn-96507006 virtual network link through opserver 10.0.0.50
2025-11-18 03:36:58,552 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-18 03:36:58,844 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-18 03:36:58,906 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40088157:ctest-vn-96507006', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40088157:ctest-vn-96507006?flat'}
2025-11-18 03:36:58,906 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40088157:ctest-vn-96507006 is found in opserver
2025-11-18 03:36:58,917 - DEBUG - Do not have enough data to verify VN in agent
2025-11-18 03:36:58,922 - DEBUG - VRF ids for VN ctest-vn-96507006: {}
2025-11-18 03:36:58,923 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-18 03:36:58,928 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1f8b821e-1abc-4a0a-9ad4-565d9c19cf67
2025-11-18 03:36:58,939 - DEBUG - Requesting: http://10.0.0.50:8082/project/05b5201a-1150-49c9-8064-e141c680d9d7
2025-11-18 03:36:59,012 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/461f162a-3921-40be-9d36-57553295f99d
2025-11-18 03:36:59,023 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/461f162a-3921-40be-9d36-57553295f99d
2025-11-18 03:36:59,032 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b618edb2-6875-4532-a5d1-0c348118b766
2025-11-18 03:36:59,038 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b618edb2-6875-4532-a5d1-0c348118b766
2025-11-18 03:36:59,046 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9ef9472c-464f-46f4-bc49-1f5ec89e5d2a
2025-11-18 03:36:59,054 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-18 03:36:59,054 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/461f162a-3921-40be-9d36-57553295f99d
2025-11-18 03:36:59,062 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b618edb2-6875-4532-a5d1-0c348118b766
2025-11-18 03:36:59,075 - INFO - Verified VN network id 12 for VN 461f162a-3921-40be-9d36-57553295f99d
2025-11-18 03:36:59,076 - INFO - Verifications in API Server for VN ctest-vn-54630037 passed
2025-11-18 03:36:59,076 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/461f162a-3921-40be-9d36-57553295f99d
2025-11-18 03:36:59,084 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b618edb2-6875-4532-a5d1-0c348118b766
2025-11-18 03:36:59,091 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b618edb2-6875-4532-a5d1-0c348118b766
2025-11-18 03:36:59,097 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9ef9472c-464f-46f4-bc49-1f5ec89e5d2a
2025-11-18 03:36:59,108 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40088157:ctest-vn-54630037', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40088157', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5052781677535903934', 'uuid-lslong': '11328337936129587613'}, 'enable': 'true', 'created': '2025-11-18T03:36:56', 'last-modified': '2025-11-18T03:36:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.344373'}
2025-11-18 03:36:59,113 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-18 03:36:59,113 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54630037 passed
2025-11-18 03:36:59,113 - DEBUG - ====Verifying policy data for ctest-vn-54630037 in API_Server ======
2025-11-18 03:36:59,114 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-18 03:36:59,119 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1f8b821e-1abc-4a0a-9ad4-565d9c19cf67
2025-11-18 03:36:59,128 - DEBUG - Requesting: http://10.0.0.50:8082/project/05b5201a-1150-49c9-8064-e141c680d9d7
2025-11-18 03:36:59,205 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/461f162a-3921-40be-9d36-57553295f99d
2025-11-18 03:36:59,213 - DEBUG - ==>Verifying data for policy with id: 9435ebba-1464-428f-aadf-66bb023f9acd, fqn: ['default-domain', 'ctest-TestBasicPolicy-40088157', 'ctest-policy-allow-all-73965029']
2025-11-18 03:36:59,213 - INFO - VN ctest-vn-54630037 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-18 03:36:59,213 - DEBUG - Verifying the vn in opserver
2025-11-18 03:36:59,213 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40088157:ctest-vn-54630037 virtual network link through opserver 10.0.0.50
2025-11-18 03:36:59,213 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-18 03:36:59,224 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40088157:ctest-vn-54630037', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40088157:ctest-vn-54630037?flat'}
2025-11-18 03:36:59,224 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40088157:ctest-vn-54630037 is found in opserver
2025-11-18 03:36:59,235 - DEBUG - Do not have enough data to verify VN in agent
2025-11-18 03:36:59,241 - DEBUG - VRF ids for VN ctest-vn-54630037: {}
2025-11-18 03:36:59,293 - DEBUG - Services list from nova: [