2025-10-06 16:11:51,796 - INFO - Domain Default found not creating
2025-10-06 16:11:51,958 - INFO - Project ctest-TestBasicPolicy-54531631 not found, creating it
2025-10-06 16:11:52,433 - INFO - Created Project:ctest-TestBasicPolicy-54531631, ID : 5d393cbe-4b07-4cae-920d-bdcdd0ead0cb
2025-10-06 16:11:53,912 - INFO - ================================================================================
2025-10-06 16:11:53,912 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-06 16:11:53,912 - 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-10-06 16:11:54,169 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-10-06 16:11:54,169 - INFO - Initial checks done. Running the testcase now
2025-10-06 16:11:54,169 - INFO -
2025-10-06 16:11:54,708 - DEBUG - Response for create_network : {'network': {'id': '019a2154-dca9-4bbe-955a-78a3b31bfd51', 'name': 'ctest-vn-45084593', 'tenant_id': '5d393cbe4b074cae920dbdcdd0ead0cb', 'project_id': '5d393cbe4b074cae920dbdcdd0ead0cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54531631', 'ctest-vn-45084593'], 'port_security_enabled': True, 'description': ''}}
2025-10-06 16:11:54,904 - DEBUG - Response for create_subnet : {'subnet': {'id': '7d6f1f2c-2681-424e-9835-0e537baa0988', 'name': '', 'tenant_id': '5d393cbe4b074cae920dbdcdd0ead0cb', 'network_id': '019a2154-dca9-4bbe-955a-78a3b31bfd51', 'ip_version': 4, 'cidr': '106.229.195.128/26', 'allocation_pools': [{'start': '106.229.195.130', 'end': '106.229.195.190'}], 'gateway_ip': '106.229.195.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.229.195.130', 'tags': [], 'project_id': '5d393cbe4b074cae920dbdcdd0ead0cb'}}
2025-10-06 16:11:54,924 - INFO - Created VN ctest-vn-45084593
2025-10-06 16:11:54,975 - DEBUG - VN ctest-vn-45084593 UUID is 019a2154-dca9-4bbe-955a-78a3b31bfd51
2025-10-06 16:11:55,285 - DEBUG - Response for create_network : {'network': {'id': '57b0846f-f405-491d-8502-e99c536e4109', 'name': 'ctest-vn-07047693', 'tenant_id': '5d393cbe4b074cae920dbdcdd0ead0cb', 'project_id': '5d393cbe4b074cae920dbdcdd0ead0cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54531631', 'ctest-vn-07047693'], 'port_security_enabled': True, 'description': ''}}
2025-10-06 16:11:55,437 - DEBUG - Response for create_subnet : {'subnet': {'id': '8551451c-e9b2-4c49-8025-f7a4c3d369f8', 'name': '', 'tenant_id': '5d393cbe4b074cae920dbdcdd0ead0cb', 'network_id': '57b0846f-f405-491d-8502-e99c536e4109', 'ip_version': 4, 'cidr': '41.54.186.192/26', 'allocation_pools': [{'start': '41.54.186.194', 'end': '41.54.186.254'}], 'gateway_ip': '41.54.186.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.54.186.194', 'tags': [], 'project_id': '5d393cbe4b074cae920dbdcdd0ead0cb'}}
2025-10-06 16:11:55,456 - INFO - Created VN ctest-vn-07047693
2025-10-06 16:11:55,511 - DEBUG - VN ctest-vn-07047693 UUID is 57b0846f-f405-491d-8502-e99c536e4109
2025-10-06 16:11:55,663 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54531631:ctest-vn-45084593, 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-54531631:ctest-vn-07047693, 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-10-06 16:11:55,953 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '019a2154-dca9-4bbe-955a-78a3b31bfd51', 'name': 'ctest-vn-45084593', 'tenant_id': '5d393cbe4b074cae920dbdcdd0ead0cb', 'project_id': '5d393cbe4b074cae920dbdcdd0ead0cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7d6f1f2c-2681-424e-9835-0e537baa0988'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54531631', 'ctest-vn-45084593'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54531631', 'ctest-policy-allow-all-04322226']], 'subnet_ipam': [{'subnet_cidr': '106.229.195.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-06 16:11:56,233 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '57b0846f-f405-491d-8502-e99c536e4109', 'name': 'ctest-vn-07047693', 'tenant_id': '5d393cbe4b074cae920dbdcdd0ead0cb', 'project_id': '5d393cbe4b074cae920dbdcdd0ead0cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8551451c-e9b2-4c49-8025-f7a4c3d369f8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54531631', 'ctest-vn-07047693'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54531631', 'ctest-policy-allow-all-04322226']], 'subnet_ipam': [{'subnet_cidr': '41.54.186.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-06 16:11:56,379 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-06 16:11:56,674 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-06 16:11:56,703 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4d3ba2d9-9eef-4910-a9c2-3a1aafdaccfe
2025-10-06 16:11:56,715 - DEBUG - Requesting: http://10.0.0.50:8082/project/5d393cbe-4b07-4cae-920d-bdcdd0ead0cb
2025-10-06 16:11:56,790 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/019a2154-dca9-4bbe-955a-78a3b31bfd51
2025-10-06 16:11:56,800 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/019a2154-dca9-4bbe-955a-78a3b31bfd51
2025-10-06 16:11:56,808 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bd19bb06-c2b4-48f2-8f4b-5f5d0194adfc
2025-10-06 16:11:56,815 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bd19bb06-c2b4-48f2-8f4b-5f5d0194adfc
2025-10-06 16:11:56,821 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ef440483-b02b-45ba-a9db-47b1035e2dda
2025-10-06 16:11:56,827 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-06 16:11:56,827 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/019a2154-dca9-4bbe-955a-78a3b31bfd51
2025-10-06 16:11:56,835 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bd19bb06-c2b4-48f2-8f4b-5f5d0194adfc
2025-10-06 16:11:56,848 - INFO - Verified VN network id 11 for VN 019a2154-dca9-4bbe-955a-78a3b31bfd51
2025-10-06 16:11:56,848 - INFO - Verifications in API Server for VN ctest-vn-45084593 passed
2025-10-06 16:11:56,848 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/019a2154-dca9-4bbe-955a-78a3b31bfd51
2025-10-06 16:11:56,857 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bd19bb06-c2b4-48f2-8f4b-5f5d0194adfc
2025-10-06 16:11:56,864 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bd19bb06-c2b4-48f2-8f4b-5f5d0194adfc
2025-10-06 16:11:56,871 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ef440483-b02b-45ba-a9db-47b1035e2dda
2025-10-06 16:11:56,884 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54531631:ctest-vn-45084593', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54531631', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '115441388814420926', 'uuid-lslong': '10762046904035179857'}, 'enable': 'true', 'created': '2025-10-06T16:11:54', 'last-modified': '2025-10-06T16:11:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.951309'}
2025-10-06 16:11:56,891 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-06 16:11:56,891 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45084593 passed
2025-10-06 16:11:56,891 - DEBUG - ====Verifying policy data for ctest-vn-45084593 in API_Server ======
2025-10-06 16:11:56,891 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-06 16:11:56,897 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4d3ba2d9-9eef-4910-a9c2-3a1aafdaccfe
2025-10-06 16:11:56,908 - DEBUG - Requesting: http://10.0.0.50:8082/project/5d393cbe-4b07-4cae-920d-bdcdd0ead0cb
2025-10-06 16:11:56,977 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/019a2154-dca9-4bbe-955a-78a3b31bfd51
2025-10-06 16:11:56,985 - DEBUG - ==>Verifying data for policy with id: 093a4afa-0b22-4e56-a2cb-e632b2158fa3, fqn: ['default-domain', 'ctest-TestBasicPolicy-54531631', 'ctest-policy-allow-all-04322226']
2025-10-06 16:11:56,985 - INFO - VN ctest-vn-45084593 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-06 16:11:56,985 - DEBUG - Verifying the vn in opserver
2025-10-06 16:11:56,985 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54531631:ctest-vn-45084593 virtual network link through opserver 10.0.0.50
2025-10-06 16:11:56,985 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-06 16:11:57,281 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-06 16:11:57,341 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54531631:ctest-vn-45084593', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54531631:ctest-vn-45084593?flat'}
2025-10-06 16:11:57,341 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54531631:ctest-vn-45084593 is found in opserver
2025-10-06 16:11:57,350 - DEBUG - Do not have enough data to verify VN in agent
2025-10-06 16:11:57,354 - DEBUG - VRF ids for VN ctest-vn-45084593: {}
2025-10-06 16:11:57,354 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-06 16:11:57,360 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4d3ba2d9-9eef-4910-a9c2-3a1aafdaccfe
2025-10-06 16:11:57,371 - DEBUG - Requesting: http://10.0.0.50:8082/project/5d393cbe-4b07-4cae-920d-bdcdd0ead0cb
2025-10-06 16:11:57,440 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/57b0846f-f405-491d-8502-e99c536e4109
2025-10-06 16:11:57,450 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/57b0846f-f405-491d-8502-e99c536e4109
2025-10-06 16:11:57,459 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/481f6c97-f2dc-41e6-b0b5-1917a069669f
2025-10-06 16:11:57,467 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/481f6c97-f2dc-41e6-b0b5-1917a069669f
2025-10-06 16:11:57,474 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a7e2d9bc-ee40-4e1d-83bf-83a18b729e5d
2025-10-06 16:11:57,481 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-06 16:11:57,481 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/57b0846f-f405-491d-8502-e99c536e4109
2025-10-06 16:11:57,490 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/481f6c97-f2dc-41e6-b0b5-1917a069669f
2025-10-06 16:11:57,504 - INFO - Verified VN network id 12 for VN 57b0846f-f405-491d-8502-e99c536e4109
2025-10-06 16:11:57,504 - INFO - Verifications in API Server for VN ctest-vn-07047693 passed
2025-10-06 16:11:57,504 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/57b0846f-f405-491d-8502-e99c536e4109
2025-10-06 16:11:57,512 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/481f6c97-f2dc-41e6-b0b5-1917a069669f
2025-10-06 16:11:57,518 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/481f6c97-f2dc-41e6-b0b5-1917a069669f
2025-10-06 16:11:57,525 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a7e2d9bc-ee40-4e1d-83bf-83a18b729e5d
2025-10-06 16:11:57,536 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54531631:ctest-vn-07047693', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54531631', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6318695893571029277', 'uuid-lslong': '9584479814621741321'}, 'enable': 'true', 'created': '2025-10-06T16:11:55', 'last-modified': '2025-10-06T16:11:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.374242'}
2025-10-06 16:11:57,542 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-06 16:11:57,542 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07047693 passed
2025-10-06 16:11:57,542 - DEBUG - ====Verifying policy data for ctest-vn-07047693 in API_Server ======
2025-10-06 16:11:57,542 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-06 16:11:57,547 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4d3ba2d9-9eef-4910-a9c2-3a1aafdaccfe
2025-10-06 16:11:57,557 - DEBUG - Requesting: http://10.0.0.50:8082/project/5d393cbe-4b07-4cae-920d-bdcdd0ead0cb
2025-10-06 16:11:57,626 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/57b0846f-f405-491d-8502-e99c536e4109
2025-10-06 16:11:57,636 - DEBUG - ==>Verifying data for policy with id: 093a4afa-0b22-4e56-a2cb-e632b2158fa3, fqn: ['default-domain', 'ctest-TestBasicPolicy-54531631', 'ctest-policy-allow-all-04322226']
2025-10-06 16:11:57,636 - INFO - VN ctest-vn-07047693 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-06 16:11:57,636 - DEBUG - Verifying the vn in opserver
2025-10-06 16:11:57,636 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54531631:ctest-vn-07047693 virtual network link through opserver 10.0.0.50
2025-10-06 16:11:57,636 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-06 16:11:57,645 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54531631:ctest-vn-07047693', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54531631:ctest-vn-07047693?flat'}
2025-10-06 16:11:57,645 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54531631:ctest-vn-07047693 is found in opserver
2025-10-06 16:11:57,656 - DEBUG - Do not have enough data to verify VN in agent
2025-10-06 16:11:57,661 - DEBUG - VRF ids for VN ctest-vn-07047693: {}
2025-10-06 16:11:57,725 - DEBUG - Services list from nova: [