2025-05-22 02:15:26,215 - INFO - Domain Default found not creating
2025-05-22 02:15:26,397 - INFO - Project ctest-TestBasicPolicy-10771117 not found, creating it
2025-05-22 02:15:26,895 - INFO - Created Project:ctest-TestBasicPolicy-10771117, ID : 57f5c4b3-4f18-442f-a896-660e46cb85d6
2025-05-22 02:15:28,575 - INFO - ================================================================================
2025-05-22 02:15:28,576 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-22 02:15:28,576 - 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-05-22 02:15:28,829 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-05-22 02:15:28,829 - INFO - Initial checks done. Running the testcase now
2025-05-22 02:15:28,829 - INFO -
2025-05-22 02:15:29,465 - DEBUG - Response for create_network : {'network': {'id': 'ec46085e-bec9-442c-aff7-6f62ac941280', 'name': 'ctest-vn-91099796', 'tenant_id': '57f5c4b34f18442fa896660e46cb85d6', 'project_id': '57f5c4b34f18442fa896660e46cb85d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10771117', 'ctest-vn-91099796'], 'port_security_enabled': True, 'description': ''}}
2025-05-22 02:15:29,644 - DEBUG - Response for create_subnet : {'subnet': {'id': '42266331-a88e-465a-b384-24bea193dd97', 'name': '', 'tenant_id': '57f5c4b34f18442fa896660e46cb85d6', 'network_id': 'ec46085e-bec9-442c-aff7-6f62ac941280', 'ip_version': 4, 'cidr': '95.244.62.0/26', 'allocation_pools': [{'start': '95.244.62.2', 'end': '95.244.62.62'}], 'gateway_ip': '95.244.62.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.244.62.2', 'tags': [], 'project_id': '57f5c4b34f18442fa896660e46cb85d6'}}
2025-05-22 02:15:29,718 - INFO - Created VN ctest-vn-91099796
2025-05-22 02:15:29,770 - DEBUG - VN ctest-vn-91099796 UUID is ec46085e-bec9-442c-aff7-6f62ac941280
2025-05-22 02:15:30,079 - DEBUG - Response for create_network : {'network': {'id': 'e0601c03-13cc-46fe-8c48-2253fc1127e0', 'name': 'ctest-vn-46392530', 'tenant_id': '57f5c4b34f18442fa896660e46cb85d6', 'project_id': '57f5c4b34f18442fa896660e46cb85d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10771117', 'ctest-vn-46392530'], 'port_security_enabled': True, 'description': ''}}
2025-05-22 02:15:30,291 - DEBUG - Response for create_subnet : {'subnet': {'id': '1dcbe517-0ba0-48db-baf4-b1ef778ff118', 'name': '', 'tenant_id': '57f5c4b34f18442fa896660e46cb85d6', 'network_id': 'e0601c03-13cc-46fe-8c48-2253fc1127e0', 'ip_version': 4, 'cidr': '188.240.39.128/26', 'allocation_pools': [{'start': '188.240.39.130', 'end': '188.240.39.190'}], 'gateway_ip': '188.240.39.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.240.39.130', 'tags': [], 'project_id': '57f5c4b34f18442fa896660e46cb85d6'}}
2025-05-22 02:15:30,313 - INFO - Created VN ctest-vn-46392530
2025-05-22 02:15:30,366 - DEBUG - VN ctest-vn-46392530 UUID is e0601c03-13cc-46fe-8c48-2253fc1127e0
2025-05-22 02:15:30,488 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-91099796, 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-10771117:ctest-vn-46392530, 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-05-22 02:15:30,813 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec46085e-bec9-442c-aff7-6f62ac941280', 'name': 'ctest-vn-91099796', 'tenant_id': '57f5c4b34f18442fa896660e46cb85d6', 'project_id': '57f5c4b34f18442fa896660e46cb85d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['42266331-a88e-465a-b384-24bea193dd97'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10771117', 'ctest-vn-91099796'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10771117', 'ctest-policy-allow-all-04754378']], 'subnet_ipam': [{'subnet_cidr': '95.244.62.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-22 02:15:31,054 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e0601c03-13cc-46fe-8c48-2253fc1127e0', 'name': 'ctest-vn-46392530', 'tenant_id': '57f5c4b34f18442fa896660e46cb85d6', 'project_id': '57f5c4b34f18442fa896660e46cb85d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1dcbe517-0ba0-48db-baf4-b1ef778ff118'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10771117', 'ctest-vn-46392530'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10771117', 'ctest-policy-allow-all-04754378']], 'subnet_ipam': [{'subnet_cidr': '188.240.39.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-22 02:15:31,231 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-22 02:15:31,573 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-22 02:15:31,612 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1503ea4d-2a48-4984-b408-44ce7c750056
2025-05-22 02:15:31,631 - DEBUG - Requesting: http://10.0.0.50:8082/project/57f5c4b3-4f18-442f-a896-660e46cb85d6
2025-05-22 02:15:31,721 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec46085e-bec9-442c-aff7-6f62ac941280
2025-05-22 02:15:31,734 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec46085e-bec9-442c-aff7-6f62ac941280
2025-05-22 02:15:31,746 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cd7974c8-189a-4b7d-9da8-519969d8f0c5
2025-05-22 02:15:31,756 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cd7974c8-189a-4b7d-9da8-519969d8f0c5
2025-05-22 02:15:31,765 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5aed3f2d-ab74-4c4d-8019-0460dcaa2308
2025-05-22 02:15:31,773 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-22 02:15:31,773 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec46085e-bec9-442c-aff7-6f62ac941280
2025-05-22 02:15:31,786 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cd7974c8-189a-4b7d-9da8-519969d8f0c5
2025-05-22 02:15:31,805 - INFO - Verified VN network id 9 for VN ec46085e-bec9-442c-aff7-6f62ac941280
2025-05-22 02:15:31,805 - INFO - Verifications in API Server for VN ctest-vn-91099796 passed
2025-05-22 02:15:31,805 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec46085e-bec9-442c-aff7-6f62ac941280
2025-05-22 02:15:31,816 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cd7974c8-189a-4b7d-9da8-519969d8f0c5
2025-05-22 02:15:31,825 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cd7974c8-189a-4b7d-9da8-519969d8f0c5
2025-05-22 02:15:31,833 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5aed3f2d-ab74-4c4d-8019-0460dcaa2308
2025-05-22 02:15:31,846 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-91099796', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10771117', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17025304644341548076', 'uuid-lslong': '12679725745477784192'}, 'enable': 'true', 'created': '2025-05-22T02:15:29', 'last-modified': '2025-05-22T02:15:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.078000'}
2025-05-22 02:15:31,855 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-22 02:15:31,855 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91099796 passed
2025-05-22 02:15:31,856 - DEBUG - ====Verifying policy data for ctest-vn-91099796 in API_Server ======
2025-05-22 02:15:31,856 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-22 02:15:31,862 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1503ea4d-2a48-4984-b408-44ce7c750056
2025-05-22 02:15:31,878 - DEBUG - Requesting: http://10.0.0.50:8082/project/57f5c4b3-4f18-442f-a896-660e46cb85d6
2025-05-22 02:15:31,957 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec46085e-bec9-442c-aff7-6f62ac941280
2025-05-22 02:15:31,969 - DEBUG - ==>Verifying data for policy with id: 8e9039d5-99da-44d8-96e3-2991f5c58840, fqn: ['default-domain', 'ctest-TestBasicPolicy-10771117', 'ctest-policy-allow-all-04754378']
2025-05-22 02:15:31,970 - INFO - VN ctest-vn-91099796 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-22 02:15:31,970 - DEBUG - Verifying the vn in opserver
2025-05-22 02:15:31,970 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-91099796 virtual network link through opserver 10.0.0.50
2025-05-22 02:15:31,970 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-22 02:15:32,312 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-22 02:15:32,379 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-91099796', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-91099796?flat'}
2025-05-22 02:15:32,379 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-91099796 is found in opserver
2025-05-22 02:15:32,391 - DEBUG - Do not have enough data to verify VN in agent
2025-05-22 02:15:32,397 - DEBUG - VRF ids for VN ctest-vn-91099796: {}
2025-05-22 02:15:32,397 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-22 02:15:32,403 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1503ea4d-2a48-4984-b408-44ce7c750056
2025-05-22 02:15:32,418 - DEBUG - Requesting: http://10.0.0.50:8082/project/57f5c4b3-4f18-442f-a896-660e46cb85d6
2025-05-22 02:15:32,492 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e0601c03-13cc-46fe-8c48-2253fc1127e0
2025-05-22 02:15:32,507 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e0601c03-13cc-46fe-8c48-2253fc1127e0
2025-05-22 02:15:32,519 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0c515811-3b30-4f9a-8e7c-fc76ce7a78e0
2025-05-22 02:15:32,527 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0c515811-3b30-4f9a-8e7c-fc76ce7a78e0
2025-05-22 02:15:32,535 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9fcf37b9-cbb1-4610-96af-44024a4d69b0
2025-05-22 02:15:32,543 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-22 02:15:32,543 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e0601c03-13cc-46fe-8c48-2253fc1127e0
2025-05-22 02:15:32,557 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0c515811-3b30-4f9a-8e7c-fc76ce7a78e0
2025-05-22 02:15:32,579 - INFO - Verified VN network id 10 for VN e0601c03-13cc-46fe-8c48-2253fc1127e0
2025-05-22 02:15:32,579 - INFO - Verifications in API Server for VN ctest-vn-46392530 passed
2025-05-22 02:15:32,579 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e0601c03-13cc-46fe-8c48-2253fc1127e0
2025-05-22 02:15:32,593 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0c515811-3b30-4f9a-8e7c-fc76ce7a78e0
2025-05-22 02:15:32,605 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0c515811-3b30-4f9a-8e7c-fc76ce7a78e0
2025-05-22 02:15:32,616 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9fcf37b9-cbb1-4610-96af-44024a4d69b0
2025-05-22 02:15:32,634 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-46392530', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10771117', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16167953461802714878', 'uuid-lslong': '10108367107739690976'}, 'enable': 'true', 'created': '2025-05-22T02:15:30', 'last-modified': '2025-05-22T02:15:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.606628'}
2025-05-22 02:15:32,644 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-22 02:15:32,644 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46392530 passed
2025-05-22 02:15:32,644 - DEBUG - ====Verifying policy data for ctest-vn-46392530 in API_Server ======
2025-05-22 02:15:32,644 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-22 02:15:32,652 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1503ea4d-2a48-4984-b408-44ce7c750056
2025-05-22 02:15:32,667 - DEBUG - Requesting: http://10.0.0.50:8082/project/57f5c4b3-4f18-442f-a896-660e46cb85d6
2025-05-22 02:15:32,746 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e0601c03-13cc-46fe-8c48-2253fc1127e0
2025-05-22 02:15:32,761 - DEBUG - ==>Verifying data for policy with id: 8e9039d5-99da-44d8-96e3-2991f5c58840, fqn: ['default-domain', 'ctest-TestBasicPolicy-10771117', 'ctest-policy-allow-all-04754378']
2025-05-22 02:15:32,761 - INFO - VN ctest-vn-46392530 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-22 02:15:32,761 - DEBUG - Verifying the vn in opserver
2025-05-22 02:15:32,761 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-46392530 virtual network link through opserver 10.0.0.50
2025-05-22 02:15:32,761 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-22 02:15:32,776 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-46392530', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-46392530?flat'}
2025-05-22 02:15:32,776 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-46392530 is found in opserver
2025-05-22 02:15:32,791 - DEBUG - Do not have enough data to verify VN in agent
2025-05-22 02:15:32,798 - DEBUG - VRF ids for VN ctest-vn-46392530: {}
2025-05-22 02:15:32,864 - DEBUG - Services list from nova: [