2026-02-12 07:00:54,392 - INFO - Domain Default found not creating
2026-02-12 07:00:54,608 - INFO - Project ctest-TestBasicPolicy-41521439 not found, creating it
2026-02-12 07:00:55,099 - INFO - Created Project:ctest-TestBasicPolicy-41521439, ID : 646507c1-e05e-4702-8a8e-ef171ba613aa
2026-02-12 07:00:56,620 - INFO - ================================================================================
2026-02-12 07:00:56,621 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-12 07:00:56,621 - 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-02-12 07:00:56,875 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-02-12 07:00:56,875 - INFO - Initial checks done. Running the testcase now
2026-02-12 07:00:56,875 - INFO -
2026-02-12 07:00:57,434 - DEBUG - Response for create_network : {'network': {'id': '851d87ec-4f05-4b1f-894d-0139e75d469d', 'name': 'ctest-vn-85814173', 'tenant_id': '646507c1e05e47028a8eef171ba613aa', 'project_id': '646507c1e05e47028a8eef171ba613aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41521439', 'ctest-vn-85814173'], 'port_security_enabled': True, 'description': ''}}
2026-02-12 07:00:57,807 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a0c0675-4a20-48f8-a341-3633b88caff2', 'name': '', 'tenant_id': '646507c1e05e47028a8eef171ba613aa', 'network_id': '851d87ec-4f05-4b1f-894d-0139e75d469d', 'ip_version': 4, 'cidr': '214.158.3.0/26', 'allocation_pools': [{'start': '214.158.3.2', 'end': '214.158.3.62'}], 'gateway_ip': '214.158.3.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.158.3.2', 'tags': [], 'project_id': '646507c1e05e47028a8eef171ba613aa'}}
2026-02-12 07:00:57,831 - INFO - Created VN ctest-vn-85814173
2026-02-12 07:00:57,893 - DEBUG - VN ctest-vn-85814173 UUID is 851d87ec-4f05-4b1f-894d-0139e75d469d
2026-02-12 07:00:58,309 - DEBUG - Response for create_network : {'network': {'id': '6a078f30-5664-44ca-bf9d-1e762d76edae', 'name': 'ctest-vn-00174503', 'tenant_id': '646507c1e05e47028a8eef171ba613aa', 'project_id': '646507c1e05e47028a8eef171ba613aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41521439', 'ctest-vn-00174503'], 'port_security_enabled': True, 'description': ''}}
2026-02-12 07:00:58,530 - DEBUG - Response for create_subnet : {'subnet': {'id': '5045a0ed-2d26-44bd-bac1-0b111b43bedc', 'name': '', 'tenant_id': '646507c1e05e47028a8eef171ba613aa', 'network_id': '6a078f30-5664-44ca-bf9d-1e762d76edae', 'ip_version': 4, 'cidr': '167.74.214.192/26', 'allocation_pools': [{'start': '167.74.214.194', 'end': '167.74.214.254'}], 'gateway_ip': '167.74.214.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.74.214.194', 'tags': [], 'project_id': '646507c1e05e47028a8eef171ba613aa'}}
2026-02-12 07:00:58,549 - INFO - Created VN ctest-vn-00174503
2026-02-12 07:00:58,605 - DEBUG - VN ctest-vn-00174503 UUID is 6a078f30-5664-44ca-bf9d-1e762d76edae
2026-02-12 07:00:58,729 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41521439:ctest-vn-85814173, 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-41521439:ctest-vn-00174503, 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-02-12 07:00:59,067 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '851d87ec-4f05-4b1f-894d-0139e75d469d', 'name': 'ctest-vn-85814173', 'tenant_id': '646507c1e05e47028a8eef171ba613aa', 'project_id': '646507c1e05e47028a8eef171ba613aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5a0c0675-4a20-48f8-a341-3633b88caff2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41521439', 'ctest-vn-85814173'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41521439', 'ctest-policy-allow-all-03844794']], 'subnet_ipam': [{'subnet_cidr': '214.158.3.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-12 07:00:59,317 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a078f30-5664-44ca-bf9d-1e762d76edae', 'name': 'ctest-vn-00174503', 'tenant_id': '646507c1e05e47028a8eef171ba613aa', 'project_id': '646507c1e05e47028a8eef171ba613aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5045a0ed-2d26-44bd-bac1-0b111b43bedc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41521439', 'ctest-vn-00174503'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41521439', 'ctest-policy-allow-all-03844794']], 'subnet_ipam': [{'subnet_cidr': '167.74.214.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-12 07:00:59,489 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-12 07:00:59,797 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-12 07:00:59,839 - DEBUG - Requesting: http://10.0.0.50:8082/domain/93439f5f-2678-4600-8fc0-96dc3f30f684
2026-02-12 07:00:59,851 - DEBUG - Requesting: http://10.0.0.50:8082/project/646507c1-e05e-4702-8a8e-ef171ba613aa
2026-02-12 07:00:59,927 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/851d87ec-4f05-4b1f-894d-0139e75d469d
2026-02-12 07:00:59,940 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/851d87ec-4f05-4b1f-894d-0139e75d469d
2026-02-12 07:00:59,951 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c21a31a9-ab14-466d-a9d8-eab468ba2dcf
2026-02-12 07:00:59,960 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c21a31a9-ab14-466d-a9d8-eab468ba2dcf
2026-02-12 07:00:59,967 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f3da220d-f613-43c6-98d6-68e78529ec20
2026-02-12 07:00:59,973 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-12 07:00:59,974 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/851d87ec-4f05-4b1f-894d-0139e75d469d
2026-02-12 07:00:59,982 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c21a31a9-ab14-466d-a9d8-eab468ba2dcf
2026-02-12 07:01:00,005 - INFO - Verified VN network id 12 for VN 851d87ec-4f05-4b1f-894d-0139e75d469d
2026-02-12 07:01:00,006 - INFO - Verifications in API Server for VN ctest-vn-85814173 passed
2026-02-12 07:01:00,006 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/851d87ec-4f05-4b1f-894d-0139e75d469d
2026-02-12 07:01:00,017 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c21a31a9-ab14-466d-a9d8-eab468ba2dcf
2026-02-12 07:01:00,026 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c21a31a9-ab14-466d-a9d8-eab468ba2dcf
2026-02-12 07:01:00,034 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f3da220d-f613-43c6-98d6-68e78529ec20
2026-02-12 07:01:00,047 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41521439:ctest-vn-85814173', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41521439', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9591972230376803103', 'uuid-lslong': '9893565304609261213'}, 'enable': 'true', 'created': '2026-02-12T07:00:57', 'last-modified': '2026-02-12T07:00:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014164'}
2026-02-12 07:01:00,054 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-12 07:01:00,054 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85814173 passed
2026-02-12 07:01:00,055 - DEBUG - ====Verifying policy data for ctest-vn-85814173 in API_Server ======
2026-02-12 07:01:00,055 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-12 07:01:00,060 - DEBUG - Requesting: http://10.0.0.50:8082/domain/93439f5f-2678-4600-8fc0-96dc3f30f684
2026-02-12 07:01:00,073 - DEBUG - Requesting: http://10.0.0.50:8082/project/646507c1-e05e-4702-8a8e-ef171ba613aa
2026-02-12 07:01:00,150 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/851d87ec-4f05-4b1f-894d-0139e75d469d
2026-02-12 07:01:00,163 - DEBUG - ==>Verifying data for policy with id: 2bd04cd7-dd44-4de0-b93e-5773a7825893, fqn: ['default-domain', 'ctest-TestBasicPolicy-41521439', 'ctest-policy-allow-all-03844794']
2026-02-12 07:01:00,164 - INFO - VN ctest-vn-85814173 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-12 07:01:00,164 - DEBUG - Verifying the vn in opserver
2026-02-12 07:01:00,164 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41521439:ctest-vn-85814173 virtual network link through opserver 10.0.0.50
2026-02-12 07:01:00,164 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-12 07:01:00,464 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-12 07:01:00,534 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41521439:ctest-vn-85814173', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41521439:ctest-vn-85814173?flat'}
2026-02-12 07:01:00,535 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41521439:ctest-vn-85814173 is found in opserver
2026-02-12 07:01:00,545 - DEBUG - Do not have enough data to verify VN in agent
2026-02-12 07:01:00,551 - DEBUG - VRF ids for VN ctest-vn-85814173: {}
2026-02-12 07:01:00,551 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-12 07:01:00,557 - DEBUG - Requesting: http://10.0.0.50:8082/domain/93439f5f-2678-4600-8fc0-96dc3f30f684
2026-02-12 07:01:00,569 - DEBUG - Requesting: http://10.0.0.50:8082/project/646507c1-e05e-4702-8a8e-ef171ba613aa
2026-02-12 07:01:00,643 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a078f30-5664-44ca-bf9d-1e762d76edae
2026-02-12 07:01:00,657 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a078f30-5664-44ca-bf9d-1e762d76edae
2026-02-12 07:01:00,669 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/625586e4-438b-4c56-bae8-50b76315f2be
2026-02-12 07:01:00,677 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/625586e4-438b-4c56-bae8-50b76315f2be
2026-02-12 07:01:00,685 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c8082cc2-21e6-41a5-bdf7-465895ddb2a6
2026-02-12 07:01:00,693 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-12 07:01:00,693 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a078f30-5664-44ca-bf9d-1e762d76edae
2026-02-12 07:01:00,703 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/625586e4-438b-4c56-bae8-50b76315f2be
2026-02-12 07:01:00,720 - INFO - Verified VN network id 13 for VN 6a078f30-5664-44ca-bf9d-1e762d76edae
2026-02-12 07:01:00,720 - INFO - Verifications in API Server for VN ctest-vn-00174503 passed
2026-02-12 07:01:00,720 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a078f30-5664-44ca-bf9d-1e762d76edae
2026-02-12 07:01:00,730 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/625586e4-438b-4c56-bae8-50b76315f2be
2026-02-12 07:01:00,737 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/625586e4-438b-4c56-bae8-50b76315f2be
2026-02-12 07:01:00,745 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c8082cc2-21e6-41a5-bdf7-465895ddb2a6
2026-02-12 07:01:00,757 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41521439:ctest-vn-00174503', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41521439', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7640232730627949770', 'uuid-lslong': '13807225525505551790'}, 'enable': 'true', 'created': '2026-02-12T07:00:58', 'last-modified': '2026-02-12T07:00:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.464626'}
2026-02-12 07:01:00,764 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-12 07:01:00,764 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00174503 passed
2026-02-12 07:01:00,764 - DEBUG - ====Verifying policy data for ctest-vn-00174503 in API_Server ======
2026-02-12 07:01:00,764 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-12 07:01:00,770 - DEBUG - Requesting: http://10.0.0.50:8082/domain/93439f5f-2678-4600-8fc0-96dc3f30f684
2026-02-12 07:01:00,782 - DEBUG - Requesting: http://10.0.0.50:8082/project/646507c1-e05e-4702-8a8e-ef171ba613aa
2026-02-12 07:01:00,852 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a078f30-5664-44ca-bf9d-1e762d76edae
2026-02-12 07:01:00,865 - DEBUG - ==>Verifying data for policy with id: 2bd04cd7-dd44-4de0-b93e-5773a7825893, fqn: ['default-domain', 'ctest-TestBasicPolicy-41521439', 'ctest-policy-allow-all-03844794']
2026-02-12 07:01:00,865 - INFO - VN ctest-vn-00174503 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-12 07:01:00,865 - DEBUG - Verifying the vn in opserver
2026-02-12 07:01:00,865 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41521439:ctest-vn-00174503 virtual network link through opserver 10.0.0.50
2026-02-12 07:01:00,865 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-12 07:01:00,877 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41521439:ctest-vn-00174503', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41521439:ctest-vn-00174503?flat'}
2026-02-12 07:01:00,877 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41521439:ctest-vn-00174503 is found in opserver
2026-02-12 07:01:00,889 - DEBUG - Do not have enough data to verify VN in agent
2026-02-12 07:01:00,895 - DEBUG - VRF ids for VN ctest-vn-00174503: {}
2026-02-12 07:01:00,958 - DEBUG - Services list from nova: [