2025-10-21 16:25:07,783 - INFO - Domain Default found not creating
2025-10-21 16:25:07,911 - INFO - Project ctest-TestBasicPolicy-56328184 not found, creating it
2025-10-21 16:25:08,360 - INFO - Created Project:ctest-TestBasicPolicy-56328184, ID : 65346929-4c3c-4d04-9735-23ab301c4be1
2025-10-21 16:25:09,693 - INFO - ================================================================================
2025-10-21 16:25:09,694 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-21 16:25:09,694 - 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-21 16:25:09,948 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with
2025-10-21 16:25:09,949 - INFO - Initial checks done. Running the testcase now
2025-10-21 16:25:09,949 - INFO -
2025-10-21 16:25:10,465 - DEBUG - Response for create_network : {'network': {'id': '7853e78f-2577-468b-b810-6be5dd9d4b9e', 'name': 'ctest-vn-65920429', 'tenant_id': '653469294c3c4d04973523ab301c4be1', 'project_id': '653469294c3c4d04973523ab301c4be1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56328184', 'ctest-vn-65920429'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 16:25:10,671 - DEBUG - Response for create_subnet : {'subnet': {'id': '532a5882-abf3-43df-aa68-d2e6dd07b6c0', 'name': '', 'tenant_id': '653469294c3c4d04973523ab301c4be1', 'network_id': '7853e78f-2577-468b-b810-6be5dd9d4b9e', 'ip_version': 4, 'cidr': '2.140.31.0/26', 'allocation_pools': [{'start': '2.140.31.2', 'end': '2.140.31.62'}], 'gateway_ip': '2.140.31.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.140.31.2', 'tags': [], 'project_id': '653469294c3c4d04973523ab301c4be1'}}
2025-10-21 16:25:10,685 - INFO - Created VN ctest-vn-65920429
2025-10-21 16:25:10,735 - DEBUG - VN ctest-vn-65920429 UUID is 7853e78f-2577-468b-b810-6be5dd9d4b9e
2025-10-21 16:25:11,023 - DEBUG - Response for create_network : {'network': {'id': '3a1a4095-58e7-43e3-9d68-d437cf1f00fa', 'name': 'ctest-vn-90504738', 'tenant_id': '653469294c3c4d04973523ab301c4be1', 'project_id': '653469294c3c4d04973523ab301c4be1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56328184', 'ctest-vn-90504738'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 16:25:11,171 - DEBUG - Response for create_subnet : {'subnet': {'id': '529ed128-f021-425c-a42a-6c04d7158b06', 'name': '', 'tenant_id': '653469294c3c4d04973523ab301c4be1', 'network_id': '3a1a4095-58e7-43e3-9d68-d437cf1f00fa', 'ip_version': 4, 'cidr': '9.169.119.64/26', 'allocation_pools': [{'start': '9.169.119.66', 'end': '9.169.119.126'}], 'gateway_ip': '9.169.119.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.169.119.66', 'tags': [], 'project_id': '653469294c3c4d04973523ab301c4be1'}}
2025-10-21 16:25:11,187 - INFO - Created VN ctest-vn-90504738
2025-10-21 16:25:11,243 - DEBUG - VN ctest-vn-90504738 UUID is 3a1a4095-58e7-43e3-9d68-d437cf1f00fa
2025-10-21 16:25:11,387 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56328184:ctest-vn-65920429, 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-56328184:ctest-vn-90504738, 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-21 16:25:11,670 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7853e78f-2577-468b-b810-6be5dd9d4b9e', 'name': 'ctest-vn-65920429', 'tenant_id': '653469294c3c4d04973523ab301c4be1', 'project_id': '653469294c3c4d04973523ab301c4be1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['532a5882-abf3-43df-aa68-d2e6dd07b6c0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56328184', 'ctest-vn-65920429'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56328184', 'ctest-policy-allow-all-57179362']], 'subnet_ipam': [{'subnet_cidr': '2.140.31.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 16:25:11,888 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3a1a4095-58e7-43e3-9d68-d437cf1f00fa', 'name': 'ctest-vn-90504738', 'tenant_id': '653469294c3c4d04973523ab301c4be1', 'project_id': '653469294c3c4d04973523ab301c4be1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['529ed128-f021-425c-a42a-6c04d7158b06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56328184', 'ctest-vn-90504738'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56328184', 'ctest-policy-allow-all-57179362']], 'subnet_ipam': [{'subnet_cidr': '9.169.119.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 16:25:12,051 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-21 16:25:12,339 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-21 16:25:12,363 - DEBUG - Requesting: http://10.0.0.242:8082/domain/5b25fb75-de48-4266-bd77-d5eed82093c5
2025-10-21 16:25:12,373 - DEBUG - Requesting: http://10.0.0.242:8082/project/65346929-4c3c-4d04-9735-23ab301c4be1
2025-10-21 16:25:12,444 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7853e78f-2577-468b-b810-6be5dd9d4b9e
2025-10-21 16:25:12,454 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7853e78f-2577-468b-b810-6be5dd9d4b9e
2025-10-21 16:25:12,461 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f0162752-eed6-44ec-a659-02a8e15387d2
2025-10-21 16:25:12,467 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f0162752-eed6-44ec-a659-02a8e15387d2
2025-10-21 16:25:12,472 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/4d1c5f75-fc35-46a0-81a8-e370d8b2b13b
2025-10-21 16:25:12,477 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 16:25:12,477 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7853e78f-2577-468b-b810-6be5dd9d4b9e
2025-10-21 16:25:12,483 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f0162752-eed6-44ec-a659-02a8e15387d2
2025-10-21 16:25:12,494 - INFO - Verified VN network id 12 for VN 7853e78f-2577-468b-b810-6be5dd9d4b9e
2025-10-21 16:25:12,494 - INFO - Verifications in API Server for VN ctest-vn-65920429 passed
2025-10-21 16:25:12,494 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7853e78f-2577-468b-b810-6be5dd9d4b9e
2025-10-21 16:25:12,501 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f0162752-eed6-44ec-a659-02a8e15387d2
2025-10-21 16:25:12,506 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f0162752-eed6-44ec-a659-02a8e15387d2
2025-10-21 16:25:12,510 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/4d1c5f75-fc35-46a0-81a8-e370d8b2b13b
2025-10-21 16:25:12,520 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56328184:ctest-vn-65920429', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56328184', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8670528309613250187', 'uuid-lslong': '13263219537615866782'}, 'enable': 'true', 'created': '2025-10-21T16:25:10', 'last-modified': '2025-10-21T16:25:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.869240'}
2025-10-21 16:25:12,525 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 16:25:12,525 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65920429 passed
2025-10-21 16:25:12,525 - DEBUG - ====Verifying policy data for ctest-vn-65920429 in API_Server ======
2025-10-21 16:25:12,525 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-21 16:25:12,529 - DEBUG - Requesting: http://10.0.0.242:8082/domain/5b25fb75-de48-4266-bd77-d5eed82093c5
2025-10-21 16:25:12,538 - DEBUG - Requesting: http://10.0.0.242:8082/project/65346929-4c3c-4d04-9735-23ab301c4be1
2025-10-21 16:25:12,603 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7853e78f-2577-468b-b810-6be5dd9d4b9e
2025-10-21 16:25:12,611 - DEBUG - ==>Verifying data for policy with id: 5efa50b2-153f-4ba0-9939-7bdcab4b2237, fqn: ['default-domain', 'ctest-TestBasicPolicy-56328184', 'ctest-policy-allow-all-57179362']
2025-10-21 16:25:12,612 - INFO - VN ctest-vn-65920429 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 16:25:12,612 - DEBUG - Verifying the vn in opserver
2025-10-21 16:25:12,612 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56328184:ctest-vn-65920429 virtual network link through opserver 10.0.0.242
2025-10-21 16:25:12,612 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-21 16:25:12,906 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-21 16:25:12,962 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56328184:ctest-vn-65920429', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56328184:ctest-vn-65920429?flat'}
2025-10-21 16:25:12,962 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56328184:ctest-vn-65920429 is found in opserver
2025-10-21 16:25:12,970 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 16:25:12,973 - DEBUG - VRF ids for VN ctest-vn-65920429: {}
2025-10-21 16:25:12,974 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-21 16:25:12,978 - DEBUG - Requesting: http://10.0.0.242:8082/domain/5b25fb75-de48-4266-bd77-d5eed82093c5
2025-10-21 16:25:12,987 - DEBUG - Requesting: http://10.0.0.242:8082/project/65346929-4c3c-4d04-9735-23ab301c4be1
2025-10-21 16:25:13,052 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3a1a4095-58e7-43e3-9d68-d437cf1f00fa
2025-10-21 16:25:13,062 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3a1a4095-58e7-43e3-9d68-d437cf1f00fa
2025-10-21 16:25:13,070 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7a3b8361-7a8f-4dc5-8e89-738e214c619c
2025-10-21 16:25:13,075 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7a3b8361-7a8f-4dc5-8e89-738e214c619c
2025-10-21 16:25:13,080 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/a23b2617-2152-4ce4-8588-1f42ecc8944b
2025-10-21 16:25:13,085 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 16:25:13,085 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3a1a4095-58e7-43e3-9d68-d437cf1f00fa
2025-10-21 16:25:13,092 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7a3b8361-7a8f-4dc5-8e89-738e214c619c
2025-10-21 16:25:13,102 - INFO - Verified VN network id 13 for VN 3a1a4095-58e7-43e3-9d68-d437cf1f00fa
2025-10-21 16:25:13,102 - INFO - Verifications in API Server for VN ctest-vn-90504738 passed
2025-10-21 16:25:13,102 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3a1a4095-58e7-43e3-9d68-d437cf1f00fa
2025-10-21 16:25:13,109 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7a3b8361-7a8f-4dc5-8e89-738e214c619c
2025-10-21 16:25:13,114 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7a3b8361-7a8f-4dc5-8e89-738e214c619c
2025-10-21 16:25:13,119 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/a23b2617-2152-4ce4-8588-1f42ecc8944b
2025-10-21 16:25:13,127 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56328184:ctest-vn-90504738', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56328184', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4186729813780153315', 'uuid-lslong': '11342548997695799546'}, 'enable': 'true', 'created': '2025-10-21T16:25:10', 'last-modified': '2025-10-21T16:25:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.258149'}
2025-10-21 16:25:13,132 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 16:25:13,132 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90504738 passed
2025-10-21 16:25:13,132 - DEBUG - ====Verifying policy data for ctest-vn-90504738 in API_Server ======
2025-10-21 16:25:13,132 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-21 16:25:13,136 - DEBUG - Requesting: http://10.0.0.242:8082/domain/5b25fb75-de48-4266-bd77-d5eed82093c5
2025-10-21 16:25:13,144 - DEBUG - Requesting: http://10.0.0.242:8082/project/65346929-4c3c-4d04-9735-23ab301c4be1
2025-10-21 16:25:13,209 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3a1a4095-58e7-43e3-9d68-d437cf1f00fa
2025-10-21 16:25:13,216 - DEBUG - ==>Verifying data for policy with id: 5efa50b2-153f-4ba0-9939-7bdcab4b2237, fqn: ['default-domain', 'ctest-TestBasicPolicy-56328184', 'ctest-policy-allow-all-57179362']
2025-10-21 16:25:13,216 - INFO - VN ctest-vn-90504738 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 16:25:13,216 - DEBUG - Verifying the vn in opserver
2025-10-21 16:25:13,216 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56328184:ctest-vn-90504738 virtual network link through opserver 10.0.0.242
2025-10-21 16:25:13,216 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-21 16:25:13,224 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56328184:ctest-vn-90504738', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56328184:ctest-vn-90504738?flat'}
2025-10-21 16:25:13,224 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56328184:ctest-vn-90504738 is found in opserver
2025-10-21 16:25:13,232 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 16:25:13,236 - DEBUG - VRF ids for VN ctest-vn-90504738: {}
2025-10-21 16:25:13,285 - DEBUG - Services list from nova: [