2024-10-26 20:53:27,849 - INFO - Domain Default found not creating
2024-10-26 20:53:28,035 - INFO - Project ctest-TestBasicPolicy-07455325 not found, creating it
2024-10-26 20:53:28,562 - INFO - Created Project:ctest-TestBasicPolicy-07455325, ID : e2e54ad9-e958-43fd-b64d-a85770c59ef1
2024-10-26 20:53:30,310 - INFO - ================================================================================
2024-10-26 20:53:30,310 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-26 20:53:30,310 - 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-10-26 20:53:30,584 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.19': '0'}} with
2024-10-26 20:53:30,584 - INFO - Initial checks done. Running the testcase now
2024-10-26 20:53:30,584 - INFO -
2024-10-26 20:53:31,269 - DEBUG - Response for create_network : {'network': {'id': '4e3a33f8-b462-4d28-be41-a3580ba504c8', 'name': 'ctest-vn-57997207', 'tenant_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'project_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07455325', 'ctest-vn-57997207'], 'port_security_enabled': True, 'description': ''}}
2024-10-26 20:53:31,535 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a960f8be-7ce4-4e10-b50c-2e5902ef2c3a', 'name': '', 'tenant_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'network_id': '4e3a33f8-b462-4d28-be41-a3580ba504c8', 'ip_version': 4, 'cidr': '54.222.82.128/26', 'allocation_pools': [{'start': '54.222.82.130', 'end': '54.222.82.190'}], 'gateway_ip': '54.222.82.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.222.82.130', 'tags': [], 'project_id': 'e2e54ad9e95843fdb64da85770c59ef1'}}
2024-10-26 20:53:31,566 - INFO - Created VN ctest-vn-57997207
2024-10-26 20:53:31,638 - DEBUG - VN ctest-vn-57997207 UUID is 4e3a33f8-b462-4d28-be41-a3580ba504c8
2024-10-26 20:53:32,007 - DEBUG - Response for create_network : {'network': {'id': 'd77d0403-1666-4960-a861-53e10d75dc48', 'name': 'ctest-vn-16352854', 'tenant_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'project_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07455325', 'ctest-vn-16352854'], 'port_security_enabled': True, 'description': ''}}
2024-10-26 20:53:32,240 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eaa1cc81-a83d-45cf-812d-c4564ea9ff41', 'name': '', 'tenant_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'network_id': 'd77d0403-1666-4960-a861-53e10d75dc48', 'ip_version': 4, 'cidr': '179.11.18.192/26', 'allocation_pools': [{'start': '179.11.18.194', 'end': '179.11.18.254'}], 'gateway_ip': '179.11.18.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.11.18.194', 'tags': [], 'project_id': 'e2e54ad9e95843fdb64da85770c59ef1'}}
2024-10-26 20:53:32,265 - INFO - Created VN ctest-vn-16352854
2024-10-26 20:53:32,326 - DEBUG - VN ctest-vn-16352854 UUID is d77d0403-1666-4960-a861-53e10d75dc48
2024-10-26 20:53:32,467 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-57997207, 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-07455325:ctest-vn-16352854, 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-10-26 20:53:32,800 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4e3a33f8-b462-4d28-be41-a3580ba504c8', 'name': 'ctest-vn-57997207', 'tenant_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'project_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a960f8be-7ce4-4e10-b50c-2e5902ef2c3a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07455325', 'ctest-vn-57997207'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07455325', 'ctest-policy-allow-all-32011015']], 'subnet_ipam': [{'subnet_cidr': '54.222.82.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-26 20:53:33,075 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd77d0403-1666-4960-a861-53e10d75dc48', 'name': 'ctest-vn-16352854', 'tenant_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'project_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eaa1cc81-a83d-45cf-812d-c4564ea9ff41'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07455325', 'ctest-vn-16352854'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07455325', 'ctest-policy-allow-all-32011015']], 'subnet_ipam': [{'subnet_cidr': '179.11.18.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-26 20:53:33,238 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-26 20:53:33,597 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-26 20:53:33,632 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5665a368-f59a-40ee-918b-1fce15fa1435
2024-10-26 20:53:33,649 - DEBUG - Requesting: http://10.0.0.27:8082/project/e2e54ad9-e958-43fd-b64d-a85770c59ef1
2024-10-26 20:53:33,747 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4e3a33f8-b462-4d28-be41-a3580ba504c8
2024-10-26 20:53:33,770 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4e3a33f8-b462-4d28-be41-a3580ba504c8
2024-10-26 20:53:33,791 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/97670c79-2a3b-4221-a994-6434eccb1aca
2024-10-26 20:53:33,803 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/97670c79-2a3b-4221-a994-6434eccb1aca
2024-10-26 20:53:33,817 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/46b60be9-748f-471c-aa18-eb43e083e69c
2024-10-26 20:53:33,826 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-26 20:53:33,827 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4e3a33f8-b462-4d28-be41-a3580ba504c8
2024-10-26 20:53:33,841 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/97670c79-2a3b-4221-a994-6434eccb1aca
2024-10-26 20:53:33,869 - INFO - Verified VN network id 8 for VN 4e3a33f8-b462-4d28-be41-a3580ba504c8
2024-10-26 20:53:33,869 - INFO - Verifications in API Server for VN ctest-vn-57997207 passed
2024-10-26 20:53:33,869 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4e3a33f8-b462-4d28-be41-a3580ba504c8
2024-10-26 20:53:33,890 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/97670c79-2a3b-4221-a994-6434eccb1aca
2024-10-26 20:53:33,901 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/97670c79-2a3b-4221-a994-6434eccb1aca
2024-10-26 20:53:33,911 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/46b60be9-748f-471c-aa18-eb43e083e69c
2024-10-26 20:53:33,930 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-57997207', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07455325', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5636875026878844200', 'uuid-lslong': '13709418339240314056'}, 'enable': 'true', 'created': '2024-10-26T20:53:31', 'last-modified': '2024-10-26T20:53:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.156768'}
2024-10-26 20:53:33,940 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-26 20:53:33,940 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57997207 passed
2024-10-26 20:53:33,940 - DEBUG - ====Verifying policy data for ctest-vn-57997207 in API_Server ======
2024-10-26 20:53:33,941 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-26 20:53:33,948 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5665a368-f59a-40ee-918b-1fce15fa1435
2024-10-26 20:53:33,965 - DEBUG - Requesting: http://10.0.0.27:8082/project/e2e54ad9-e958-43fd-b64d-a85770c59ef1
2024-10-26 20:53:34,049 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4e3a33f8-b462-4d28-be41-a3580ba504c8
2024-10-26 20:53:34,073 - DEBUG - ==>Verifying data for policy with id: e99139b4-b608-4e70-91d7-00f3d5b9548a, fqn: ['default-domain', 'ctest-TestBasicPolicy-07455325', 'ctest-policy-allow-all-32011015']
2024-10-26 20:53:34,073 - INFO - VN ctest-vn-57997207 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-26 20:53:34,073 - DEBUG - Verifying the vn in opserver
2024-10-26 20:53:34,073 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-57997207 virtual network link through opserver 10.0.0.27
2024-10-26 20:53:34,073 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-10-26 20:53:34,414 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-10-26 20:53:34,484 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-57997207', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-57997207?flat'}
2024-10-26 20:53:34,485 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-57997207 is found in opserver
2024-10-26 20:53:34,501 - DEBUG - Do not have enough data to verify VN in agent
2024-10-26 20:53:34,508 - DEBUG - VRF ids for VN ctest-vn-57997207: {}
2024-10-26 20:53:34,509 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-26 20:53:34,516 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5665a368-f59a-40ee-918b-1fce15fa1435
2024-10-26 20:53:34,530 - DEBUG - Requesting: http://10.0.0.27:8082/project/e2e54ad9-e958-43fd-b64d-a85770c59ef1
2024-10-26 20:53:34,619 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d77d0403-1666-4960-a861-53e10d75dc48
2024-10-26 20:53:34,638 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d77d0403-1666-4960-a861-53e10d75dc48
2024-10-26 20:53:34,654 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0711dc54-9fd9-4be1-8110-cf6da715fdf9
2024-10-26 20:53:34,664 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0711dc54-9fd9-4be1-8110-cf6da715fdf9
2024-10-26 20:53:34,676 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/1d55324b-887a-4a75-a46e-b7dead3067e0
2024-10-26 20:53:34,686 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-26 20:53:34,686 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d77d0403-1666-4960-a861-53e10d75dc48
2024-10-26 20:53:34,707 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0711dc54-9fd9-4be1-8110-cf6da715fdf9
2024-10-26 20:53:34,734 - INFO - Verified VN network id 9 for VN d77d0403-1666-4960-a861-53e10d75dc48
2024-10-26 20:53:34,735 - INFO - Verifications in API Server for VN ctest-vn-16352854 passed
2024-10-26 20:53:34,735 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d77d0403-1666-4960-a861-53e10d75dc48
2024-10-26 20:53:34,753 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0711dc54-9fd9-4be1-8110-cf6da715fdf9
2024-10-26 20:53:34,767 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0711dc54-9fd9-4be1-8110-cf6da715fdf9
2024-10-26 20:53:34,780 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/1d55324b-887a-4a75-a46e-b7dead3067e0
2024-10-26 20:53:34,800 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-16352854', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07455325', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15527571501550553440', 'uuid-lslong': '12133071097171401800'}, 'enable': 'true', 'created': '2024-10-26T20:53:31', 'last-modified': '2024-10-26T20:53:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.750699'}
2024-10-26 20:53:34,810 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-26 20:53:34,811 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16352854 passed
2024-10-26 20:53:34,811 - DEBUG - ====Verifying policy data for ctest-vn-16352854 in API_Server ======
2024-10-26 20:53:34,811 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-26 20:53:34,820 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5665a368-f59a-40ee-918b-1fce15fa1435
2024-10-26 20:53:34,835 - DEBUG - Requesting: http://10.0.0.27:8082/project/e2e54ad9-e958-43fd-b64d-a85770c59ef1
2024-10-26 20:53:34,922 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d77d0403-1666-4960-a861-53e10d75dc48
2024-10-26 20:53:34,937 - DEBUG - ==>Verifying data for policy with id: e99139b4-b608-4e70-91d7-00f3d5b9548a, fqn: ['default-domain', 'ctest-TestBasicPolicy-07455325', 'ctest-policy-allow-all-32011015']
2024-10-26 20:53:34,938 - INFO - VN ctest-vn-16352854 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-26 20:53:34,938 - DEBUG - Verifying the vn in opserver
2024-10-26 20:53:34,938 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-16352854 virtual network link through opserver 10.0.0.27
2024-10-26 20:53:34,938 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-10-26 20:53:34,950 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-16352854', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-16352854?flat'}
2024-10-26 20:53:34,950 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-16352854 is found in opserver
2024-10-26 20:53:34,963 - DEBUG - Do not have enough data to verify VN in agent
2024-10-26 20:53:34,971 - DEBUG - VRF ids for VN ctest-vn-16352854: {}
2024-10-26 20:53:35,039 - DEBUG - Services list from nova: [