2026-05-20 14:34:42,242 - INFO - Domain Default found not creating
2026-05-20 14:34:42,452 - INFO - Project ctest-TestBasicPolicy-04106410 not found, creating it
2026-05-20 14:34:42,917 - INFO - Created Project:ctest-TestBasicPolicy-04106410, ID : 1d00a60a-072d-4d54-bc95-1cd7ee5b1149
2026-05-20 14:34:44,547 - INFO - ================================================================================
2026-05-20 14:34:44,547 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-20 14:34:44,547 - 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-20 14:34:44,809 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-05-20 14:34:44,809 - INFO - Initial checks done. Running the testcase now
2026-05-20 14:34:44,809 - INFO -
2026-05-20 14:34:45,411 - DEBUG - Response for create_network : {'network': {'id': '5c8ffd76-fcc0-4ac8-9d18-56d5a2688bcd', 'name': 'ctest-vn-59180698', 'tenant_id': '1d00a60a072d4d54bc951cd7ee5b1149', 'project_id': '1d00a60a072d4d54bc951cd7ee5b1149', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04106410', 'ctest-vn-59180698'], 'port_security_enabled': True, 'description': ''}}
2026-05-20 14:34:45,607 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d6ce408-d2d8-4fb4-98e2-6e08552e3c6b', 'name': '', 'tenant_id': '1d00a60a072d4d54bc951cd7ee5b1149', 'network_id': '5c8ffd76-fcc0-4ac8-9d18-56d5a2688bcd', 'ip_version': 4, 'cidr': '136.120.67.0/26', 'allocation_pools': [{'start': '136.120.67.2', 'end': '136.120.67.62'}], 'gateway_ip': '136.120.67.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.120.67.2', 'tags': [], 'project_id': '1d00a60a072d4d54bc951cd7ee5b1149'}}
2026-05-20 14:34:45,629 - INFO - Created VN ctest-vn-59180698
2026-05-20 14:34:45,682 - DEBUG - VN ctest-vn-59180698 UUID is 5c8ffd76-fcc0-4ac8-9d18-56d5a2688bcd
2026-05-20 14:34:46,019 - DEBUG - Response for create_network : {'network': {'id': 'a1e710a3-8547-4e51-b024-60e91fb5b1fe', 'name': 'ctest-vn-40169667', 'tenant_id': '1d00a60a072d4d54bc951cd7ee5b1149', 'project_id': '1d00a60a072d4d54bc951cd7ee5b1149', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04106410', 'ctest-vn-40169667'], 'port_security_enabled': True, 'description': ''}}
2026-05-20 14:34:46,253 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7a573cb-e323-4acd-b89d-92acd45bf79d', 'name': '', 'tenant_id': '1d00a60a072d4d54bc951cd7ee5b1149', 'network_id': 'a1e710a3-8547-4e51-b024-60e91fb5b1fe', 'ip_version': 4, 'cidr': '64.147.176.192/26', 'allocation_pools': [{'start': '64.147.176.194', 'end': '64.147.176.254'}], 'gateway_ip': '64.147.176.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.147.176.194', 'tags': [], 'project_id': '1d00a60a072d4d54bc951cd7ee5b1149'}}
2026-05-20 14:34:46,274 - INFO - Created VN ctest-vn-40169667
2026-05-20 14:34:46,326 - DEBUG - VN ctest-vn-40169667 UUID is a1e710a3-8547-4e51-b024-60e91fb5b1fe
2026-05-20 14:34:46,452 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04106410:ctest-vn-59180698, 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-04106410:ctest-vn-40169667, 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-20 14:34:46,756 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c8ffd76-fcc0-4ac8-9d18-56d5a2688bcd', 'name': 'ctest-vn-59180698', 'tenant_id': '1d00a60a072d4d54bc951cd7ee5b1149', 'project_id': '1d00a60a072d4d54bc951cd7ee5b1149', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6d6ce408-d2d8-4fb4-98e2-6e08552e3c6b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04106410', 'ctest-vn-59180698'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04106410', 'ctest-policy-allow-all-38689887']], 'subnet_ipam': [{'subnet_cidr': '136.120.67.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-20 14:34:46,998 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a1e710a3-8547-4e51-b024-60e91fb5b1fe', 'name': 'ctest-vn-40169667', 'tenant_id': '1d00a60a072d4d54bc951cd7ee5b1149', 'project_id': '1d00a60a072d4d54bc951cd7ee5b1149', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a7a573cb-e323-4acd-b89d-92acd45bf79d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04106410', 'ctest-vn-40169667'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04106410', 'ctest-policy-allow-all-38689887']], 'subnet_ipam': [{'subnet_cidr': '64.147.176.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-20 14:34:47,178 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-20 14:34:47,485 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-20 14:34:47,524 - DEBUG - Requesting: http://10.0.0.50:8082/domain/69153c15-03f5-4428-b130-bd33acb6977f
2026-05-20 14:34:47,537 - DEBUG - Requesting: http://10.0.0.50:8082/project/1d00a60a-072d-4d54-bc95-1cd7ee5b1149
2026-05-20 14:34:47,610 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c8ffd76-fcc0-4ac8-9d18-56d5a2688bcd
2026-05-20 14:34:47,624 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c8ffd76-fcc0-4ac8-9d18-56d5a2688bcd
2026-05-20 14:34:47,636 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55cf746f-a53f-40c5-b893-dd815dd5aa89
2026-05-20 14:34:47,644 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55cf746f-a53f-40c5-b893-dd815dd5aa89
2026-05-20 14:34:47,653 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/823b14ed-5784-4678-b49f-5a6788140763
2026-05-20 14:34:47,660 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-20 14:34:47,660 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c8ffd76-fcc0-4ac8-9d18-56d5a2688bcd
2026-05-20 14:34:47,670 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55cf746f-a53f-40c5-b893-dd815dd5aa89
2026-05-20 14:34:47,687 - INFO - Verified VN network id 11 for VN 5c8ffd76-fcc0-4ac8-9d18-56d5a2688bcd
2026-05-20 14:34:47,687 - INFO - Verifications in API Server for VN ctest-vn-59180698 passed
2026-05-20 14:34:47,687 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c8ffd76-fcc0-4ac8-9d18-56d5a2688bcd
2026-05-20 14:34:47,697 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55cf746f-a53f-40c5-b893-dd815dd5aa89
2026-05-20 14:34:47,705 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55cf746f-a53f-40c5-b893-dd815dd5aa89
2026-05-20 14:34:47,715 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/823b14ed-5784-4678-b49f-5a6788140763
2026-05-20 14:34:47,728 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04106410:ctest-vn-59180698', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04106410', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6669828260647422664', 'uuid-lslong': '11319893138948525005'}, 'enable': 'true', 'created': '2026-05-20T14:34:45', 'last-modified': '2026-05-20T14:34:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.995030'}
2026-05-20 14:34:47,735 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-20 14:34:47,735 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59180698 passed
2026-05-20 14:34:47,736 - DEBUG - ====Verifying policy data for ctest-vn-59180698 in API_Server ======
2026-05-20 14:34:47,736 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-20 14:34:47,742 - DEBUG - Requesting: http://10.0.0.50:8082/domain/69153c15-03f5-4428-b130-bd33acb6977f
2026-05-20 14:34:47,753 - DEBUG - Requesting: http://10.0.0.50:8082/project/1d00a60a-072d-4d54-bc95-1cd7ee5b1149
2026-05-20 14:34:47,825 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c8ffd76-fcc0-4ac8-9d18-56d5a2688bcd
2026-05-20 14:34:47,834 - DEBUG - ==>Verifying data for policy with id: 783ff7ef-4af6-4e54-9023-9ef9d0c617ba, fqn: ['default-domain', 'ctest-TestBasicPolicy-04106410', 'ctest-policy-allow-all-38689887']
2026-05-20 14:34:47,834 - INFO - VN ctest-vn-59180698 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-20 14:34:47,835 - DEBUG - Verifying the vn in opserver
2026-05-20 14:34:47,835 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04106410:ctest-vn-59180698 virtual network link through opserver 10.0.0.50
2026-05-20 14:34:47,835 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-20 14:34:48,145 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-20 14:34:48,221 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04106410:ctest-vn-59180698', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04106410:ctest-vn-59180698?flat'}
2026-05-20 14:34:48,221 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04106410:ctest-vn-59180698 is found in opserver
2026-05-20 14:34:48,233 - DEBUG - Do not have enough data to verify VN in agent
2026-05-20 14:34:48,239 - DEBUG - VRF ids for VN ctest-vn-59180698: {}
2026-05-20 14:34:48,239 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-20 14:34:48,245 - DEBUG - Requesting: http://10.0.0.50:8082/domain/69153c15-03f5-4428-b130-bd33acb6977f
2026-05-20 14:34:48,257 - DEBUG - Requesting: http://10.0.0.50:8082/project/1d00a60a-072d-4d54-bc95-1cd7ee5b1149
2026-05-20 14:34:48,330 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a1e710a3-8547-4e51-b024-60e91fb5b1fe
2026-05-20 14:34:48,343 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a1e710a3-8547-4e51-b024-60e91fb5b1fe
2026-05-20 14:34:48,354 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0d306015-f4f4-4604-a59b-92c4940a3c9d
2026-05-20 14:34:48,363 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0d306015-f4f4-4604-a59b-92c4940a3c9d
2026-05-20 14:34:48,372 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/559a5415-6c8a-420c-b7a4-34eb566661b2
2026-05-20 14:34:48,379 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-20 14:34:48,379 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a1e710a3-8547-4e51-b024-60e91fb5b1fe
2026-05-20 14:34:48,390 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0d306015-f4f4-4604-a59b-92c4940a3c9d
2026-05-20 14:34:48,407 - INFO - Verified VN network id 12 for VN a1e710a3-8547-4e51-b024-60e91fb5b1fe
2026-05-20 14:34:48,407 - INFO - Verifications in API Server for VN ctest-vn-40169667 passed
2026-05-20 14:34:48,407 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a1e710a3-8547-4e51-b024-60e91fb5b1fe
2026-05-20 14:34:48,420 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0d306015-f4f4-4604-a59b-92c4940a3c9d
2026-05-20 14:34:48,428 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0d306015-f4f4-4604-a59b-92c4940a3c9d
2026-05-20 14:34:48,439 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/559a5415-6c8a-420c-b7a4-34eb566661b2
2026-05-20 14:34:48,454 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04106410:ctest-vn-40169667', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04106410', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11666311654228315729', 'uuid-lslong': '12692376204212548094'}, 'enable': 'true', 'created': '2026-05-20T14:34:45', 'last-modified': '2026-05-20T14:34:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.483300'}
2026-05-20 14:34:48,460 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-20 14:34:48,460 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40169667 passed
2026-05-20 14:34:48,460 - DEBUG - ====Verifying policy data for ctest-vn-40169667 in API_Server ======
2026-05-20 14:34:48,460 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-20 14:34:48,468 - DEBUG - Requesting: http://10.0.0.50:8082/domain/69153c15-03f5-4428-b130-bd33acb6977f
2026-05-20 14:34:48,482 - DEBUG - Requesting: http://10.0.0.50:8082/project/1d00a60a-072d-4d54-bc95-1cd7ee5b1149
2026-05-20 14:34:48,563 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a1e710a3-8547-4e51-b024-60e91fb5b1fe
2026-05-20 14:34:48,574 - DEBUG - ==>Verifying data for policy with id: 783ff7ef-4af6-4e54-9023-9ef9d0c617ba, fqn: ['default-domain', 'ctest-TestBasicPolicy-04106410', 'ctest-policy-allow-all-38689887']
2026-05-20 14:34:48,574 - INFO - VN ctest-vn-40169667 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-20 14:34:48,574 - DEBUG - Verifying the vn in opserver
2026-05-20 14:34:48,574 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04106410:ctest-vn-40169667 virtual network link through opserver 10.0.0.50
2026-05-20 14:34:48,574 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-20 14:34:48,585 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04106410:ctest-vn-40169667', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04106410:ctest-vn-40169667?flat'}
2026-05-20 14:34:48,585 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04106410:ctest-vn-40169667 is found in opserver
2026-05-20 14:34:48,598 - DEBUG - Do not have enough data to verify VN in agent
2026-05-20 14:34:48,603 - DEBUG - VRF ids for VN ctest-vn-40169667: {}
2026-05-20 14:34:48,670 - DEBUG - Services list from nova: [