2026-03-03 16:33:05,196 - INFO - Domain Default found not creating
2026-03-03 16:33:05,402 - INFO - Project ctest-TestBasicPolicy-30499031 not found, creating it
2026-03-03 16:33:05,909 - INFO - Created Project:ctest-TestBasicPolicy-30499031, ID : 1a684bee-b613-40d9-9b15-3e0caddb690c
2026-03-03 16:33:07,457 - INFO - ================================================================================
2026-03-03 16:33:07,457 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-03 16:33:07,457 - 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-03-03 16:33:07,713 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-03-03 16:33:07,713 - INFO - Initial checks done. Running the testcase now
2026-03-03 16:33:07,713 - INFO -
2026-03-03 16:33:08,357 - DEBUG - Response for create_network : {'network': {'id': 'd4fb2723-18b0-47e7-af8e-d421d58a9874', 'name': 'ctest-vn-14483808', 'tenant_id': '1a684beeb61340d99b153e0caddb690c', 'project_id': '1a684beeb61340d99b153e0caddb690c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30499031', 'ctest-vn-14483808'], 'port_security_enabled': True, 'description': ''}}
2026-03-03 16:33:08,585 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0af3fd0-4cc0-4faf-9399-5ae610e48dc8', 'name': '', 'tenant_id': '1a684beeb61340d99b153e0caddb690c', 'network_id': 'd4fb2723-18b0-47e7-af8e-d421d58a9874', 'ip_version': 4, 'cidr': '96.1.138.128/26', 'allocation_pools': [{'start': '96.1.138.130', 'end': '96.1.138.190'}], 'gateway_ip': '96.1.138.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.1.138.130', 'tags': [], 'project_id': '1a684beeb61340d99b153e0caddb690c'}}
2026-03-03 16:33:08,609 - INFO - Created VN ctest-vn-14483808
2026-03-03 16:33:08,663 - DEBUG - VN ctest-vn-14483808 UUID is d4fb2723-18b0-47e7-af8e-d421d58a9874
2026-03-03 16:33:08,969 - DEBUG - Response for create_network : {'network': {'id': 'ca3bb45b-cfc7-4777-acfd-03dafd56fdb5', 'name': 'ctest-vn-37318132', 'tenant_id': '1a684beeb61340d99b153e0caddb690c', 'project_id': '1a684beeb61340d99b153e0caddb690c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30499031', 'ctest-vn-37318132'], 'port_security_enabled': True, 'description': ''}}
2026-03-03 16:33:09,173 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0caa5c8-cb53-4bdf-b917-7596ca07495f', 'name': '', 'tenant_id': '1a684beeb61340d99b153e0caddb690c', 'network_id': 'ca3bb45b-cfc7-4777-acfd-03dafd56fdb5', 'ip_version': 4, 'cidr': '97.64.146.192/26', 'allocation_pools': [{'start': '97.64.146.194', 'end': '97.64.146.254'}], 'gateway_ip': '97.64.146.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.64.146.194', 'tags': [], 'project_id': '1a684beeb61340d99b153e0caddb690c'}}
2026-03-03 16:33:09,195 - INFO - Created VN ctest-vn-37318132
2026-03-03 16:33:09,251 - DEBUG - VN ctest-vn-37318132 UUID is ca3bb45b-cfc7-4777-acfd-03dafd56fdb5
2026-03-03 16:33:09,370 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30499031:ctest-vn-14483808, 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-30499031:ctest-vn-37318132, 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-03-03 16:33:09,668 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd4fb2723-18b0-47e7-af8e-d421d58a9874', 'name': 'ctest-vn-14483808', 'tenant_id': '1a684beeb61340d99b153e0caddb690c', 'project_id': '1a684beeb61340d99b153e0caddb690c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c0af3fd0-4cc0-4faf-9399-5ae610e48dc8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30499031', 'ctest-vn-14483808'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30499031', 'ctest-policy-allow-all-69046155']], 'subnet_ipam': [{'subnet_cidr': '96.1.138.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-03 16:33:09,907 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ca3bb45b-cfc7-4777-acfd-03dafd56fdb5', 'name': 'ctest-vn-37318132', 'tenant_id': '1a684beeb61340d99b153e0caddb690c', 'project_id': '1a684beeb61340d99b153e0caddb690c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c0caa5c8-cb53-4bdf-b917-7596ca07495f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30499031', 'ctest-vn-37318132'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30499031', 'ctest-policy-allow-all-69046155']], 'subnet_ipam': [{'subnet_cidr': '97.64.146.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-03 16:33:10,059 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-03 16:33:10,363 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-03 16:33:10,398 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6ee9112-c7ec-4ca0-a0a0-fe1304e94b09
2026-03-03 16:33:10,413 - DEBUG - Requesting: http://10.0.0.38:8082/project/1a684bee-b613-40d9-9b15-3e0caddb690c
2026-03-03 16:33:10,494 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4fb2723-18b0-47e7-af8e-d421d58a9874
2026-03-03 16:33:10,506 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4fb2723-18b0-47e7-af8e-d421d58a9874
2026-03-03 16:33:10,517 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/663e7934-e504-473d-8289-42a42b022e6d
2026-03-03 16:33:10,525 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/663e7934-e504-473d-8289-42a42b022e6d
2026-03-03 16:33:10,532 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/48a20d97-cdbc-4eb5-9bd5-e9853a703bc7
2026-03-03 16:33:10,539 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-03 16:33:10,539 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4fb2723-18b0-47e7-af8e-d421d58a9874
2026-03-03 16:33:10,551 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/663e7934-e504-473d-8289-42a42b022e6d
2026-03-03 16:33:10,571 - INFO - Verified VN network id 11 for VN d4fb2723-18b0-47e7-af8e-d421d58a9874
2026-03-03 16:33:10,571 - INFO - Verifications in API Server for VN ctest-vn-14483808 passed
2026-03-03 16:33:10,571 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4fb2723-18b0-47e7-af8e-d421d58a9874
2026-03-03 16:33:10,582 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/663e7934-e504-473d-8289-42a42b022e6d
2026-03-03 16:33:10,589 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/663e7934-e504-473d-8289-42a42b022e6d
2026-03-03 16:33:10,599 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/48a20d97-cdbc-4eb5-9bd5-e9853a703bc7
2026-03-03 16:33:10,611 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30499031:ctest-vn-14483808', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30499031', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15346903186886641639', 'uuid-lslong': '12650281645111941236'}, 'enable': 'true', 'created': '2026-03-03T16:33:08', 'last-modified': '2026-03-03T16:33:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.965136'}
2026-03-03 16:33:10,617 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-03 16:33:10,618 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14483808 passed
2026-03-03 16:33:10,618 - DEBUG - ====Verifying policy data for ctest-vn-14483808 in API_Server ======
2026-03-03 16:33:10,618 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-03 16:33:10,624 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6ee9112-c7ec-4ca0-a0a0-fe1304e94b09
2026-03-03 16:33:10,637 - DEBUG - Requesting: http://10.0.0.38:8082/project/1a684bee-b613-40d9-9b15-3e0caddb690c
2026-03-03 16:33:10,709 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4fb2723-18b0-47e7-af8e-d421d58a9874
2026-03-03 16:33:10,717 - DEBUG - ==>Verifying data for policy with id: 0e300e40-10a0-4895-911b-928325676451, fqn: ['default-domain', 'ctest-TestBasicPolicy-30499031', 'ctest-policy-allow-all-69046155']
2026-03-03 16:33:10,718 - INFO - VN ctest-vn-14483808 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-03 16:33:10,718 - DEBUG - Verifying the vn in opserver
2026-03-03 16:33:10,718 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30499031:ctest-vn-14483808 virtual network link through opserver 10.0.0.38
2026-03-03 16:33:10,718 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-03 16:33:11,028 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-03 16:33:11,111 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30499031:ctest-vn-14483808', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30499031:ctest-vn-14483808?flat'}
2026-03-03 16:33:11,111 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30499031:ctest-vn-14483808 is found in opserver
2026-03-03 16:33:11,121 - DEBUG - Do not have enough data to verify VN in agent
2026-03-03 16:33:11,127 - DEBUG - VRF ids for VN ctest-vn-14483808: {}
2026-03-03 16:33:11,128 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-03 16:33:11,134 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6ee9112-c7ec-4ca0-a0a0-fe1304e94b09
2026-03-03 16:33:11,150 - DEBUG - Requesting: http://10.0.0.38:8082/project/1a684bee-b613-40d9-9b15-3e0caddb690c
2026-03-03 16:33:11,224 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca3bb45b-cfc7-4777-acfd-03dafd56fdb5
2026-03-03 16:33:11,237 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca3bb45b-cfc7-4777-acfd-03dafd56fdb5
2026-03-03 16:33:11,248 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a8610b1a-5fca-4cb9-a7cc-eed201f3b4a5
2026-03-03 16:33:11,255 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a8610b1a-5fca-4cb9-a7cc-eed201f3b4a5
2026-03-03 16:33:11,263 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fe6499b8-a3d0-4f31-b928-ccca5cdf0d5f
2026-03-03 16:33:11,273 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-03 16:33:11,273 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca3bb45b-cfc7-4777-acfd-03dafd56fdb5
2026-03-03 16:33:11,283 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a8610b1a-5fca-4cb9-a7cc-eed201f3b4a5
2026-03-03 16:33:11,302 - INFO - Verified VN network id 12 for VN ca3bb45b-cfc7-4777-acfd-03dafd56fdb5
2026-03-03 16:33:11,303 - INFO - Verifications in API Server for VN ctest-vn-37318132 passed
2026-03-03 16:33:11,303 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca3bb45b-cfc7-4777-acfd-03dafd56fdb5
2026-03-03 16:33:11,316 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a8610b1a-5fca-4cb9-a7cc-eed201f3b4a5
2026-03-03 16:33:11,325 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a8610b1a-5fca-4cb9-a7cc-eed201f3b4a5
2026-03-03 16:33:11,334 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fe6499b8-a3d0-4f31-b928-ccca5cdf0d5f
2026-03-03 16:33:11,348 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30499031:ctest-vn-37318132', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30499031', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14572439325708339063', 'uuid-lslong': '12465123582719491509'}, 'enable': 'true', 'created': '2026-03-03T16:33:08', 'last-modified': '2026-03-03T16:33:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.462747'}
2026-03-03 16:33:11,354 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-03 16:33:11,354 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37318132 passed
2026-03-03 16:33:11,354 - DEBUG - ====Verifying policy data for ctest-vn-37318132 in API_Server ======
2026-03-03 16:33:11,354 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-03 16:33:11,361 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6ee9112-c7ec-4ca0-a0a0-fe1304e94b09
2026-03-03 16:33:11,376 - DEBUG - Requesting: http://10.0.0.38:8082/project/1a684bee-b613-40d9-9b15-3e0caddb690c
2026-03-03 16:33:11,452 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca3bb45b-cfc7-4777-acfd-03dafd56fdb5
2026-03-03 16:33:11,462 - DEBUG - ==>Verifying data for policy with id: 0e300e40-10a0-4895-911b-928325676451, fqn: ['default-domain', 'ctest-TestBasicPolicy-30499031', 'ctest-policy-allow-all-69046155']
2026-03-03 16:33:11,462 - INFO - VN ctest-vn-37318132 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-03 16:33:11,462 - DEBUG - Verifying the vn in opserver
2026-03-03 16:33:11,462 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30499031:ctest-vn-37318132 virtual network link through opserver 10.0.0.38
2026-03-03 16:33:11,462 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-03 16:33:11,475 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30499031:ctest-vn-37318132', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30499031:ctest-vn-37318132?flat'}
2026-03-03 16:33:11,475 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30499031:ctest-vn-37318132 is found in opserver
2026-03-03 16:33:11,486 - DEBUG - Do not have enough data to verify VN in agent
2026-03-03 16:33:11,491 - DEBUG - VRF ids for VN ctest-vn-37318132: {}
2026-03-03 16:33:11,558 - DEBUG - Services list from nova: [