2024-08-26 17:11:51,740 - INFO - Domain Default found not creating
2024-08-26 17:11:51,919 - INFO - Project ctest-TestBasicPolicy-66862624 not found, creating it
2024-08-26 17:11:52,407 - INFO - Created Project:ctest-TestBasicPolicy-66862624, ID : b6742a02-4354-464a-ac25-ba60c507aff7
2024-08-26 17:11:53,986 - INFO - ================================================================================
2024-08-26 17:11:53,987 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-26 17:11:53,987 - 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-08-26 17:11:54,251 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.25': '0'}} with
2024-08-26 17:11:54,251 - INFO - Initial checks done. Running the testcase now
2024-08-26 17:11:54,251 - INFO -
2024-08-26 17:11:54,838 - DEBUG - Response for create_network : {'network': {'id': '29dd8b27-bca4-4cdb-af07-56617fda4a20', 'name': 'ctest-vn-94837702', 'tenant_id': 'b6742a024354464aac25ba60c507aff7', 'project_id': 'b6742a024354464aac25ba60c507aff7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66862624', 'ctest-vn-94837702'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 17:11:55,049 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd956cd96-bd71-43e7-9c9e-ec3cabb392b7', 'name': '', 'tenant_id': 'b6742a024354464aac25ba60c507aff7', 'network_id': '29dd8b27-bca4-4cdb-af07-56617fda4a20', 'ip_version': 4, 'cidr': '30.69.53.192/26', 'allocation_pools': [{'start': '30.69.53.194', 'end': '30.69.53.254'}], 'gateway_ip': '30.69.53.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.69.53.194', 'tags': [], 'project_id': 'b6742a024354464aac25ba60c507aff7'}}
2024-08-26 17:11:55,070 - INFO - Created VN ctest-vn-94837702
2024-08-26 17:11:55,120 - DEBUG - VN ctest-vn-94837702 UUID is 29dd8b27-bca4-4cdb-af07-56617fda4a20
2024-08-26 17:11:55,456 - DEBUG - Response for create_network : {'network': {'id': 'a2488187-e393-4813-b421-020407d786c5', 'name': 'ctest-vn-38346263', 'tenant_id': 'b6742a024354464aac25ba60c507aff7', 'project_id': 'b6742a024354464aac25ba60c507aff7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66862624', 'ctest-vn-38346263'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 17:11:55,685 - DEBUG - Response for create_subnet : {'subnet': {'id': '643c9393-4ff9-46bc-b276-de5721a2d67d', 'name': '', 'tenant_id': 'b6742a024354464aac25ba60c507aff7', 'network_id': 'a2488187-e393-4813-b421-020407d786c5', 'ip_version': 4, 'cidr': '8.5.117.192/26', 'allocation_pools': [{'start': '8.5.117.194', 'end': '8.5.117.254'}], 'gateway_ip': '8.5.117.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.5.117.194', 'tags': [], 'project_id': 'b6742a024354464aac25ba60c507aff7'}}
2024-08-26 17:11:55,705 - INFO - Created VN ctest-vn-38346263
2024-08-26 17:11:55,757 - DEBUG - VN ctest-vn-38346263 UUID is a2488187-e393-4813-b421-020407d786c5
2024-08-26 17:11:55,875 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66862624:ctest-vn-94837702, 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-66862624:ctest-vn-38346263, 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-08-26 17:11:56,184 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '29dd8b27-bca4-4cdb-af07-56617fda4a20', 'name': 'ctest-vn-94837702', 'tenant_id': 'b6742a024354464aac25ba60c507aff7', 'project_id': 'b6742a024354464aac25ba60c507aff7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d956cd96-bd71-43e7-9c9e-ec3cabb392b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66862624', 'ctest-vn-94837702'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66862624', 'ctest-policy-allow-all-47578058']], 'subnet_ipam': [{'subnet_cidr': '30.69.53.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 17:11:56,476 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a2488187-e393-4813-b421-020407d786c5', 'name': 'ctest-vn-38346263', 'tenant_id': 'b6742a024354464aac25ba60c507aff7', 'project_id': 'b6742a024354464aac25ba60c507aff7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['643c9393-4ff9-46bc-b276-de5721a2d67d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66862624', 'ctest-vn-38346263'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66862624', 'ctest-policy-allow-all-47578058']], 'subnet_ipam': [{'subnet_cidr': '8.5.117.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 17:11:56,628 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2024-08-26 17:11:56,929 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2024-08-26 17:11:57,241 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9e9e06ac-c228-4643-92b8-2538ac4f5e85
2024-08-26 17:11:57,256 - DEBUG - Requesting: http://10.0.0.49:8082/project/b6742a02-4354-464a-ac25-ba60c507aff7
2024-08-26 17:11:57,332 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/29dd8b27-bca4-4cdb-af07-56617fda4a20
2024-08-26 17:11:57,341 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/29dd8b27-bca4-4cdb-af07-56617fda4a20
2024-08-26 17:11:57,349 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7af0ef4e-1505-4269-84d9-4ca6725b7ef7
2024-08-26 17:11:57,356 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7af0ef4e-1505-4269-84d9-4ca6725b7ef7
2024-08-26 17:11:57,363 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/28563c9a-3e2f-4036-a356-e67aa258fe05
2024-08-26 17:11:57,369 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 17:11:57,369 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/29dd8b27-bca4-4cdb-af07-56617fda4a20
2024-08-26 17:11:57,377 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7af0ef4e-1505-4269-84d9-4ca6725b7ef7
2024-08-26 17:11:57,393 - INFO - Verified VN network id 8 for VN 29dd8b27-bca4-4cdb-af07-56617fda4a20
2024-08-26 17:11:57,393 - INFO - Verifications in API Server for VN ctest-vn-94837702 passed
2024-08-26 17:11:57,393 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/29dd8b27-bca4-4cdb-af07-56617fda4a20
2024-08-26 17:11:57,405 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7af0ef4e-1505-4269-84d9-4ca6725b7ef7
2024-08-26 17:11:57,412 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7af0ef4e-1505-4269-84d9-4ca6725b7ef7
2024-08-26 17:11:57,419 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/28563c9a-3e2f-4036-a356-e67aa258fe05
2024-08-26 17:11:57,432 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66862624:ctest-vn-94837702', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66862624', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3016720328192969947', 'uuid-lslong': '12612144258231192096'}, 'enable': 'true', 'created': '2024-08-26T17:11:54', 'last-modified': '2024-08-26T17:11:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.272884'}
2024-08-26 17:11:57,439 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 17:11:57,439 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94837702 passed
2024-08-26 17:11:57,439 - DEBUG - ====Verifying policy data for ctest-vn-94837702 in API_Server ======
2024-08-26 17:11:57,439 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2024-08-26 17:11:57,446 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9e9e06ac-c228-4643-92b8-2538ac4f5e85
2024-08-26 17:11:57,458 - DEBUG - Requesting: http://10.0.0.49:8082/project/b6742a02-4354-464a-ac25-ba60c507aff7
2024-08-26 17:11:57,533 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/29dd8b27-bca4-4cdb-af07-56617fda4a20
2024-08-26 17:11:57,543 - DEBUG - ==>Verifying data for policy with id: 589a4db2-c951-4385-8004-3356942ac46e, fqn: ['default-domain', 'ctest-TestBasicPolicy-66862624', 'ctest-policy-allow-all-47578058']
2024-08-26 17:11:57,543 - INFO - VN ctest-vn-94837702 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 17:11:57,543 - DEBUG - Verifying the vn in opserver
2024-08-26 17:11:57,543 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66862624:ctest-vn-94837702 virtual network link through opserver 10.0.0.49
2024-08-26 17:11:57,544 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2024-08-26 17:11:57,884 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2024-08-26 17:11:57,965 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66862624:ctest-vn-94837702', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66862624:ctest-vn-94837702?flat'}
2024-08-26 17:11:57,965 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66862624:ctest-vn-94837702 is found in opserver
2024-08-26 17:11:57,976 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 17:11:57,981 - DEBUG - VRF ids for VN ctest-vn-94837702: {}
2024-08-26 17:11:57,981 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2024-08-26 17:11:57,989 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9e9e06ac-c228-4643-92b8-2538ac4f5e85
2024-08-26 17:11:58,003 - DEBUG - Requesting: http://10.0.0.49:8082/project/b6742a02-4354-464a-ac25-ba60c507aff7
2024-08-26 17:11:58,077 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/a2488187-e393-4813-b421-020407d786c5
2024-08-26 17:11:58,089 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/a2488187-e393-4813-b421-020407d786c5
2024-08-26 17:11:58,097 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/464b263d-80ed-4cc8-b868-b5428af583ef
2024-08-26 17:11:58,104 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/464b263d-80ed-4cc8-b868-b5428af583ef
2024-08-26 17:11:58,111 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/86708185-2088-4c7b-a6a2-d944f879e0f6
2024-08-26 17:11:58,118 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 17:11:58,119 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/a2488187-e393-4813-b421-020407d786c5
2024-08-26 17:11:58,127 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/464b263d-80ed-4cc8-b868-b5428af583ef
2024-08-26 17:11:58,139 - INFO - Verified VN network id 9 for VN a2488187-e393-4813-b421-020407d786c5
2024-08-26 17:11:58,140 - INFO - Verifications in API Server for VN ctest-vn-38346263 passed
2024-08-26 17:11:58,140 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/a2488187-e393-4813-b421-020407d786c5
2024-08-26 17:11:58,148 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/464b263d-80ed-4cc8-b868-b5428af583ef
2024-08-26 17:11:58,156 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/464b263d-80ed-4cc8-b868-b5428af583ef
2024-08-26 17:11:58,163 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/86708185-2088-4c7b-a6a2-d944f879e0f6
2024-08-26 17:11:58,176 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66862624:ctest-vn-38346263', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66862624', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11693738853106141203', 'uuid-lslong': '12979657817393170117'}, 'enable': 'true', 'created': '2024-08-26T17:11:55', 'last-modified': '2024-08-26T17:11:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.780484'}
2024-08-26 17:11:58,182 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 17:11:58,183 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38346263 passed
2024-08-26 17:11:58,183 - DEBUG - ====Verifying policy data for ctest-vn-38346263 in API_Server ======
2024-08-26 17:11:58,183 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2024-08-26 17:11:58,190 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9e9e06ac-c228-4643-92b8-2538ac4f5e85
2024-08-26 17:11:58,201 - DEBUG - Requesting: http://10.0.0.49:8082/project/b6742a02-4354-464a-ac25-ba60c507aff7
2024-08-26 17:11:58,276 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/a2488187-e393-4813-b421-020407d786c5
2024-08-26 17:11:58,286 - DEBUG - ==>Verifying data for policy with id: 589a4db2-c951-4385-8004-3356942ac46e, fqn: ['default-domain', 'ctest-TestBasicPolicy-66862624', 'ctest-policy-allow-all-47578058']
2024-08-26 17:11:58,286 - INFO - VN ctest-vn-38346263 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 17:11:58,286 - DEBUG - Verifying the vn in opserver
2024-08-26 17:11:58,286 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66862624:ctest-vn-38346263 virtual network link through opserver 10.0.0.49
2024-08-26 17:11:58,286 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2024-08-26 17:11:58,298 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66862624:ctest-vn-38346263', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66862624:ctest-vn-38346263?flat'}
2024-08-26 17:11:58,298 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66862624:ctest-vn-38346263 is found in opserver
2024-08-26 17:11:58,309 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 17:11:58,315 - DEBUG - VRF ids for VN ctest-vn-38346263: {}
2024-08-26 17:11:58,373 - DEBUG - Services list from nova: [