2025-06-26 02:12:23,654 - INFO - Domain Default found not creating
2025-06-26 02:12:23,966 - INFO - Project ctest-TestBasicPolicy-72765774 not found, creating it
2025-06-26 02:12:24,546 - INFO - Created Project:ctest-TestBasicPolicy-72765774, ID : e9d94b58-0aa9-40bf-b4c8-e0b23e1d1f24
2025-06-26 02:12:26,129 - INFO - ================================================================================
2025-06-26 02:12:26,130 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-26 02:12:26,130 - 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-26 02:12:26,387 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-06-26 02:12:26,387 - INFO - Initial checks done. Running the testcase now
2025-06-26 02:12:26,387 - INFO -
2025-06-26 02:12:26,971 - DEBUG - Response for create_network : {'network': {'id': '7fec79af-8e0a-410b-93f0-32813989895e', 'name': 'ctest-vn-32363696', 'tenant_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'project_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72765774', 'ctest-vn-32363696'], 'port_security_enabled': True, 'description': ''}}
2025-06-26 02:12:27,169 - DEBUG - Response for create_subnet : {'subnet': {'id': '1fe26c78-ddef-4de2-8ce3-4c867cc287ce', 'name': '', 'tenant_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'network_id': '7fec79af-8e0a-410b-93f0-32813989895e', 'ip_version': 4, 'cidr': '125.228.79.192/26', 'allocation_pools': [{'start': '125.228.79.194', 'end': '125.228.79.254'}], 'gateway_ip': '125.228.79.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.228.79.194', 'tags': [], 'project_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24'}}
2025-06-26 02:12:27,193 - INFO - Created VN ctest-vn-32363696
2025-06-26 02:12:27,251 - DEBUG - VN ctest-vn-32363696 UUID is 7fec79af-8e0a-410b-93f0-32813989895e
2025-06-26 02:12:27,562 - DEBUG - Response for create_network : {'network': {'id': '750168ba-5b90-4366-9f00-1488a7eabcce', 'name': 'ctest-vn-24143503', 'tenant_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'project_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72765774', 'ctest-vn-24143503'], 'port_security_enabled': True, 'description': ''}}
2025-06-26 02:12:27,762 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b593d35f-f5f3-42c5-be2b-839e541abab8', 'name': '', 'tenant_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'network_id': '750168ba-5b90-4366-9f00-1488a7eabcce', 'ip_version': 4, 'cidr': '25.70.238.128/26', 'allocation_pools': [{'start': '25.70.238.130', 'end': '25.70.238.190'}], 'gateway_ip': '25.70.238.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.70.238.130', 'tags': [], 'project_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24'}}
2025-06-26 02:12:27,788 - INFO - Created VN ctest-vn-24143503
2025-06-26 02:12:27,847 - DEBUG - VN ctest-vn-24143503 UUID is 750168ba-5b90-4366-9f00-1488a7eabcce
2025-06-26 02:12:27,995 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-32363696, 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-72765774:ctest-vn-24143503, 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-26 02:12:28,317 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7fec79af-8e0a-410b-93f0-32813989895e', 'name': 'ctest-vn-32363696', 'tenant_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'project_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1fe26c78-ddef-4de2-8ce3-4c867cc287ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72765774', 'ctest-vn-32363696'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72765774', 'ctest-policy-allow-all-61837932']], 'subnet_ipam': [{'subnet_cidr': '125.228.79.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-26 02:12:28,639 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '750168ba-5b90-4366-9f00-1488a7eabcce', 'name': 'ctest-vn-24143503', 'tenant_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'project_id': 'e9d94b580aa940bfb4c8e0b23e1d1f24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b593d35f-f5f3-42c5-be2b-839e541abab8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72765774', 'ctest-vn-24143503'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72765774', 'ctest-policy-allow-all-61837932']], 'subnet_ipam': [{'subnet_cidr': '25.70.238.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-26 02:12:28,787 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-26 02:12:29,097 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-26 02:12:29,138 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3fbf2e96-4d2e-43bc-bf4d-558286f8f520
2025-06-26 02:12:29,153 - DEBUG - Requesting: http://10.0.0.50:8082/project/e9d94b58-0aa9-40bf-b4c8-e0b23e1d1f24
2025-06-26 02:12:29,243 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7fec79af-8e0a-410b-93f0-32813989895e
2025-06-26 02:12:29,257 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7fec79af-8e0a-410b-93f0-32813989895e
2025-06-26 02:12:29,273 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f4ea014d-0fe5-4a99-9dba-7cbcca18d6fe
2025-06-26 02:12:29,284 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f4ea014d-0fe5-4a99-9dba-7cbcca18d6fe
2025-06-26 02:12:29,294 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4c4ff489-22f9-43d5-b47f-a0f5deae380a
2025-06-26 02:12:29,301 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-26 02:12:29,302 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7fec79af-8e0a-410b-93f0-32813989895e
2025-06-26 02:12:29,312 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f4ea014d-0fe5-4a99-9dba-7cbcca18d6fe
2025-06-26 02:12:29,329 - INFO - Verified VN network id 8 for VN 7fec79af-8e0a-410b-93f0-32813989895e
2025-06-26 02:12:29,329 - INFO - Verifications in API Server for VN ctest-vn-32363696 passed
2025-06-26 02:12:29,329 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7fec79af-8e0a-410b-93f0-32813989895e
2025-06-26 02:12:29,340 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f4ea014d-0fe5-4a99-9dba-7cbcca18d6fe
2025-06-26 02:12:29,349 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f4ea014d-0fe5-4a99-9dba-7cbcca18d6fe
2025-06-26 02:12:29,358 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4c4ff489-22f9-43d5-b47f-a0f5deae380a
2025-06-26 02:12:29,374 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-32363696', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72765774', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9217876332229837067', 'uuid-lslong': '10660075848583448926'}, 'enable': 'true', 'created': '2025-06-26T02:12:26', 'last-modified': '2025-06-26T02:12:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.087446'}
2025-06-26 02:12:29,383 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-26 02:12:29,383 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32363696 passed
2025-06-26 02:12:29,384 - DEBUG - ====Verifying policy data for ctest-vn-32363696 in API_Server ======
2025-06-26 02:12:29,384 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-26 02:12:29,391 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3fbf2e96-4d2e-43bc-bf4d-558286f8f520
2025-06-26 02:12:29,406 - DEBUG - Requesting: http://10.0.0.50:8082/project/e9d94b58-0aa9-40bf-b4c8-e0b23e1d1f24
2025-06-26 02:12:29,488 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7fec79af-8e0a-410b-93f0-32813989895e
2025-06-26 02:12:29,504 - DEBUG - ==>Verifying data for policy with id: 46c6502b-a42b-44c5-ad46-a527ec43d06e, fqn: ['default-domain', 'ctest-TestBasicPolicy-72765774', 'ctest-policy-allow-all-61837932']
2025-06-26 02:12:29,504 - INFO - VN ctest-vn-32363696 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-26 02:12:29,504 - DEBUG - Verifying the vn in opserver
2025-06-26 02:12:29,504 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-32363696 virtual network link through opserver 10.0.0.50
2025-06-26 02:12:29,504 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-26 02:12:29,806 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-26 02:12:29,872 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-32363696', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-32363696?flat'}
2025-06-26 02:12:29,872 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-32363696 is found in opserver
2025-06-26 02:12:29,887 - DEBUG - Do not have enough data to verify VN in agent
2025-06-26 02:12:29,893 - DEBUG - VRF ids for VN ctest-vn-32363696: {}
2025-06-26 02:12:29,894 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-26 02:12:29,900 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3fbf2e96-4d2e-43bc-bf4d-558286f8f520
2025-06-26 02:12:29,914 - DEBUG - Requesting: http://10.0.0.50:8082/project/e9d94b58-0aa9-40bf-b4c8-e0b23e1d1f24
2025-06-26 02:12:29,993 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/750168ba-5b90-4366-9f00-1488a7eabcce
2025-06-26 02:12:30,009 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/750168ba-5b90-4366-9f00-1488a7eabcce
2025-06-26 02:12:30,023 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ac52d975-4f6e-4fc7-b9a7-9e9365964ab9
2025-06-26 02:12:30,033 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ac52d975-4f6e-4fc7-b9a7-9e9365964ab9
2025-06-26 02:12:30,044 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/22262f95-4936-468f-a5f3-aade8df4e89f
2025-06-26 02:12:30,054 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-26 02:12:30,054 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/750168ba-5b90-4366-9f00-1488a7eabcce
2025-06-26 02:12:30,067 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ac52d975-4f6e-4fc7-b9a7-9e9365964ab9
2025-06-26 02:12:30,089 - INFO - Verified VN network id 9 for VN 750168ba-5b90-4366-9f00-1488a7eabcce
2025-06-26 02:12:30,089 - INFO - Verifications in API Server for VN ctest-vn-24143503 passed
2025-06-26 02:12:30,089 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/750168ba-5b90-4366-9f00-1488a7eabcce
2025-06-26 02:12:30,102 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ac52d975-4f6e-4fc7-b9a7-9e9365964ab9
2025-06-26 02:12:30,112 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ac52d975-4f6e-4fc7-b9a7-9e9365964ab9
2025-06-26 02:12:30,122 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/22262f95-4936-468f-a5f3-aade8df4e89f
2025-06-26 02:12:30,139 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-24143503', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72765774', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8431135127023666022', 'uuid-lslong': '11457180029195828430'}, 'enable': 'true', 'created': '2025-06-26T02:12:27', 'last-modified': '2025-06-26T02:12:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.585369'}
2025-06-26 02:12:30,149 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-26 02:12:30,150 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24143503 passed
2025-06-26 02:12:30,150 - DEBUG - ====Verifying policy data for ctest-vn-24143503 in API_Server ======
2025-06-26 02:12:30,150 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-26 02:12:30,159 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3fbf2e96-4d2e-43bc-bf4d-558286f8f520
2025-06-26 02:12:30,179 - DEBUG - Requesting: http://10.0.0.50:8082/project/e9d94b58-0aa9-40bf-b4c8-e0b23e1d1f24
2025-06-26 02:12:30,266 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/750168ba-5b90-4366-9f00-1488a7eabcce
2025-06-26 02:12:30,282 - DEBUG - ==>Verifying data for policy with id: 46c6502b-a42b-44c5-ad46-a527ec43d06e, fqn: ['default-domain', 'ctest-TestBasicPolicy-72765774', 'ctest-policy-allow-all-61837932']
2025-06-26 02:12:30,283 - INFO - VN ctest-vn-24143503 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-26 02:12:30,283 - DEBUG - Verifying the vn in opserver
2025-06-26 02:12:30,283 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-24143503 virtual network link through opserver 10.0.0.50
2025-06-26 02:12:30,283 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-26 02:12:30,299 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-24143503', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-24143503?flat'}
2025-06-26 02:12:30,299 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72765774:ctest-vn-24143503 is found in opserver
2025-06-26 02:12:30,313 - DEBUG - Do not have enough data to verify VN in agent
2025-06-26 02:12:30,321 - DEBUG - VRF ids for VN ctest-vn-24143503: {}
2025-06-26 02:12:30,391 - DEBUG - Services list from nova: [