2026-05-29 12:57:06,849 - INFO - Domain Default found not creating
2026-05-29 12:57:07,007 - INFO - Project ctest-TestBasicPolicy-21578355 not found, creating it
2026-05-29 12:57:07,452 - INFO - Created Project:ctest-TestBasicPolicy-21578355, ID : 099cec8c-cdaa-43d6-995e-e9cb5f4ddadc
2026-05-29 12:57:08,954 - INFO - ================================================================================
2026-05-29 12:57:08,954 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-29 12:57:08,954 - 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-29 12:57:09,212 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-05-29 12:57:09,212 - INFO - Initial checks done. Running the testcase now
2026-05-29 12:57:09,213 - INFO -
2026-05-29 12:57:09,771 - DEBUG - Response for create_network : {'network': {'id': '3695783d-cb36-4b84-851d-c8bd89338b32', 'name': 'ctest-vn-67469314', 'tenant_id': '099cec8ccdaa43d6995ee9cb5f4ddadc', 'project_id': '099cec8ccdaa43d6995ee9cb5f4ddadc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21578355', 'ctest-vn-67469314'], 'port_security_enabled': True, 'description': ''}}
2026-05-29 12:57:09,958 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9a509a0-ec90-4769-b61a-c935495d7537', 'name': '', 'tenant_id': '099cec8ccdaa43d6995ee9cb5f4ddadc', 'network_id': '3695783d-cb36-4b84-851d-c8bd89338b32', 'ip_version': 4, 'cidr': '181.191.63.0/26', 'allocation_pools': [{'start': '181.191.63.2', 'end': '181.191.63.62'}], 'gateway_ip': '181.191.63.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.191.63.2', 'tags': [], 'project_id': '099cec8ccdaa43d6995ee9cb5f4ddadc'}}
2026-05-29 12:57:09,975 - INFO - Created VN ctest-vn-67469314
2026-05-29 12:57:10,027 - DEBUG - VN ctest-vn-67469314 UUID is 3695783d-cb36-4b84-851d-c8bd89338b32
2026-05-29 12:57:10,351 - DEBUG - Response for create_network : {'network': {'id': 'fe805fad-a61e-4508-afd8-4dbf4b00eaa1', 'name': 'ctest-vn-66958150', 'tenant_id': '099cec8ccdaa43d6995ee9cb5f4ddadc', 'project_id': '099cec8ccdaa43d6995ee9cb5f4ddadc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21578355', 'ctest-vn-66958150'], 'port_security_enabled': True, 'description': ''}}
2026-05-29 12:57:10,579 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8d5da67-41f6-4a8a-a66c-b58c655403e2', 'name': '', 'tenant_id': '099cec8ccdaa43d6995ee9cb5f4ddadc', 'network_id': 'fe805fad-a61e-4508-afd8-4dbf4b00eaa1', 'ip_version': 4, 'cidr': '87.182.101.64/26', 'allocation_pools': [{'start': '87.182.101.66', 'end': '87.182.101.126'}], 'gateway_ip': '87.182.101.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.182.101.66', 'tags': [], 'project_id': '099cec8ccdaa43d6995ee9cb5f4ddadc'}}
2026-05-29 12:57:10,599 - INFO - Created VN ctest-vn-66958150
2026-05-29 12:57:10,651 - DEBUG - VN ctest-vn-66958150 UUID is fe805fad-a61e-4508-afd8-4dbf4b00eaa1
2026-05-29 12:57:10,799 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21578355:ctest-vn-67469314, 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-21578355:ctest-vn-66958150, 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-29 12:57:11,089 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3695783d-cb36-4b84-851d-c8bd89338b32', 'name': 'ctest-vn-67469314', 'tenant_id': '099cec8ccdaa43d6995ee9cb5f4ddadc', 'project_id': '099cec8ccdaa43d6995ee9cb5f4ddadc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9a509a0-ec90-4769-b61a-c935495d7537'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21578355', 'ctest-vn-67469314'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21578355', 'ctest-policy-allow-all-12237022']], 'subnet_ipam': [{'subnet_cidr': '181.191.63.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-29 12:57:11,318 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe805fad-a61e-4508-afd8-4dbf4b00eaa1', 'name': 'ctest-vn-66958150', 'tenant_id': '099cec8ccdaa43d6995ee9cb5f4ddadc', 'project_id': '099cec8ccdaa43d6995ee9cb5f4ddadc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f8d5da67-41f6-4a8a-a66c-b58c655403e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21578355', 'ctest-vn-66958150'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21578355', 'ctest-policy-allow-all-12237022']], 'subnet_ipam': [{'subnet_cidr': '87.182.101.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-29 12:57:11,487 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-29 12:57:11,798 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-29 12:57:11,832 - DEBUG - Requesting: http://10.0.0.50:8082/domain/34a5ab6b-810b-4978-88bd-37e1c12509ed
2026-05-29 12:57:11,845 - DEBUG - Requesting: http://10.0.0.50:8082/project/099cec8c-cdaa-43d6-995e-e9cb5f4ddadc
2026-05-29 12:57:11,919 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3695783d-cb36-4b84-851d-c8bd89338b32
2026-05-29 12:57:11,932 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3695783d-cb36-4b84-851d-c8bd89338b32
2026-05-29 12:57:11,940 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/613bd210-0e66-41cf-a75f-5e2649594a80
2026-05-29 12:57:11,948 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/613bd210-0e66-41cf-a75f-5e2649594a80
2026-05-29 12:57:11,954 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/33fa8948-b01d-4267-abc0-e23f19804c3d
2026-05-29 12:57:11,960 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-29 12:57:11,960 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3695783d-cb36-4b84-851d-c8bd89338b32
2026-05-29 12:57:11,970 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/613bd210-0e66-41cf-a75f-5e2649594a80
2026-05-29 12:57:11,984 - INFO - Verified VN network id 11 for VN 3695783d-cb36-4b84-851d-c8bd89338b32
2026-05-29 12:57:11,985 - INFO - Verifications in API Server for VN ctest-vn-67469314 passed
2026-05-29 12:57:11,985 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3695783d-cb36-4b84-851d-c8bd89338b32
2026-05-29 12:57:11,996 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/613bd210-0e66-41cf-a75f-5e2649594a80
2026-05-29 12:57:12,005 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/613bd210-0e66-41cf-a75f-5e2649594a80
2026-05-29 12:57:12,013 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/33fa8948-b01d-4267-abc0-e23f19804c3d
2026-05-29 12:57:12,027 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21578355:ctest-vn-67469314', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21578355', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3933182056375667588', 'uuid-lslong': '9592043497745255218'}, 'enable': 'true', 'created': '2026-05-29T12:57:09', 'last-modified': '2026-05-29T12:57:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.956358'}
2026-05-29 12:57:12,033 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-29 12:57:12,033 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67469314 passed
2026-05-29 12:57:12,033 - DEBUG - ====Verifying policy data for ctest-vn-67469314 in API_Server ======
2026-05-29 12:57:12,033 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-29 12:57:12,039 - DEBUG - Requesting: http://10.0.0.50:8082/domain/34a5ab6b-810b-4978-88bd-37e1c12509ed
2026-05-29 12:57:12,051 - DEBUG - Requesting: http://10.0.0.50:8082/project/099cec8c-cdaa-43d6-995e-e9cb5f4ddadc
2026-05-29 12:57:12,121 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3695783d-cb36-4b84-851d-c8bd89338b32
2026-05-29 12:57:12,131 - DEBUG - ==>Verifying data for policy with id: b739278e-a789-4850-8f7f-119ecd399edb, fqn: ['default-domain', 'ctest-TestBasicPolicy-21578355', 'ctest-policy-allow-all-12237022']
2026-05-29 12:57:12,131 - INFO - VN ctest-vn-67469314 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-29 12:57:12,131 - DEBUG - Verifying the vn in opserver
2026-05-29 12:57:12,131 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21578355:ctest-vn-67469314 virtual network link through opserver 10.0.0.50
2026-05-29 12:57:12,131 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-29 12:57:12,427 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-29 12:57:12,488 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21578355:ctest-vn-67469314', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21578355:ctest-vn-67469314?flat'}
2026-05-29 12:57:12,489 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21578355:ctest-vn-67469314 is found in opserver
2026-05-29 12:57:12,498 - DEBUG - Do not have enough data to verify VN in agent
2026-05-29 12:57:12,502 - DEBUG - VRF ids for VN ctest-vn-67469314: {}
2026-05-29 12:57:12,502 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-29 12:57:12,507 - DEBUG - Requesting: http://10.0.0.50:8082/domain/34a5ab6b-810b-4978-88bd-37e1c12509ed
2026-05-29 12:57:12,517 - DEBUG - Requesting: http://10.0.0.50:8082/project/099cec8c-cdaa-43d6-995e-e9cb5f4ddadc
2026-05-29 12:57:12,590 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fe805fad-a61e-4508-afd8-4dbf4b00eaa1
2026-05-29 12:57:12,602 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fe805fad-a61e-4508-afd8-4dbf4b00eaa1
2026-05-29 12:57:12,612 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8892f610-68fc-4f18-8233-a4cc4ff76b83
2026-05-29 12:57:12,618 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8892f610-68fc-4f18-8233-a4cc4ff76b83
2026-05-29 12:57:12,625 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/53e91b5b-54a9-42e1-a730-eaae8507e31f
2026-05-29 12:57:12,632 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-29 12:57:12,632 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fe805fad-a61e-4508-afd8-4dbf4b00eaa1
2026-05-29 12:57:12,643 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8892f610-68fc-4f18-8233-a4cc4ff76b83
2026-05-29 12:57:12,658 - INFO - Verified VN network id 12 for VN fe805fad-a61e-4508-afd8-4dbf4b00eaa1
2026-05-29 12:57:12,658 - INFO - Verifications in API Server for VN ctest-vn-66958150 passed
2026-05-29 12:57:12,658 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fe805fad-a61e-4508-afd8-4dbf4b00eaa1
2026-05-29 12:57:12,668 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8892f610-68fc-4f18-8233-a4cc4ff76b83
2026-05-29 12:57:12,676 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8892f610-68fc-4f18-8233-a4cc4ff76b83
2026-05-29 12:57:12,684 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/53e91b5b-54a9-42e1-a730-eaae8507e31f
2026-05-29 12:57:12,699 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21578355:ctest-vn-66958150', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21578355', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18338762882073642248', 'uuid-lslong': '12670963035599334049'}, 'enable': 'true', 'created': '2026-05-29T12:57:10', 'last-modified': '2026-05-29T12:57:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.401254'}
2026-05-29 12:57:12,705 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-29 12:57:12,705 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66958150 passed
2026-05-29 12:57:12,705 - DEBUG - ====Verifying policy data for ctest-vn-66958150 in API_Server ======
2026-05-29 12:57:12,705 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-29 12:57:12,710 - DEBUG - Requesting: http://10.0.0.50:8082/domain/34a5ab6b-810b-4978-88bd-37e1c12509ed
2026-05-29 12:57:12,720 - DEBUG - Requesting: http://10.0.0.50:8082/project/099cec8c-cdaa-43d6-995e-e9cb5f4ddadc
2026-05-29 12:57:12,789 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fe805fad-a61e-4508-afd8-4dbf4b00eaa1
2026-05-29 12:57:12,798 - DEBUG - ==>Verifying data for policy with id: b739278e-a789-4850-8f7f-119ecd399edb, fqn: ['default-domain', 'ctest-TestBasicPolicy-21578355', 'ctest-policy-allow-all-12237022']
2026-05-29 12:57:12,798 - INFO - VN ctest-vn-66958150 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-29 12:57:12,798 - DEBUG - Verifying the vn in opserver
2026-05-29 12:57:12,799 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21578355:ctest-vn-66958150 virtual network link through opserver 10.0.0.50
2026-05-29 12:57:12,799 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-29 12:57:12,808 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21578355:ctest-vn-66958150', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21578355:ctest-vn-66958150?flat'}
2026-05-29 12:57:12,808 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21578355:ctest-vn-66958150 is found in opserver
2026-05-29 12:57:12,817 - DEBUG - Do not have enough data to verify VN in agent
2026-05-29 12:57:12,822 - DEBUG - VRF ids for VN ctest-vn-66958150: {}
2026-05-29 12:57:12,882 - DEBUG - Services list from nova: [