2025-06-21 16:53:23,444 - INFO - Domain Default found not creating
2025-06-21 16:53:23,604 - INFO - Project ctest-TestBasicPolicy-02516121 not found, creating it
2025-06-21 16:53:24,078 - INFO - Created Project:ctest-TestBasicPolicy-02516121, ID : 1dc0dc68-a006-4f11-89d2-a48dfb42e452
2025-06-21 16:53:25,560 - INFO - ================================================================================
2025-06-21 16:53:25,561 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-21 16:53:25,561 - 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-06-21 16:53:25,819 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-21 16:53:25,819 - INFO - Initial checks done. Running the testcase now
2025-06-21 16:53:25,819 - INFO -
2025-06-21 16:53:26,427 - DEBUG - Response for create_network : {'network': {'id': 'e746d45e-717d-43c4-a90b-6a08240580e9', 'name': 'ctest-vn-89368261', 'tenant_id': '1dc0dc68a0064f1189d2a48dfb42e452', 'project_id': '1dc0dc68a0064f1189d2a48dfb42e452', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02516121', 'ctest-vn-89368261'], 'port_security_enabled': True, 'description': ''}}
2025-06-21 16:53:26,629 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d1dc9ca-cea0-42e6-b1ca-3c1cd6e58d7b', 'name': '', 'tenant_id': '1dc0dc68a0064f1189d2a48dfb42e452', 'network_id': 'e746d45e-717d-43c4-a90b-6a08240580e9', 'ip_version': 4, 'cidr': '140.59.143.0/26', 'allocation_pools': [{'start': '140.59.143.2', 'end': '140.59.143.62'}], 'gateway_ip': '140.59.143.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.59.143.2', 'tags': [], 'project_id': '1dc0dc68a0064f1189d2a48dfb42e452'}}
2025-06-21 16:53:26,646 - INFO - Created VN ctest-vn-89368261
2025-06-21 16:53:26,701 - DEBUG - VN ctest-vn-89368261 UUID is e746d45e-717d-43c4-a90b-6a08240580e9
2025-06-21 16:53:27,040 - DEBUG - Response for create_network : {'network': {'id': '04235078-f04a-48fe-892e-f0a2c449dc44', 'name': 'ctest-vn-74340017', 'tenant_id': '1dc0dc68a0064f1189d2a48dfb42e452', 'project_id': '1dc0dc68a0064f1189d2a48dfb42e452', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02516121', 'ctest-vn-74340017'], 'port_security_enabled': True, 'description': ''}}
2025-06-21 16:53:27,284 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c89ffcaa-2cff-4586-a14e-fa72a1c379ea', 'name': '', 'tenant_id': '1dc0dc68a0064f1189d2a48dfb42e452', 'network_id': '04235078-f04a-48fe-892e-f0a2c449dc44', 'ip_version': 4, 'cidr': '196.236.195.0/26', 'allocation_pools': [{'start': '196.236.195.2', 'end': '196.236.195.62'}], 'gateway_ip': '196.236.195.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.236.195.2', 'tags': [], 'project_id': '1dc0dc68a0064f1189d2a48dfb42e452'}}
2025-06-21 16:53:27,306 - INFO - Created VN ctest-vn-74340017
2025-06-21 16:53:27,361 - DEBUG - VN ctest-vn-74340017 UUID is 04235078-f04a-48fe-892e-f0a2c449dc44
2025-06-21 16:53:27,474 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02516121:ctest-vn-89368261, 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-02516121:ctest-vn-74340017, 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-06-21 16:53:27,817 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e746d45e-717d-43c4-a90b-6a08240580e9', 'name': 'ctest-vn-89368261', 'tenant_id': '1dc0dc68a0064f1189d2a48dfb42e452', 'project_id': '1dc0dc68a0064f1189d2a48dfb42e452', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5d1dc9ca-cea0-42e6-b1ca-3c1cd6e58d7b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02516121', 'ctest-vn-89368261'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02516121', 'ctest-policy-allow-all-41132398']], 'subnet_ipam': [{'subnet_cidr': '140.59.143.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-21 16:53:28,125 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '04235078-f04a-48fe-892e-f0a2c449dc44', 'name': 'ctest-vn-74340017', 'tenant_id': '1dc0dc68a0064f1189d2a48dfb42e452', 'project_id': '1dc0dc68a0064f1189d2a48dfb42e452', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c89ffcaa-2cff-4586-a14e-fa72a1c379ea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02516121', 'ctest-vn-74340017'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02516121', 'ctest-policy-allow-all-41132398']], 'subnet_ipam': [{'subnet_cidr': '196.236.195.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-21 16:53:28,273 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-21 16:53:28,571 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-21 16:53:28,605 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6421eeb2-27b1-4978-b5c3-a64188bf16d2
2025-06-21 16:53:28,619 - DEBUG - Requesting: http://10.0.0.38:8082/project/1dc0dc68-a006-4f11-89d2-a48dfb42e452
2025-06-21 16:53:28,700 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e746d45e-717d-43c4-a90b-6a08240580e9
2025-06-21 16:53:28,711 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e746d45e-717d-43c4-a90b-6a08240580e9
2025-06-21 16:53:28,722 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b70626e1-9e4c-4e2d-acf8-778e67624a6f
2025-06-21 16:53:28,730 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b70626e1-9e4c-4e2d-acf8-778e67624a6f
2025-06-21 16:53:28,738 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4729856c-d295-43c2-9120-9694eb9884df
2025-06-21 16:53:28,746 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-21 16:53:28,746 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e746d45e-717d-43c4-a90b-6a08240580e9
2025-06-21 16:53:28,757 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b70626e1-9e4c-4e2d-acf8-778e67624a6f
2025-06-21 16:53:28,774 - INFO - Verified VN network id 8 for VN e746d45e-717d-43c4-a90b-6a08240580e9
2025-06-21 16:53:28,774 - INFO - Verifications in API Server for VN ctest-vn-89368261 passed
2025-06-21 16:53:28,774 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e746d45e-717d-43c4-a90b-6a08240580e9
2025-06-21 16:53:28,785 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b70626e1-9e4c-4e2d-acf8-778e67624a6f
2025-06-21 16:53:28,793 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b70626e1-9e4c-4e2d-acf8-778e67624a6f
2025-06-21 16:53:28,802 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4729856c-d295-43c2-9120-9694eb9884df
2025-06-21 16:53:28,817 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02516121:ctest-vn-89368261', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02516121', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16665240973227148228', 'uuid-lslong': '12180946200350261481'}, 'enable': 'true', 'created': '2025-06-21T16:53:26', 'last-modified': '2025-06-21T16:53:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.029572'}
2025-06-21 16:53:28,824 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-21 16:53:28,824 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89368261 passed
2025-06-21 16:53:28,825 - DEBUG - ====Verifying policy data for ctest-vn-89368261 in API_Server ======
2025-06-21 16:53:28,825 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-21 16:53:28,831 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6421eeb2-27b1-4978-b5c3-a64188bf16d2
2025-06-21 16:53:28,852 - DEBUG - Requesting: http://10.0.0.38:8082/project/1dc0dc68-a006-4f11-89d2-a48dfb42e452
2025-06-21 16:53:28,925 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e746d45e-717d-43c4-a90b-6a08240580e9
2025-06-21 16:53:28,937 - DEBUG - ==>Verifying data for policy with id: b79870ec-2faf-4646-a79b-78e36e0bbb7f, fqn: ['default-domain', 'ctest-TestBasicPolicy-02516121', 'ctest-policy-allow-all-41132398']
2025-06-21 16:53:28,937 - INFO - VN ctest-vn-89368261 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-21 16:53:28,937 - DEBUG - Verifying the vn in opserver
2025-06-21 16:53:28,937 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02516121:ctest-vn-89368261 virtual network link through opserver 10.0.0.38
2025-06-21 16:53:28,938 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-21 16:53:29,240 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-21 16:53:29,303 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02516121:ctest-vn-89368261', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02516121:ctest-vn-89368261?flat'}
2025-06-21 16:53:29,303 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02516121:ctest-vn-89368261 is found in opserver
2025-06-21 16:53:29,315 - DEBUG - Do not have enough data to verify VN in agent
2025-06-21 16:53:29,321 - DEBUG - VRF ids for VN ctest-vn-89368261: {}
2025-06-21 16:53:29,321 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-21 16:53:29,327 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6421eeb2-27b1-4978-b5c3-a64188bf16d2
2025-06-21 16:53:29,339 - DEBUG - Requesting: http://10.0.0.38:8082/project/1dc0dc68-a006-4f11-89d2-a48dfb42e452
2025-06-21 16:53:29,418 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/04235078-f04a-48fe-892e-f0a2c449dc44
2025-06-21 16:53:29,432 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/04235078-f04a-48fe-892e-f0a2c449dc44
2025-06-21 16:53:29,444 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/75f17943-3c5c-48c4-8803-74967c31c797
2025-06-21 16:53:29,454 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/75f17943-3c5c-48c4-8803-74967c31c797
2025-06-21 16:53:29,462 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/58e55964-933b-438d-a6f2-b745e87bbb81
2025-06-21 16:53:29,469 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-21 16:53:29,470 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/04235078-f04a-48fe-892e-f0a2c449dc44
2025-06-21 16:53:29,480 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/75f17943-3c5c-48c4-8803-74967c31c797
2025-06-21 16:53:29,497 - INFO - Verified VN network id 9 for VN 04235078-f04a-48fe-892e-f0a2c449dc44
2025-06-21 16:53:29,497 - INFO - Verifications in API Server for VN ctest-vn-74340017 passed
2025-06-21 16:53:29,497 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/04235078-f04a-48fe-892e-f0a2c449dc44
2025-06-21 16:53:29,508 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/75f17943-3c5c-48c4-8803-74967c31c797
2025-06-21 16:53:29,515 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/75f17943-3c5c-48c4-8803-74967c31c797
2025-06-21 16:53:29,523 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/58e55964-933b-438d-a6f2-b745e87bbb81
2025-06-21 16:53:29,535 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02516121:ctest-vn-74340017', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02516121', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '298170480694282494', 'uuid-lslong': '9885102813993360452'}, 'enable': 'true', 'created': '2025-06-21T16:53:26', 'last-modified': '2025-06-21T16:53:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.505089'}
2025-06-21 16:53:29,542 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-21 16:53:29,542 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74340017 passed
2025-06-21 16:53:29,542 - DEBUG - ====Verifying policy data for ctest-vn-74340017 in API_Server ======
2025-06-21 16:53:29,542 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-21 16:53:29,548 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6421eeb2-27b1-4978-b5c3-a64188bf16d2
2025-06-21 16:53:29,561 - DEBUG - Requesting: http://10.0.0.38:8082/project/1dc0dc68-a006-4f11-89d2-a48dfb42e452
2025-06-21 16:53:29,641 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/04235078-f04a-48fe-892e-f0a2c449dc44
2025-06-21 16:53:29,651 - DEBUG - ==>Verifying data for policy with id: b79870ec-2faf-4646-a79b-78e36e0bbb7f, fqn: ['default-domain', 'ctest-TestBasicPolicy-02516121', 'ctest-policy-allow-all-41132398']
2025-06-21 16:53:29,651 - INFO - VN ctest-vn-74340017 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-21 16:53:29,651 - DEBUG - Verifying the vn in opserver
2025-06-21 16:53:29,651 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02516121:ctest-vn-74340017 virtual network link through opserver 10.0.0.38
2025-06-21 16:53:29,651 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-21 16:53:29,663 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02516121:ctest-vn-74340017', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02516121:ctest-vn-74340017?flat'}
2025-06-21 16:53:29,663 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02516121:ctest-vn-74340017 is found in opserver
2025-06-21 16:53:29,674 - DEBUG - Do not have enough data to verify VN in agent
2025-06-21 16:53:29,679 - DEBUG - VRF ids for VN ctest-vn-74340017: {}
2025-06-21 16:53:29,763 - DEBUG - Services list from nova: [