2025-08-31 06:42:19,697 - INFO - Domain Default found not creating
2025-08-31 06:42:19,858 - INFO - Project ctest-TestBasicPolicy-00349471 not found, creating it
2025-08-31 06:42:20,296 - INFO - Created Project:ctest-TestBasicPolicy-00349471, ID : d2fa7820-366f-49f6-8413-cc9064cccabf
2025-08-31 06:42:21,807 - INFO - ================================================================================
2025-08-31 06:42:21,808 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-31 06:42:21,809 - 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-31 06:42:22,079 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-08-31 06:42:22,079 - INFO - Initial checks done. Running the testcase now
2025-08-31 06:42:22,079 - INFO -
2025-08-31 06:42:22,594 - DEBUG - Response for create_network : {'network': {'id': '5e261535-a0a3-41c6-97df-061b611e17dd', 'name': 'ctest-vn-21928333', 'tenant_id': 'd2fa7820366f49f68413cc9064cccabf', 'project_id': 'd2fa7820366f49f68413cc9064cccabf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00349471', 'ctest-vn-21928333'], 'port_security_enabled': True, 'description': ''}}
2025-08-31 06:42:22,746 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f4c753cf-55f8-4b6f-bb4c-da03256455af', 'name': '', 'tenant_id': 'd2fa7820366f49f68413cc9064cccabf', 'network_id': '5e261535-a0a3-41c6-97df-061b611e17dd', 'ip_version': 4, 'cidr': '170.186.210.0/26', 'allocation_pools': [{'start': '170.186.210.2', 'end': '170.186.210.62'}], 'gateway_ip': '170.186.210.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.186.210.2', 'tags': [], 'project_id': 'd2fa7820366f49f68413cc9064cccabf'}}
2025-08-31 06:42:22,763 - INFO - Created VN ctest-vn-21928333
2025-08-31 06:42:22,813 - DEBUG - VN ctest-vn-21928333 UUID is 5e261535-a0a3-41c6-97df-061b611e17dd
2025-08-31 06:42:23,135 - DEBUG - Response for create_network : {'network': {'id': '275c004d-8074-4401-a975-9a0ec7d5556d', 'name': 'ctest-vn-36689193', 'tenant_id': 'd2fa7820366f49f68413cc9064cccabf', 'project_id': 'd2fa7820366f49f68413cc9064cccabf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00349471', 'ctest-vn-36689193'], 'port_security_enabled': True, 'description': ''}}
2025-08-31 06:42:23,283 - DEBUG - Response for create_subnet : {'subnet': {'id': '9cfbeb74-99e1-4052-918a-2a48cfdde25f', 'name': '', 'tenant_id': 'd2fa7820366f49f68413cc9064cccabf', 'network_id': '275c004d-8074-4401-a975-9a0ec7d5556d', 'ip_version': 4, 'cidr': '209.58.222.64/26', 'allocation_pools': [{'start': '209.58.222.66', 'end': '209.58.222.126'}], 'gateway_ip': '209.58.222.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.58.222.66', 'tags': [], 'project_id': 'd2fa7820366f49f68413cc9064cccabf'}}
2025-08-31 06:42:23,301 - INFO - Created VN ctest-vn-36689193
2025-08-31 06:42:23,353 - DEBUG - VN ctest-vn-36689193 UUID is 275c004d-8074-4401-a975-9a0ec7d5556d
2025-08-31 06:42:23,505 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00349471:ctest-vn-21928333, 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-00349471:ctest-vn-36689193, 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-31 06:42:23,799 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5e261535-a0a3-41c6-97df-061b611e17dd', 'name': 'ctest-vn-21928333', 'tenant_id': 'd2fa7820366f49f68413cc9064cccabf', 'project_id': 'd2fa7820366f49f68413cc9064cccabf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f4c753cf-55f8-4b6f-bb4c-da03256455af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00349471', 'ctest-vn-21928333'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00349471', 'ctest-policy-allow-all-11684173']], 'subnet_ipam': [{'subnet_cidr': '170.186.210.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-31 06:42:24,064 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '275c004d-8074-4401-a975-9a0ec7d5556d', 'name': 'ctest-vn-36689193', 'tenant_id': 'd2fa7820366f49f68413cc9064cccabf', 'project_id': 'd2fa7820366f49f68413cc9064cccabf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9cfbeb74-99e1-4052-918a-2a48cfdde25f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00349471', 'ctest-vn-36689193'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00349471', 'ctest-policy-allow-all-11684173']], 'subnet_ipam': [{'subnet_cidr': '209.58.222.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-31 06:42:24,213 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-31 06:42:24,520 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-31 06:42:24,548 - DEBUG - Requesting: http://10.0.0.33:8082/domain/63d3f03e-b5fb-422f-8732-e88dce41561a
2025-08-31 06:42:24,559 - DEBUG - Requesting: http://10.0.0.33:8082/project/d2fa7820-366f-49f6-8413-cc9064cccabf
2025-08-31 06:42:24,638 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5e261535-a0a3-41c6-97df-061b611e17dd
2025-08-31 06:42:24,652 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5e261535-a0a3-41c6-97df-061b611e17dd
2025-08-31 06:42:24,663 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8eaa2753-636d-4d16-bbe8-8bae86034702
2025-08-31 06:42:24,670 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8eaa2753-636d-4d16-bbe8-8bae86034702
2025-08-31 06:42:24,677 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/66a4462c-ed94-49c7-b244-785e85ac27a1
2025-08-31 06:42:24,683 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-31 06:42:24,684 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5e261535-a0a3-41c6-97df-061b611e17dd
2025-08-31 06:42:24,691 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8eaa2753-636d-4d16-bbe8-8bae86034702
2025-08-31 06:42:24,705 - INFO - Verified VN network id 9 for VN 5e261535-a0a3-41c6-97df-061b611e17dd
2025-08-31 06:42:24,705 - INFO - Verifications in API Server for VN ctest-vn-21928333 passed
2025-08-31 06:42:24,705 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5e261535-a0a3-41c6-97df-061b611e17dd
2025-08-31 06:42:24,714 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8eaa2753-636d-4d16-bbe8-8bae86034702
2025-08-31 06:42:24,721 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8eaa2753-636d-4d16-bbe8-8bae86034702
2025-08-31 06:42:24,728 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/66a4462c-ed94-49c7-b244-785e85ac27a1
2025-08-31 06:42:24,739 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00349471:ctest-vn-21928333', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00349471', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6784133208752734662', 'uuid-lslong': '10943472334196840413'}, 'enable': 'true', 'created': '2025-08-31T06:42:22', 'last-modified': '2025-08-31T06:42:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.965867'}
2025-08-31 06:42:24,745 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-31 06:42:24,745 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21928333 passed
2025-08-31 06:42:24,745 - DEBUG - ====Verifying policy data for ctest-vn-21928333 in API_Server ======
2025-08-31 06:42:24,745 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-31 06:42:24,751 - DEBUG - Requesting: http://10.0.0.33:8082/domain/63d3f03e-b5fb-422f-8732-e88dce41561a
2025-08-31 06:42:24,764 - DEBUG - Requesting: http://10.0.0.33:8082/project/d2fa7820-366f-49f6-8413-cc9064cccabf
2025-08-31 06:42:24,837 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5e261535-a0a3-41c6-97df-061b611e17dd
2025-08-31 06:42:24,846 - DEBUG - ==>Verifying data for policy with id: c5f75629-bebe-4f7e-808e-a71ce1829b9b, fqn: ['default-domain', 'ctest-TestBasicPolicy-00349471', 'ctest-policy-allow-all-11684173']
2025-08-31 06:42:24,846 - INFO - VN ctest-vn-21928333 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-31 06:42:24,846 - DEBUG - Verifying the vn in opserver
2025-08-31 06:42:24,846 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00349471:ctest-vn-21928333 virtual network link through opserver 10.0.0.33
2025-08-31 06:42:24,846 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-31 06:42:25,138 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-31 06:42:25,193 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00349471:ctest-vn-21928333', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00349471:ctest-vn-21928333?flat'}
2025-08-31 06:42:25,194 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00349471:ctest-vn-21928333 is found in opserver
2025-08-31 06:42:25,204 - DEBUG - Do not have enough data to verify VN in agent
2025-08-31 06:42:25,209 - DEBUG - VRF ids for VN ctest-vn-21928333: {}
2025-08-31 06:42:25,209 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-31 06:42:25,215 - DEBUG - Requesting: http://10.0.0.33:8082/domain/63d3f03e-b5fb-422f-8732-e88dce41561a
2025-08-31 06:42:25,226 - DEBUG - Requesting: http://10.0.0.33:8082/project/d2fa7820-366f-49f6-8413-cc9064cccabf
2025-08-31 06:42:25,292 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/275c004d-8074-4401-a975-9a0ec7d5556d
2025-08-31 06:42:25,304 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/275c004d-8074-4401-a975-9a0ec7d5556d
2025-08-31 06:42:25,313 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a58ff812-f90f-4612-aac8-7980ca206310
2025-08-31 06:42:25,320 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a58ff812-f90f-4612-aac8-7980ca206310
2025-08-31 06:42:25,326 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/74d8a1cf-b7d8-4ad9-92cc-55458a98eff8
2025-08-31 06:42:25,331 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-31 06:42:25,331 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/275c004d-8074-4401-a975-9a0ec7d5556d
2025-08-31 06:42:25,341 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a58ff812-f90f-4612-aac8-7980ca206310
2025-08-31 06:42:25,353 - INFO - Verified VN network id 10 for VN 275c004d-8074-4401-a975-9a0ec7d5556d
2025-08-31 06:42:25,353 - INFO - Verifications in API Server for VN ctest-vn-36689193 passed
2025-08-31 06:42:25,353 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/275c004d-8074-4401-a975-9a0ec7d5556d
2025-08-31 06:42:25,361 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a58ff812-f90f-4612-aac8-7980ca206310
2025-08-31 06:42:25,369 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a58ff812-f90f-4612-aac8-7980ca206310
2025-08-31 06:42:25,378 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/74d8a1cf-b7d8-4ad9-92cc-55458a98eff8
2025-08-31 06:42:25,389 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00349471:ctest-vn-36689193', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00349471', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2836142198204154881', 'uuid-lslong': '12210835352957834605'}, 'enable': 'true', 'created': '2025-08-31T06:42:23', 'last-modified': '2025-08-31T06:42:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.390664'}
2025-08-31 06:42:25,396 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-31 06:42:25,396 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36689193 passed
2025-08-31 06:42:25,396 - DEBUG - ====Verifying policy data for ctest-vn-36689193 in API_Server ======
2025-08-31 06:42:25,396 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-31 06:42:25,402 - DEBUG - Requesting: http://10.0.0.33:8082/domain/63d3f03e-b5fb-422f-8732-e88dce41561a
2025-08-31 06:42:25,412 - DEBUG - Requesting: http://10.0.0.33:8082/project/d2fa7820-366f-49f6-8413-cc9064cccabf
2025-08-31 06:42:25,496 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/275c004d-8074-4401-a975-9a0ec7d5556d
2025-08-31 06:42:25,505 - DEBUG - ==>Verifying data for policy with id: c5f75629-bebe-4f7e-808e-a71ce1829b9b, fqn: ['default-domain', 'ctest-TestBasicPolicy-00349471', 'ctest-policy-allow-all-11684173']
2025-08-31 06:42:25,505 - INFO - VN ctest-vn-36689193 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-31 06:42:25,506 - DEBUG - Verifying the vn in opserver
2025-08-31 06:42:25,506 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00349471:ctest-vn-36689193 virtual network link through opserver 10.0.0.33
2025-08-31 06:42:25,506 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-31 06:42:25,515 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00349471:ctest-vn-36689193', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00349471:ctest-vn-36689193?flat'}
2025-08-31 06:42:25,515 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00349471:ctest-vn-36689193 is found in opserver
2025-08-31 06:42:25,524 - DEBUG - Do not have enough data to verify VN in agent
2025-08-31 06:42:25,528 - DEBUG - VRF ids for VN ctest-vn-36689193: {}
2025-08-31 06:42:25,584 - DEBUG - Services list from nova: [