2024-10-28 15:41:53,132 - INFO - Domain Default found not creating
2024-10-28 15:41:53,344 - INFO - Project ctest-TestBasicPolicy-99272391 not found, creating it
2024-10-28 15:41:53,997 - INFO - Created Project:ctest-TestBasicPolicy-99272391, ID : 4257cacd-721e-4f07-b923-4790f34e5d13
2024-10-28 15:41:56,031 - INFO - ================================================================================
2024-10-28 15:41:56,032 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-28 15:41:56,032 - 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-28 15:41:56,296 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.21': '0'}} with
2024-10-28 15:41:56,296 - INFO - Initial checks done. Running the testcase now
2024-10-28 15:41:56,296 - INFO -
2024-10-28 15:41:57,023 - DEBUG - Response for create_network : {'network': {'id': '32d65490-ab98-4456-9f78-f51c2f4a9c91', 'name': 'ctest-vn-10933609', 'tenant_id': '4257cacd721e4f07b9234790f34e5d13', 'project_id': '4257cacd721e4f07b9234790f34e5d13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99272391', 'ctest-vn-10933609'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 15:41:57,227 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b7ed59c-c871-4b4b-8e45-7880ea1d0224', 'name': '', 'tenant_id': '4257cacd721e4f07b9234790f34e5d13', 'network_id': '32d65490-ab98-4456-9f78-f51c2f4a9c91', 'ip_version': 4, 'cidr': '209.153.14.64/26', 'allocation_pools': [{'start': '209.153.14.66', 'end': '209.153.14.126'}], 'gateway_ip': '209.153.14.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.153.14.66', 'tags': [], 'project_id': '4257cacd721e4f07b9234790f34e5d13'}}
2024-10-28 15:41:57,254 - INFO - Created VN ctest-vn-10933609
2024-10-28 15:41:57,318 - DEBUG - VN ctest-vn-10933609 UUID is 32d65490-ab98-4456-9f78-f51c2f4a9c91
2024-10-28 15:41:57,748 - DEBUG - Response for create_network : {'network': {'id': 'ff51f27b-0045-453b-8dce-debfbf52e1fd', 'name': 'ctest-vn-00690550', 'tenant_id': '4257cacd721e4f07b9234790f34e5d13', 'project_id': '4257cacd721e4f07b9234790f34e5d13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99272391', 'ctest-vn-00690550'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 15:41:58,011 - DEBUG - Response for create_subnet : {'subnet': {'id': '9775e651-8c8a-4e77-8a4f-c40b4a2d6f4e', 'name': '', 'tenant_id': '4257cacd721e4f07b9234790f34e5d13', 'network_id': 'ff51f27b-0045-453b-8dce-debfbf52e1fd', 'ip_version': 4, 'cidr': '222.181.144.128/26', 'allocation_pools': [{'start': '222.181.144.130', 'end': '222.181.144.190'}], 'gateway_ip': '222.181.144.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.181.144.130', 'tags': [], 'project_id': '4257cacd721e4f07b9234790f34e5d13'}}
2024-10-28 15:41:58,038 - INFO - Created VN ctest-vn-00690550
2024-10-28 15:41:58,102 - DEBUG - VN ctest-vn-00690550 UUID is ff51f27b-0045-453b-8dce-debfbf52e1fd
2024-10-28 15:41:58,256 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-10933609, 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-99272391:ctest-vn-00690550, 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-28 15:41:58,652 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32d65490-ab98-4456-9f78-f51c2f4a9c91', 'name': 'ctest-vn-10933609', 'tenant_id': '4257cacd721e4f07b9234790f34e5d13', 'project_id': '4257cacd721e4f07b9234790f34e5d13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b7ed59c-c871-4b4b-8e45-7880ea1d0224'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99272391', 'ctest-vn-10933609'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99272391', 'ctest-policy-allow-all-53033974']], 'subnet_ipam': [{'subnet_cidr': '209.153.14.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 15:41:58,948 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff51f27b-0045-453b-8dce-debfbf52e1fd', 'name': 'ctest-vn-00690550', 'tenant_id': '4257cacd721e4f07b9234790f34e5d13', 'project_id': '4257cacd721e4f07b9234790f34e5d13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9775e651-8c8a-4e77-8a4f-c40b4a2d6f4e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99272391', 'ctest-vn-00690550'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99272391', 'ctest-policy-allow-all-53033974']], 'subnet_ipam': [{'subnet_cidr': '222.181.144.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 15:41:59,118 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-10-28 15:41:59,505 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-10-28 15:41:59,546 - DEBUG - Requesting: http://10.0.0.52:8082/domain/a2760c77-c251-48e8-8d9f-5fa7fcb50876
2024-10-28 15:41:59,571 - DEBUG - Requesting: http://10.0.0.52:8082/project/4257cacd-721e-4f07-b923-4790f34e5d13
2024-10-28 15:41:59,683 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/32d65490-ab98-4456-9f78-f51c2f4a9c91
2024-10-28 15:41:59,708 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/32d65490-ab98-4456-9f78-f51c2f4a9c91
2024-10-28 15:41:59,730 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/13deea3a-6ca1-4aa5-b65e-e6e5d77c3ab3
2024-10-28 15:41:59,744 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/13deea3a-6ca1-4aa5-b65e-e6e5d77c3ab3
2024-10-28 15:41:59,764 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/d6c60725-1715-4c58-9f97-b1d36d408314
2024-10-28 15:41:59,779 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 15:41:59,780 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/32d65490-ab98-4456-9f78-f51c2f4a9c91
2024-10-28 15:41:59,805 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/13deea3a-6ca1-4aa5-b65e-e6e5d77c3ab3
2024-10-28 15:41:59,841 - INFO - Verified VN network id 7 for VN 32d65490-ab98-4456-9f78-f51c2f4a9c91
2024-10-28 15:41:59,841 - INFO - Verifications in API Server for VN ctest-vn-10933609 passed
2024-10-28 15:41:59,841 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/32d65490-ab98-4456-9f78-f51c2f4a9c91
2024-10-28 15:41:59,865 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/13deea3a-6ca1-4aa5-b65e-e6e5d77c3ab3
2024-10-28 15:41:59,882 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/13deea3a-6ca1-4aa5-b65e-e6e5d77c3ab3
2024-10-28 15:41:59,898 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/d6c60725-1715-4c58-9f97-b1d36d408314
2024-10-28 15:41:59,918 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-10933609', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99272391', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3663208327243383894', 'uuid-lslong': '11491203950637128849'}, 'enable': 'true', 'created': '2024-10-28T15:41:56', 'last-modified': '2024-10-28T15:41:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.311832'}
2024-10-28 15:41:59,928 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 15:41:59,928 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10933609 passed
2024-10-28 15:41:59,929 - DEBUG - ====Verifying policy data for ctest-vn-10933609 in API_Server ======
2024-10-28 15:41:59,929 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-10-28 15:41:59,937 - DEBUG - Requesting: http://10.0.0.52:8082/domain/a2760c77-c251-48e8-8d9f-5fa7fcb50876
2024-10-28 15:41:59,958 - DEBUG - Requesting: http://10.0.0.52:8082/project/4257cacd-721e-4f07-b923-4790f34e5d13
2024-10-28 15:42:00,059 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/32d65490-ab98-4456-9f78-f51c2f4a9c91
2024-10-28 15:42:00,080 - DEBUG - ==>Verifying data for policy with id: 7f831f16-905c-4dea-820d-186b1debe4b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-99272391', 'ctest-policy-allow-all-53033974']
2024-10-28 15:42:00,080 - INFO - VN ctest-vn-10933609 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 15:42:00,080 - DEBUG - Verifying the vn in opserver
2024-10-28 15:42:00,080 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-10933609 virtual network link through opserver 10.0.0.52
2024-10-28 15:42:00,080 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2024-10-28 15:42:00,435 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2024-10-28 15:42:00,518 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-10933609', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-10933609?flat'}
2024-10-28 15:42:00,518 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-10933609 is found in opserver
2024-10-28 15:42:00,532 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 15:42:00,538 - DEBUG - VRF ids for VN ctest-vn-10933609: {}
2024-10-28 15:42:00,538 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-10-28 15:42:00,547 - DEBUG - Requesting: http://10.0.0.52:8082/domain/a2760c77-c251-48e8-8d9f-5fa7fcb50876
2024-10-28 15:42:00,571 - DEBUG - Requesting: http://10.0.0.52:8082/project/4257cacd-721e-4f07-b923-4790f34e5d13
2024-10-28 15:42:00,666 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/ff51f27b-0045-453b-8dce-debfbf52e1fd
2024-10-28 15:42:00,691 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/ff51f27b-0045-453b-8dce-debfbf52e1fd
2024-10-28 15:42:00,713 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/e0fd815e-83c6-4b53-903a-78c201965be7
2024-10-28 15:42:00,728 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/e0fd815e-83c6-4b53-903a-78c201965be7
2024-10-28 15:42:00,739 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/d33f7af2-4995-491f-bd28-1b65e94fc5f0
2024-10-28 15:42:00,753 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 15:42:00,753 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/ff51f27b-0045-453b-8dce-debfbf52e1fd
2024-10-28 15:42:00,775 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/e0fd815e-83c6-4b53-903a-78c201965be7
2024-10-28 15:42:00,809 - INFO - Verified VN network id 8 for VN ff51f27b-0045-453b-8dce-debfbf52e1fd
2024-10-28 15:42:00,809 - INFO - Verifications in API Server for VN ctest-vn-00690550 passed
2024-10-28 15:42:00,810 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/ff51f27b-0045-453b-8dce-debfbf52e1fd
2024-10-28 15:42:00,831 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/e0fd815e-83c6-4b53-903a-78c201965be7
2024-10-28 15:42:00,846 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/e0fd815e-83c6-4b53-903a-78c201965be7
2024-10-28 15:42:00,861 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/d33f7af2-4995-491f-bd28-1b65e94fc5f0
2024-10-28 15:42:00,887 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-00690550', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99272391', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18397752562884625723', 'uuid-lslong': '10218349519680233981'}, 'enable': 'true', 'created': '2024-10-28T15:41:57', 'last-modified': '2024-10-28T15:41:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.968969'}
2024-10-28 15:42:00,899 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 15:42:00,899 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00690550 passed
2024-10-28 15:42:00,899 - DEBUG - ====Verifying policy data for ctest-vn-00690550 in API_Server ======
2024-10-28 15:42:00,899 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-10-28 15:42:00,910 - DEBUG - Requesting: http://10.0.0.52:8082/domain/a2760c77-c251-48e8-8d9f-5fa7fcb50876
2024-10-28 15:42:00,931 - DEBUG - Requesting: http://10.0.0.52:8082/project/4257cacd-721e-4f07-b923-4790f34e5d13
2024-10-28 15:42:01,034 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/ff51f27b-0045-453b-8dce-debfbf52e1fd
2024-10-28 15:42:01,052 - DEBUG - ==>Verifying data for policy with id: 7f831f16-905c-4dea-820d-186b1debe4b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-99272391', 'ctest-policy-allow-all-53033974']
2024-10-28 15:42:01,052 - INFO - VN ctest-vn-00690550 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 15:42:01,052 - DEBUG - Verifying the vn in opserver
2024-10-28 15:42:01,052 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-00690550 virtual network link through opserver 10.0.0.52
2024-10-28 15:42:01,052 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2024-10-28 15:42:01,067 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-00690550', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-00690550?flat'}
2024-10-28 15:42:01,067 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-00690550 is found in opserver
2024-10-28 15:42:01,084 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 15:42:01,091 - DEBUG - VRF ids for VN ctest-vn-00690550: {}
2024-10-28 15:42:01,164 - DEBUG - Services list from nova: [