2025-08-27 17:23:37,162 - INFO - Domain Default found not creating
2025-08-27 17:23:37,287 - INFO - Project ctest-TestBasicPolicy-62887952 not found, creating it
2025-08-27 17:23:37,712 - INFO - Created Project:ctest-TestBasicPolicy-62887952, ID : 893e584c-c948-41c0-9c11-0dd8bf07133c
2025-08-27 17:23:39,078 - INFO - ================================================================================
2025-08-27 17:23:39,079 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-27 17:23:39,079 - 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-27 17:23:39,330 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-08-27 17:23:39,330 - INFO - Initial checks done. Running the testcase now
2025-08-27 17:23:39,330 - INFO -
2025-08-27 17:23:39,858 - DEBUG - Response for create_network : {'network': {'id': '78d96775-abd3-411f-8483-21c8d4eb0e6f', 'name': 'ctest-vn-67406177', 'tenant_id': '893e584cc94841c09c110dd8bf07133c', 'project_id': '893e584cc94841c09c110dd8bf07133c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62887952', 'ctest-vn-67406177'], 'port_security_enabled': True, 'description': ''}}
2025-08-27 17:23:40,023 - DEBUG - Response for create_subnet : {'subnet': {'id': '68e66876-1949-479a-9f83-6e0955eda386', 'name': '', 'tenant_id': '893e584cc94841c09c110dd8bf07133c', 'network_id': '78d96775-abd3-411f-8483-21c8d4eb0e6f', 'ip_version': 4, 'cidr': '201.238.174.0/26', 'allocation_pools': [{'start': '201.238.174.2', 'end': '201.238.174.62'}], 'gateway_ip': '201.238.174.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.238.174.2', 'tags': [], 'project_id': '893e584cc94841c09c110dd8bf07133c'}}
2025-08-27 17:23:40,039 - INFO - Created VN ctest-vn-67406177
2025-08-27 17:23:40,089 - DEBUG - VN ctest-vn-67406177 UUID is 78d96775-abd3-411f-8483-21c8d4eb0e6f
2025-08-27 17:23:40,403 - DEBUG - Response for create_network : {'network': {'id': 'a3841c88-fe1a-42b6-ab9d-1449d83963ac', 'name': 'ctest-vn-53165929', 'tenant_id': '893e584cc94841c09c110dd8bf07133c', 'project_id': '893e584cc94841c09c110dd8bf07133c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62887952', 'ctest-vn-53165929'], 'port_security_enabled': True, 'description': ''}}
2025-08-27 17:23:40,575 - DEBUG - Response for create_subnet : {'subnet': {'id': '34d72f63-f00c-4584-a83b-4f8ce2e92f56', 'name': '', 'tenant_id': '893e584cc94841c09c110dd8bf07133c', 'network_id': 'a3841c88-fe1a-42b6-ab9d-1449d83963ac', 'ip_version': 4, 'cidr': '40.38.108.64/26', 'allocation_pools': [{'start': '40.38.108.66', 'end': '40.38.108.126'}], 'gateway_ip': '40.38.108.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.38.108.66', 'tags': [], 'project_id': '893e584cc94841c09c110dd8bf07133c'}}
2025-08-27 17:23:40,591 - INFO - Created VN ctest-vn-53165929
2025-08-27 17:23:40,641 - DEBUG - VN ctest-vn-53165929 UUID is a3841c88-fe1a-42b6-ab9d-1449d83963ac
2025-08-27 17:23:40,789 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-67406177, 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-62887952:ctest-vn-53165929, 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-27 17:23:41,081 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '78d96775-abd3-411f-8483-21c8d4eb0e6f', 'name': 'ctest-vn-67406177', 'tenant_id': '893e584cc94841c09c110dd8bf07133c', 'project_id': '893e584cc94841c09c110dd8bf07133c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68e66876-1949-479a-9f83-6e0955eda386'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62887952', 'ctest-vn-67406177'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62887952', 'ctest-policy-allow-all-03355136']], 'subnet_ipam': [{'subnet_cidr': '201.238.174.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-27 17:23:41,304 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a3841c88-fe1a-42b6-ab9d-1449d83963ac', 'name': 'ctest-vn-53165929', 'tenant_id': '893e584cc94841c09c110dd8bf07133c', 'project_id': '893e584cc94841c09c110dd8bf07133c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['34d72f63-f00c-4584-a83b-4f8ce2e92f56'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62887952', 'ctest-vn-53165929'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62887952', 'ctest-policy-allow-all-03355136']], 'subnet_ipam': [{'subnet_cidr': '40.38.108.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-27 17:23:41,449 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-27 17:23:41,743 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-27 17:23:41,767 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f6cdc217-967e-4f16-93f8-ca2fa63366d7
2025-08-27 17:23:41,777 - DEBUG - Requesting: http://10.0.0.38:8082/project/893e584c-c948-41c0-9c11-0dd8bf07133c
2025-08-27 17:23:41,860 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/78d96775-abd3-411f-8483-21c8d4eb0e6f
2025-08-27 17:23:41,873 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/78d96775-abd3-411f-8483-21c8d4eb0e6f
2025-08-27 17:23:41,883 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efbf4a5e-128d-4c9a-883d-d4a93d2ada2b
2025-08-27 17:23:41,890 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efbf4a5e-128d-4c9a-883d-d4a93d2ada2b
2025-08-27 17:23:41,898 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c36b0493-9466-420e-8eaf-7eeb15a4cb07
2025-08-27 17:23:41,905 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-27 17:23:41,906 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/78d96775-abd3-411f-8483-21c8d4eb0e6f
2025-08-27 17:23:41,915 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efbf4a5e-128d-4c9a-883d-d4a93d2ada2b
2025-08-27 17:23:41,927 - INFO - Verified VN network id 11 for VN 78d96775-abd3-411f-8483-21c8d4eb0e6f
2025-08-27 17:23:41,927 - INFO - Verifications in API Server for VN ctest-vn-67406177 passed
2025-08-27 17:23:41,927 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/78d96775-abd3-411f-8483-21c8d4eb0e6f
2025-08-27 17:23:41,936 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efbf4a5e-128d-4c9a-883d-d4a93d2ada2b
2025-08-27 17:23:41,942 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efbf4a5e-128d-4c9a-883d-d4a93d2ada2b
2025-08-27 17:23:41,948 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c36b0493-9466-420e-8eaf-7eeb15a4cb07
2025-08-27 17:23:41,959 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-67406177', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62887952', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8708105109589147935', 'uuid-lslong': '9548512781404933743'}, 'enable': 'true', 'created': '2025-08-27T17:23:39', 'last-modified': '2025-08-27T17:23:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.894652'}
2025-08-27 17:23:41,965 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-27 17:23:41,965 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67406177 passed
2025-08-27 17:23:41,965 - DEBUG - ====Verifying policy data for ctest-vn-67406177 in API_Server ======
2025-08-27 17:23:41,965 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-27 17:23:41,973 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f6cdc217-967e-4f16-93f8-ca2fa63366d7
2025-08-27 17:23:41,983 - DEBUG - Requesting: http://10.0.0.38:8082/project/893e584c-c948-41c0-9c11-0dd8bf07133c
2025-08-27 17:23:42,056 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/78d96775-abd3-411f-8483-21c8d4eb0e6f
2025-08-27 17:23:42,064 - DEBUG - ==>Verifying data for policy with id: 24cbe720-5969-4828-a43e-fb0055df8d32, fqn: ['default-domain', 'ctest-TestBasicPolicy-62887952', 'ctest-policy-allow-all-03355136']
2025-08-27 17:23:42,064 - INFO - VN ctest-vn-67406177 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-27 17:23:42,064 - DEBUG - Verifying the vn in opserver
2025-08-27 17:23:42,065 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-67406177 virtual network link through opserver 10.0.0.38
2025-08-27 17:23:42,065 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-27 17:23:42,356 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-27 17:23:42,404 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-67406177', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-67406177?flat'}
2025-08-27 17:23:42,404 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-67406177 is found in opserver
2025-08-27 17:23:42,412 - DEBUG - Do not have enough data to verify VN in agent
2025-08-27 17:23:42,415 - DEBUG - VRF ids for VN ctest-vn-67406177: {}
2025-08-27 17:23:42,415 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-27 17:23:42,419 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f6cdc217-967e-4f16-93f8-ca2fa63366d7
2025-08-27 17:23:42,428 - DEBUG - Requesting: http://10.0.0.38:8082/project/893e584c-c948-41c0-9c11-0dd8bf07133c
2025-08-27 17:23:42,493 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a3841c88-fe1a-42b6-ab9d-1449d83963ac
2025-08-27 17:23:42,503 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a3841c88-fe1a-42b6-ab9d-1449d83963ac
2025-08-27 17:23:42,511 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93ef7194-8065-484e-8d4e-ded061670c6d
2025-08-27 17:23:42,516 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93ef7194-8065-484e-8d4e-ded061670c6d
2025-08-27 17:23:42,521 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c3d2d13b-7ae5-4b7d-9407-76c66c8cb478
2025-08-27 17:23:42,526 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-27 17:23:42,526 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a3841c88-fe1a-42b6-ab9d-1449d83963ac
2025-08-27 17:23:42,532 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93ef7194-8065-484e-8d4e-ded061670c6d
2025-08-27 17:23:42,542 - INFO - Verified VN network id 12 for VN a3841c88-fe1a-42b6-ab9d-1449d83963ac
2025-08-27 17:23:42,542 - INFO - Verifications in API Server for VN ctest-vn-53165929 passed
2025-08-27 17:23:42,542 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a3841c88-fe1a-42b6-ab9d-1449d83963ac
2025-08-27 17:23:42,549 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93ef7194-8065-484e-8d4e-ded061670c6d
2025-08-27 17:23:42,553 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93ef7194-8065-484e-8d4e-ded061670c6d
2025-08-27 17:23:42,558 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c3d2d13b-7ae5-4b7d-9407-76c66c8cb478
2025-08-27 17:23:42,567 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-53165929', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62887952', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11782573899812324022', 'uuid-lslong': '12366062459222057900'}, 'enable': 'true', 'created': '2025-08-27T17:23:40', 'last-modified': '2025-08-27T17:23:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.280989'}
2025-08-27 17:23:42,571 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-27 17:23:42,572 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53165929 passed
2025-08-27 17:23:42,572 - DEBUG - ====Verifying policy data for ctest-vn-53165929 in API_Server ======
2025-08-27 17:23:42,572 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-27 17:23:42,577 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f6cdc217-967e-4f16-93f8-ca2fa63366d7
2025-08-27 17:23:42,585 - DEBUG - Requesting: http://10.0.0.38:8082/project/893e584c-c948-41c0-9c11-0dd8bf07133c
2025-08-27 17:23:42,647 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a3841c88-fe1a-42b6-ab9d-1449d83963ac
2025-08-27 17:23:42,655 - DEBUG - ==>Verifying data for policy with id: 24cbe720-5969-4828-a43e-fb0055df8d32, fqn: ['default-domain', 'ctest-TestBasicPolicy-62887952', 'ctest-policy-allow-all-03355136']
2025-08-27 17:23:42,655 - INFO - VN ctest-vn-53165929 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-27 17:23:42,655 - DEBUG - Verifying the vn in opserver
2025-08-27 17:23:42,655 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-53165929 virtual network link through opserver 10.0.0.38
2025-08-27 17:23:42,655 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-27 17:23:42,663 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-53165929', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-53165929?flat'}
2025-08-27 17:23:42,663 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-53165929 is found in opserver
2025-08-27 17:23:42,670 - DEBUG - Do not have enough data to verify VN in agent
2025-08-27 17:23:42,674 - DEBUG - VRF ids for VN ctest-vn-53165929: {}
2025-08-27 17:23:42,724 - DEBUG - Services list from nova: [