2026-04-23 21:43:43,145 - INFO - Domain Default found not creating
2026-04-23 21:43:43,308 - INFO - Project ctest-TestBasicPolicy-66200471 not found, creating it
2026-04-23 21:43:43,811 - INFO - Created Project:ctest-TestBasicPolicy-66200471, ID : abc5399d-4525-445d-885f-02f283f2ca9b
2026-04-23 21:43:45,251 - INFO - ================================================================================
2026-04-23 21:43:45,251 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-23 21:43:45,251 - 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-04-23 21:43:45,508 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-04-23 21:43:45,508 - INFO - Initial checks done. Running the testcase now
2026-04-23 21:43:45,508 - INFO -
2026-04-23 21:43:46,030 - DEBUG - Response for create_network : {'network': {'id': 'ee288cb8-8c8f-47d1-b085-ad01d22a3d5d', 'name': 'ctest-vn-09028706', 'tenant_id': 'abc5399d4525445d885f02f283f2ca9b', 'project_id': 'abc5399d4525445d885f02f283f2ca9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66200471', 'ctest-vn-09028706'], 'port_security_enabled': True, 'description': ''}}
2026-04-23 21:43:46,193 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f16b3bf-2737-4487-bc32-ed0f29c3cd87', 'name': '', 'tenant_id': 'abc5399d4525445d885f02f283f2ca9b', 'network_id': 'ee288cb8-8c8f-47d1-b085-ad01d22a3d5d', 'ip_version': 4, 'cidr': '133.7.175.64/26', 'allocation_pools': [{'start': '133.7.175.66', 'end': '133.7.175.126'}], 'gateway_ip': '133.7.175.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.7.175.66', 'tags': [], 'project_id': 'abc5399d4525445d885f02f283f2ca9b'}}
2026-04-23 21:43:46,209 - INFO - Created VN ctest-vn-09028706
2026-04-23 21:43:46,259 - DEBUG - VN ctest-vn-09028706 UUID is ee288cb8-8c8f-47d1-b085-ad01d22a3d5d
2026-04-23 21:43:46,590 - DEBUG - Response for create_network : {'network': {'id': '98858138-1329-43b5-8ad8-79fbadf9a43d', 'name': 'ctest-vn-35861653', 'tenant_id': 'abc5399d4525445d885f02f283f2ca9b', 'project_id': 'abc5399d4525445d885f02f283f2ca9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66200471', 'ctest-vn-35861653'], 'port_security_enabled': True, 'description': ''}}
2026-04-23 21:43:46,755 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b37c0ff-fec4-4e4e-9302-214de7bd455e', 'name': '', 'tenant_id': 'abc5399d4525445d885f02f283f2ca9b', 'network_id': '98858138-1329-43b5-8ad8-79fbadf9a43d', 'ip_version': 4, 'cidr': '197.187.102.192/26', 'allocation_pools': [{'start': '197.187.102.194', 'end': '197.187.102.254'}], 'gateway_ip': '197.187.102.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.187.102.194', 'tags': [], 'project_id': 'abc5399d4525445d885f02f283f2ca9b'}}
2026-04-23 21:43:46,774 - INFO - Created VN ctest-vn-35861653
2026-04-23 21:43:46,827 - DEBUG - VN ctest-vn-35861653 UUID is 98858138-1329-43b5-8ad8-79fbadf9a43d
2026-04-23 21:43:46,971 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66200471:ctest-vn-09028706, 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-66200471:ctest-vn-35861653, 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-04-23 21:43:47,252 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ee288cb8-8c8f-47d1-b085-ad01d22a3d5d', 'name': 'ctest-vn-09028706', 'tenant_id': 'abc5399d4525445d885f02f283f2ca9b', 'project_id': 'abc5399d4525445d885f02f283f2ca9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f16b3bf-2737-4487-bc32-ed0f29c3cd87'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66200471', 'ctest-vn-09028706'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66200471', 'ctest-policy-allow-all-28397104']], 'subnet_ipam': [{'subnet_cidr': '133.7.175.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-23 21:43:47,481 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '98858138-1329-43b5-8ad8-79fbadf9a43d', 'name': 'ctest-vn-35861653', 'tenant_id': 'abc5399d4525445d885f02f283f2ca9b', 'project_id': 'abc5399d4525445d885f02f283f2ca9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b37c0ff-fec4-4e4e-9302-214de7bd455e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66200471', 'ctest-vn-35861653'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66200471', 'ctest-policy-allow-all-28397104']], 'subnet_ipam': [{'subnet_cidr': '197.187.102.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-23 21:43:47,647 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-23 21:43:47,950 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-23 21:43:47,980 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6ee3bd72-fd30-42cf-9cd5-2f93adf9b2a6
2026-04-23 21:43:47,990 - DEBUG - Requesting: http://10.0.0.33:8082/project/abc5399d-4525-445d-885f-02f283f2ca9b
2026-04-23 21:43:48,063 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ee288cb8-8c8f-47d1-b085-ad01d22a3d5d
2026-04-23 21:43:48,073 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ee288cb8-8c8f-47d1-b085-ad01d22a3d5d
2026-04-23 21:43:48,081 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/48a3c70a-9e2e-4226-86d0-c62f8654a121
2026-04-23 21:43:48,088 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/48a3c70a-9e2e-4226-86d0-c62f8654a121
2026-04-23 21:43:48,094 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9437bdb4-bf31-4bc6-bf16-257918d42586
2026-04-23 21:43:48,100 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-23 21:43:48,100 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ee288cb8-8c8f-47d1-b085-ad01d22a3d5d
2026-04-23 21:43:48,108 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/48a3c70a-9e2e-4226-86d0-c62f8654a121
2026-04-23 21:43:48,121 - INFO - Verified VN network id 11 for VN ee288cb8-8c8f-47d1-b085-ad01d22a3d5d
2026-04-23 21:43:48,121 - INFO - Verifications in API Server for VN ctest-vn-09028706 passed
2026-04-23 21:43:48,121 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ee288cb8-8c8f-47d1-b085-ad01d22a3d5d
2026-04-23 21:43:48,129 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/48a3c70a-9e2e-4226-86d0-c62f8654a121
2026-04-23 21:43:48,135 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/48a3c70a-9e2e-4226-86d0-c62f8654a121
2026-04-23 21:43:48,141 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9437bdb4-bf31-4bc6-bf16-257918d42586
2026-04-23 21:43:48,151 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66200471:ctest-vn-09028706', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66200471', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17161121104355346385', 'uuid-lslong': '12719762945910390109'}, 'enable': 'true', 'created': '2026-04-23T21:43:46', 'last-modified': '2026-04-23T21:43:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.908477'}
2026-04-23 21:43:48,158 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-23 21:43:48,158 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09028706 passed
2026-04-23 21:43:48,158 - DEBUG - ====Verifying policy data for ctest-vn-09028706 in API_Server ======
2026-04-23 21:43:48,158 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-23 21:43:48,163 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6ee3bd72-fd30-42cf-9cd5-2f93adf9b2a6
2026-04-23 21:43:48,173 - DEBUG - Requesting: http://10.0.0.33:8082/project/abc5399d-4525-445d-885f-02f283f2ca9b
2026-04-23 21:43:48,240 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ee288cb8-8c8f-47d1-b085-ad01d22a3d5d
2026-04-23 21:43:48,248 - DEBUG - ==>Verifying data for policy with id: e5781560-6afc-4dc7-8350-08fae10afeb8, fqn: ['default-domain', 'ctest-TestBasicPolicy-66200471', 'ctest-policy-allow-all-28397104']
2026-04-23 21:43:48,248 - INFO - VN ctest-vn-09028706 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-23 21:43:48,248 - DEBUG - Verifying the vn in opserver
2026-04-23 21:43:48,248 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66200471:ctest-vn-09028706 virtual network link through opserver 10.0.0.33
2026-04-23 21:43:48,248 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-23 21:43:48,539 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-23 21:43:48,598 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66200471:ctest-vn-09028706', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66200471:ctest-vn-09028706?flat'}
2026-04-23 21:43:48,598 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66200471:ctest-vn-09028706 is found in opserver
2026-04-23 21:43:48,607 - DEBUG - Do not have enough data to verify VN in agent
2026-04-23 21:43:48,611 - DEBUG - VRF ids for VN ctest-vn-09028706: {}
2026-04-23 21:43:48,612 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-23 21:43:48,616 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6ee3bd72-fd30-42cf-9cd5-2f93adf9b2a6
2026-04-23 21:43:48,626 - DEBUG - Requesting: http://10.0.0.33:8082/project/abc5399d-4525-445d-885f-02f283f2ca9b
2026-04-23 21:43:48,697 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/98858138-1329-43b5-8ad8-79fbadf9a43d
2026-04-23 21:43:48,707 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/98858138-1329-43b5-8ad8-79fbadf9a43d
2026-04-23 21:43:48,715 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a203b1ec-9475-4f81-868c-329869d3817c
2026-04-23 21:43:48,723 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a203b1ec-9475-4f81-868c-329869d3817c
2026-04-23 21:43:48,730 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6efcfc81-1d5c-4052-abaa-2a6d69de5928
2026-04-23 21:43:48,737 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-23 21:43:48,737 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/98858138-1329-43b5-8ad8-79fbadf9a43d
2026-04-23 21:43:48,747 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a203b1ec-9475-4f81-868c-329869d3817c
2026-04-23 21:43:48,762 - INFO - Verified VN network id 12 for VN 98858138-1329-43b5-8ad8-79fbadf9a43d
2026-04-23 21:43:48,762 - INFO - Verifications in API Server for VN ctest-vn-35861653 passed
2026-04-23 21:43:48,762 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/98858138-1329-43b5-8ad8-79fbadf9a43d
2026-04-23 21:43:48,771 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a203b1ec-9475-4f81-868c-329869d3817c
2026-04-23 21:43:48,777 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a203b1ec-9475-4f81-868c-329869d3817c
2026-04-23 21:43:48,783 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6efcfc81-1d5c-4052-abaa-2a6d69de5928
2026-04-23 21:43:48,797 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66200471:ctest-vn-35861653', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66200471', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10990332543507186613', 'uuid-lslong': '10004880694066127933'}, 'enable': 'true', 'created': '2026-04-23T21:43:46', 'last-modified': '2026-04-23T21:43:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.342176'}
2026-04-23 21:43:48,803 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-23 21:43:48,803 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35861653 passed
2026-04-23 21:43:48,803 - DEBUG - ====Verifying policy data for ctest-vn-35861653 in API_Server ======
2026-04-23 21:43:48,803 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-23 21:43:48,808 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6ee3bd72-fd30-42cf-9cd5-2f93adf9b2a6
2026-04-23 21:43:48,819 - DEBUG - Requesting: http://10.0.0.33:8082/project/abc5399d-4525-445d-885f-02f283f2ca9b
2026-04-23 21:43:48,887 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/98858138-1329-43b5-8ad8-79fbadf9a43d
2026-04-23 21:43:48,897 - DEBUG - ==>Verifying data for policy with id: e5781560-6afc-4dc7-8350-08fae10afeb8, fqn: ['default-domain', 'ctest-TestBasicPolicy-66200471', 'ctest-policy-allow-all-28397104']
2026-04-23 21:43:48,897 - INFO - VN ctest-vn-35861653 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-23 21:43:48,897 - DEBUG - Verifying the vn in opserver
2026-04-23 21:43:48,898 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66200471:ctest-vn-35861653 virtual network link through opserver 10.0.0.33
2026-04-23 21:43:48,898 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-23 21:43:48,907 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66200471:ctest-vn-35861653', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66200471:ctest-vn-35861653?flat'}
2026-04-23 21:43:48,907 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66200471:ctest-vn-35861653 is found in opserver
2026-04-23 21:43:48,916 - DEBUG - Do not have enough data to verify VN in agent
2026-04-23 21:43:48,920 - DEBUG - VRF ids for VN ctest-vn-35861653: {}
2026-04-23 21:43:48,974 - DEBUG - Services list from nova: [