2025-11-13 11:04:00,942 - INFO - Domain Default found not creating
2025-11-13 11:04:01,118 - INFO - Project ctest-TestBasicPolicy-30295126 not found, creating it
2025-11-13 11:04:01,621 - INFO - Created Project:ctest-TestBasicPolicy-30295126, ID : 3f684e75-6f2f-43c1-9dbd-08708a1a5c89
2025-11-13 11:04:03,168 - INFO - ================================================================================
2025-11-13 11:04:03,168 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-13 11:04:03,168 - 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-11-13 11:04:03,423 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-11-13 11:04:03,423 - INFO - Initial checks done. Running the testcase now
2025-11-13 11:04:03,423 - INFO -
2025-11-13 11:04:03,986 - DEBUG - Response for create_network : {'network': {'id': 'cb5f4f96-ed1b-4e1a-b6a5-4cca5c67f832', 'name': 'ctest-vn-04560793', 'tenant_id': '3f684e756f2f43c19dbd08708a1a5c89', 'project_id': '3f684e756f2f43c19dbd08708a1a5c89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30295126', 'ctest-vn-04560793'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 11:04:04,203 - DEBUG - Response for create_subnet : {'subnet': {'id': '57c78b93-421f-4389-9e29-f234b53d477d', 'name': '', 'tenant_id': '3f684e756f2f43c19dbd08708a1a5c89', 'network_id': 'cb5f4f96-ed1b-4e1a-b6a5-4cca5c67f832', 'ip_version': 4, 'cidr': '159.249.229.128/26', 'allocation_pools': [{'start': '159.249.229.130', 'end': '159.249.229.190'}], 'gateway_ip': '159.249.229.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.249.229.130', 'tags': [], 'project_id': '3f684e756f2f43c19dbd08708a1a5c89'}}
2025-11-13 11:04:04,222 - INFO - Created VN ctest-vn-04560793
2025-11-13 11:04:04,274 - DEBUG - VN ctest-vn-04560793 UUID is cb5f4f96-ed1b-4e1a-b6a5-4cca5c67f832
2025-11-13 11:04:04,557 - DEBUG - Response for create_network : {'network': {'id': '922c93a2-0ba9-4935-83e0-64122ddb0d59', 'name': 'ctest-vn-38260011', 'tenant_id': '3f684e756f2f43c19dbd08708a1a5c89', 'project_id': '3f684e756f2f43c19dbd08708a1a5c89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30295126', 'ctest-vn-38260011'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 11:04:04,743 - DEBUG - Response for create_subnet : {'subnet': {'id': '11d26a8f-3b13-4873-bdb6-3362ef7c833c', 'name': '', 'tenant_id': '3f684e756f2f43c19dbd08708a1a5c89', 'network_id': '922c93a2-0ba9-4935-83e0-64122ddb0d59', 'ip_version': 4, 'cidr': '98.204.154.192/26', 'allocation_pools': [{'start': '98.204.154.194', 'end': '98.204.154.254'}], 'gateway_ip': '98.204.154.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.204.154.194', 'tags': [], 'project_id': '3f684e756f2f43c19dbd08708a1a5c89'}}
2025-11-13 11:04:04,759 - INFO - Created VN ctest-vn-38260011
2025-11-13 11:04:04,810 - DEBUG - VN ctest-vn-38260011 UUID is 922c93a2-0ba9-4935-83e0-64122ddb0d59
2025-11-13 11:04:04,966 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30295126:ctest-vn-04560793, 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-30295126:ctest-vn-38260011, 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-11-13 11:04:05,253 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cb5f4f96-ed1b-4e1a-b6a5-4cca5c67f832', 'name': 'ctest-vn-04560793', 'tenant_id': '3f684e756f2f43c19dbd08708a1a5c89', 'project_id': '3f684e756f2f43c19dbd08708a1a5c89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['57c78b93-421f-4389-9e29-f234b53d477d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30295126', 'ctest-vn-04560793'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30295126', 'ctest-policy-allow-all-49494052']], 'subnet_ipam': [{'subnet_cidr': '159.249.229.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 11:04:05,473 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '922c93a2-0ba9-4935-83e0-64122ddb0d59', 'name': 'ctest-vn-38260011', 'tenant_id': '3f684e756f2f43c19dbd08708a1a5c89', 'project_id': '3f684e756f2f43c19dbd08708a1a5c89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['11d26a8f-3b13-4873-bdb6-3362ef7c833c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30295126', 'ctest-vn-38260011'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30295126', 'ctest-policy-allow-all-49494052']], 'subnet_ipam': [{'subnet_cidr': '98.204.154.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 11:04:05,630 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-13 11:04:05,924 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-13 11:04:05,954 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3921acc6-de55-45a3-ac43-ed1ba5566efa
2025-11-13 11:04:05,966 - DEBUG - Requesting: http://10.0.0.50:8082/project/3f684e75-6f2f-43c1-9dbd-08708a1a5c89
2025-11-13 11:04:06,040 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cb5f4f96-ed1b-4e1a-b6a5-4cca5c67f832
2025-11-13 11:04:06,050 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cb5f4f96-ed1b-4e1a-b6a5-4cca5c67f832
2025-11-13 11:04:06,059 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e0cabdd6-76f9-4532-82d9-2a5ff7dc64ca
2025-11-13 11:04:06,066 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e0cabdd6-76f9-4532-82d9-2a5ff7dc64ca
2025-11-13 11:04:06,073 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d967002c-6c24-4cf9-a939-c15a45c9cb06
2025-11-13 11:04:06,079 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 11:04:06,079 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cb5f4f96-ed1b-4e1a-b6a5-4cca5c67f832
2025-11-13 11:04:06,088 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e0cabdd6-76f9-4532-82d9-2a5ff7dc64ca
2025-11-13 11:04:06,102 - INFO - Verified VN network id 11 for VN cb5f4f96-ed1b-4e1a-b6a5-4cca5c67f832
2025-11-13 11:04:06,102 - INFO - Verifications in API Server for VN ctest-vn-04560793 passed
2025-11-13 11:04:06,102 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cb5f4f96-ed1b-4e1a-b6a5-4cca5c67f832
2025-11-13 11:04:06,112 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e0cabdd6-76f9-4532-82d9-2a5ff7dc64ca
2025-11-13 11:04:06,119 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e0cabdd6-76f9-4532-82d9-2a5ff7dc64ca
2025-11-13 11:04:06,125 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d967002c-6c24-4cf9-a939-c15a45c9cb06
2025-11-13 11:04:06,138 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30295126:ctest-vn-04560793', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30295126', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14654519222128561690', 'uuid-lslong': '13161009918077564978'}, 'enable': 'true', 'created': '2025-11-13T11:04:03', 'last-modified': '2025-11-13T11:04:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.905972'}
2025-11-13 11:04:06,145 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 11:04:06,145 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04560793 passed
2025-11-13 11:04:06,146 - DEBUG - ====Verifying policy data for ctest-vn-04560793 in API_Server ======
2025-11-13 11:04:06,146 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-13 11:04:06,151 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3921acc6-de55-45a3-ac43-ed1ba5566efa
2025-11-13 11:04:06,163 - DEBUG - Requesting: http://10.0.0.50:8082/project/3f684e75-6f2f-43c1-9dbd-08708a1a5c89
2025-11-13 11:04:06,229 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cb5f4f96-ed1b-4e1a-b6a5-4cca5c67f832
2025-11-13 11:04:06,238 - DEBUG - ==>Verifying data for policy with id: e3fb2760-2df9-4f03-8f68-9a3b4c8b4a54, fqn: ['default-domain', 'ctest-TestBasicPolicy-30295126', 'ctest-policy-allow-all-49494052']
2025-11-13 11:04:06,238 - INFO - VN ctest-vn-04560793 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 11:04:06,238 - DEBUG - Verifying the vn in opserver
2025-11-13 11:04:06,238 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30295126:ctest-vn-04560793 virtual network link through opserver 10.0.0.50
2025-11-13 11:04:06,238 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-13 11:04:06,532 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-13 11:04:06,592 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30295126:ctest-vn-04560793', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30295126:ctest-vn-04560793?flat'}
2025-11-13 11:04:06,592 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30295126:ctest-vn-04560793 is found in opserver
2025-11-13 11:04:06,602 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 11:04:06,606 - DEBUG - VRF ids for VN ctest-vn-04560793: {}
2025-11-13 11:04:06,606 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-13 11:04:06,612 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3921acc6-de55-45a3-ac43-ed1ba5566efa
2025-11-13 11:04:06,623 - DEBUG - Requesting: http://10.0.0.50:8082/project/3f684e75-6f2f-43c1-9dbd-08708a1a5c89
2025-11-13 11:04:06,692 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/922c93a2-0ba9-4935-83e0-64122ddb0d59
2025-11-13 11:04:06,702 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/922c93a2-0ba9-4935-83e0-64122ddb0d59
2025-11-13 11:04:06,710 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1a248513-c4dd-498f-854c-275bf29b2e05
2025-11-13 11:04:06,717 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1a248513-c4dd-498f-854c-275bf29b2e05
2025-11-13 11:04:06,723 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5c7ee2e5-946c-427a-92e4-bd7495cdb2e4
2025-11-13 11:04:06,729 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 11:04:06,729 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/922c93a2-0ba9-4935-83e0-64122ddb0d59
2025-11-13 11:04:06,736 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1a248513-c4dd-498f-854c-275bf29b2e05
2025-11-13 11:04:06,747 - INFO - Verified VN network id 12 for VN 922c93a2-0ba9-4935-83e0-64122ddb0d59
2025-11-13 11:04:06,747 - INFO - Verifications in API Server for VN ctest-vn-38260011 passed
2025-11-13 11:04:06,748 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/922c93a2-0ba9-4935-83e0-64122ddb0d59
2025-11-13 11:04:06,755 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1a248513-c4dd-498f-854c-275bf29b2e05
2025-11-13 11:04:06,761 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1a248513-c4dd-498f-854c-275bf29b2e05
2025-11-13 11:04:06,767 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5c7ee2e5-946c-427a-92e4-bd7495cdb2e4
2025-11-13 11:04:06,777 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30295126:ctest-vn-38260011', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30295126', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10532955952702376245', 'uuid-lslong': '9502705242993266009'}, 'enable': 'true', 'created': '2025-11-13T11:04:04', 'last-modified': '2025-11-13T11:04:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.324967'}
2025-11-13 11:04:06,782 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 11:04:06,782 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38260011 passed
2025-11-13 11:04:06,782 - DEBUG - ====Verifying policy data for ctest-vn-38260011 in API_Server ======
2025-11-13 11:04:06,782 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-13 11:04:06,787 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3921acc6-de55-45a3-ac43-ed1ba5566efa
2025-11-13 11:04:06,796 - DEBUG - Requesting: http://10.0.0.50:8082/project/3f684e75-6f2f-43c1-9dbd-08708a1a5c89
2025-11-13 11:04:06,863 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/922c93a2-0ba9-4935-83e0-64122ddb0d59
2025-11-13 11:04:06,874 - DEBUG - ==>Verifying data for policy with id: e3fb2760-2df9-4f03-8f68-9a3b4c8b4a54, fqn: ['default-domain', 'ctest-TestBasicPolicy-30295126', 'ctest-policy-allow-all-49494052']
2025-11-13 11:04:06,874 - INFO - VN ctest-vn-38260011 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 11:04:06,874 - DEBUG - Verifying the vn in opserver
2025-11-13 11:04:06,874 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30295126:ctest-vn-38260011 virtual network link through opserver 10.0.0.50
2025-11-13 11:04:06,874 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-13 11:04:06,883 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30295126:ctest-vn-38260011', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30295126:ctest-vn-38260011?flat'}
2025-11-13 11:04:06,884 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30295126:ctest-vn-38260011 is found in opserver
2025-11-13 11:04:06,892 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 11:04:06,897 - DEBUG - VRF ids for VN ctest-vn-38260011: {}
2025-11-13 11:04:06,955 - DEBUG - Services list from nova: [