2026-01-19 02:04:54,769 - INFO - Domain Default found not creating
2026-01-19 02:04:54,944 - INFO - Project ctest-TestBasicPolicy-19399436 not found, creating it
2026-01-19 02:04:55,377 - INFO - Created Project:ctest-TestBasicPolicy-19399436, ID : a97cdf7b-b6e1-4122-87fa-ebf3fc59c28d
2026-01-19 02:04:56,962 - INFO - ================================================================================
2026-01-19 02:04:56,962 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-19 02:04:56,962 - 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-19 02:04:57,224 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with
2026-01-19 02:04:57,224 - INFO - Initial checks done. Running the testcase now
2026-01-19 02:04:57,224 - INFO -
2026-01-19 02:04:57,808 - DEBUG - Response for create_network : {'network': {'id': '851a0ab1-e7a1-4fa6-8fe4-502981727c2c', 'name': 'ctest-vn-34926809', 'tenant_id': 'a97cdf7bb6e1412287faebf3fc59c28d', 'project_id': 'a97cdf7bb6e1412287faebf3fc59c28d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19399436', 'ctest-vn-34926809'], 'port_security_enabled': True, 'description': ''}}
2026-01-19 02:04:57,961 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e7a9d7d2-bfd8-498c-8a9a-4abcbad54538', 'name': '', 'tenant_id': 'a97cdf7bb6e1412287faebf3fc59c28d', 'network_id': '851a0ab1-e7a1-4fa6-8fe4-502981727c2c', 'ip_version': 4, 'cidr': '138.43.18.192/26', 'allocation_pools': [{'start': '138.43.18.194', 'end': '138.43.18.254'}], 'gateway_ip': '138.43.18.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.43.18.194', 'tags': [], 'project_id': 'a97cdf7bb6e1412287faebf3fc59c28d'}}
2026-01-19 02:04:57,979 - INFO - Created VN ctest-vn-34926809
2026-01-19 02:04:58,033 - DEBUG - VN ctest-vn-34926809 UUID is 851a0ab1-e7a1-4fa6-8fe4-502981727c2c
2026-01-19 02:04:58,348 - DEBUG - Response for create_network : {'network': {'id': '4d9aa540-a7f8-43e0-847b-af186c95656e', 'name': 'ctest-vn-41350453', 'tenant_id': 'a97cdf7bb6e1412287faebf3fc59c28d', 'project_id': 'a97cdf7bb6e1412287faebf3fc59c28d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19399436', 'ctest-vn-41350453'], 'port_security_enabled': True, 'description': ''}}
2026-01-19 02:04:58,553 - DEBUG - Response for create_subnet : {'subnet': {'id': '0cf77d54-f75b-4346-bcfe-b04d88789bdc', 'name': '', 'tenant_id': 'a97cdf7bb6e1412287faebf3fc59c28d', 'network_id': '4d9aa540-a7f8-43e0-847b-af186c95656e', 'ip_version': 4, 'cidr': '131.184.26.192/26', 'allocation_pools': [{'start': '131.184.26.194', 'end': '131.184.26.254'}], 'gateway_ip': '131.184.26.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.184.26.194', 'tags': [], 'project_id': 'a97cdf7bb6e1412287faebf3fc59c28d'}}
2026-01-19 02:04:58,577 - INFO - Created VN ctest-vn-41350453
2026-01-19 02:04:58,629 - DEBUG - VN ctest-vn-41350453 UUID is 4d9aa540-a7f8-43e0-847b-af186c95656e
2026-01-19 02:04:58,744 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19399436:ctest-vn-34926809, 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-19399436:ctest-vn-41350453, 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-19 02:04:59,043 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '851a0ab1-e7a1-4fa6-8fe4-502981727c2c', 'name': 'ctest-vn-34926809', 'tenant_id': 'a97cdf7bb6e1412287faebf3fc59c28d', 'project_id': 'a97cdf7bb6e1412287faebf3fc59c28d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e7a9d7d2-bfd8-498c-8a9a-4abcbad54538'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19399436', 'ctest-vn-34926809'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19399436', 'ctest-policy-allow-all-90472287']], 'subnet_ipam': [{'subnet_cidr': '138.43.18.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-19 02:04:59,280 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d9aa540-a7f8-43e0-847b-af186c95656e', 'name': 'ctest-vn-41350453', 'tenant_id': 'a97cdf7bb6e1412287faebf3fc59c28d', 'project_id': 'a97cdf7bb6e1412287faebf3fc59c28d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0cf77d54-f75b-4346-bcfe-b04d88789bdc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19399436', 'ctest-vn-41350453'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19399436', 'ctest-policy-allow-all-90472287']], 'subnet_ipam': [{'subnet_cidr': '131.184.26.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-19 02:04:59,453 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-01-19 02:04:59,761 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-01-19 02:04:59,796 - DEBUG - Requesting: http://10.0.0.141:8082/domain/842248eb-4371-401b-be9c-56527aaba4af
2026-01-19 02:04:59,809 - DEBUG - Requesting: http://10.0.0.141:8082/project/a97cdf7b-b6e1-4122-87fa-ebf3fc59c28d
2026-01-19 02:04:59,884 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/851a0ab1-e7a1-4fa6-8fe4-502981727c2c
2026-01-19 02:04:59,894 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/851a0ab1-e7a1-4fa6-8fe4-502981727c2c
2026-01-19 02:04:59,905 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d8631f44-250f-4d2b-9364-65b5cfb48054
2026-01-19 02:04:59,913 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d8631f44-250f-4d2b-9364-65b5cfb48054
2026-01-19 02:04:59,920 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d2b745a8-f107-49db-bba3-bef1a6aa2f2d
2026-01-19 02:04:59,927 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-19 02:04:59,927 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/851a0ab1-e7a1-4fa6-8fe4-502981727c2c
2026-01-19 02:04:59,936 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d8631f44-250f-4d2b-9364-65b5cfb48054
2026-01-19 02:04:59,952 - INFO - Verified VN network id 11 for VN 851a0ab1-e7a1-4fa6-8fe4-502981727c2c
2026-01-19 02:04:59,952 - INFO - Verifications in API Server for VN ctest-vn-34926809 passed
2026-01-19 02:04:59,952 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/851a0ab1-e7a1-4fa6-8fe4-502981727c2c
2026-01-19 02:04:59,962 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d8631f44-250f-4d2b-9364-65b5cfb48054
2026-01-19 02:04:59,969 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d8631f44-250f-4d2b-9364-65b5cfb48054
2026-01-19 02:04:59,977 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d2b745a8-f107-49db-bba3-bef1a6aa2f2d
2026-01-19 02:04:59,990 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19399436:ctest-vn-34926809', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19399436', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9590990115650490278', 'uuid-lslong': '10368500381309369388'}, 'enable': 'true', 'created': '2026-01-19T02:04:57', 'last-modified': '2026-01-19T02:04:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.972496'}
2026-01-19 02:04:59,997 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-19 02:04:59,997 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34926809 passed
2026-01-19 02:04:59,997 - DEBUG - ====Verifying policy data for ctest-vn-34926809 in API_Server ======
2026-01-19 02:04:59,997 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-01-19 02:05:00,003 - DEBUG - Requesting: http://10.0.0.141:8082/domain/842248eb-4371-401b-be9c-56527aaba4af
2026-01-19 02:05:00,015 - DEBUG - Requesting: http://10.0.0.141:8082/project/a97cdf7b-b6e1-4122-87fa-ebf3fc59c28d
2026-01-19 02:05:00,095 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/851a0ab1-e7a1-4fa6-8fe4-502981727c2c
2026-01-19 02:05:00,104 - DEBUG - ==>Verifying data for policy with id: f28c5e58-4d59-4e8c-9ce3-e52170a70bbe, fqn: ['default-domain', 'ctest-TestBasicPolicy-19399436', 'ctest-policy-allow-all-90472287']
2026-01-19 02:05:00,104 - INFO - VN ctest-vn-34926809 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-19 02:05:00,104 - DEBUG - Verifying the vn in opserver
2026-01-19 02:05:00,104 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19399436:ctest-vn-34926809 virtual network link through opserver 10.0.0.141
2026-01-19 02:05:00,104 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-01-19 02:05:00,407 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-01-19 02:05:00,475 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19399436:ctest-vn-34926809', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19399436:ctest-vn-34926809?flat'}
2026-01-19 02:05:00,475 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19399436:ctest-vn-34926809 is found in opserver
2026-01-19 02:05:00,485 - DEBUG - Do not have enough data to verify VN in agent
2026-01-19 02:05:00,489 - DEBUG - VRF ids for VN ctest-vn-34926809: {}
2026-01-19 02:05:00,489 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-01-19 02:05:00,495 - DEBUG - Requesting: http://10.0.0.141:8082/domain/842248eb-4371-401b-be9c-56527aaba4af
2026-01-19 02:05:00,506 - DEBUG - Requesting: http://10.0.0.141:8082/project/a97cdf7b-b6e1-4122-87fa-ebf3fc59c28d
2026-01-19 02:05:00,578 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4d9aa540-a7f8-43e0-847b-af186c95656e
2026-01-19 02:05:00,590 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4d9aa540-a7f8-43e0-847b-af186c95656e
2026-01-19 02:05:00,601 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/95f2a2d9-30c8-4d0e-ab76-6d8f45c763d2
2026-01-19 02:05:00,611 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/95f2a2d9-30c8-4d0e-ab76-6d8f45c763d2
2026-01-19 02:05:00,619 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e5938053-ad90-437d-b9d0-2af0d17cdd70
2026-01-19 02:05:00,629 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-19 02:05:00,629 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4d9aa540-a7f8-43e0-847b-af186c95656e
2026-01-19 02:05:00,638 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/95f2a2d9-30c8-4d0e-ab76-6d8f45c763d2
2026-01-19 02:05:00,654 - INFO - Verified VN network id 12 for VN 4d9aa540-a7f8-43e0-847b-af186c95656e
2026-01-19 02:05:00,654 - INFO - Verifications in API Server for VN ctest-vn-41350453 passed
2026-01-19 02:05:00,654 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4d9aa540-a7f8-43e0-847b-af186c95656e
2026-01-19 02:05:00,665 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/95f2a2d9-30c8-4d0e-ab76-6d8f45c763d2
2026-01-19 02:05:00,673 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/95f2a2d9-30c8-4d0e-ab76-6d8f45c763d2
2026-01-19 02:05:00,681 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e5938053-ad90-437d-b9d0-2af0d17cdd70
2026-01-19 02:05:00,694 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19399436:ctest-vn-41350453', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19399436', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5591963584448447456', 'uuid-lslong': '9546416354577704302'}, 'enable': 'true', 'created': '2026-01-19T02:04:58', 'last-modified': '2026-01-19T02:04:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.439002'}
2026-01-19 02:05:00,700 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-19 02:05:00,700 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41350453 passed
2026-01-19 02:05:00,701 - DEBUG - ====Verifying policy data for ctest-vn-41350453 in API_Server ======
2026-01-19 02:05:00,701 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-01-19 02:05:00,707 - DEBUG - Requesting: http://10.0.0.141:8082/domain/842248eb-4371-401b-be9c-56527aaba4af
2026-01-19 02:05:00,719 - DEBUG - Requesting: http://10.0.0.141:8082/project/a97cdf7b-b6e1-4122-87fa-ebf3fc59c28d
2026-01-19 02:05:00,797 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4d9aa540-a7f8-43e0-847b-af186c95656e
2026-01-19 02:05:00,807 - DEBUG - ==>Verifying data for policy with id: f28c5e58-4d59-4e8c-9ce3-e52170a70bbe, fqn: ['default-domain', 'ctest-TestBasicPolicy-19399436', 'ctest-policy-allow-all-90472287']
2026-01-19 02:05:00,807 - INFO - VN ctest-vn-41350453 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-19 02:05:00,807 - DEBUG - Verifying the vn in opserver
2026-01-19 02:05:00,807 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19399436:ctest-vn-41350453 virtual network link through opserver 10.0.0.141
2026-01-19 02:05:00,807 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-01-19 02:05:00,821 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19399436:ctest-vn-41350453', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19399436:ctest-vn-41350453?flat'}
2026-01-19 02:05:00,821 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19399436:ctest-vn-41350453 is found in opserver
2026-01-19 02:05:00,833 - DEBUG - Do not have enough data to verify VN in agent
2026-01-19 02:05:00,839 - DEBUG - VRF ids for VN ctest-vn-41350453: {}
2026-01-19 02:05:00,926 - DEBUG - Services list from nova: [