2026-04-06 02:03:58,186 - INFO - Domain Default found not creating
2026-04-06 02:03:58,335 - INFO - Project ctest-TestBasicPolicy-40598535 not found, creating it
2026-04-06 02:03:58,764 - INFO - Created Project:ctest-TestBasicPolicy-40598535, ID : c11cc8d4-e8b6-40f7-a95b-d30ef0e58c1a
2026-04-06 02:04:00,180 - INFO - ================================================================================
2026-04-06 02:04:00,180 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-06 02:04:00,180 - 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-06 02:04:00,443 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with
2026-04-06 02:04:00,443 - INFO - Initial checks done. Running the testcase now
2026-04-06 02:04:00,443 - INFO -
2026-04-06 02:04:00,985 - DEBUG - Response for create_network : {'network': {'id': '658d7233-0a7e-4ae3-8efc-5568af925455', 'name': 'ctest-vn-04954495', 'tenant_id': 'c11cc8d4e8b640f7a95bd30ef0e58c1a', 'project_id': 'c11cc8d4e8b640f7a95bd30ef0e58c1a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40598535', 'ctest-vn-04954495'], 'port_security_enabled': True, 'description': ''}}
2026-04-06 02:04:01,149 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b36ff06e-df9f-4e4b-8c40-107b48741721', 'name': '', 'tenant_id': 'c11cc8d4e8b640f7a95bd30ef0e58c1a', 'network_id': '658d7233-0a7e-4ae3-8efc-5568af925455', 'ip_version': 4, 'cidr': '147.16.110.0/26', 'allocation_pools': [{'start': '147.16.110.2', 'end': '147.16.110.62'}], 'gateway_ip': '147.16.110.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.16.110.2', 'tags': [], 'project_id': 'c11cc8d4e8b640f7a95bd30ef0e58c1a'}}
2026-04-06 02:04:01,165 - INFO - Created VN ctest-vn-04954495
2026-04-06 02:04:01,221 - DEBUG - VN ctest-vn-04954495 UUID is 658d7233-0a7e-4ae3-8efc-5568af925455
2026-04-06 02:04:01,537 - DEBUG - Response for create_network : {'network': {'id': '2b3e2b65-da4f-40fc-9abd-998a84c570ed', 'name': 'ctest-vn-40942687', 'tenant_id': 'c11cc8d4e8b640f7a95bd30ef0e58c1a', 'project_id': 'c11cc8d4e8b640f7a95bd30ef0e58c1a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40598535', 'ctest-vn-40942687'], 'port_security_enabled': True, 'description': ''}}
2026-04-06 02:04:01,740 - DEBUG - Response for create_subnet : {'subnet': {'id': '8aca4471-afdf-44f0-b09f-ba7cc267cd7d', 'name': '', 'tenant_id': 'c11cc8d4e8b640f7a95bd30ef0e58c1a', 'network_id': '2b3e2b65-da4f-40fc-9abd-998a84c570ed', 'ip_version': 4, 'cidr': '66.142.171.0/26', 'allocation_pools': [{'start': '66.142.171.2', 'end': '66.142.171.62'}], 'gateway_ip': '66.142.171.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.142.171.2', 'tags': [], 'project_id': 'c11cc8d4e8b640f7a95bd30ef0e58c1a'}}
2026-04-06 02:04:01,758 - INFO - Created VN ctest-vn-40942687
2026-04-06 02:04:01,809 - DEBUG - VN ctest-vn-40942687 UUID is 2b3e2b65-da4f-40fc-9abd-998a84c570ed
2026-04-06 02:04:01,961 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40598535:ctest-vn-04954495, 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-40598535:ctest-vn-40942687, 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-06 02:04:02,258 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '658d7233-0a7e-4ae3-8efc-5568af925455', 'name': 'ctest-vn-04954495', 'tenant_id': 'c11cc8d4e8b640f7a95bd30ef0e58c1a', 'project_id': 'c11cc8d4e8b640f7a95bd30ef0e58c1a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b36ff06e-df9f-4e4b-8c40-107b48741721'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40598535', 'ctest-vn-04954495'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40598535', 'ctest-policy-allow-all-01760101']], 'subnet_ipam': [{'subnet_cidr': '147.16.110.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-06 02:04:02,519 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2b3e2b65-da4f-40fc-9abd-998a84c570ed', 'name': 'ctest-vn-40942687', 'tenant_id': 'c11cc8d4e8b640f7a95bd30ef0e58c1a', 'project_id': 'c11cc8d4e8b640f7a95bd30ef0e58c1a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8aca4471-afdf-44f0-b09f-ba7cc267cd7d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40598535', 'ctest-vn-40942687'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40598535', 'ctest-policy-allow-all-01760101']], 'subnet_ipam': [{'subnet_cidr': '66.142.171.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-06 02:04:02,665 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-04-06 02:04:02,964 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-04-06 02:04:02,993 - DEBUG - Requesting: http://10.0.0.130:8082/domain/67cebe42-d453-484f-b0c8-017deef30ab7
2026-04-06 02:04:03,003 - DEBUG - Requesting: http://10.0.0.130:8082/project/c11cc8d4-e8b6-40f7-a95b-d30ef0e58c1a
2026-04-06 02:04:03,103 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/658d7233-0a7e-4ae3-8efc-5568af925455
2026-04-06 02:04:03,144 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/658d7233-0a7e-4ae3-8efc-5568af925455
2026-04-06 02:04:03,154 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c82b5e2e-fb7a-4c9c-94d8-20a89c5610fd
2026-04-06 02:04:03,169 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c82b5e2e-fb7a-4c9c-94d8-20a89c5610fd
2026-04-06 02:04:03,177 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/fac7026b-d12e-4ca4-8647-ba3e72d70639
2026-04-06 02:04:03,204 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-06 02:04:03,204 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/658d7233-0a7e-4ae3-8efc-5568af925455
2026-04-06 02:04:03,215 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c82b5e2e-fb7a-4c9c-94d8-20a89c5610fd
2026-04-06 02:04:03,228 - INFO - Verified VN network id 12 for VN 658d7233-0a7e-4ae3-8efc-5568af925455
2026-04-06 02:04:03,228 - INFO - Verifications in API Server for VN ctest-vn-04954495 passed
2026-04-06 02:04:03,228 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/658d7233-0a7e-4ae3-8efc-5568af925455
2026-04-06 02:04:03,236 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c82b5e2e-fb7a-4c9c-94d8-20a89c5610fd
2026-04-06 02:04:03,247 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c82b5e2e-fb7a-4c9c-94d8-20a89c5610fd
2026-04-06 02:04:03,260 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/fac7026b-d12e-4ca4-8647-ba3e72d70639
2026-04-06 02:04:03,271 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40598535:ctest-vn-04954495', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40598535', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7317630533091871459', 'uuid-lslong': '10303203955627414613'}, 'enable': 'true', 'created': '2026-04-06T02:04:00', 'last-modified': '2026-04-06T02:04:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.037915'}
2026-04-06 02:04:03,278 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-06 02:04:03,278 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04954495 passed
2026-04-06 02:04:03,279 - DEBUG - ====Verifying policy data for ctest-vn-04954495 in API_Server ======
2026-04-06 02:04:03,279 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-04-06 02:04:03,288 - DEBUG - Requesting: http://10.0.0.130:8082/domain/67cebe42-d453-484f-b0c8-017deef30ab7
2026-04-06 02:04:03,306 - DEBUG - Requesting: http://10.0.0.130:8082/project/c11cc8d4-e8b6-40f7-a95b-d30ef0e58c1a
2026-04-06 02:04:03,408 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/658d7233-0a7e-4ae3-8efc-5568af925455
2026-04-06 02:04:03,421 - DEBUG - ==>Verifying data for policy with id: 68ee9495-25ed-47a7-887e-75cca9d11520, fqn: ['default-domain', 'ctest-TestBasicPolicy-40598535', 'ctest-policy-allow-all-01760101']
2026-04-06 02:04:03,421 - INFO - VN ctest-vn-04954495 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-06 02:04:03,421 - DEBUG - Verifying the vn in opserver
2026-04-06 02:04:03,421 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40598535:ctest-vn-04954495 virtual network link through opserver 10.0.0.130
2026-04-06 02:04:03,422 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-04-06 02:04:03,736 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-04-06 02:04:03,795 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40598535:ctest-vn-04954495', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40598535:ctest-vn-04954495?flat'}
2026-04-06 02:04:03,795 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40598535:ctest-vn-04954495 is found in opserver
2026-04-06 02:04:03,804 - DEBUG - Do not have enough data to verify VN in agent
2026-04-06 02:04:03,808 - DEBUG - VRF ids for VN ctest-vn-04954495: {}
2026-04-06 02:04:03,808 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-04-06 02:04:03,813 - DEBUG - Requesting: http://10.0.0.130:8082/domain/67cebe42-d453-484f-b0c8-017deef30ab7
2026-04-06 02:04:03,823 - DEBUG - Requesting: http://10.0.0.130:8082/project/c11cc8d4-e8b6-40f7-a95b-d30ef0e58c1a
2026-04-06 02:04:03,896 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/2b3e2b65-da4f-40fc-9abd-998a84c570ed
2026-04-06 02:04:03,911 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/2b3e2b65-da4f-40fc-9abd-998a84c570ed
2026-04-06 02:04:03,924 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0ce036d0-200c-497e-bf8b-adc9ac84e9d2
2026-04-06 02:04:03,930 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0ce036d0-200c-497e-bf8b-adc9ac84e9d2
2026-04-06 02:04:03,936 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/22d9d4e7-231c-4ef3-9c85-79119e5a229f
2026-04-06 02:04:03,944 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-06 02:04:03,944 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/2b3e2b65-da4f-40fc-9abd-998a84c570ed
2026-04-06 02:04:03,952 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0ce036d0-200c-497e-bf8b-adc9ac84e9d2
2026-04-06 02:04:03,964 - INFO - Verified VN network id 13 for VN 2b3e2b65-da4f-40fc-9abd-998a84c570ed
2026-04-06 02:04:03,964 - INFO - Verifications in API Server for VN ctest-vn-40942687 passed
2026-04-06 02:04:03,964 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/2b3e2b65-da4f-40fc-9abd-998a84c570ed
2026-04-06 02:04:03,973 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0ce036d0-200c-497e-bf8b-adc9ac84e9d2
2026-04-06 02:04:03,980 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0ce036d0-200c-497e-bf8b-adc9ac84e9d2
2026-04-06 02:04:03,987 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/22d9d4e7-231c-4ef3-9c85-79119e5a229f
2026-04-06 02:04:03,999 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40598535:ctest-vn-40942687', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40598535', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3115975708641280252', 'uuid-lslong': '11150237072651284717'}, 'enable': 'true', 'created': '2026-04-06T02:04:01', 'last-modified': '2026-04-06T02:04:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.548652'}
2026-04-06 02:04:04,004 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-06 02:04:04,004 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40942687 passed
2026-04-06 02:04:04,004 - DEBUG - ====Verifying policy data for ctest-vn-40942687 in API_Server ======
2026-04-06 02:04:04,005 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-04-06 02:04:04,010 - DEBUG - Requesting: http://10.0.0.130:8082/domain/67cebe42-d453-484f-b0c8-017deef30ab7
2026-04-06 02:04:04,020 - DEBUG - Requesting: http://10.0.0.130:8082/project/c11cc8d4-e8b6-40f7-a95b-d30ef0e58c1a
2026-04-06 02:04:04,091 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/2b3e2b65-da4f-40fc-9abd-998a84c570ed
2026-04-06 02:04:04,099 - DEBUG - ==>Verifying data for policy with id: 68ee9495-25ed-47a7-887e-75cca9d11520, fqn: ['default-domain', 'ctest-TestBasicPolicy-40598535', 'ctest-policy-allow-all-01760101']
2026-04-06 02:04:04,099 - INFO - VN ctest-vn-40942687 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-06 02:04:04,099 - DEBUG - Verifying the vn in opserver
2026-04-06 02:04:04,099 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40598535:ctest-vn-40942687 virtual network link through opserver 10.0.0.130
2026-04-06 02:04:04,099 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-04-06 02:04:04,108 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40598535:ctest-vn-40942687', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40598535:ctest-vn-40942687?flat'}
2026-04-06 02:04:04,108 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40598535:ctest-vn-40942687 is found in opserver
2026-04-06 02:04:04,117 - DEBUG - Do not have enough data to verify VN in agent
2026-04-06 02:04:04,121 - DEBUG - VRF ids for VN ctest-vn-40942687: {}
2026-04-06 02:04:04,173 - DEBUG - Services list from nova: [