2026-06-19 23:04:56,171 - INFO - Domain Default found not creating
2026-06-19 23:04:56,314 - INFO - Project ctest-TestBasicPolicy-94989139 not found, creating it
2026-06-19 23:04:56,765 - INFO - Created Project:ctest-TestBasicPolicy-94989139, ID : 1b83cfab-744e-4b6c-b3e3-53704cebb522
2026-06-19 23:04:58,334 - INFO - ================================================================================
2026-06-19 23:04:58,334 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-19 23:04:58,334 - 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-06-19 23:04:58,589 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-06-19 23:04:58,589 - INFO - Initial checks done. Running the testcase now
2026-06-19 23:04:58,589 - INFO -
2026-06-19 23:04:59,189 - DEBUG - Response for create_network : {'network': {'id': '2e8781c3-34e1-42ed-932b-4f1090cfc433', 'name': 'ctest-vn-97375114', 'tenant_id': '1b83cfab744e4b6cb3e353704cebb522', 'project_id': '1b83cfab744e4b6cb3e353704cebb522', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94989139', 'ctest-vn-97375114'], 'port_security_enabled': True, 'description': ''}}
2026-06-19 23:04:59,393 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ecd6f367-d43b-49bf-8d0a-b031709fe7cf', 'name': '', 'tenant_id': '1b83cfab744e4b6cb3e353704cebb522', 'network_id': '2e8781c3-34e1-42ed-932b-4f1090cfc433', 'ip_version': 4, 'cidr': '60.22.29.64/26', 'allocation_pools': [{'start': '60.22.29.66', 'end': '60.22.29.126'}], 'gateway_ip': '60.22.29.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.22.29.66', 'tags': [], 'project_id': '1b83cfab744e4b6cb3e353704cebb522'}}
2026-06-19 23:04:59,406 - INFO - Created VN ctest-vn-97375114
2026-06-19 23:04:59,456 - DEBUG - VN ctest-vn-97375114 UUID is 2e8781c3-34e1-42ed-932b-4f1090cfc433
2026-06-19 23:04:59,762 - DEBUG - Response for create_network : {'network': {'id': 'abee5ec0-a928-4bde-9fb7-428444f54ab9', 'name': 'ctest-vn-44558085', 'tenant_id': '1b83cfab744e4b6cb3e353704cebb522', 'project_id': '1b83cfab744e4b6cb3e353704cebb522', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94989139', 'ctest-vn-44558085'], 'port_security_enabled': True, 'description': ''}}
2026-06-19 23:04:59,901 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb5e6b3c-49e7-4426-91fc-1060b51dbd76', 'name': '', 'tenant_id': '1b83cfab744e4b6cb3e353704cebb522', 'network_id': 'abee5ec0-a928-4bde-9fb7-428444f54ab9', 'ip_version': 4, 'cidr': '11.174.219.192/26', 'allocation_pools': [{'start': '11.174.219.194', 'end': '11.174.219.254'}], 'gateway_ip': '11.174.219.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.174.219.194', 'tags': [], 'project_id': '1b83cfab744e4b6cb3e353704cebb522'}}
2026-06-19 23:04:59,914 - INFO - Created VN ctest-vn-44558085
2026-06-19 23:04:59,968 - DEBUG - VN ctest-vn-44558085 UUID is abee5ec0-a928-4bde-9fb7-428444f54ab9
2026-06-19 23:05:00,116 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94989139:ctest-vn-97375114, 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-94989139:ctest-vn-44558085, 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-06-19 23:05:00,398 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e8781c3-34e1-42ed-932b-4f1090cfc433', 'name': 'ctest-vn-97375114', 'tenant_id': '1b83cfab744e4b6cb3e353704cebb522', 'project_id': '1b83cfab744e4b6cb3e353704cebb522', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ecd6f367-d43b-49bf-8d0a-b031709fe7cf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94989139', 'ctest-vn-97375114'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94989139', 'ctest-policy-allow-all-86516214']], 'subnet_ipam': [{'subnet_cidr': '60.22.29.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-19 23:05:00,669 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'abee5ec0-a928-4bde-9fb7-428444f54ab9', 'name': 'ctest-vn-44558085', 'tenant_id': '1b83cfab744e4b6cb3e353704cebb522', 'project_id': '1b83cfab744e4b6cb3e353704cebb522', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb5e6b3c-49e7-4426-91fc-1060b51dbd76'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94989139', 'ctest-vn-44558085'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94989139', 'ctest-policy-allow-all-86516214']], 'subnet_ipam': [{'subnet_cidr': '11.174.219.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-19 23:05:00,816 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-19 23:05:01,229 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-19 23:05:01,258 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7e804cfb-3ed2-487b-938a-b371f32b643d
2026-06-19 23:05:01,273 - DEBUG - Requesting: http://10.0.0.33:8082/project/1b83cfab-744e-4b6c-b3e3-53704cebb522
2026-06-19 23:05:01,343 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2e8781c3-34e1-42ed-932b-4f1090cfc433
2026-06-19 23:05:01,355 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2e8781c3-34e1-42ed-932b-4f1090cfc433
2026-06-19 23:05:01,363 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cb1758c2-1b35-4665-98c1-6487192d2573
2026-06-19 23:05:01,369 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cb1758c2-1b35-4665-98c1-6487192d2573
2026-06-19 23:05:01,375 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/270b0aa5-2e96-44f7-95db-e04bc59b7161
2026-06-19 23:05:01,380 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-19 23:05:01,381 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2e8781c3-34e1-42ed-932b-4f1090cfc433
2026-06-19 23:05:01,389 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cb1758c2-1b35-4665-98c1-6487192d2573
2026-06-19 23:05:01,403 - INFO - Verified VN network id 11 for VN 2e8781c3-34e1-42ed-932b-4f1090cfc433
2026-06-19 23:05:01,403 - INFO - Verifications in API Server for VN ctest-vn-97375114 passed
2026-06-19 23:05:01,403 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2e8781c3-34e1-42ed-932b-4f1090cfc433
2026-06-19 23:05:01,411 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cb1758c2-1b35-4665-98c1-6487192d2573
2026-06-19 23:05:01,417 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cb1758c2-1b35-4665-98c1-6487192d2573
2026-06-19 23:05:01,423 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/270b0aa5-2e96-44f7-95db-e04bc59b7161
2026-06-19 23:05:01,433 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94989139:ctest-vn-97375114', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94989139', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3352791123006407405', 'uuid-lslong': '10604656680141571123'}, 'enable': 'true', 'created': '2026-06-19T23:04:59', 'last-modified': '2026-06-19T23:05:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.055660'}
2026-06-19 23:05:01,439 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-19 23:05:01,439 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97375114 passed
2026-06-19 23:05:01,439 - DEBUG - ====Verifying policy data for ctest-vn-97375114 in API_Server ======
2026-06-19 23:05:01,439 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-19 23:05:01,444 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7e804cfb-3ed2-487b-938a-b371f32b643d
2026-06-19 23:05:01,454 - DEBUG - Requesting: http://10.0.0.33:8082/project/1b83cfab-744e-4b6c-b3e3-53704cebb522
2026-06-19 23:05:01,537 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2e8781c3-34e1-42ed-932b-4f1090cfc433
2026-06-19 23:05:01,546 - DEBUG - ==>Verifying data for policy with id: 72a63d40-7e85-4b62-b32c-57483aa36df1, fqn: ['default-domain', 'ctest-TestBasicPolicy-94989139', 'ctest-policy-allow-all-86516214']
2026-06-19 23:05:01,546 - INFO - VN ctest-vn-97375114 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-19 23:05:01,546 - DEBUG - Verifying the vn in opserver
2026-06-19 23:05:01,546 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94989139:ctest-vn-97375114 virtual network link through opserver 10.0.0.33
2026-06-19 23:05:01,546 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-06-19 23:05:01,912 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-06-19 23:05:01,966 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94989139:ctest-vn-97375114', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94989139:ctest-vn-97375114?flat'}
2026-06-19 23:05:01,966 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94989139:ctest-vn-97375114 is found in opserver
2026-06-19 23:05:01,978 - DEBUG - Do not have enough data to verify VN in agent
2026-06-19 23:05:01,985 - DEBUG - VRF ids for VN ctest-vn-97375114: {}
2026-06-19 23:05:01,985 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-19 23:05:01,991 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7e804cfb-3ed2-487b-938a-b371f32b643d
2026-06-19 23:05:02,001 - DEBUG - Requesting: http://10.0.0.33:8082/project/1b83cfab-744e-4b6c-b3e3-53704cebb522
2026-06-19 23:05:02,082 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/abee5ec0-a928-4bde-9fb7-428444f54ab9
2026-06-19 23:05:02,092 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/abee5ec0-a928-4bde-9fb7-428444f54ab9
2026-06-19 23:05:02,100 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6d6637d9-966b-4ccf-9e37-27619990d21c
2026-06-19 23:05:02,106 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6d6637d9-966b-4ccf-9e37-27619990d21c
2026-06-19 23:05:02,113 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/07f0d2a3-85f5-406b-be1a-3f7331be5769
2026-06-19 23:05:02,118 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-19 23:05:02,118 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/abee5ec0-a928-4bde-9fb7-428444f54ab9
2026-06-19 23:05:02,126 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6d6637d9-966b-4ccf-9e37-27619990d21c
2026-06-19 23:05:02,138 - INFO - Verified VN network id 12 for VN abee5ec0-a928-4bde-9fb7-428444f54ab9
2026-06-19 23:05:02,138 - INFO - Verifications in API Server for VN ctest-vn-44558085 passed
2026-06-19 23:05:02,138 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/abee5ec0-a928-4bde-9fb7-428444f54ab9
2026-06-19 23:05:02,145 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6d6637d9-966b-4ccf-9e37-27619990d21c
2026-06-19 23:05:02,151 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6d6637d9-966b-4ccf-9e37-27619990d21c
2026-06-19 23:05:02,156 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/07f0d2a3-85f5-406b-be1a-3f7331be5769
2026-06-19 23:05:02,165 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94989139:ctest-vn-44558085', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94989139', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12388943806507535326', 'uuid-lslong': '11508740508628634297'}, 'enable': 'true', 'created': '2026-06-19T23:04:59', 'last-modified': '2026-06-19T23:05:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.535793'}
2026-06-19 23:05:02,170 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-19 23:05:02,170 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44558085 passed
2026-06-19 23:05:02,171 - DEBUG - ====Verifying policy data for ctest-vn-44558085 in API_Server ======
2026-06-19 23:05:02,171 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-19 23:05:02,175 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7e804cfb-3ed2-487b-938a-b371f32b643d
2026-06-19 23:05:02,185 - DEBUG - Requesting: http://10.0.0.33:8082/project/1b83cfab-744e-4b6c-b3e3-53704cebb522
2026-06-19 23:05:02,262 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/abee5ec0-a928-4bde-9fb7-428444f54ab9
2026-06-19 23:05:02,274 - DEBUG - ==>Verifying data for policy with id: 72a63d40-7e85-4b62-b32c-57483aa36df1, fqn: ['default-domain', 'ctest-TestBasicPolicy-94989139', 'ctest-policy-allow-all-86516214']
2026-06-19 23:05:02,274 - INFO - VN ctest-vn-44558085 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-19 23:05:02,274 - DEBUG - Verifying the vn in opserver
2026-06-19 23:05:02,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94989139:ctest-vn-44558085 virtual network link through opserver 10.0.0.33
2026-06-19 23:05:02,274 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-06-19 23:05:02,283 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94989139:ctest-vn-44558085', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94989139:ctest-vn-44558085?flat'}
2026-06-19 23:05:02,284 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94989139:ctest-vn-44558085 is found in opserver
2026-06-19 23:05:02,296 - DEBUG - Do not have enough data to verify VN in agent
2026-06-19 23:05:02,302 - DEBUG - VRF ids for VN ctest-vn-44558085: {}
2026-06-19 23:05:02,360 - DEBUG - Services list from nova: [