2025-12-08 22:45:33,153 - INFO - Domain Default found not creating
2025-12-08 22:45:33,303 - INFO - Project ctest-TestBasicPolicy-87921890 not found, creating it
2025-12-08 22:45:33,736 - INFO - Created Project:ctest-TestBasicPolicy-87921890, ID : 50685b71-ce48-4c45-b83b-0f96244a4b8b
2025-12-08 22:45:35,142 - INFO - ================================================================================
2025-12-08 22:45:35,143 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-08 22:45:35,143 - 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-12-08 22:45:35,396 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.25': '0'}} with
2025-12-08 22:45:35,396 - INFO - Initial checks done. Running the testcase now
2025-12-08 22:45:35,396 - INFO -
2025-12-08 22:45:35,917 - DEBUG - Response for create_network : {'network': {'id': '9fdb94b2-23d2-4bb8-8938-67d35f9a4b3a', 'name': 'ctest-vn-46670519', 'tenant_id': '50685b71ce484c45b83b0f96244a4b8b', 'project_id': '50685b71ce484c45b83b0f96244a4b8b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87921890', 'ctest-vn-46670519'], 'port_security_enabled': True, 'description': ''}}
2025-12-08 22:45:36,053 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ccbcf55b-d415-41ac-8132-c8ab2567fbe3', 'name': '', 'tenant_id': '50685b71ce484c45b83b0f96244a4b8b', 'network_id': '9fdb94b2-23d2-4bb8-8938-67d35f9a4b3a', 'ip_version': 4, 'cidr': '133.86.156.128/26', 'allocation_pools': [{'start': '133.86.156.130', 'end': '133.86.156.190'}], 'gateway_ip': '133.86.156.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.86.156.130', 'tags': [], 'project_id': '50685b71ce484c45b83b0f96244a4b8b'}}
2025-12-08 22:45:36,071 - INFO - Created VN ctest-vn-46670519
2025-12-08 22:45:36,123 - DEBUG - VN ctest-vn-46670519 UUID is 9fdb94b2-23d2-4bb8-8938-67d35f9a4b3a
2025-12-08 22:45:36,428 - DEBUG - Response for create_network : {'network': {'id': '58c0a944-ae26-4c0e-a334-2204223ae2ca', 'name': 'ctest-vn-39070715', 'tenant_id': '50685b71ce484c45b83b0f96244a4b8b', 'project_id': '50685b71ce484c45b83b0f96244a4b8b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87921890', 'ctest-vn-39070715'], 'port_security_enabled': True, 'description': ''}}
2025-12-08 22:45:36,600 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f00bc96-8666-4063-ae99-98c09e60eeee', 'name': '', 'tenant_id': '50685b71ce484c45b83b0f96244a4b8b', 'network_id': '58c0a944-ae26-4c0e-a334-2204223ae2ca', 'ip_version': 4, 'cidr': '136.123.191.0/26', 'allocation_pools': [{'start': '136.123.191.2', 'end': '136.123.191.62'}], 'gateway_ip': '136.123.191.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.123.191.2', 'tags': [], 'project_id': '50685b71ce484c45b83b0f96244a4b8b'}}
2025-12-08 22:45:36,614 - INFO - Created VN ctest-vn-39070715
2025-12-08 22:45:36,666 - DEBUG - VN ctest-vn-39070715 UUID is 58c0a944-ae26-4c0e-a334-2204223ae2ca
2025-12-08 22:45:36,810 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87921890:ctest-vn-46670519, 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-87921890:ctest-vn-39070715, 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-12-08 22:45:37,093 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9fdb94b2-23d2-4bb8-8938-67d35f9a4b3a', 'name': 'ctest-vn-46670519', 'tenant_id': '50685b71ce484c45b83b0f96244a4b8b', 'project_id': '50685b71ce484c45b83b0f96244a4b8b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ccbcf55b-d415-41ac-8132-c8ab2567fbe3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87921890', 'ctest-vn-46670519'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87921890', 'ctest-policy-allow-all-47749935']], 'subnet_ipam': [{'subnet_cidr': '133.86.156.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-08 22:45:37,345 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58c0a944-ae26-4c0e-a334-2204223ae2ca', 'name': 'ctest-vn-39070715', 'tenant_id': '50685b71ce484c45b83b0f96244a4b8b', 'project_id': '50685b71ce484c45b83b0f96244a4b8b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8f00bc96-8666-4063-ae99-98c09e60eeee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87921890', 'ctest-vn-39070715'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87921890', 'ctest-policy-allow-all-47749935']], 'subnet_ipam': [{'subnet_cidr': '136.123.191.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-08 22:45:37,492 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-08 22:45:37,789 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-08 22:45:37,816 - DEBUG - Requesting: http://10.0.0.33:8082/domain/740877dd-e386-4898-85dd-a8c4d4fb5efd
2025-12-08 22:45:37,827 - DEBUG - Requesting: http://10.0.0.33:8082/project/50685b71-ce48-4c45-b83b-0f96244a4b8b
2025-12-08 22:45:37,898 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9fdb94b2-23d2-4bb8-8938-67d35f9a4b3a
2025-12-08 22:45:37,909 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9fdb94b2-23d2-4bb8-8938-67d35f9a4b3a
2025-12-08 22:45:37,922 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/707d1b51-67b4-4ef2-9348-0967aa8067f1
2025-12-08 22:45:37,931 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/707d1b51-67b4-4ef2-9348-0967aa8067f1
2025-12-08 22:45:37,936 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d0b0899e-5740-4a64-82fa-4f009555987e
2025-12-08 22:45:37,941 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-08 22:45:37,941 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9fdb94b2-23d2-4bb8-8938-67d35f9a4b3a
2025-12-08 22:45:37,950 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/707d1b51-67b4-4ef2-9348-0967aa8067f1
2025-12-08 22:45:37,962 - INFO - Verified VN network id 12 for VN 9fdb94b2-23d2-4bb8-8938-67d35f9a4b3a
2025-12-08 22:45:37,962 - INFO - Verifications in API Server for VN ctest-vn-46670519 passed
2025-12-08 22:45:37,962 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9fdb94b2-23d2-4bb8-8938-67d35f9a4b3a
2025-12-08 22:45:37,970 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/707d1b51-67b4-4ef2-9348-0967aa8067f1
2025-12-08 22:45:37,976 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/707d1b51-67b4-4ef2-9348-0967aa8067f1
2025-12-08 22:45:37,981 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d0b0899e-5740-4a64-82fa-4f009555987e
2025-12-08 22:45:37,993 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87921890:ctest-vn-46670519', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87921890', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11518963964756249528', 'uuid-lslong': '9887767139431631674'}, 'enable': 'true', 'created': '2025-12-08T22:45:35', 'last-modified': '2025-12-08T22:45:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.919782'}
2025-12-08 22:45:37,999 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-08 22:45:37,999 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46670519 passed
2025-12-08 22:45:37,999 - DEBUG - ====Verifying policy data for ctest-vn-46670519 in API_Server ======
2025-12-08 22:45:37,999 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-08 22:45:38,005 - DEBUG - Requesting: http://10.0.0.33:8082/domain/740877dd-e386-4898-85dd-a8c4d4fb5efd
2025-12-08 22:45:38,013 - DEBUG - Requesting: http://10.0.0.33:8082/project/50685b71-ce48-4c45-b83b-0f96244a4b8b
2025-12-08 22:45:38,095 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9fdb94b2-23d2-4bb8-8938-67d35f9a4b3a
2025-12-08 22:45:38,102 - DEBUG - ==>Verifying data for policy with id: 5304a8d2-fc20-419e-b397-65aeda4ebfeb, fqn: ['default-domain', 'ctest-TestBasicPolicy-87921890', 'ctest-policy-allow-all-47749935']
2025-12-08 22:45:38,102 - INFO - VN ctest-vn-46670519 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-08 22:45:38,102 - DEBUG - Verifying the vn in opserver
2025-12-08 22:45:38,102 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87921890:ctest-vn-46670519 virtual network link through opserver 10.0.0.33
2025-12-08 22:45:38,103 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-12-08 22:45:38,395 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-12-08 22:45:38,445 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87921890:ctest-vn-46670519', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87921890:ctest-vn-46670519?flat'}
2025-12-08 22:45:38,445 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87921890:ctest-vn-46670519 is found in opserver
2025-12-08 22:45:38,455 - DEBUG - Do not have enough data to verify VN in agent
2025-12-08 22:45:38,460 - DEBUG - VRF ids for VN ctest-vn-46670519: {}
2025-12-08 22:45:38,460 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-08 22:45:38,465 - DEBUG - Requesting: http://10.0.0.33:8082/domain/740877dd-e386-4898-85dd-a8c4d4fb5efd
2025-12-08 22:45:38,479 - DEBUG - Requesting: http://10.0.0.33:8082/project/50685b71-ce48-4c45-b83b-0f96244a4b8b
2025-12-08 22:45:38,549 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/58c0a944-ae26-4c0e-a334-2204223ae2ca
2025-12-08 22:45:38,558 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/58c0a944-ae26-4c0e-a334-2204223ae2ca
2025-12-08 22:45:38,565 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/55302588-104d-4696-9b27-d1edfebd874c
2025-12-08 22:45:38,571 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/55302588-104d-4696-9b27-d1edfebd874c
2025-12-08 22:45:38,576 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8ed302a2-70e9-45a7-b90d-905b63c83040
2025-12-08 22:45:38,581 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-08 22:45:38,581 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/58c0a944-ae26-4c0e-a334-2204223ae2ca
2025-12-08 22:45:38,587 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/55302588-104d-4696-9b27-d1edfebd874c
2025-12-08 22:45:38,598 - INFO - Verified VN network id 13 for VN 58c0a944-ae26-4c0e-a334-2204223ae2ca
2025-12-08 22:45:38,598 - INFO - Verifications in API Server for VN ctest-vn-39070715 passed
2025-12-08 22:45:38,598 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/58c0a944-ae26-4c0e-a334-2204223ae2ca
2025-12-08 22:45:38,606 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/55302588-104d-4696-9b27-d1edfebd874c
2025-12-08 22:45:38,611 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/55302588-104d-4696-9b27-d1edfebd874c
2025-12-08 22:45:38,617 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8ed302a2-70e9-45a7-b90d-905b63c83040
2025-12-08 22:45:38,628 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87921890:ctest-vn-39070715', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87921890', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6395297583310720014', 'uuid-lslong': '11760061928120705738'}, 'enable': 'true', 'created': '2025-12-08T22:45:36', 'last-modified': '2025-12-08T22:45:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.343565'}
2025-12-08 22:45:38,633 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-08 22:45:38,633 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39070715 passed
2025-12-08 22:45:38,634 - DEBUG - ====Verifying policy data for ctest-vn-39070715 in API_Server ======
2025-12-08 22:45:38,634 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-08 22:45:38,639 - DEBUG - Requesting: http://10.0.0.33:8082/domain/740877dd-e386-4898-85dd-a8c4d4fb5efd
2025-12-08 22:45:38,647 - DEBUG - Requesting: http://10.0.0.33:8082/project/50685b71-ce48-4c45-b83b-0f96244a4b8b
2025-12-08 22:45:38,714 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/58c0a944-ae26-4c0e-a334-2204223ae2ca
2025-12-08 22:45:38,722 - DEBUG - ==>Verifying data for policy with id: 5304a8d2-fc20-419e-b397-65aeda4ebfeb, fqn: ['default-domain', 'ctest-TestBasicPolicy-87921890', 'ctest-policy-allow-all-47749935']
2025-12-08 22:45:38,722 - INFO - VN ctest-vn-39070715 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-08 22:45:38,722 - DEBUG - Verifying the vn in opserver
2025-12-08 22:45:38,722 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87921890:ctest-vn-39070715 virtual network link through opserver 10.0.0.33
2025-12-08 22:45:38,722 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-12-08 22:45:38,730 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87921890:ctest-vn-39070715', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87921890:ctest-vn-39070715?flat'}
2025-12-08 22:45:38,730 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87921890:ctest-vn-39070715 is found in opserver
2025-12-08 22:45:38,737 - DEBUG - Do not have enough data to verify VN in agent
2025-12-08 22:45:38,741 - DEBUG - VRF ids for VN ctest-vn-39070715: {}
2025-12-08 22:45:38,791 - DEBUG - Services list from nova: [