2026-02-06 16:03:54,766 - INFO - Domain Default found not creating
2026-02-06 16:03:55,027 - INFO - Project ctest-TestBasicPolicy-46304766 not found, creating it
2026-02-06 16:03:55,622 - INFO - Created Project:ctest-TestBasicPolicy-46304766, ID : e9a8191f-906f-406a-8ac8-dbf25d1ea7ff
2026-02-06 16:03:57,761 - INFO - ================================================================================
2026-02-06 16:03:57,762 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-06 16:03:57,762 - 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-02-06 16:03:58,078 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-02-06 16:03:58,079 - INFO - Initial checks done. Running the testcase now
2026-02-06 16:03:58,079 - INFO -
2026-02-06 16:03:58,985 - DEBUG - Response for create_network : {'network': {'id': '18dfb898-d40e-4bac-ae72-e2ed8b184f27', 'name': 'ctest-vn-09452362', 'tenant_id': 'e9a8191f906f406a8ac8dbf25d1ea7ff', 'project_id': 'e9a8191f906f406a8ac8dbf25d1ea7ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46304766', 'ctest-vn-09452362'], 'port_security_enabled': True, 'description': ''}}
2026-02-06 16:03:59,155 - DEBUG - Response for create_subnet : {'subnet': {'id': '15dc535a-656e-4c48-bd39-a36b55e8608e', 'name': '', 'tenant_id': 'e9a8191f906f406a8ac8dbf25d1ea7ff', 'network_id': '18dfb898-d40e-4bac-ae72-e2ed8b184f27', 'ip_version': 4, 'cidr': '191.131.70.192/26', 'allocation_pools': [{'start': '191.131.70.194', 'end': '191.131.70.254'}], 'gateway_ip': '191.131.70.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.131.70.194', 'tags': [], 'project_id': 'e9a8191f906f406a8ac8dbf25d1ea7ff'}}
2026-02-06 16:03:59,171 - INFO - Created VN ctest-vn-09452362
2026-02-06 16:03:59,222 - DEBUG - VN ctest-vn-09452362 UUID is 18dfb898-d40e-4bac-ae72-e2ed8b184f27
2026-02-06 16:03:59,689 - DEBUG - Response for create_network : {'network': {'id': 'cd8b4eb5-2b5a-4c5d-b26c-bcdc3796f76a', 'name': 'ctest-vn-08802478', 'tenant_id': 'e9a8191f906f406a8ac8dbf25d1ea7ff', 'project_id': 'e9a8191f906f406a8ac8dbf25d1ea7ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46304766', 'ctest-vn-08802478'], 'port_security_enabled': True, 'description': ''}}
2026-02-06 16:03:59,924 - DEBUG - Response for create_subnet : {'subnet': {'id': '811ca736-80eb-4c95-bfe0-be55776158fb', 'name': '', 'tenant_id': 'e9a8191f906f406a8ac8dbf25d1ea7ff', 'network_id': 'cd8b4eb5-2b5a-4c5d-b26c-bcdc3796f76a', 'ip_version': 4, 'cidr': '101.232.87.64/26', 'allocation_pools': [{'start': '101.232.87.66', 'end': '101.232.87.126'}], 'gateway_ip': '101.232.87.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.232.87.66', 'tags': [], 'project_id': 'e9a8191f906f406a8ac8dbf25d1ea7ff'}}
2026-02-06 16:03:59,947 - INFO - Created VN ctest-vn-08802478
2026-02-06 16:04:00,007 - DEBUG - VN ctest-vn-08802478 UUID is cd8b4eb5-2b5a-4c5d-b26c-bcdc3796f76a
2026-02-06 16:04:00,140 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46304766:ctest-vn-09452362, 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-46304766:ctest-vn-08802478, 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-02-06 16:04:00,507 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '18dfb898-d40e-4bac-ae72-e2ed8b184f27', 'name': 'ctest-vn-09452362', 'tenant_id': 'e9a8191f906f406a8ac8dbf25d1ea7ff', 'project_id': 'e9a8191f906f406a8ac8dbf25d1ea7ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['15dc535a-656e-4c48-bd39-a36b55e8608e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46304766', 'ctest-vn-09452362'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46304766', 'ctest-policy-allow-all-33985216']], 'subnet_ipam': [{'subnet_cidr': '191.131.70.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-06 16:04:00,827 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd8b4eb5-2b5a-4c5d-b26c-bcdc3796f76a', 'name': 'ctest-vn-08802478', 'tenant_id': 'e9a8191f906f406a8ac8dbf25d1ea7ff', 'project_id': 'e9a8191f906f406a8ac8dbf25d1ea7ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['811ca736-80eb-4c95-bfe0-be55776158fb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46304766', 'ctest-vn-08802478'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46304766', 'ctest-policy-allow-all-33985216']], 'subnet_ipam': [{'subnet_cidr': '101.232.87.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-06 16:04:01,014 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-06 16:04:01,322 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-06 16:04:01,366 - DEBUG - Requesting: http://10.0.0.38:8082/domain/30264be5-7555-4ae9-a06d-0d029a729512
2026-02-06 16:04:01,398 - DEBUG - Requesting: http://10.0.0.38:8082/project/e9a8191f-906f-406a-8ac8-dbf25d1ea7ff
2026-02-06 16:04:01,518 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/18dfb898-d40e-4bac-ae72-e2ed8b184f27
2026-02-06 16:04:01,538 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/18dfb898-d40e-4bac-ae72-e2ed8b184f27
2026-02-06 16:04:01,561 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47959e08-befb-468b-9ef9-5fceeee186e7
2026-02-06 16:04:01,577 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47959e08-befb-468b-9ef9-5fceeee186e7
2026-02-06 16:04:01,594 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/75274c76-91c3-4bce-9f6f-12488c0e9a77
2026-02-06 16:04:01,615 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-06 16:04:01,615 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/18dfb898-d40e-4bac-ae72-e2ed8b184f27
2026-02-06 16:04:01,638 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47959e08-befb-468b-9ef9-5fceeee186e7
2026-02-06 16:04:01,668 - INFO - Verified VN network id 11 for VN 18dfb898-d40e-4bac-ae72-e2ed8b184f27
2026-02-06 16:04:01,668 - INFO - Verifications in API Server for VN ctest-vn-09452362 passed
2026-02-06 16:04:01,669 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/18dfb898-d40e-4bac-ae72-e2ed8b184f27
2026-02-06 16:04:01,691 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47959e08-befb-468b-9ef9-5fceeee186e7
2026-02-06 16:04:01,705 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47959e08-befb-468b-9ef9-5fceeee186e7
2026-02-06 16:04:01,725 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/75274c76-91c3-4bce-9f6f-12488c0e9a77
2026-02-06 16:04:01,764 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46304766:ctest-vn-09452362', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46304766', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1792354143248993196', 'uuid-lslong': '12570359019813228327'}, 'enable': 'true', 'created': '2026-02-06T16:03:58', 'last-modified': '2026-02-06T16:04:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.275713'}
2026-02-06 16:04:01,780 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-06 16:04:01,781 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09452362 passed
2026-02-06 16:04:01,781 - DEBUG - ====Verifying policy data for ctest-vn-09452362 in API_Server ======
2026-02-06 16:04:01,782 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-06 16:04:01,796 - DEBUG - Requesting: http://10.0.0.38:8082/domain/30264be5-7555-4ae9-a06d-0d029a729512
2026-02-06 16:04:01,829 - DEBUG - Requesting: http://10.0.0.38:8082/project/e9a8191f-906f-406a-8ac8-dbf25d1ea7ff
2026-02-06 16:04:01,954 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/18dfb898-d40e-4bac-ae72-e2ed8b184f27
2026-02-06 16:04:01,973 - DEBUG - ==>Verifying data for policy with id: bec9a266-b5e9-46a7-94b2-0c71dd9ada1c, fqn: ['default-domain', 'ctest-TestBasicPolicy-46304766', 'ctest-policy-allow-all-33985216']
2026-02-06 16:04:01,973 - INFO - VN ctest-vn-09452362 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-06 16:04:01,974 - DEBUG - Verifying the vn in opserver
2026-02-06 16:04:01,974 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46304766:ctest-vn-09452362 virtual network link through opserver 10.0.0.38
2026-02-06 16:04:01,974 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-06 16:04:02,310 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-06 16:04:02,392 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46304766:ctest-vn-09452362', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46304766:ctest-vn-09452362?flat'}
2026-02-06 16:04:02,392 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46304766:ctest-vn-09452362 is found in opserver
2026-02-06 16:04:02,410 - DEBUG - Do not have enough data to verify VN in agent
2026-02-06 16:04:02,415 - DEBUG - VRF ids for VN ctest-vn-09452362: {}
2026-02-06 16:04:02,415 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-06 16:04:02,423 - DEBUG - Requesting: http://10.0.0.38:8082/domain/30264be5-7555-4ae9-a06d-0d029a729512
2026-02-06 16:04:02,443 - DEBUG - Requesting: http://10.0.0.38:8082/project/e9a8191f-906f-406a-8ac8-dbf25d1ea7ff
2026-02-06 16:04:02,545 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cd8b4eb5-2b5a-4c5d-b26c-bcdc3796f76a
2026-02-06 16:04:02,570 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cd8b4eb5-2b5a-4c5d-b26c-bcdc3796f76a
2026-02-06 16:04:02,581 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/71126ded-8291-4339-9b60-cf6f70efdebc
2026-02-06 16:04:02,590 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/71126ded-8291-4339-9b60-cf6f70efdebc
2026-02-06 16:04:02,601 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f559c693-64d8-4e78-97c3-87f76a7c5e58
2026-02-06 16:04:02,612 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-06 16:04:02,612 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cd8b4eb5-2b5a-4c5d-b26c-bcdc3796f76a
2026-02-06 16:04:02,628 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/71126ded-8291-4339-9b60-cf6f70efdebc
2026-02-06 16:04:02,647 - INFO - Verified VN network id 12 for VN cd8b4eb5-2b5a-4c5d-b26c-bcdc3796f76a
2026-02-06 16:04:02,647 - INFO - Verifications in API Server for VN ctest-vn-08802478 passed
2026-02-06 16:04:02,647 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cd8b4eb5-2b5a-4c5d-b26c-bcdc3796f76a
2026-02-06 16:04:02,663 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/71126ded-8291-4339-9b60-cf6f70efdebc
2026-02-06 16:04:02,674 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/71126ded-8291-4339-9b60-cf6f70efdebc
2026-02-06 16:04:02,688 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f559c693-64d8-4e78-97c3-87f76a7c5e58
2026-02-06 16:04:02,704 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46304766:ctest-vn-08802478', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46304766', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14811018339561393245', 'uuid-lslong': '12856858690247391082'}, 'enable': 'true', 'created': '2026-02-06T16:03:59', 'last-modified': '2026-02-06T16:04:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.918584'}
2026-02-06 16:04:02,712 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-06 16:04:02,712 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08802478 passed
2026-02-06 16:04:02,712 - DEBUG - ====Verifying policy data for ctest-vn-08802478 in API_Server ======
2026-02-06 16:04:02,712 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-06 16:04:02,719 - DEBUG - Requesting: http://10.0.0.38:8082/domain/30264be5-7555-4ae9-a06d-0d029a729512
2026-02-06 16:04:02,736 - DEBUG - Requesting: http://10.0.0.38:8082/project/e9a8191f-906f-406a-8ac8-dbf25d1ea7ff
2026-02-06 16:04:02,816 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cd8b4eb5-2b5a-4c5d-b26c-bcdc3796f76a
2026-02-06 16:04:02,835 - DEBUG - ==>Verifying data for policy with id: bec9a266-b5e9-46a7-94b2-0c71dd9ada1c, fqn: ['default-domain', 'ctest-TestBasicPolicy-46304766', 'ctest-policy-allow-all-33985216']
2026-02-06 16:04:02,835 - INFO - VN ctest-vn-08802478 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-06 16:04:02,835 - DEBUG - Verifying the vn in opserver
2026-02-06 16:04:02,835 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46304766:ctest-vn-08802478 virtual network link through opserver 10.0.0.38
2026-02-06 16:04:02,835 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-06 16:04:02,854 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46304766:ctest-vn-08802478', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46304766:ctest-vn-08802478?flat'}
2026-02-06 16:04:02,854 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46304766:ctest-vn-08802478 is found in opserver
2026-02-06 16:04:02,875 - DEBUG - Do not have enough data to verify VN in agent
2026-02-06 16:04:02,881 - DEBUG - VRF ids for VN ctest-vn-08802478: {}
2026-02-06 16:04:03,019 - DEBUG - Services list from nova: [