2025-06-19 12:36:14,266 - INFO - Domain Default found not creating
2025-06-19 12:36:14,406 - INFO - Project ctest-TestBasicPolicy-53436411 not found, creating it
2025-06-19 12:36:14,856 - INFO - Created Project:ctest-TestBasicPolicy-53436411, ID : 8ac26314-b5a5-4e9b-9adc-85bf66d8accf
2025-06-19 12:36:16,304 - INFO - ================================================================================
2025-06-19 12:36:16,304 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-19 12:36:16,304 - 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-19 12:36:16,559 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2025-06-19 12:36:16,559 - INFO - Initial checks done. Running the testcase now
2025-06-19 12:36:16,559 - INFO -
2025-06-19 12:36:17,087 - DEBUG - Response for create_network : {'network': {'id': 'ab335c2f-8708-462d-af24-5b362546f06d', 'name': 'ctest-vn-77638886', 'tenant_id': '8ac26314b5a54e9b9adc85bf66d8accf', 'project_id': '8ac26314b5a54e9b9adc85bf66d8accf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53436411', 'ctest-vn-77638886'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 12:36:17,247 - DEBUG - Response for create_subnet : {'subnet': {'id': '59ac9e62-82f3-4d7e-8517-a479d66f5329', 'name': '', 'tenant_id': '8ac26314b5a54e9b9adc85bf66d8accf', 'network_id': 'ab335c2f-8708-462d-af24-5b362546f06d', 'ip_version': 4, 'cidr': '179.36.102.192/26', 'allocation_pools': [{'start': '179.36.102.194', 'end': '179.36.102.254'}], 'gateway_ip': '179.36.102.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.36.102.194', 'tags': [], 'project_id': '8ac26314b5a54e9b9adc85bf66d8accf'}}
2025-06-19 12:36:17,264 - INFO - Created VN ctest-vn-77638886
2025-06-19 12:36:17,317 - DEBUG - VN ctest-vn-77638886 UUID is ab335c2f-8708-462d-af24-5b362546f06d
2025-06-19 12:36:17,643 - DEBUG - Response for create_network : {'network': {'id': '5358eeef-ce18-401a-ad52-485ecb8bc9b7', 'name': 'ctest-vn-53847333', 'tenant_id': '8ac26314b5a54e9b9adc85bf66d8accf', 'project_id': '8ac26314b5a54e9b9adc85bf66d8accf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53436411', 'ctest-vn-53847333'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 12:36:17,873 - DEBUG - Response for create_subnet : {'subnet': {'id': '29c8097b-de4c-4844-b4b2-06084f3130dd', 'name': '', 'tenant_id': '8ac26314b5a54e9b9adc85bf66d8accf', 'network_id': '5358eeef-ce18-401a-ad52-485ecb8bc9b7', 'ip_version': 4, 'cidr': '40.119.115.128/26', 'allocation_pools': [{'start': '40.119.115.130', 'end': '40.119.115.190'}], 'gateway_ip': '40.119.115.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.119.115.130', 'tags': [], 'project_id': '8ac26314b5a54e9b9adc85bf66d8accf'}}
2025-06-19 12:36:17,894 - INFO - Created VN ctest-vn-53847333
2025-06-19 12:36:17,949 - DEBUG - VN ctest-vn-53847333 UUID is 5358eeef-ce18-401a-ad52-485ecb8bc9b7
2025-06-19 12:36:18,062 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53436411:ctest-vn-77638886, 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-53436411:ctest-vn-53847333, 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-19 12:36:18,356 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab335c2f-8708-462d-af24-5b362546f06d', 'name': 'ctest-vn-77638886', 'tenant_id': '8ac26314b5a54e9b9adc85bf66d8accf', 'project_id': '8ac26314b5a54e9b9adc85bf66d8accf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['59ac9e62-82f3-4d7e-8517-a479d66f5329'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53436411', 'ctest-vn-77638886'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53436411', 'ctest-policy-allow-all-34139782']], 'subnet_ipam': [{'subnet_cidr': '179.36.102.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 12:36:18,594 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5358eeef-ce18-401a-ad52-485ecb8bc9b7', 'name': 'ctest-vn-53847333', 'tenant_id': '8ac26314b5a54e9b9adc85bf66d8accf', 'project_id': '8ac26314b5a54e9b9adc85bf66d8accf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['29c8097b-de4c-4844-b4b2-06084f3130dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53436411', 'ctest-vn-53847333'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53436411', 'ctest-policy-allow-all-34139782']], 'subnet_ipam': [{'subnet_cidr': '40.119.115.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 12:36:18,761 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-06-19 12:36:19,059 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-06-19 12:36:19,086 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2f83ff3a-cf53-4759-8661-0ed47021069a
2025-06-19 12:36:19,098 - DEBUG - Requesting: http://10.0.0.33:8082/project/8ac26314-b5a5-4e9b-9adc-85bf66d8accf
2025-06-19 12:36:19,172 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ab335c2f-8708-462d-af24-5b362546f06d
2025-06-19 12:36:19,183 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ab335c2f-8708-462d-af24-5b362546f06d
2025-06-19 12:36:19,192 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/60b1c984-71ec-4f5c-abcd-64a1f0658a4d
2025-06-19 12:36:19,200 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/60b1c984-71ec-4f5c-abcd-64a1f0658a4d
2025-06-19 12:36:19,207 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/560d2318-fb00-47dd-ad58-1e44219837a0
2025-06-19 12:36:19,213 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 12:36:19,213 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ab335c2f-8708-462d-af24-5b362546f06d
2025-06-19 12:36:19,221 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/60b1c984-71ec-4f5c-abcd-64a1f0658a4d
2025-06-19 12:36:19,234 - INFO - Verified VN network id 8 for VN ab335c2f-8708-462d-af24-5b362546f06d
2025-06-19 12:36:19,234 - INFO - Verifications in API Server for VN ctest-vn-77638886 passed
2025-06-19 12:36:19,234 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ab335c2f-8708-462d-af24-5b362546f06d
2025-06-19 12:36:19,243 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/60b1c984-71ec-4f5c-abcd-64a1f0658a4d
2025-06-19 12:36:19,249 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/60b1c984-71ec-4f5c-abcd-64a1f0658a4d
2025-06-19 12:36:19,256 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/560d2318-fb00-47dd-ad58-1e44219837a0
2025-06-19 12:36:19,269 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53436411:ctest-vn-77638886', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53436411', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12336305163496605229', 'uuid-lslong': '12620312343910740077'}, 'enable': 'true', 'created': '2025-06-19T12:36:17', 'last-modified': '2025-06-19T12:36:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.933999'}
2025-06-19 12:36:19,276 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 12:36:19,276 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77638886 passed
2025-06-19 12:36:19,277 - DEBUG - ====Verifying policy data for ctest-vn-77638886 in API_Server ======
2025-06-19 12:36:19,277 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-06-19 12:36:19,282 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2f83ff3a-cf53-4759-8661-0ed47021069a
2025-06-19 12:36:19,294 - DEBUG - Requesting: http://10.0.0.33:8082/project/8ac26314-b5a5-4e9b-9adc-85bf66d8accf
2025-06-19 12:36:19,371 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ab335c2f-8708-462d-af24-5b362546f06d
2025-06-19 12:36:19,382 - DEBUG - ==>Verifying data for policy with id: 53620b68-e1dc-48af-bd2b-aab85110a77d, fqn: ['default-domain', 'ctest-TestBasicPolicy-53436411', 'ctest-policy-allow-all-34139782']
2025-06-19 12:36:19,382 - INFO - VN ctest-vn-77638886 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 12:36:19,382 - DEBUG - Verifying the vn in opserver
2025-06-19 12:36:19,382 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53436411:ctest-vn-77638886 virtual network link through opserver 10.0.0.33
2025-06-19 12:36:19,382 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-06-19 12:36:19,680 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-06-19 12:36:19,735 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53436411:ctest-vn-77638886', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53436411:ctest-vn-77638886?flat'}
2025-06-19 12:36:19,735 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53436411:ctest-vn-77638886 is found in opserver
2025-06-19 12:36:19,746 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 12:36:19,751 - DEBUG - VRF ids for VN ctest-vn-77638886: {}
2025-06-19 12:36:19,751 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-06-19 12:36:19,757 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2f83ff3a-cf53-4759-8661-0ed47021069a
2025-06-19 12:36:19,770 - DEBUG - Requesting: http://10.0.0.33:8082/project/8ac26314-b5a5-4e9b-9adc-85bf66d8accf
2025-06-19 12:36:19,839 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5358eeef-ce18-401a-ad52-485ecb8bc9b7
2025-06-19 12:36:19,852 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5358eeef-ce18-401a-ad52-485ecb8bc9b7
2025-06-19 12:36:19,862 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/872fa7a1-dce6-4487-9712-d235b2efaca0
2025-06-19 12:36:19,869 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/872fa7a1-dce6-4487-9712-d235b2efaca0
2025-06-19 12:36:19,876 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1e065dbc-e218-4c2f-b5d6-393f4e9fcdb0
2025-06-19 12:36:19,882 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 12:36:19,882 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5358eeef-ce18-401a-ad52-485ecb8bc9b7
2025-06-19 12:36:19,890 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/872fa7a1-dce6-4487-9712-d235b2efaca0
2025-06-19 12:36:19,903 - INFO - Verified VN network id 9 for VN 5358eeef-ce18-401a-ad52-485ecb8bc9b7
2025-06-19 12:36:19,903 - INFO - Verifications in API Server for VN ctest-vn-53847333 passed
2025-06-19 12:36:19,903 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5358eeef-ce18-401a-ad52-485ecb8bc9b7
2025-06-19 12:36:19,912 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/872fa7a1-dce6-4487-9712-d235b2efaca0
2025-06-19 12:36:19,919 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/872fa7a1-dce6-4487-9712-d235b2efaca0
2025-06-19 12:36:19,926 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1e065dbc-e218-4c2f-b5d6-393f4e9fcdb0
2025-06-19 12:36:19,937 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53436411:ctest-vn-53847333', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53436411', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6005812816820846618', 'uuid-lslong': '12489124288630868407'}, 'enable': 'true', 'created': '2025-06-19T12:36:17', 'last-modified': '2025-06-19T12:36:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.371905'}
2025-06-19 12:36:19,943 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 12:36:19,943 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53847333 passed
2025-06-19 12:36:19,943 - DEBUG - ====Verifying policy data for ctest-vn-53847333 in API_Server ======
2025-06-19 12:36:19,944 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-06-19 12:36:19,950 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2f83ff3a-cf53-4759-8661-0ed47021069a
2025-06-19 12:36:19,962 - DEBUG - Requesting: http://10.0.0.33:8082/project/8ac26314-b5a5-4e9b-9adc-85bf66d8accf
2025-06-19 12:36:20,032 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5358eeef-ce18-401a-ad52-485ecb8bc9b7
2025-06-19 12:36:20,041 - DEBUG - ==>Verifying data for policy with id: 53620b68-e1dc-48af-bd2b-aab85110a77d, fqn: ['default-domain', 'ctest-TestBasicPolicy-53436411', 'ctest-policy-allow-all-34139782']
2025-06-19 12:36:20,041 - INFO - VN ctest-vn-53847333 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 12:36:20,041 - DEBUG - Verifying the vn in opserver
2025-06-19 12:36:20,042 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53436411:ctest-vn-53847333 virtual network link through opserver 10.0.0.33
2025-06-19 12:36:20,042 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-06-19 12:36:20,051 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53436411:ctest-vn-53847333', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53436411:ctest-vn-53847333?flat'}
2025-06-19 12:36:20,051 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53436411:ctest-vn-53847333 is found in opserver
2025-06-19 12:36:20,062 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 12:36:20,066 - DEBUG - VRF ids for VN ctest-vn-53847333: {}
2025-06-19 12:36:20,118 - DEBUG - Services list from nova: [