2026-10-06 15:06:51,514 - INFO - Domain Default found not creating
2026-10-06 15:06:51,666 - INFO - Project ctest-TestBasicPolicy-37615368 not found, creating it
2026-10-06 15:06:52,162 - INFO - Created Project:ctest-TestBasicPolicy-37615368, ID : 286c047e-6803-43af-85f8-f31bb6f9b047
2026-10-06 15:06:53,871 - INFO - ================================================================================
2026-10-06 15:06:53,871 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-10-06 15:06:53,872 - 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-10-06 15:06:54,124 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with
2026-10-06 15:06:54,124 - INFO - Initial checks done. Running the testcase now
2026-10-06 15:06:54,124 - INFO -
2026-10-06 15:06:54,746 - DEBUG - Response for create_network : {'network': {'id': 'a6635e4a-045b-4c7d-bc82-f14a5d54af8f', 'name': 'ctest-vn-18166797', 'tenant_id': '286c047e680343af85f8f31bb6f9b047', 'project_id': '286c047e680343af85f8f31bb6f9b047', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37615368', 'ctest-vn-18166797'], 'port_security_enabled': True, 'description': ''}}
2026-10-06 15:06:54,942 - DEBUG - Response for create_subnet : {'subnet': {'id': '211db07f-47cf-472d-8d43-4d30f877d676', 'name': '', 'tenant_id': '286c047e680343af85f8f31bb6f9b047', 'network_id': 'a6635e4a-045b-4c7d-bc82-f14a5d54af8f', 'ip_version': 4, 'cidr': '195.196.232.128/26', 'allocation_pools': [{'start': '195.196.232.130', 'end': '195.196.232.190'}], 'gateway_ip': '195.196.232.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.196.232.130', 'tags': [], 'project_id': '286c047e680343af85f8f31bb6f9b047'}}
2026-10-06 15:06:54,961 - INFO - Created VN ctest-vn-18166797
2026-10-06 15:06:55,011 - DEBUG - VN ctest-vn-18166797 UUID is a6635e4a-045b-4c7d-bc82-f14a5d54af8f
2026-10-06 15:06:55,288 - DEBUG - Response for create_network : {'network': {'id': 'bc87d2a0-e63a-4296-ad05-cf5a4c1c5d23', 'name': 'ctest-vn-38945892', 'tenant_id': '286c047e680343af85f8f31bb6f9b047', 'project_id': '286c047e680343af85f8f31bb6f9b047', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37615368', 'ctest-vn-38945892'], 'port_security_enabled': True, 'description': ''}}
2026-10-06 15:06:55,490 - DEBUG - Response for create_subnet : {'subnet': {'id': '870c8048-4038-4cbe-b655-7324bb7f1bc5', 'name': '', 'tenant_id': '286c047e680343af85f8f31bb6f9b047', 'network_id': 'bc87d2a0-e63a-4296-ad05-cf5a4c1c5d23', 'ip_version': 4, 'cidr': '146.72.138.192/26', 'allocation_pools': [{'start': '146.72.138.194', 'end': '146.72.138.254'}], 'gateway_ip': '146.72.138.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.72.138.194', 'tags': [], 'project_id': '286c047e680343af85f8f31bb6f9b047'}}
2026-10-06 15:06:55,511 - INFO - Created VN ctest-vn-38945892
2026-10-06 15:06:55,563 - DEBUG - VN ctest-vn-38945892 UUID is bc87d2a0-e63a-4296-ad05-cf5a4c1c5d23
2026-10-06 15:06:55,707 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37615368:ctest-vn-18166797, 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-37615368:ctest-vn-38945892, 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-10-06 15:06:56,000 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a6635e4a-045b-4c7d-bc82-f14a5d54af8f', 'name': 'ctest-vn-18166797', 'tenant_id': '286c047e680343af85f8f31bb6f9b047', 'project_id': '286c047e680343af85f8f31bb6f9b047', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['211db07f-47cf-472d-8d43-4d30f877d676'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37615368', 'ctest-vn-18166797'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37615368', 'ctest-policy-allow-all-99454844']], 'subnet_ipam': [{'subnet_cidr': '195.196.232.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-06 15:06:56,234 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bc87d2a0-e63a-4296-ad05-cf5a4c1c5d23', 'name': 'ctest-vn-38945892', 'tenant_id': '286c047e680343af85f8f31bb6f9b047', 'project_id': '286c047e680343af85f8f31bb6f9b047', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['870c8048-4038-4cbe-b655-7324bb7f1bc5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37615368', 'ctest-vn-38945892'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37615368', 'ctest-policy-allow-all-99454844']], 'subnet_ipam': [{'subnet_cidr': '146.72.138.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-06 15:06:56,403 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-10-06 15:06:56,766 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-10-06 15:06:56,797 - DEBUG - Requesting: http://10.0.0.161:8082/domain/97e6c99a-d20e-4ba5-9473-3e7a2aa785f2
2026-10-06 15:06:56,809 - DEBUG - Requesting: http://10.0.0.161:8082/project/286c047e-6803-43af-85f8-f31bb6f9b047
2026-10-06 15:06:56,884 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/a6635e4a-045b-4c7d-bc82-f14a5d54af8f
2026-10-06 15:06:56,897 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/a6635e4a-045b-4c7d-bc82-f14a5d54af8f
2026-10-06 15:06:56,907 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/82c0eade-1b59-434f-8fa8-e36790f15121
2026-10-06 15:06:56,914 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/82c0eade-1b59-434f-8fa8-e36790f15121
2026-10-06 15:06:56,921 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/b29b7de8-565b-4aae-8086-0e485a17e4d2
2026-10-06 15:06:56,928 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-06 15:06:56,928 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/a6635e4a-045b-4c7d-bc82-f14a5d54af8f
2026-10-06 15:06:56,937 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/82c0eade-1b59-434f-8fa8-e36790f15121
2026-10-06 15:06:56,950 - INFO - Verified VN network id 12 for VN a6635e4a-045b-4c7d-bc82-f14a5d54af8f
2026-10-06 15:06:56,950 - INFO - Verifications in API Server for VN ctest-vn-18166797 passed
2026-10-06 15:06:56,950 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/a6635e4a-045b-4c7d-bc82-f14a5d54af8f
2026-10-06 15:06:56,958 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/82c0eade-1b59-434f-8fa8-e36790f15121
2026-10-06 15:06:56,964 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/82c0eade-1b59-434f-8fa8-e36790f15121
2026-10-06 15:06:56,970 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/b29b7de8-565b-4aae-8086-0e485a17e4d2
2026-10-06 15:06:56,982 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37615368:ctest-vn-18166797', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37615368', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11989530304984075389', 'uuid-lslong': '13583684727798542223'}, 'enable': 'true', 'created': '2026-10-06T15:06:54', 'last-modified': '2026-10-06T15:06:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.006847'}
2026-10-06 15:06:56,988 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-06 15:06:56,989 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18166797 passed
2026-10-06 15:06:56,989 - DEBUG - ====Verifying policy data for ctest-vn-18166797 in API_Server ======
2026-10-06 15:06:56,989 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-10-06 15:06:56,994 - DEBUG - Requesting: http://10.0.0.161:8082/domain/97e6c99a-d20e-4ba5-9473-3e7a2aa785f2
2026-10-06 15:06:57,004 - DEBUG - Requesting: http://10.0.0.161:8082/project/286c047e-6803-43af-85f8-f31bb6f9b047
2026-10-06 15:06:57,073 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/a6635e4a-045b-4c7d-bc82-f14a5d54af8f
2026-10-06 15:06:57,084 - DEBUG - ==>Verifying data for policy with id: 51658d53-cef7-4b23-817c-a71053418b4e, fqn: ['default-domain', 'ctest-TestBasicPolicy-37615368', 'ctest-policy-allow-all-99454844']
2026-10-06 15:06:57,084 - INFO - VN ctest-vn-18166797 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-06 15:06:57,084 - DEBUG - Verifying the vn in opserver
2026-10-06 15:06:57,084 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37615368:ctest-vn-18166797 virtual network link through opserver 10.0.0.161
2026-10-06 15:06:57,085 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-10-06 15:06:57,451 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-10-06 15:06:57,501 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37615368:ctest-vn-18166797', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37615368:ctest-vn-18166797?flat'}
2026-10-06 15:06:57,501 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37615368:ctest-vn-18166797 is found in opserver
2026-10-06 15:06:57,511 - DEBUG - Do not have enough data to verify VN in agent
2026-10-06 15:06:57,515 - DEBUG - VRF ids for VN ctest-vn-18166797: {}
2026-10-06 15:06:57,515 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-10-06 15:06:57,521 - DEBUG - Requesting: http://10.0.0.161:8082/domain/97e6c99a-d20e-4ba5-9473-3e7a2aa785f2
2026-10-06 15:06:57,532 - DEBUG - Requesting: http://10.0.0.161:8082/project/286c047e-6803-43af-85f8-f31bb6f9b047
2026-10-06 15:06:57,606 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/bc87d2a0-e63a-4296-ad05-cf5a4c1c5d23
2026-10-06 15:06:57,619 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/bc87d2a0-e63a-4296-ad05-cf5a4c1c5d23
2026-10-06 15:06:57,631 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d01a56ce-5b60-47ff-84c3-c3722d457742
2026-10-06 15:06:57,640 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d01a56ce-5b60-47ff-84c3-c3722d457742
2026-10-06 15:06:57,648 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/6ed0d435-a4e7-4f2c-b0f1-e8d7eae1c197
2026-10-06 15:06:57,656 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-06 15:06:57,656 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/bc87d2a0-e63a-4296-ad05-cf5a4c1c5d23
2026-10-06 15:06:57,667 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d01a56ce-5b60-47ff-84c3-c3722d457742
2026-10-06 15:06:57,681 - INFO - Verified VN network id 13 for VN bc87d2a0-e63a-4296-ad05-cf5a4c1c5d23
2026-10-06 15:06:57,682 - INFO - Verifications in API Server for VN ctest-vn-38945892 passed
2026-10-06 15:06:57,682 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/bc87d2a0-e63a-4296-ad05-cf5a4c1c5d23
2026-10-06 15:06:57,691 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d01a56ce-5b60-47ff-84c3-c3722d457742
2026-10-06 15:06:57,699 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d01a56ce-5b60-47ff-84c3-c3722d457742
2026-10-06 15:06:57,707 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/6ed0d435-a4e7-4f2c-b0f1-e8d7eae1c197
2026-10-06 15:06:57,722 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37615368:ctest-vn-38945892', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37615368', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13585058389485568662', 'uuid-lslong': '12467599130176019747'}, 'enable': 'true', 'created': '2026-10-06T15:06:55', 'last-modified': '2026-10-06T15:06:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.508820'}
2026-10-06 15:06:57,730 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-06 15:06:57,730 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38945892 passed
2026-10-06 15:06:57,731 - DEBUG - ====Verifying policy data for ctest-vn-38945892 in API_Server ======
2026-10-06 15:06:57,731 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-10-06 15:06:57,738 - DEBUG - Requesting: http://10.0.0.161:8082/domain/97e6c99a-d20e-4ba5-9473-3e7a2aa785f2
2026-10-06 15:06:57,752 - DEBUG - Requesting: http://10.0.0.161:8082/project/286c047e-6803-43af-85f8-f31bb6f9b047
2026-10-06 15:06:57,835 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/bc87d2a0-e63a-4296-ad05-cf5a4c1c5d23
2026-10-06 15:06:57,847 - DEBUG - ==>Verifying data for policy with id: 51658d53-cef7-4b23-817c-a71053418b4e, fqn: ['default-domain', 'ctest-TestBasicPolicy-37615368', 'ctest-policy-allow-all-99454844']
2026-10-06 15:06:57,847 - INFO - VN ctest-vn-38945892 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-06 15:06:57,847 - DEBUG - Verifying the vn in opserver
2026-10-06 15:06:57,848 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37615368:ctest-vn-38945892 virtual network link through opserver 10.0.0.161
2026-10-06 15:06:57,848 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-10-06 15:06:57,859 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37615368:ctest-vn-38945892', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37615368:ctest-vn-38945892?flat'}
2026-10-06 15:06:57,859 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37615368:ctest-vn-38945892 is found in opserver
2026-10-06 15:06:57,869 - DEBUG - Do not have enough data to verify VN in agent
2026-10-06 15:06:57,875 - DEBUG - VRF ids for VN ctest-vn-38945892: {}
2026-10-06 15:06:57,934 - DEBUG - Services list from nova: [