2025-09-18 19:32:46,412 - INFO - Domain Default found not creating
2025-09-18 19:32:46,544 - INFO - Project ctest-TestBasicPolicy-21392151 not found, creating it
2025-09-18 19:32:46,997 - INFO - Created Project:ctest-TestBasicPolicy-21392151, ID : 1f4b1909-2533-48a6-8df7-4707752d62d1
2025-09-18 19:32:48,332 - INFO - ================================================================================
2025-09-18 19:32:48,332 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-18 19:32:48,332 - 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
2025-09-18 19:32:48,585 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-09-18 19:32:48,585 - INFO - Initial checks done. Running the testcase now
2025-09-18 19:32:48,585 - INFO -
2025-09-18 19:32:49,085 - DEBUG - Response for create_network : {'network': {'id': 'b459c595-32b1-4e7c-b577-71c957b2f8f7', 'name': 'ctest-vn-65545697', 'tenant_id': '1f4b1909253348a68df74707752d62d1', 'project_id': '1f4b1909253348a68df74707752d62d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21392151', 'ctest-vn-65545697'], 'port_security_enabled': True, 'description': ''}}
2025-09-18 19:32:49,308 - DEBUG - Response for create_subnet : {'subnet': {'id': '517fce38-2acc-416b-9c97-bef7fb8588c6', 'name': '', 'tenant_id': '1f4b1909253348a68df74707752d62d1', 'network_id': 'b459c595-32b1-4e7c-b577-71c957b2f8f7', 'ip_version': 4, 'cidr': '155.132.142.64/26', 'allocation_pools': [{'start': '155.132.142.66', 'end': '155.132.142.126'}], 'gateway_ip': '155.132.142.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.132.142.66', 'tags': [], 'project_id': '1f4b1909253348a68df74707752d62d1'}}
2025-09-18 19:32:49,323 - INFO - Created VN ctest-vn-65545697
2025-09-18 19:32:49,380 - DEBUG - VN ctest-vn-65545697 UUID is b459c595-32b1-4e7c-b577-71c957b2f8f7
2025-09-18 19:32:49,675 - DEBUG - Response for create_network : {'network': {'id': 'cf452e24-898a-4c12-9026-27b5794b1167', 'name': 'ctest-vn-16284030', 'tenant_id': '1f4b1909253348a68df74707752d62d1', 'project_id': '1f4b1909253348a68df74707752d62d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21392151', 'ctest-vn-16284030'], 'port_security_enabled': True, 'description': ''}}
2025-09-18 19:32:49,852 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f5e6318b-e8e9-478e-b1e6-66533893426e', 'name': '', 'tenant_id': '1f4b1909253348a68df74707752d62d1', 'network_id': 'cf452e24-898a-4c12-9026-27b5794b1167', 'ip_version': 4, 'cidr': '143.237.165.0/26', 'allocation_pools': [{'start': '143.237.165.2', 'end': '143.237.165.62'}], 'gateway_ip': '143.237.165.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.237.165.2', 'tags': [], 'project_id': '1f4b1909253348a68df74707752d62d1'}}
2025-09-18 19:32:49,867 - INFO - Created VN ctest-vn-16284030
2025-09-18 19:32:49,916 - DEBUG - VN ctest-vn-16284030 UUID is cf452e24-898a-4c12-9026-27b5794b1167
2025-09-18 19:32:50,060 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21392151:ctest-vn-65545697, 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-21392151:ctest-vn-16284030, 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]
2025-09-18 19:32:50,333 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b459c595-32b1-4e7c-b577-71c957b2f8f7', 'name': 'ctest-vn-65545697', 'tenant_id': '1f4b1909253348a68df74707752d62d1', 'project_id': '1f4b1909253348a68df74707752d62d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['517fce38-2acc-416b-9c97-bef7fb8588c6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21392151', 'ctest-vn-65545697'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21392151', 'ctest-policy-allow-all-49961299']], 'subnet_ipam': [{'subnet_cidr': '155.132.142.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-18 19:32:50,547 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf452e24-898a-4c12-9026-27b5794b1167', 'name': 'ctest-vn-16284030', 'tenant_id': '1f4b1909253348a68df74707752d62d1', 'project_id': '1f4b1909253348a68df74707752d62d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f5e6318b-e8e9-478e-b1e6-66533893426e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21392151', 'ctest-vn-16284030'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21392151', 'ctest-policy-allow-all-49961299']], 'subnet_ipam': [{'subnet_cidr': '143.237.165.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-18 19:32:50,712 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-18 19:32:50,998 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-18 19:32:51,023 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b2e4eef2-234a-403e-874f-6574d1def19b
2025-09-18 19:32:51,033 - DEBUG - Requesting: http://10.0.0.254:8082/project/1f4b1909-2533-48a6-8df7-4707752d62d1
2025-09-18 19:32:51,101 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b459c595-32b1-4e7c-b577-71c957b2f8f7
2025-09-18 19:32:51,110 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b459c595-32b1-4e7c-b577-71c957b2f8f7
2025-09-18 19:32:51,117 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca6d3fc7-761c-416b-a74f-da7f9de9cd22
2025-09-18 19:32:51,123 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca6d3fc7-761c-416b-a74f-da7f9de9cd22
2025-09-18 19:32:51,128 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/16da976d-9430-4f13-b0d1-b0adef25913b
2025-09-18 19:32:51,132 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-18 19:32:51,132 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b459c595-32b1-4e7c-b577-71c957b2f8f7
2025-09-18 19:32:51,140 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca6d3fc7-761c-416b-a74f-da7f9de9cd22
2025-09-18 19:32:51,152 - INFO - Verified VN network id 12 for VN b459c595-32b1-4e7c-b577-71c957b2f8f7
2025-09-18 19:32:51,152 - INFO - Verifications in API Server for VN ctest-vn-65545697 passed
2025-09-18 19:32:51,152 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b459c595-32b1-4e7c-b577-71c957b2f8f7
2025-09-18 19:32:51,159 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca6d3fc7-761c-416b-a74f-da7f9de9cd22
2025-09-18 19:32:51,164 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca6d3fc7-761c-416b-a74f-da7f9de9cd22
2025-09-18 19:32:51,170 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/16da976d-9430-4f13-b0d1-b0adef25913b
2025-09-18 19:32:51,179 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21392151:ctest-vn-65545697', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21392151', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12995635444345556604', 'uuid-lslong': '13076045152667236599'}, 'enable': 'true', 'created': '2025-09-18T19:32:49', 'last-modified': '2025-09-18T19:32:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.862632'}
2025-09-18 19:32:51,185 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-18 19:32:51,185 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65545697 passed
2025-09-18 19:32:51,185 - DEBUG - ====Verifying policy data for ctest-vn-65545697 in API_Server ======
2025-09-18 19:32:51,185 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-18 19:32:51,190 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b2e4eef2-234a-403e-874f-6574d1def19b
2025-09-18 19:32:51,198 - DEBUG - Requesting: http://10.0.0.254:8082/project/1f4b1909-2533-48a6-8df7-4707752d62d1
2025-09-18 19:32:51,263 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b459c595-32b1-4e7c-b577-71c957b2f8f7
2025-09-18 19:32:51,271 - DEBUG - ==>Verifying data for policy with id: d0ff21bd-5134-4b84-bbd6-27371a479aaa, fqn: ['default-domain', 'ctest-TestBasicPolicy-21392151', 'ctest-policy-allow-all-49961299']
2025-09-18 19:32:51,271 - INFO - VN ctest-vn-65545697 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-18 19:32:51,271 - DEBUG - Verifying the vn in opserver
2025-09-18 19:32:51,271 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21392151:ctest-vn-65545697 virtual network link through opserver 10.0.0.254
2025-09-18 19:32:51,271 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-18 19:32:51,560 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-18 19:32:51,608 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21392151:ctest-vn-65545697', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21392151:ctest-vn-65545697?flat'}
2025-09-18 19:32:51,608 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21392151:ctest-vn-65545697 is found in opserver
2025-09-18 19:32:51,616 - DEBUG - Do not have enough data to verify VN in agent
2025-09-18 19:32:51,620 - DEBUG - VRF ids for VN ctest-vn-65545697: {}
2025-09-18 19:32:51,620 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-18 19:32:51,624 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b2e4eef2-234a-403e-874f-6574d1def19b
2025-09-18 19:32:51,635 - DEBUG - Requesting: http://10.0.0.254:8082/project/1f4b1909-2533-48a6-8df7-4707752d62d1
2025-09-18 19:32:51,698 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cf452e24-898a-4c12-9026-27b5794b1167
2025-09-18 19:32:51,707 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cf452e24-898a-4c12-9026-27b5794b1167
2025-09-18 19:32:51,714 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/890e57d3-4f55-4f3c-a791-2a88e23c2f00
2025-09-18 19:32:51,720 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/890e57d3-4f55-4f3c-a791-2a88e23c2f00
2025-09-18 19:32:51,725 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0b769785-9c03-4075-bf40-96a52a1b7ab9
2025-09-18 19:32:51,731 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-18 19:32:51,731 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cf452e24-898a-4c12-9026-27b5794b1167
2025-09-18 19:32:51,738 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/890e57d3-4f55-4f3c-a791-2a88e23c2f00
2025-09-18 19:32:51,748 - INFO - Verified VN network id 13 for VN cf452e24-898a-4c12-9026-27b5794b1167
2025-09-18 19:32:51,748 - INFO - Verifications in API Server for VN ctest-vn-16284030 passed
2025-09-18 19:32:51,748 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cf452e24-898a-4c12-9026-27b5794b1167
2025-09-18 19:32:51,755 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/890e57d3-4f55-4f3c-a791-2a88e23c2f00
2025-09-18 19:32:51,760 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/890e57d3-4f55-4f3c-a791-2a88e23c2f00
2025-09-18 19:32:51,765 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0b769785-9c03-4075-bf40-96a52a1b7ab9
2025-09-18 19:32:51,773 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21392151:ctest-vn-16284030', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21392151', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14935394473705360402', 'uuid-lslong': '10387033250954154343'}, 'enable': 'true', 'created': '2025-09-18T19:32:49', 'last-modified': '2025-09-18T19:32:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.247163'}
2025-09-18 19:32:51,779 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-18 19:32:51,779 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16284030 passed
2025-09-18 19:32:51,779 - DEBUG - ====Verifying policy data for ctest-vn-16284030 in API_Server ======
2025-09-18 19:32:51,779 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-18 19:32:51,784 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b2e4eef2-234a-403e-874f-6574d1def19b
2025-09-18 19:32:51,793 - DEBUG - Requesting: http://10.0.0.254:8082/project/1f4b1909-2533-48a6-8df7-4707752d62d1
2025-09-18 19:32:51,859 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cf452e24-898a-4c12-9026-27b5794b1167
2025-09-18 19:32:51,867 - DEBUG - ==>Verifying data for policy with id: d0ff21bd-5134-4b84-bbd6-27371a479aaa, fqn: ['default-domain', 'ctest-TestBasicPolicy-21392151', 'ctest-policy-allow-all-49961299']
2025-09-18 19:32:51,867 - INFO - VN ctest-vn-16284030 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-18 19:32:51,867 - DEBUG - Verifying the vn in opserver
2025-09-18 19:32:51,867 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21392151:ctest-vn-16284030 virtual network link through opserver 10.0.0.254
2025-09-18 19:32:51,867 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-18 19:32:51,875 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21392151:ctest-vn-16284030', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21392151:ctest-vn-16284030?flat'}
2025-09-18 19:32:51,875 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21392151:ctest-vn-16284030 is found in opserver
2025-09-18 19:32:51,882 - DEBUG - Do not have enough data to verify VN in agent
2025-09-18 19:32:51,886 - DEBUG - VRF ids for VN ctest-vn-16284030: {}
2025-09-18 19:32:51,934 - DEBUG - Services list from nova: [