2024-08-27 08:36:30,767 - INFO - Domain Default found not creating
2024-08-27 08:36:30,964 - INFO - Project ctest-TestBasicPolicy-14303445 not found, creating it
2024-08-27 08:36:31,451 - INFO - Created Project:ctest-TestBasicPolicy-14303445, ID : 3123f160-83e8-4c2c-acbf-c8b25664b194
2024-08-27 08:36:33,082 - INFO - ================================================================================
2024-08-27 08:36:33,082 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-27 08:36:33,082 - 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-27 08:36:33,338 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.5': '0'}} with
2024-08-27 08:36:33,338 - INFO - Initial checks done. Running the testcase now
2024-08-27 08:36:33,338 - INFO -
2024-08-27 08:36:33,983 - DEBUG - Response for create_network : {'network': {'id': '510c6622-cee9-4001-9e1a-4a7902890106', 'name': 'ctest-vn-28515716', 'tenant_id': '3123f16083e84c2cacbfc8b25664b194', 'project_id': '3123f16083e84c2cacbfc8b25664b194', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14303445', 'ctest-vn-28515716'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 08:36:34,208 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dafc0ef3-f4f2-43da-9481-dedc08ce11bf', 'name': '', 'tenant_id': '3123f16083e84c2cacbfc8b25664b194', 'network_id': '510c6622-cee9-4001-9e1a-4a7902890106', 'ip_version': 4, 'cidr': '176.73.175.128/26', 'allocation_pools': [{'start': '176.73.175.130', 'end': '176.73.175.190'}], 'gateway_ip': '176.73.175.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.73.175.130', 'tags': [], 'project_id': '3123f16083e84c2cacbfc8b25664b194'}}
2024-08-27 08:36:34,230 - INFO - Created VN ctest-vn-28515716
2024-08-27 08:36:34,282 - DEBUG - VN ctest-vn-28515716 UUID is 510c6622-cee9-4001-9e1a-4a7902890106
2024-08-27 08:36:34,626 - DEBUG - Response for create_network : {'network': {'id': 'cf73a5af-22fc-417c-9942-2d8dee5c4c88', 'name': 'ctest-vn-12650401', 'tenant_id': '3123f16083e84c2cacbfc8b25664b194', 'project_id': '3123f16083e84c2cacbfc8b25664b194', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14303445', 'ctest-vn-12650401'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 08:36:34,820 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aef55b06-e1d0-4c9e-8e07-33e70415ba54', 'name': '', 'tenant_id': '3123f16083e84c2cacbfc8b25664b194', 'network_id': 'cf73a5af-22fc-417c-9942-2d8dee5c4c88', 'ip_version': 4, 'cidr': '55.76.215.0/26', 'allocation_pools': [{'start': '55.76.215.2', 'end': '55.76.215.62'}], 'gateway_ip': '55.76.215.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.76.215.2', 'tags': [], 'project_id': '3123f16083e84c2cacbfc8b25664b194'}}
2024-08-27 08:36:34,843 - INFO - Created VN ctest-vn-12650401
2024-08-27 08:36:34,898 - DEBUG - VN ctest-vn-12650401 UUID is cf73a5af-22fc-417c-9942-2d8dee5c4c88
2024-08-27 08:36:35,022 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-28515716, 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-14303445:ctest-vn-12650401, 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-27 08:36:35,350 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '510c6622-cee9-4001-9e1a-4a7902890106', 'name': 'ctest-vn-28515716', 'tenant_id': '3123f16083e84c2cacbfc8b25664b194', 'project_id': '3123f16083e84c2cacbfc8b25664b194', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dafc0ef3-f4f2-43da-9481-dedc08ce11bf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14303445', 'ctest-vn-28515716'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14303445', 'ctest-policy-allow-all-19560684']], 'subnet_ipam': [{'subnet_cidr': '176.73.175.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 08:36:35,602 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf73a5af-22fc-417c-9942-2d8dee5c4c88', 'name': 'ctest-vn-12650401', 'tenant_id': '3123f16083e84c2cacbfc8b25664b194', 'project_id': '3123f16083e84c2cacbfc8b25664b194', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aef55b06-e1d0-4c9e-8e07-33e70415ba54'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14303445', 'ctest-vn-12650401'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14303445', 'ctest-policy-allow-all-19560684']], 'subnet_ipam': [{'subnet_cidr': '55.76.215.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 08:36:35,766 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-08-27 08:36:36,073 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-08-27 08:36:36,108 - DEBUG - Requesting: http://10.0.0.56:8082/domain/c058a212-9d59-4d0d-86e8-cc2f5727ebf9
2024-08-27 08:36:36,133 - DEBUG - Requesting: http://10.0.0.56:8082/project/3123f160-83e8-4c2c-acbf-c8b25664b194
2024-08-27 08:36:36,223 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/510c6622-cee9-4001-9e1a-4a7902890106
2024-08-27 08:36:36,235 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/510c6622-cee9-4001-9e1a-4a7902890106
2024-08-27 08:36:36,243 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/2e111f10-1fee-4c52-b2bb-cec80e3af69e
2024-08-27 08:36:36,255 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/2e111f10-1fee-4c52-b2bb-cec80e3af69e
2024-08-27 08:36:36,263 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/f56b309a-d182-4e2b-9cb6-db41b1e343ae
2024-08-27 08:36:36,272 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 08:36:36,272 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/510c6622-cee9-4001-9e1a-4a7902890106
2024-08-27 08:36:36,283 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/2e111f10-1fee-4c52-b2bb-cec80e3af69e
2024-08-27 08:36:36,299 - INFO - Verified VN network id 9 for VN 510c6622-cee9-4001-9e1a-4a7902890106
2024-08-27 08:36:36,300 - INFO - Verifications in API Server for VN ctest-vn-28515716 passed
2024-08-27 08:36:36,300 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/510c6622-cee9-4001-9e1a-4a7902890106
2024-08-27 08:36:36,311 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/2e111f10-1fee-4c52-b2bb-cec80e3af69e
2024-08-27 08:36:36,319 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/2e111f10-1fee-4c52-b2bb-cec80e3af69e
2024-08-27 08:36:36,329 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/f56b309a-d182-4e2b-9cb6-db41b1e343ae
2024-08-27 08:36:36,343 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-28515716', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14303445', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5840155116479004673', 'uuid-lslong': '11392500090981122310'}, 'enable': 'true', 'created': '2024-08-27T08:36:33', 'last-modified': '2024-08-27T08:36:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.028455'}
2024-08-27 08:36:36,350 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 08:36:36,350 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28515716 passed
2024-08-27 08:36:36,350 - DEBUG - ====Verifying policy data for ctest-vn-28515716 in API_Server ======
2024-08-27 08:36:36,350 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-08-27 08:36:36,357 - DEBUG - Requesting: http://10.0.0.56:8082/domain/c058a212-9d59-4d0d-86e8-cc2f5727ebf9
2024-08-27 08:36:36,369 - DEBUG - Requesting: http://10.0.0.56:8082/project/3123f160-83e8-4c2c-acbf-c8b25664b194
2024-08-27 08:36:36,448 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/510c6622-cee9-4001-9e1a-4a7902890106
2024-08-27 08:36:36,458 - DEBUG - ==>Verifying data for policy with id: 8c6854e6-6e75-4d05-88c4-745ba967c2e4, fqn: ['default-domain', 'ctest-TestBasicPolicy-14303445', 'ctest-policy-allow-all-19560684']
2024-08-27 08:36:36,458 - INFO - VN ctest-vn-28515716 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 08:36:36,458 - DEBUG - Verifying the vn in opserver
2024-08-27 08:36:36,458 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-28515716 virtual network link through opserver 10.0.0.56
2024-08-27 08:36:36,458 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2024-08-27 08:36:36,757 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2024-08-27 08:36:36,873 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-28515716', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-28515716?flat'}
2024-08-27 08:36:36,873 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-28515716 is found in opserver
2024-08-27 08:36:36,888 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 08:36:36,893 - DEBUG - VRF ids for VN ctest-vn-28515716: {}
2024-08-27 08:36:36,893 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-08-27 08:36:36,918 - DEBUG - Requesting: http://10.0.0.56:8082/domain/c058a212-9d59-4d0d-86e8-cc2f5727ebf9
2024-08-27 08:36:36,972 - DEBUG - Requesting: http://10.0.0.56:8082/project/3123f160-83e8-4c2c-acbf-c8b25664b194
2024-08-27 08:36:37,065 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/cf73a5af-22fc-417c-9942-2d8dee5c4c88
2024-08-27 08:36:37,095 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/cf73a5af-22fc-417c-9942-2d8dee5c4c88
2024-08-27 08:36:37,107 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/911b9c52-2d07-4426-ab43-0a381eb33e9c
2024-08-27 08:36:37,118 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/911b9c52-2d07-4426-ab43-0a381eb33e9c
2024-08-27 08:36:37,127 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/d4604b26-9386-4d36-a697-11cc42aeea64
2024-08-27 08:36:37,148 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 08:36:37,148 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/cf73a5af-22fc-417c-9942-2d8dee5c4c88
2024-08-27 08:36:37,162 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/911b9c52-2d07-4426-ab43-0a381eb33e9c
2024-08-27 08:36:37,184 - INFO - Verified VN network id 10 for VN cf73a5af-22fc-417c-9942-2d8dee5c4c88
2024-08-27 08:36:37,184 - INFO - Verifications in API Server for VN ctest-vn-12650401 passed
2024-08-27 08:36:37,184 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/cf73a5af-22fc-417c-9942-2d8dee5c4c88
2024-08-27 08:36:37,203 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/911b9c52-2d07-4426-ab43-0a381eb33e9c
2024-08-27 08:36:37,221 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/911b9c52-2d07-4426-ab43-0a381eb33e9c
2024-08-27 08:36:37,237 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/d4604b26-9386-4d36-a697-11cc42aeea64
2024-08-27 08:36:37,263 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-12650401', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14303445', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14948473759797625212', 'uuid-lslong': '11043439323878542472'}, 'enable': 'true', 'created': '2024-08-27T08:36:34', 'last-modified': '2024-08-27T08:36:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.690622'}
2024-08-27 08:36:37,270 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 08:36:37,270 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12650401 passed
2024-08-27 08:36:37,271 - DEBUG - ====Verifying policy data for ctest-vn-12650401 in API_Server ======
2024-08-27 08:36:37,271 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-08-27 08:36:37,279 - DEBUG - Requesting: http://10.0.0.56:8082/domain/c058a212-9d59-4d0d-86e8-cc2f5727ebf9
2024-08-27 08:36:37,361 - DEBUG - Requesting: http://10.0.0.56:8082/project/3123f160-83e8-4c2c-acbf-c8b25664b194
2024-08-27 08:36:37,514 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/cf73a5af-22fc-417c-9942-2d8dee5c4c88
2024-08-27 08:36:37,537 - DEBUG - ==>Verifying data for policy with id: 8c6854e6-6e75-4d05-88c4-745ba967c2e4, fqn: ['default-domain', 'ctest-TestBasicPolicy-14303445', 'ctest-policy-allow-all-19560684']
2024-08-27 08:36:37,537 - INFO - VN ctest-vn-12650401 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 08:36:37,537 - DEBUG - Verifying the vn in opserver
2024-08-27 08:36:37,537 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-12650401 virtual network link through opserver 10.0.0.56
2024-08-27 08:36:37,537 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2024-08-27 08:36:37,554 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-12650401', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-12650401?flat'}
2024-08-27 08:36:37,554 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-12650401 is found in opserver
2024-08-27 08:36:37,566 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 08:36:37,577 - DEBUG - VRF ids for VN ctest-vn-12650401: {}
2024-08-27 08:36:37,662 - DEBUG - Services list from nova: [