2025-08-11 20:53:09,184 - INFO - Domain Default found not creating
2025-08-11 20:53:09,332 - INFO - Project ctest-TestBasicPolicy-59225811 not found, creating it
2025-08-11 20:53:09,781 - INFO - Created Project:ctest-TestBasicPolicy-59225811, ID : a9ac12f4-ad71-4e68-ba84-6b0ad8ab25d4
2025-08-11 20:53:11,162 - INFO - ================================================================================
2025-08-11 20:53:11,162 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 20:53:11,162 - 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-08-11 20:53:11,420 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-08-11 20:53:11,420 - INFO - Initial checks done. Running the testcase now
2025-08-11 20:53:11,420 - INFO -
2025-08-11 20:53:11,947 - DEBUG - Response for create_network : {'network': {'id': '3fe3dfcc-5d4b-4557-9a10-fa425eaf489a', 'name': 'ctest-vn-09105209', 'tenant_id': 'a9ac12f4ad714e68ba846b0ad8ab25d4', 'project_id': 'a9ac12f4ad714e68ba846b0ad8ab25d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59225811', 'ctest-vn-09105209'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 20:53:12,102 - DEBUG - Response for create_subnet : {'subnet': {'id': '29e7cce2-4126-4e32-8cfb-5a65e2aa1ece', 'name': '', 'tenant_id': 'a9ac12f4ad714e68ba846b0ad8ab25d4', 'network_id': '3fe3dfcc-5d4b-4557-9a10-fa425eaf489a', 'ip_version': 4, 'cidr': '34.4.123.0/26', 'allocation_pools': [{'start': '34.4.123.2', 'end': '34.4.123.62'}], 'gateway_ip': '34.4.123.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.4.123.2', 'tags': [], 'project_id': 'a9ac12f4ad714e68ba846b0ad8ab25d4'}}
2025-08-11 20:53:12,118 - INFO - Created VN ctest-vn-09105209
2025-08-11 20:53:12,169 - DEBUG - VN ctest-vn-09105209 UUID is 3fe3dfcc-5d4b-4557-9a10-fa425eaf489a
2025-08-11 20:53:12,481 - DEBUG - Response for create_network : {'network': {'id': '50675eae-417e-4d4d-837e-3fa1f8f536be', 'name': 'ctest-vn-49695967', 'tenant_id': 'a9ac12f4ad714e68ba846b0ad8ab25d4', 'project_id': 'a9ac12f4ad714e68ba846b0ad8ab25d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59225811', 'ctest-vn-49695967'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 20:53:12,663 - DEBUG - Response for create_subnet : {'subnet': {'id': '1097798c-3a7f-4b3a-8839-4005b1a8146b', 'name': '', 'tenant_id': 'a9ac12f4ad714e68ba846b0ad8ab25d4', 'network_id': '50675eae-417e-4d4d-837e-3fa1f8f536be', 'ip_version': 4, 'cidr': '201.165.2.64/26', 'allocation_pools': [{'start': '201.165.2.66', 'end': '201.165.2.126'}], 'gateway_ip': '201.165.2.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.165.2.66', 'tags': [], 'project_id': 'a9ac12f4ad714e68ba846b0ad8ab25d4'}}
2025-08-11 20:53:12,679 - INFO - Created VN ctest-vn-49695967
2025-08-11 20:53:12,729 - DEBUG - VN ctest-vn-49695967 UUID is 50675eae-417e-4d4d-837e-3fa1f8f536be
2025-08-11 20:53:12,873 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59225811:ctest-vn-09105209, 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-59225811:ctest-vn-49695967, 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-08-11 20:53:13,158 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3fe3dfcc-5d4b-4557-9a10-fa425eaf489a', 'name': 'ctest-vn-09105209', 'tenant_id': 'a9ac12f4ad714e68ba846b0ad8ab25d4', 'project_id': 'a9ac12f4ad714e68ba846b0ad8ab25d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['29e7cce2-4126-4e32-8cfb-5a65e2aa1ece'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59225811', 'ctest-vn-09105209'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59225811', 'ctest-policy-allow-all-15940403']], 'subnet_ipam': [{'subnet_cidr': '34.4.123.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 20:53:13,397 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50675eae-417e-4d4d-837e-3fa1f8f536be', 'name': 'ctest-vn-49695967', 'tenant_id': 'a9ac12f4ad714e68ba846b0ad8ab25d4', 'project_id': 'a9ac12f4ad714e68ba846b0ad8ab25d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1097798c-3a7f-4b3a-8839-4005b1a8146b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59225811', 'ctest-vn-49695967'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59225811', 'ctest-policy-allow-all-15940403']], 'subnet_ipam': [{'subnet_cidr': '201.165.2.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 20:53:13,569 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-11 20:53:13,869 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-11 20:53:13,900 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1296c912-2bce-4e84-8f34-bf42d334220c
2025-08-11 20:53:13,915 - DEBUG - Requesting: http://10.0.0.38:8082/project/a9ac12f4-ad71-4e68-ba84-6b0ad8ab25d4
2025-08-11 20:53:13,987 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3fe3dfcc-5d4b-4557-9a10-fa425eaf489a
2025-08-11 20:53:14,016 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3fe3dfcc-5d4b-4557-9a10-fa425eaf489a
2025-08-11 20:53:14,026 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/149ff870-b245-4236-9207-db06f0417eeb
2025-08-11 20:53:14,034 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/149ff870-b245-4236-9207-db06f0417eeb
2025-08-11 20:53:14,040 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/36a0c3db-dd26-403e-aeff-81702815f8d1
2025-08-11 20:53:14,047 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 20:53:14,047 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3fe3dfcc-5d4b-4557-9a10-fa425eaf489a
2025-08-11 20:53:14,055 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/149ff870-b245-4236-9207-db06f0417eeb
2025-08-11 20:53:14,069 - INFO - Verified VN network id 11 for VN 3fe3dfcc-5d4b-4557-9a10-fa425eaf489a
2025-08-11 20:53:14,069 - INFO - Verifications in API Server for VN ctest-vn-09105209 passed
2025-08-11 20:53:14,069 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3fe3dfcc-5d4b-4557-9a10-fa425eaf489a
2025-08-11 20:53:14,079 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/149ff870-b245-4236-9207-db06f0417eeb
2025-08-11 20:53:14,086 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/149ff870-b245-4236-9207-db06f0417eeb
2025-08-11 20:53:14,093 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/36a0c3db-dd26-403e-aeff-81702815f8d1
2025-08-11 20:53:14,104 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59225811:ctest-vn-09105209', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59225811', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4603769312934315351', 'uuid-lslong': '11101648244431603866'}, 'enable': 'true', 'created': '2025-08-11T20:53:11', 'last-modified': '2025-08-11T20:53:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.970471'}
2025-08-11 20:53:14,110 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 20:53:14,110 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09105209 passed
2025-08-11 20:53:14,111 - DEBUG - ====Verifying policy data for ctest-vn-09105209 in API_Server ======
2025-08-11 20:53:14,111 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-11 20:53:14,116 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1296c912-2bce-4e84-8f34-bf42d334220c
2025-08-11 20:53:14,127 - DEBUG - Requesting: http://10.0.0.38:8082/project/a9ac12f4-ad71-4e68-ba84-6b0ad8ab25d4
2025-08-11 20:53:14,200 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3fe3dfcc-5d4b-4557-9a10-fa425eaf489a
2025-08-11 20:53:14,211 - DEBUG - ==>Verifying data for policy with id: a8286ee8-c130-4b67-a2df-eb9161beda81, fqn: ['default-domain', 'ctest-TestBasicPolicy-59225811', 'ctest-policy-allow-all-15940403']
2025-08-11 20:53:14,211 - INFO - VN ctest-vn-09105209 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 20:53:14,211 - DEBUG - Verifying the vn in opserver
2025-08-11 20:53:14,211 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59225811:ctest-vn-09105209 virtual network link through opserver 10.0.0.38
2025-08-11 20:53:14,212 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-11 20:53:14,501 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-11 20:53:14,551 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59225811:ctest-vn-09105209', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59225811:ctest-vn-09105209?flat'}
2025-08-11 20:53:14,551 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59225811:ctest-vn-09105209 is found in opserver
2025-08-11 20:53:14,562 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 20:53:14,568 - DEBUG - VRF ids for VN ctest-vn-09105209: {}
2025-08-11 20:53:14,568 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-11 20:53:14,573 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1296c912-2bce-4e84-8f34-bf42d334220c
2025-08-11 20:53:14,585 - DEBUG - Requesting: http://10.0.0.38:8082/project/a9ac12f4-ad71-4e68-ba84-6b0ad8ab25d4
2025-08-11 20:53:14,658 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50675eae-417e-4d4d-837e-3fa1f8f536be
2025-08-11 20:53:14,669 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50675eae-417e-4d4d-837e-3fa1f8f536be
2025-08-11 20:53:14,678 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/04860321-94a8-47fc-a9ae-864fa7e9d595
2025-08-11 20:53:14,685 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/04860321-94a8-47fc-a9ae-864fa7e9d595
2025-08-11 20:53:14,693 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8f8d9cae-6949-4709-b414-1d2964ef1431
2025-08-11 20:53:14,699 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 20:53:14,699 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50675eae-417e-4d4d-837e-3fa1f8f536be
2025-08-11 20:53:14,709 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/04860321-94a8-47fc-a9ae-864fa7e9d595
2025-08-11 20:53:14,723 - INFO - Verified VN network id 12 for VN 50675eae-417e-4d4d-837e-3fa1f8f536be
2025-08-11 20:53:14,723 - INFO - Verifications in API Server for VN ctest-vn-49695967 passed
2025-08-11 20:53:14,723 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50675eae-417e-4d4d-837e-3fa1f8f536be
2025-08-11 20:53:14,732 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/04860321-94a8-47fc-a9ae-864fa7e9d595
2025-08-11 20:53:14,740 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/04860321-94a8-47fc-a9ae-864fa7e9d595
2025-08-11 20:53:14,748 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8f8d9cae-6949-4709-b414-1d2964ef1431
2025-08-11 20:53:14,762 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59225811:ctest-vn-49695967', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59225811', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5793703548151549261', 'uuid-lslong': '9475080630933206718'}, 'enable': 'true', 'created': '2025-08-11T20:53:12', 'last-modified': '2025-08-11T20:53:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.391510'}
2025-08-11 20:53:14,770 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 20:53:14,770 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49695967 passed
2025-08-11 20:53:14,770 - DEBUG - ====Verifying policy data for ctest-vn-49695967 in API_Server ======
2025-08-11 20:53:14,770 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-11 20:53:14,776 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1296c912-2bce-4e84-8f34-bf42d334220c
2025-08-11 20:53:14,788 - DEBUG - Requesting: http://10.0.0.38:8082/project/a9ac12f4-ad71-4e68-ba84-6b0ad8ab25d4
2025-08-11 20:53:14,859 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50675eae-417e-4d4d-837e-3fa1f8f536be
2025-08-11 20:53:14,868 - DEBUG - ==>Verifying data for policy with id: a8286ee8-c130-4b67-a2df-eb9161beda81, fqn: ['default-domain', 'ctest-TestBasicPolicy-59225811', 'ctest-policy-allow-all-15940403']
2025-08-11 20:53:14,868 - INFO - VN ctest-vn-49695967 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 20:53:14,868 - DEBUG - Verifying the vn in opserver
2025-08-11 20:53:14,868 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59225811:ctest-vn-49695967 virtual network link through opserver 10.0.0.38
2025-08-11 20:53:14,869 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-11 20:53:14,879 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59225811:ctest-vn-49695967', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59225811:ctest-vn-49695967?flat'}
2025-08-11 20:53:14,880 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59225811:ctest-vn-49695967 is found in opserver
2025-08-11 20:53:14,890 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 20:53:14,895 - DEBUG - VRF ids for VN ctest-vn-49695967: {}
2025-08-11 20:53:14,945 - DEBUG - Services list from nova: [