2026-01-08 18:10:59,137 - INFO - Domain Default found not creating
2026-01-08 18:10:59,295 - INFO - Project ctest-TestBasicPolicy-97538508 not found, creating it
2026-01-08 18:10:59,747 - INFO - Created Project:ctest-TestBasicPolicy-97538508, ID : df5abe29-e52f-477a-8982-3a681e0204f8
2026-01-08 18:11:01,207 - INFO - ================================================================================
2026-01-08 18:11:01,207 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-08 18:11:01,207 - 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-08 18:11:01,462 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-01-08 18:11:01,462 - INFO - Initial checks done. Running the testcase now
2026-01-08 18:11:01,462 - INFO -
2026-01-08 18:11:02,015 - DEBUG - Response for create_network : {'network': {'id': 'ba70dd29-c43a-41dd-86cd-97cab3cfd7c4', 'name': 'ctest-vn-17898650', 'tenant_id': 'df5abe29e52f477a89823a681e0204f8', 'project_id': 'df5abe29e52f477a89823a681e0204f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97538508', 'ctest-vn-17898650'], 'port_security_enabled': True, 'description': ''}}
2026-01-08 18:11:02,163 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c395884-26b3-4cdb-9833-a89d8ac7ddcf', 'name': '', 'tenant_id': 'df5abe29e52f477a89823a681e0204f8', 'network_id': 'ba70dd29-c43a-41dd-86cd-97cab3cfd7c4', 'ip_version': 4, 'cidr': '178.228.236.192/26', 'allocation_pools': [{'start': '178.228.236.194', 'end': '178.228.236.254'}], 'gateway_ip': '178.228.236.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.228.236.194', 'tags': [], 'project_id': 'df5abe29e52f477a89823a681e0204f8'}}
2026-01-08 18:11:02,179 - INFO - Created VN ctest-vn-17898650
2026-01-08 18:11:02,229 - DEBUG - VN ctest-vn-17898650 UUID is ba70dd29-c43a-41dd-86cd-97cab3cfd7c4
2026-01-08 18:11:02,498 - DEBUG - Response for create_network : {'network': {'id': '9d1cb9ce-a13f-4563-bcf2-ab6e99105836', 'name': 'ctest-vn-15043435', 'tenant_id': 'df5abe29e52f477a89823a681e0204f8', 'project_id': 'df5abe29e52f477a89823a681e0204f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97538508', 'ctest-vn-15043435'], 'port_security_enabled': True, 'description': ''}}
2026-01-08 18:11:02,649 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c1768f8-0061-48a6-8ffd-2b1f41ea9a6d', 'name': '', 'tenant_id': 'df5abe29e52f477a89823a681e0204f8', 'network_id': '9d1cb9ce-a13f-4563-bcf2-ab6e99105836', 'ip_version': 4, 'cidr': '7.84.116.0/26', 'allocation_pools': [{'start': '7.84.116.2', 'end': '7.84.116.62'}], 'gateway_ip': '7.84.116.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.84.116.2', 'tags': [], 'project_id': 'df5abe29e52f477a89823a681e0204f8'}}
2026-01-08 18:11:02,667 - INFO - Created VN ctest-vn-15043435
2026-01-08 18:11:02,721 - DEBUG - VN ctest-vn-15043435 UUID is 9d1cb9ce-a13f-4563-bcf2-ab6e99105836
2026-01-08 18:11:02,832 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97538508:ctest-vn-17898650, 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-97538508:ctest-vn-15043435, 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-08 18:11:03,132 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ba70dd29-c43a-41dd-86cd-97cab3cfd7c4', 'name': 'ctest-vn-17898650', 'tenant_id': 'df5abe29e52f477a89823a681e0204f8', 'project_id': 'df5abe29e52f477a89823a681e0204f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c395884-26b3-4cdb-9833-a89d8ac7ddcf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97538508', 'ctest-vn-17898650'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97538508', 'ctest-policy-allow-all-56394493']], 'subnet_ipam': [{'subnet_cidr': '178.228.236.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-08 18:11:03,419 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9d1cb9ce-a13f-4563-bcf2-ab6e99105836', 'name': 'ctest-vn-15043435', 'tenant_id': 'df5abe29e52f477a89823a681e0204f8', 'project_id': 'df5abe29e52f477a89823a681e0204f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4c1768f8-0061-48a6-8ffd-2b1f41ea9a6d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97538508', 'ctest-vn-15043435'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97538508', 'ctest-policy-allow-all-56394493']], 'subnet_ipam': [{'subnet_cidr': '7.84.116.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-08 18:11:03,569 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-08 18:11:03,868 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-08 18:11:03,899 - DEBUG - Requesting: http://10.0.0.38:8082/domain/380cee70-d5c3-41da-88d7-27d8a3a783af
2026-01-08 18:11:03,910 - DEBUG - Requesting: http://10.0.0.38:8082/project/df5abe29-e52f-477a-8982-3a681e0204f8
2026-01-08 18:11:03,981 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ba70dd29-c43a-41dd-86cd-97cab3cfd7c4
2026-01-08 18:11:03,990 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ba70dd29-c43a-41dd-86cd-97cab3cfd7c4
2026-01-08 18:11:03,998 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b4f3ecba-c674-4722-a54e-09ccebf98508
2026-01-08 18:11:04,003 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b4f3ecba-c674-4722-a54e-09ccebf98508
2026-01-08 18:11:04,009 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/05506624-ddac-45b8-b72c-03a33b705f54
2026-01-08 18:11:04,015 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-08 18:11:04,015 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ba70dd29-c43a-41dd-86cd-97cab3cfd7c4
2026-01-08 18:11:04,022 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b4f3ecba-c674-4722-a54e-09ccebf98508
2026-01-08 18:11:04,035 - INFO - Verified VN network id 12 for VN ba70dd29-c43a-41dd-86cd-97cab3cfd7c4
2026-01-08 18:11:04,035 - INFO - Verifications in API Server for VN ctest-vn-17898650 passed
2026-01-08 18:11:04,035 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ba70dd29-c43a-41dd-86cd-97cab3cfd7c4
2026-01-08 18:11:04,042 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b4f3ecba-c674-4722-a54e-09ccebf98508
2026-01-08 18:11:04,049 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b4f3ecba-c674-4722-a54e-09ccebf98508
2026-01-08 18:11:04,055 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/05506624-ddac-45b8-b72c-03a33b705f54
2026-01-08 18:11:04,065 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97538508:ctest-vn-17898650', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97538508', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13434480859901739485', 'uuid-lslong': '9713586868163958724'}, 'enable': 'true', 'created': '2026-01-08T18:11:01', 'last-modified': '2026-01-08T18:11:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953142'}
2026-01-08 18:11:04,071 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-08 18:11:04,071 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17898650 passed
2026-01-08 18:11:04,071 - DEBUG - ====Verifying policy data for ctest-vn-17898650 in API_Server ======
2026-01-08 18:11:04,071 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-08 18:11:04,076 - DEBUG - Requesting: http://10.0.0.38:8082/domain/380cee70-d5c3-41da-88d7-27d8a3a783af
2026-01-08 18:11:04,086 - DEBUG - Requesting: http://10.0.0.38:8082/project/df5abe29-e52f-477a-8982-3a681e0204f8
2026-01-08 18:11:04,157 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ba70dd29-c43a-41dd-86cd-97cab3cfd7c4
2026-01-08 18:11:04,164 - DEBUG - ==>Verifying data for policy with id: 14ac8372-8c99-49da-9ef2-01dc84aab277, fqn: ['default-domain', 'ctest-TestBasicPolicy-97538508', 'ctest-policy-allow-all-56394493']
2026-01-08 18:11:04,165 - INFO - VN ctest-vn-17898650 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-08 18:11:04,165 - DEBUG - Verifying the vn in opserver
2026-01-08 18:11:04,165 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97538508:ctest-vn-17898650 virtual network link through opserver 10.0.0.38
2026-01-08 18:11:04,165 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-08 18:11:04,470 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-08 18:11:04,541 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97538508:ctest-vn-17898650', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97538508:ctest-vn-17898650?flat'}
2026-01-08 18:11:04,541 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97538508:ctest-vn-17898650 is found in opserver
2026-01-08 18:11:04,550 - DEBUG - Do not have enough data to verify VN in agent
2026-01-08 18:11:04,554 - DEBUG - VRF ids for VN ctest-vn-17898650: {}
2026-01-08 18:11:04,554 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-08 18:11:04,559 - DEBUG - Requesting: http://10.0.0.38:8082/domain/380cee70-d5c3-41da-88d7-27d8a3a783af
2026-01-08 18:11:04,571 - DEBUG - Requesting: http://10.0.0.38:8082/project/df5abe29-e52f-477a-8982-3a681e0204f8
2026-01-08 18:11:04,647 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d1cb9ce-a13f-4563-bcf2-ab6e99105836
2026-01-08 18:11:04,660 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d1cb9ce-a13f-4563-bcf2-ab6e99105836
2026-01-08 18:11:04,671 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2081cbd0-5ab5-4316-907b-475d9d50f000
2026-01-08 18:11:04,679 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2081cbd0-5ab5-4316-907b-475d9d50f000
2026-01-08 18:11:04,686 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f74110c7-6a9c-47c1-b705-c59f9bda499b
2026-01-08 18:11:04,693 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-08 18:11:04,693 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d1cb9ce-a13f-4563-bcf2-ab6e99105836
2026-01-08 18:11:04,702 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2081cbd0-5ab5-4316-907b-475d9d50f000
2026-01-08 18:11:04,716 - INFO - Verified VN network id 13 for VN 9d1cb9ce-a13f-4563-bcf2-ab6e99105836
2026-01-08 18:11:04,716 - INFO - Verifications in API Server for VN ctest-vn-15043435 passed
2026-01-08 18:11:04,716 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d1cb9ce-a13f-4563-bcf2-ab6e99105836
2026-01-08 18:11:04,725 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2081cbd0-5ab5-4316-907b-475d9d50f000
2026-01-08 18:11:04,731 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2081cbd0-5ab5-4316-907b-475d9d50f000
2026-01-08 18:11:04,739 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f74110c7-6a9c-47c1-b705-c59f9bda499b
2026-01-08 18:11:04,749 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97538508:ctest-vn-15043435', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97538508', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11321127860422264163', 'uuid-lslong': '13615133114997168182'}, 'enable': 'true', 'created': '2026-01-08T18:11:02', 'last-modified': '2026-01-08T18:11:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.405128'}
2026-01-08 18:11:04,757 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-08 18:11:04,757 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15043435 passed
2026-01-08 18:11:04,757 - DEBUG - ====Verifying policy data for ctest-vn-15043435 in API_Server ======
2026-01-08 18:11:04,758 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-08 18:11:04,764 - DEBUG - Requesting: http://10.0.0.38:8082/domain/380cee70-d5c3-41da-88d7-27d8a3a783af
2026-01-08 18:11:04,776 - DEBUG - Requesting: http://10.0.0.38:8082/project/df5abe29-e52f-477a-8982-3a681e0204f8
2026-01-08 18:11:04,848 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d1cb9ce-a13f-4563-bcf2-ab6e99105836
2026-01-08 18:11:04,858 - DEBUG - ==>Verifying data for policy with id: 14ac8372-8c99-49da-9ef2-01dc84aab277, fqn: ['default-domain', 'ctest-TestBasicPolicy-97538508', 'ctest-policy-allow-all-56394493']
2026-01-08 18:11:04,858 - INFO - VN ctest-vn-15043435 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-08 18:11:04,858 - DEBUG - Verifying the vn in opserver
2026-01-08 18:11:04,858 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97538508:ctest-vn-15043435 virtual network link through opserver 10.0.0.38
2026-01-08 18:11:04,858 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-08 18:11:04,869 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97538508:ctest-vn-15043435', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97538508:ctest-vn-15043435?flat'}
2026-01-08 18:11:04,869 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97538508:ctest-vn-15043435 is found in opserver
2026-01-08 18:11:04,879 - DEBUG - Do not have enough data to verify VN in agent
2026-01-08 18:11:04,883 - DEBUG - VRF ids for VN ctest-vn-15043435: {}
2026-01-08 18:11:04,940 - DEBUG - Services list from nova: [