2024-09-03 17:52:59,389 - INFO - Domain Default found not creating
2024-09-03 17:52:59,604 - INFO - Project ctest-TestBasicPolicy-90490745 not found, creating it
2024-09-03 17:53:00,111 - INFO - Created Project:ctest-TestBasicPolicy-90490745, ID : 4b55b67a-b7b7-4aa1-9833-a319b6ae11ae
2024-09-03 17:53:01,887 - INFO - ================================================================================
2024-09-03 17:53:01,887 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-03 17:53:01,887 - 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
2024-09-03 17:53:02,162 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.5': '0'}} with
2024-09-03 17:53:02,162 - INFO - Initial checks done. Running the testcase now
2024-09-03 17:53:02,162 - INFO -
2024-09-03 17:53:02,882 - DEBUG - Response for create_network : {'network': {'id': '9056eaf1-09ea-4d57-a7e4-ba8d05234263', 'name': 'ctest-vn-28737841', 'tenant_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'project_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90490745', 'ctest-vn-28737841'], 'port_security_enabled': True, 'description': ''}}
2024-09-03 17:53:03,103 - DEBUG - Response for create_subnet : {'subnet': {'id': '4fd1fb7c-118f-49e3-94a0-6196140786b7', 'name': '', 'tenant_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'network_id': '9056eaf1-09ea-4d57-a7e4-ba8d05234263', 'ip_version': 4, 'cidr': '182.91.122.128/26', 'allocation_pools': [{'start': '182.91.122.130', 'end': '182.91.122.190'}], 'gateway_ip': '182.91.122.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.91.122.130', 'tags': [], 'project_id': '4b55b67ab7b74aa19833a319b6ae11ae'}}
2024-09-03 17:53:03,131 - INFO - Created VN ctest-vn-28737841
2024-09-03 17:53:03,182 - DEBUG - VN ctest-vn-28737841 UUID is 9056eaf1-09ea-4d57-a7e4-ba8d05234263
2024-09-03 17:53:03,514 - DEBUG - Response for create_network : {'network': {'id': '9b234d10-52f5-4950-8b26-999880e3f39e', 'name': 'ctest-vn-46197767', 'tenant_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'project_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90490745', 'ctest-vn-46197767'], 'port_security_enabled': True, 'description': ''}}
2024-09-03 17:53:03,709 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b63510a-04bb-4be6-b198-97406c3631dc', 'name': '', 'tenant_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'network_id': '9b234d10-52f5-4950-8b26-999880e3f39e', 'ip_version': 4, 'cidr': '154.30.255.0/26', 'allocation_pools': [{'start': '154.30.255.2', 'end': '154.30.255.62'}], 'gateway_ip': '154.30.255.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.30.255.2', 'tags': [], 'project_id': '4b55b67ab7b74aa19833a319b6ae11ae'}}
2024-09-03 17:53:03,730 - INFO - Created VN ctest-vn-46197767
2024-09-03 17:53:03,782 - DEBUG - VN ctest-vn-46197767 UUID is 9b234d10-52f5-4950-8b26-999880e3f39e
2024-09-03 17:53:03,916 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-28737841, 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-90490745:ctest-vn-46197767, 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]
2024-09-03 17:53:04,236 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9056eaf1-09ea-4d57-a7e4-ba8d05234263', 'name': 'ctest-vn-28737841', 'tenant_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'project_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4fd1fb7c-118f-49e3-94a0-6196140786b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90490745', 'ctest-vn-28737841'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90490745', 'ctest-policy-allow-all-11628210']], 'subnet_ipam': [{'subnet_cidr': '182.91.122.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-03 17:53:04,505 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b234d10-52f5-4950-8b26-999880e3f39e', 'name': 'ctest-vn-46197767', 'tenant_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'project_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7b63510a-04bb-4be6-b198-97406c3631dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90490745', 'ctest-vn-46197767'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90490745', 'ctest-policy-allow-all-11628210']], 'subnet_ipam': [{'subnet_cidr': '154.30.255.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-03 17:53:04,670 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-09-03 17:53:05,018 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-09-03 17:53:05,053 - DEBUG - Requesting: http://10.0.0.36:8082/domain/3abda3ec-3f5d-4d25-a43d-e1e328e304ae
2024-09-03 17:53:05,068 - DEBUG - Requesting: http://10.0.0.36:8082/project/4b55b67a-b7b7-4aa1-9833-a319b6ae11ae
2024-09-03 17:53:05,143 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9056eaf1-09ea-4d57-a7e4-ba8d05234263
2024-09-03 17:53:05,155 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9056eaf1-09ea-4d57-a7e4-ba8d05234263
2024-09-03 17:53:05,164 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d1c05c1a-5a37-4a41-b094-3de5b1479cb1
2024-09-03 17:53:05,171 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d1c05c1a-5a37-4a41-b094-3de5b1479cb1
2024-09-03 17:53:05,178 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/e62ac04a-2c09-417a-b125-c3ad385d8fb6
2024-09-03 17:53:05,186 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-03 17:53:05,186 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9056eaf1-09ea-4d57-a7e4-ba8d05234263
2024-09-03 17:53:05,194 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d1c05c1a-5a37-4a41-b094-3de5b1479cb1
2024-09-03 17:53:05,207 - INFO - Verified VN network id 8 for VN 9056eaf1-09ea-4d57-a7e4-ba8d05234263
2024-09-03 17:53:05,207 - INFO - Verifications in API Server for VN ctest-vn-28737841 passed
2024-09-03 17:53:05,207 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9056eaf1-09ea-4d57-a7e4-ba8d05234263
2024-09-03 17:53:05,216 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d1c05c1a-5a37-4a41-b094-3de5b1479cb1
2024-09-03 17:53:05,224 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d1c05c1a-5a37-4a41-b094-3de5b1479cb1
2024-09-03 17:53:05,233 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/e62ac04a-2c09-417a-b125-c3ad385d8fb6
2024-09-03 17:53:05,246 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-28737841', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90490745', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10400758710433107287', 'uuid-lslong': '12097999613863346787'}, 'enable': 'true', 'created': '2024-09-03T17:53:02', 'last-modified': '2024-09-03T17:53:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.047741'}
2024-09-03 17:53:05,253 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-03 17:53:05,253 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28737841 passed
2024-09-03 17:53:05,253 - DEBUG - ====Verifying policy data for ctest-vn-28737841 in API_Server ======
2024-09-03 17:53:05,254 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-09-03 17:53:05,260 - DEBUG - Requesting: http://10.0.0.36:8082/domain/3abda3ec-3f5d-4d25-a43d-e1e328e304ae
2024-09-03 17:53:05,273 - DEBUG - Requesting: http://10.0.0.36:8082/project/4b55b67a-b7b7-4aa1-9833-a319b6ae11ae
2024-09-03 17:53:05,347 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9056eaf1-09ea-4d57-a7e4-ba8d05234263
2024-09-03 17:53:05,356 - DEBUG - ==>Verifying data for policy with id: 32239681-40db-42f8-b7eb-4ff2e815f5f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-90490745', 'ctest-policy-allow-all-11628210']
2024-09-03 17:53:05,356 - INFO - VN ctest-vn-28737841 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-03 17:53:05,356 - DEBUG - Verifying the vn in opserver
2024-09-03 17:53:05,357 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-28737841 virtual network link through opserver 10.0.0.36
2024-09-03 17:53:05,357 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-09-03 17:53:05,699 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-09-03 17:53:05,768 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-28737841', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-28737841?flat'}
2024-09-03 17:53:05,768 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-28737841 is found in opserver
2024-09-03 17:53:05,782 - DEBUG - Do not have enough data to verify VN in agent
2024-09-03 17:53:05,787 - DEBUG - VRF ids for VN ctest-vn-28737841: {}
2024-09-03 17:53:05,788 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-09-03 17:53:05,794 - DEBUG - Requesting: http://10.0.0.36:8082/domain/3abda3ec-3f5d-4d25-a43d-e1e328e304ae
2024-09-03 17:53:05,807 - DEBUG - Requesting: http://10.0.0.36:8082/project/4b55b67a-b7b7-4aa1-9833-a319b6ae11ae
2024-09-03 17:53:05,878 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9b234d10-52f5-4950-8b26-999880e3f39e
2024-09-03 17:53:05,889 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9b234d10-52f5-4950-8b26-999880e3f39e
2024-09-03 17:53:05,898 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/37facd2e-6ad7-44b2-90c1-0ab00a73f152
2024-09-03 17:53:05,906 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/37facd2e-6ad7-44b2-90c1-0ab00a73f152
2024-09-03 17:53:05,914 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/f137ef63-d1f7-49b4-9c0a-fa3241fc2359
2024-09-03 17:53:05,921 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-03 17:53:05,921 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9b234d10-52f5-4950-8b26-999880e3f39e
2024-09-03 17:53:05,929 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/37facd2e-6ad7-44b2-90c1-0ab00a73f152
2024-09-03 17:53:05,942 - INFO - Verified VN network id 9 for VN 9b234d10-52f5-4950-8b26-999880e3f39e
2024-09-03 17:53:05,942 - INFO - Verifications in API Server for VN ctest-vn-46197767 passed
2024-09-03 17:53:05,942 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9b234d10-52f5-4950-8b26-999880e3f39e
2024-09-03 17:53:05,955 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/37facd2e-6ad7-44b2-90c1-0ab00a73f152
2024-09-03 17:53:05,962 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/37facd2e-6ad7-44b2-90c1-0ab00a73f152
2024-09-03 17:53:05,970 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/f137ef63-d1f7-49b4-9c0a-fa3241fc2359
2024-09-03 17:53:05,991 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-46197767', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90490745', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11178863432570325328', 'uuid-lslong': '10026870500663489438'}, 'enable': 'true', 'created': '2024-09-03T17:53:03', 'last-modified': '2024-09-03T17:53:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.517253'}
2024-09-03 17:53:05,999 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-03 17:53:05,999 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46197767 passed
2024-09-03 17:53:05,999 - DEBUG - ====Verifying policy data for ctest-vn-46197767 in API_Server ======
2024-09-03 17:53:05,999 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-09-03 17:53:06,024 - DEBUG - Requesting: http://10.0.0.36:8082/domain/3abda3ec-3f5d-4d25-a43d-e1e328e304ae
2024-09-03 17:53:06,042 - DEBUG - Requesting: http://10.0.0.36:8082/project/4b55b67a-b7b7-4aa1-9833-a319b6ae11ae
2024-09-03 17:53:06,116 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9b234d10-52f5-4950-8b26-999880e3f39e
2024-09-03 17:53:06,126 - DEBUG - ==>Verifying data for policy with id: 32239681-40db-42f8-b7eb-4ff2e815f5f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-90490745', 'ctest-policy-allow-all-11628210']
2024-09-03 17:53:06,126 - INFO - VN ctest-vn-46197767 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-03 17:53:06,126 - DEBUG - Verifying the vn in opserver
2024-09-03 17:53:06,126 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-46197767 virtual network link through opserver 10.0.0.36
2024-09-03 17:53:06,126 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-09-03 17:53:06,142 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-46197767', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-46197767?flat'}
2024-09-03 17:53:06,142 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-46197767 is found in opserver
2024-09-03 17:53:06,157 - DEBUG - Do not have enough data to verify VN in agent
2024-09-03 17:53:06,164 - DEBUG - VRF ids for VN ctest-vn-46197767: {}
2024-09-03 17:53:06,229 - DEBUG - Services list from nova: [