2025-06-24 19:44:23,215 - INFO - Domain Default found not creating
2025-06-24 19:44:23,365 - INFO - Project ctest-TestBasicPolicy-87692519 not found, creating it
2025-06-24 19:44:23,896 - INFO - Created Project:ctest-TestBasicPolicy-87692519, ID : ee7560b3-4f74-48aa-bba0-de62d06957ff
2025-06-24 19:44:25,480 - INFO - ================================================================================
2025-06-24 19:44:25,480 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-24 19:44:25,480 - 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-24 19:44:25,746 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with
2025-06-24 19:44:25,746 - INFO - Initial checks done. Running the testcase now
2025-06-24 19:44:25,746 - INFO -
2025-06-24 19:44:26,370 - DEBUG - Response for create_network : {'network': {'id': 'fdfa3861-77bc-4108-a708-3a266bcc8c2a', 'name': 'ctest-vn-73910035', 'tenant_id': 'ee7560b34f7448aabba0de62d06957ff', 'project_id': 'ee7560b34f7448aabba0de62d06957ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87692519', 'ctest-vn-73910035'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 19:44:26,614 - DEBUG - Response for create_subnet : {'subnet': {'id': '17675015-5ea3-49ee-9396-cb4789557be3', 'name': '', 'tenant_id': 'ee7560b34f7448aabba0de62d06957ff', 'network_id': 'fdfa3861-77bc-4108-a708-3a266bcc8c2a', 'ip_version': 4, 'cidr': '57.206.112.64/26', 'allocation_pools': [{'start': '57.206.112.66', 'end': '57.206.112.126'}], 'gateway_ip': '57.206.112.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.206.112.66', 'tags': [], 'project_id': 'ee7560b34f7448aabba0de62d06957ff'}}
2025-06-24 19:44:26,633 - INFO - Created VN ctest-vn-73910035
2025-06-24 19:44:26,688 - DEBUG - VN ctest-vn-73910035 UUID is fdfa3861-77bc-4108-a708-3a266bcc8c2a
2025-06-24 19:44:27,005 - DEBUG - Response for create_network : {'network': {'id': '9dde36ad-2043-4026-b713-65cfa34bcf25', 'name': 'ctest-vn-35917780', 'tenant_id': 'ee7560b34f7448aabba0de62d06957ff', 'project_id': 'ee7560b34f7448aabba0de62d06957ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87692519', 'ctest-vn-35917780'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 19:44:27,309 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8c32792-06ed-4caf-96f1-b6e5812e34e5', 'name': '', 'tenant_id': 'ee7560b34f7448aabba0de62d06957ff', 'network_id': '9dde36ad-2043-4026-b713-65cfa34bcf25', 'ip_version': 4, 'cidr': '11.95.139.64/26', 'allocation_pools': [{'start': '11.95.139.66', 'end': '11.95.139.126'}], 'gateway_ip': '11.95.139.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.95.139.66', 'tags': [], 'project_id': 'ee7560b34f7448aabba0de62d06957ff'}}
2025-06-24 19:44:27,329 - INFO - Created VN ctest-vn-35917780
2025-06-24 19:44:27,384 - DEBUG - VN ctest-vn-35917780 UUID is 9dde36ad-2043-4026-b713-65cfa34bcf25
2025-06-24 19:44:27,495 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87692519:ctest-vn-73910035, 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-87692519:ctest-vn-35917780, 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-24 19:44:27,804 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fdfa3861-77bc-4108-a708-3a266bcc8c2a', 'name': 'ctest-vn-73910035', 'tenant_id': 'ee7560b34f7448aabba0de62d06957ff', 'project_id': 'ee7560b34f7448aabba0de62d06957ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['17675015-5ea3-49ee-9396-cb4789557be3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87692519', 'ctest-vn-73910035'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87692519', 'ctest-policy-allow-all-03132330']], 'subnet_ipam': [{'subnet_cidr': '57.206.112.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 19:44:28,060 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9dde36ad-2043-4026-b713-65cfa34bcf25', 'name': 'ctest-vn-35917780', 'tenant_id': 'ee7560b34f7448aabba0de62d06957ff', 'project_id': 'ee7560b34f7448aabba0de62d06957ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c8c32792-06ed-4caf-96f1-b6e5812e34e5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87692519', 'ctest-vn-35917780'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87692519', 'ctest-policy-allow-all-03132330']], 'subnet_ipam': [{'subnet_cidr': '11.95.139.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 19:44:28,244 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-24 19:44:28,589 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-24 19:44:28,619 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6bfdfcf0-4c61-4bf9-8a45-6341e6de0437
2025-06-24 19:44:28,634 - DEBUG - Requesting: http://10.0.0.254:8082/project/ee7560b3-4f74-48aa-bba0-de62d06957ff
2025-06-24 19:44:28,713 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fdfa3861-77bc-4108-a708-3a266bcc8c2a
2025-06-24 19:44:28,726 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fdfa3861-77bc-4108-a708-3a266bcc8c2a
2025-06-24 19:44:28,737 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a78f8d50-80d0-4927-a196-7fec041b6101
2025-06-24 19:44:28,746 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a78f8d50-80d0-4927-a196-7fec041b6101
2025-06-24 19:44:28,753 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/09c4ac2c-4ddc-438c-af22-ab637bfa84c5
2025-06-24 19:44:28,760 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 19:44:28,760 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fdfa3861-77bc-4108-a708-3a266bcc8c2a
2025-06-24 19:44:28,770 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a78f8d50-80d0-4927-a196-7fec041b6101
2025-06-24 19:44:28,785 - INFO - Verified VN network id 8 for VN fdfa3861-77bc-4108-a708-3a266bcc8c2a
2025-06-24 19:44:28,785 - INFO - Verifications in API Server for VN ctest-vn-73910035 passed
2025-06-24 19:44:28,785 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fdfa3861-77bc-4108-a708-3a266bcc8c2a
2025-06-24 19:44:28,795 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a78f8d50-80d0-4927-a196-7fec041b6101
2025-06-24 19:44:28,802 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a78f8d50-80d0-4927-a196-7fec041b6101
2025-06-24 19:44:28,810 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/09c4ac2c-4ddc-438c-af22-ab637bfa84c5
2025-06-24 19:44:28,823 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87692519:ctest-vn-73910035', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87692519', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18301002027045241096', 'uuid-lslong': '12035933940839386154'}, 'enable': 'true', 'created': '2025-06-24T19:44:26', 'last-modified': '2025-06-24T19:44:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.050443'}
2025-06-24 19:44:28,830 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 19:44:28,830 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73910035 passed
2025-06-24 19:44:28,831 - DEBUG - ====Verifying policy data for ctest-vn-73910035 in API_Server ======
2025-06-24 19:44:28,831 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-24 19:44:28,837 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6bfdfcf0-4c61-4bf9-8a45-6341e6de0437
2025-06-24 19:44:28,849 - DEBUG - Requesting: http://10.0.0.254:8082/project/ee7560b3-4f74-48aa-bba0-de62d06957ff
2025-06-24 19:44:28,933 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fdfa3861-77bc-4108-a708-3a266bcc8c2a
2025-06-24 19:44:28,945 - DEBUG - ==>Verifying data for policy with id: ec5582ba-fadb-4cfb-ba80-c10d6defa2ff, fqn: ['default-domain', 'ctest-TestBasicPolicy-87692519', 'ctest-policy-allow-all-03132330']
2025-06-24 19:44:28,945 - INFO - VN ctest-vn-73910035 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 19:44:28,945 - DEBUG - Verifying the vn in opserver
2025-06-24 19:44:28,945 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87692519:ctest-vn-73910035 virtual network link through opserver 10.0.0.254
2025-06-24 19:44:28,945 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-24 19:44:29,283 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-24 19:44:29,337 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87692519:ctest-vn-73910035', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87692519:ctest-vn-73910035?flat'}
2025-06-24 19:44:29,337 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87692519:ctest-vn-73910035 is found in opserver
2025-06-24 19:44:29,350 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 19:44:29,356 - DEBUG - VRF ids for VN ctest-vn-73910035: {}
2025-06-24 19:44:29,356 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-24 19:44:29,362 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6bfdfcf0-4c61-4bf9-8a45-6341e6de0437
2025-06-24 19:44:29,374 - DEBUG - Requesting: http://10.0.0.254:8082/project/ee7560b3-4f74-48aa-bba0-de62d06957ff
2025-06-24 19:44:29,451 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9dde36ad-2043-4026-b713-65cfa34bcf25
2025-06-24 19:44:29,466 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9dde36ad-2043-4026-b713-65cfa34bcf25
2025-06-24 19:44:29,477 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/eeec3459-2756-411e-a37c-5774ea3add32
2025-06-24 19:44:29,485 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/eeec3459-2756-411e-a37c-5774ea3add32
2025-06-24 19:44:29,493 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9141065b-e3b7-44bb-85f3-cb681adceca6
2025-06-24 19:44:29,500 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 19:44:29,500 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9dde36ad-2043-4026-b713-65cfa34bcf25
2025-06-24 19:44:29,510 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/eeec3459-2756-411e-a37c-5774ea3add32
2025-06-24 19:44:29,526 - INFO - Verified VN network id 9 for VN 9dde36ad-2043-4026-b713-65cfa34bcf25
2025-06-24 19:44:29,526 - INFO - Verifications in API Server for VN ctest-vn-35917780 passed
2025-06-24 19:44:29,526 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9dde36ad-2043-4026-b713-65cfa34bcf25
2025-06-24 19:44:29,536 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/eeec3459-2756-411e-a37c-5774ea3add32
2025-06-24 19:44:29,543 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/eeec3459-2756-411e-a37c-5774ea3add32
2025-06-24 19:44:29,550 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9141065b-e3b7-44bb-85f3-cb681adceca6
2025-06-24 19:44:29,562 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87692519:ctest-vn-35917780', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87692519', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11375589825982971942', 'uuid-lslong': '13191999675970604837'}, 'enable': 'true', 'created': '2025-06-24T19:44:26', 'last-modified': '2025-06-24T19:44:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.544164'}
2025-06-24 19:44:29,569 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 19:44:29,569 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35917780 passed
2025-06-24 19:44:29,569 - DEBUG - ====Verifying policy data for ctest-vn-35917780 in API_Server ======
2025-06-24 19:44:29,569 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-24 19:44:29,575 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6bfdfcf0-4c61-4bf9-8a45-6341e6de0437
2025-06-24 19:44:29,587 - DEBUG - Requesting: http://10.0.0.254:8082/project/ee7560b3-4f74-48aa-bba0-de62d06957ff
2025-06-24 19:44:29,662 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9dde36ad-2043-4026-b713-65cfa34bcf25
2025-06-24 19:44:29,673 - DEBUG - ==>Verifying data for policy with id: ec5582ba-fadb-4cfb-ba80-c10d6defa2ff, fqn: ['default-domain', 'ctest-TestBasicPolicy-87692519', 'ctest-policy-allow-all-03132330']
2025-06-24 19:44:29,673 - INFO - VN ctest-vn-35917780 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 19:44:29,673 - DEBUG - Verifying the vn in opserver
2025-06-24 19:44:29,673 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87692519:ctest-vn-35917780 virtual network link through opserver 10.0.0.254
2025-06-24 19:44:29,673 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-24 19:44:29,685 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87692519:ctest-vn-35917780', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87692519:ctest-vn-35917780?flat'}
2025-06-24 19:44:29,685 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87692519:ctest-vn-35917780 is found in opserver
2025-06-24 19:44:29,696 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 19:44:29,702 - DEBUG - VRF ids for VN ctest-vn-35917780: {}
2025-06-24 19:44:29,760 - DEBUG - Services list from nova: [