2026-01-28 21:11:48,433 - INFO - Domain Default found not creating
2026-01-28 21:11:48,604 - INFO - Project ctest-TestBasicPolicy-14790016 not found, creating it
2026-01-28 21:11:49,064 - INFO - Created Project:ctest-TestBasicPolicy-14790016, ID : 54e4f6cc-f350-460e-bbb4-c12190c914ab
2026-01-28 21:11:50,489 - INFO - ================================================================================
2026-01-28 21:11:50,489 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-28 21:11:50,489 - 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-01-28 21:11:50,743 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.25': '0'}} with
2026-01-28 21:11:50,743 - INFO - Initial checks done. Running the testcase now
2026-01-28 21:11:50,743 - INFO -
2026-01-28 21:11:51,259 - DEBUG - Response for create_network : {'network': {'id': '8dc5a16e-d196-48f0-91bb-e71caf279af7', 'name': 'ctest-vn-81464687', 'tenant_id': '54e4f6ccf350460ebbb4c12190c914ab', 'project_id': '54e4f6ccf350460ebbb4c12190c914ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14790016', 'ctest-vn-81464687'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 21:11:51,418 - DEBUG - Response for create_subnet : {'subnet': {'id': '40a984bc-aa31-490a-9d94-5cb79971cf77', 'name': '', 'tenant_id': '54e4f6ccf350460ebbb4c12190c914ab', 'network_id': '8dc5a16e-d196-48f0-91bb-e71caf279af7', 'ip_version': 4, 'cidr': '111.93.191.64/26', 'allocation_pools': [{'start': '111.93.191.66', 'end': '111.93.191.126'}], 'gateway_ip': '111.93.191.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.93.191.66', 'tags': [], 'project_id': '54e4f6ccf350460ebbb4c12190c914ab'}}
2026-01-28 21:11:51,436 - INFO - Created VN ctest-vn-81464687
2026-01-28 21:11:51,485 - DEBUG - VN ctest-vn-81464687 UUID is 8dc5a16e-d196-48f0-91bb-e71caf279af7
2026-01-28 21:11:51,817 - DEBUG - Response for create_network : {'network': {'id': 'ac5a0955-3b6a-422d-bf18-c2b4db9142cc', 'name': 'ctest-vn-84923404', 'tenant_id': '54e4f6ccf350460ebbb4c12190c914ab', 'project_id': '54e4f6ccf350460ebbb4c12190c914ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14790016', 'ctest-vn-84923404'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 21:11:51,972 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cfa931d6-924c-4e23-a71a-fd11103a4f6c', 'name': '', 'tenant_id': '54e4f6ccf350460ebbb4c12190c914ab', 'network_id': 'ac5a0955-3b6a-422d-bf18-c2b4db9142cc', 'ip_version': 4, 'cidr': '108.149.184.192/26', 'allocation_pools': [{'start': '108.149.184.194', 'end': '108.149.184.254'}], 'gateway_ip': '108.149.184.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.149.184.194', 'tags': [], 'project_id': '54e4f6ccf350460ebbb4c12190c914ab'}}
2026-01-28 21:11:51,989 - INFO - Created VN ctest-vn-84923404
2026-01-28 21:11:52,041 - DEBUG - VN ctest-vn-84923404 UUID is ac5a0955-3b6a-422d-bf18-c2b4db9142cc
2026-01-28 21:11:52,193 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14790016:ctest-vn-81464687, 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-14790016:ctest-vn-84923404, 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-01-28 21:11:52,485 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8dc5a16e-d196-48f0-91bb-e71caf279af7', 'name': 'ctest-vn-81464687', 'tenant_id': '54e4f6ccf350460ebbb4c12190c914ab', 'project_id': '54e4f6ccf350460ebbb4c12190c914ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['40a984bc-aa31-490a-9d94-5cb79971cf77'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14790016', 'ctest-vn-81464687'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14790016', 'ctest-policy-allow-all-95857534']], 'subnet_ipam': [{'subnet_cidr': '111.93.191.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 21:11:52,706 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ac5a0955-3b6a-422d-bf18-c2b4db9142cc', 'name': 'ctest-vn-84923404', 'tenant_id': '54e4f6ccf350460ebbb4c12190c914ab', 'project_id': '54e4f6ccf350460ebbb4c12190c914ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cfa931d6-924c-4e23-a71a-fd11103a4f6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14790016', 'ctest-vn-84923404'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14790016', 'ctest-policy-allow-all-95857534']], 'subnet_ipam': [{'subnet_cidr': '108.149.184.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 21:11:52,846 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-28 21:11:53,148 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-28 21:11:53,177 - DEBUG - Requesting: http://10.0.0.242:8082/domain/a31b1a39-d592-4763-9c1e-78138a49fb25
2026-01-28 21:11:53,188 - DEBUG - Requesting: http://10.0.0.242:8082/project/54e4f6cc-f350-460e-bbb4-c12190c914ab
2026-01-28 21:11:53,258 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8dc5a16e-d196-48f0-91bb-e71caf279af7
2026-01-28 21:11:53,268 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8dc5a16e-d196-48f0-91bb-e71caf279af7
2026-01-28 21:11:53,277 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7443130c-8815-49f1-8fcf-db1119e3a121
2026-01-28 21:11:53,284 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7443130c-8815-49f1-8fcf-db1119e3a121
2026-01-28 21:11:53,290 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/962983ae-f824-437d-9dc4-d408325b12f2
2026-01-28 21:11:53,295 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 21:11:53,295 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8dc5a16e-d196-48f0-91bb-e71caf279af7
2026-01-28 21:11:53,302 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7443130c-8815-49f1-8fcf-db1119e3a121
2026-01-28 21:11:53,315 - INFO - Verified VN network id 11 for VN 8dc5a16e-d196-48f0-91bb-e71caf279af7
2026-01-28 21:11:53,315 - INFO - Verifications in API Server for VN ctest-vn-81464687 passed
2026-01-28 21:11:53,316 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8dc5a16e-d196-48f0-91bb-e71caf279af7
2026-01-28 21:11:53,324 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7443130c-8815-49f1-8fcf-db1119e3a121
2026-01-28 21:11:53,329 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7443130c-8815-49f1-8fcf-db1119e3a121
2026-01-28 21:11:53,335 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/962983ae-f824-437d-9dc4-d408325b12f2
2026-01-28 21:11:53,344 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14790016:ctest-vn-81464687', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14790016', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10215748827094599920', 'uuid-lslong': '10501241066528152311'}, 'enable': 'true', 'created': '2026-01-28T21:11:51', 'last-modified': '2026-01-28T21:11:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.876854'}
2026-01-28 21:11:53,350 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 21:11:53,350 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81464687 passed
2026-01-28 21:11:53,350 - DEBUG - ====Verifying policy data for ctest-vn-81464687 in API_Server ======
2026-01-28 21:11:53,350 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-28 21:11:53,357 - DEBUG - Requesting: http://10.0.0.242:8082/domain/a31b1a39-d592-4763-9c1e-78138a49fb25
2026-01-28 21:11:53,367 - DEBUG - Requesting: http://10.0.0.242:8082/project/54e4f6cc-f350-460e-bbb4-c12190c914ab
2026-01-28 21:11:53,434 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8dc5a16e-d196-48f0-91bb-e71caf279af7
2026-01-28 21:11:53,442 - DEBUG - ==>Verifying data for policy with id: 18cda7f1-500a-48ec-9742-9ba920ec2248, fqn: ['default-domain', 'ctest-TestBasicPolicy-14790016', 'ctest-policy-allow-all-95857534']
2026-01-28 21:11:53,443 - INFO - VN ctest-vn-81464687 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 21:11:53,443 - DEBUG - Verifying the vn in opserver
2026-01-28 21:11:53,443 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14790016:ctest-vn-81464687 virtual network link through opserver 10.0.0.242
2026-01-28 21:11:53,443 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-01-28 21:11:53,737 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-01-28 21:11:53,794 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14790016:ctest-vn-81464687', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14790016:ctest-vn-81464687?flat'}
2026-01-28 21:11:53,794 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14790016:ctest-vn-81464687 is found in opserver
2026-01-28 21:11:53,804 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 21:11:53,809 - DEBUG - VRF ids for VN ctest-vn-81464687: {}
2026-01-28 21:11:53,809 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-28 21:11:53,814 - DEBUG - Requesting: http://10.0.0.242:8082/domain/a31b1a39-d592-4763-9c1e-78138a49fb25
2026-01-28 21:11:53,824 - DEBUG - Requesting: http://10.0.0.242:8082/project/54e4f6cc-f350-460e-bbb4-c12190c914ab
2026-01-28 21:11:53,894 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ac5a0955-3b6a-422d-bf18-c2b4db9142cc
2026-01-28 21:11:53,904 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ac5a0955-3b6a-422d-bf18-c2b4db9142cc
2026-01-28 21:11:53,912 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/10c0b2e6-8678-48bc-9440-58e3ed26d493
2026-01-28 21:11:53,918 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/10c0b2e6-8678-48bc-9440-58e3ed26d493
2026-01-28 21:11:53,923 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/5b8bdb42-14dc-48d4-8a03-11bdd259ba82
2026-01-28 21:11:53,929 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 21:11:53,929 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ac5a0955-3b6a-422d-bf18-c2b4db9142cc
2026-01-28 21:11:53,936 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/10c0b2e6-8678-48bc-9440-58e3ed26d493
2026-01-28 21:11:53,948 - INFO - Verified VN network id 12 for VN ac5a0955-3b6a-422d-bf18-c2b4db9142cc
2026-01-28 21:11:53,948 - INFO - Verifications in API Server for VN ctest-vn-84923404 passed
2026-01-28 21:11:53,948 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ac5a0955-3b6a-422d-bf18-c2b4db9142cc
2026-01-28 21:11:53,956 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/10c0b2e6-8678-48bc-9440-58e3ed26d493
2026-01-28 21:11:53,961 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/10c0b2e6-8678-48bc-9440-58e3ed26d493
2026-01-28 21:11:53,967 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/5b8bdb42-14dc-48d4-8a03-11bdd259ba82
2026-01-28 21:11:53,978 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14790016:ctest-vn-84923404', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14790016', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12419249184101253677', 'uuid-lslong': '13769969942718923468'}, 'enable': 'true', 'created': '2026-01-28T21:11:51', 'last-modified': '2026-01-28T21:11:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.295041'}
2026-01-28 21:11:53,984 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 21:11:53,984 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84923404 passed
2026-01-28 21:11:53,984 - DEBUG - ====Verifying policy data for ctest-vn-84923404 in API_Server ======
2026-01-28 21:11:53,984 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-28 21:11:53,990 - DEBUG - Requesting: http://10.0.0.242:8082/domain/a31b1a39-d592-4763-9c1e-78138a49fb25
2026-01-28 21:11:54,000 - DEBUG - Requesting: http://10.0.0.242:8082/project/54e4f6cc-f350-460e-bbb4-c12190c914ab
2026-01-28 21:11:54,068 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ac5a0955-3b6a-422d-bf18-c2b4db9142cc
2026-01-28 21:11:54,076 - DEBUG - ==>Verifying data for policy with id: 18cda7f1-500a-48ec-9742-9ba920ec2248, fqn: ['default-domain', 'ctest-TestBasicPolicy-14790016', 'ctest-policy-allow-all-95857534']
2026-01-28 21:11:54,076 - INFO - VN ctest-vn-84923404 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 21:11:54,076 - DEBUG - Verifying the vn in opserver
2026-01-28 21:11:54,077 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14790016:ctest-vn-84923404 virtual network link through opserver 10.0.0.242
2026-01-28 21:11:54,077 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-01-28 21:11:54,085 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14790016:ctest-vn-84923404', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14790016:ctest-vn-84923404?flat'}
2026-01-28 21:11:54,085 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14790016:ctest-vn-84923404 is found in opserver
2026-01-28 21:11:54,094 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 21:11:54,098 - DEBUG - VRF ids for VN ctest-vn-84923404: {}
2026-01-28 21:11:54,155 - DEBUG - Services list from nova: [