2024-09-18 05:02:45,978 - INFO - Domain Default found not creating
2024-09-18 05:02:46,158 - INFO - Project ctest-TestBasicPolicy-79831507 not found, creating it
2024-09-18 05:02:46,669 - INFO - Created Project:ctest-TestBasicPolicy-79831507, ID : 95adf7c9-3e81-495f-ad27-fb63442015c2
2024-09-18 05:02:48,300 - INFO - ================================================================================
2024-09-18 05:02:48,300 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-18 05:02:48,300 - 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-18 05:02:48,554 - DEBUG - Nothing to compare xmpp stats {'10.0.0.55': {'10.20.0.12': '0'}} with
2024-09-18 05:02:48,555 - INFO - Initial checks done. Running the testcase now
2024-09-18 05:02:48,555 - INFO -
2024-09-18 05:02:49,183 - DEBUG - Response for create_network : {'network': {'id': '3831b6b4-d997-4f94-80db-96571b4fa8e4', 'name': 'ctest-vn-28806314', 'tenant_id': '95adf7c93e81495fad27fb63442015c2', 'project_id': '95adf7c93e81495fad27fb63442015c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79831507', 'ctest-vn-28806314'], 'port_security_enabled': True, 'description': ''}}
2024-09-18 05:02:49,474 - DEBUG - Response for create_subnet : {'subnet': {'id': '49ab8fa3-bb4c-43e5-8914-b88fe243f488', 'name': '', 'tenant_id': '95adf7c93e81495fad27fb63442015c2', 'network_id': '3831b6b4-d997-4f94-80db-96571b4fa8e4', 'ip_version': 4, 'cidr': '80.23.19.64/26', 'allocation_pools': [{'start': '80.23.19.66', 'end': '80.23.19.126'}], 'gateway_ip': '80.23.19.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.23.19.66', 'tags': [], 'project_id': '95adf7c93e81495fad27fb63442015c2'}}
2024-09-18 05:02:49,495 - INFO - Created VN ctest-vn-28806314
2024-09-18 05:02:49,556 - DEBUG - VN ctest-vn-28806314 UUID is 3831b6b4-d997-4f94-80db-96571b4fa8e4
2024-09-18 05:02:49,899 - DEBUG - Response for create_network : {'network': {'id': '76f3951e-1a6e-4d94-8430-340447e34fa2', 'name': 'ctest-vn-52798467', 'tenant_id': '95adf7c93e81495fad27fb63442015c2', 'project_id': '95adf7c93e81495fad27fb63442015c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79831507', 'ctest-vn-52798467'], 'port_security_enabled': True, 'description': ''}}
2024-09-18 05:02:50,132 - DEBUG - Response for create_subnet : {'subnet': {'id': '76025d85-053b-46af-be78-483e6e36fcd9', 'name': '', 'tenant_id': '95adf7c93e81495fad27fb63442015c2', 'network_id': '76f3951e-1a6e-4d94-8430-340447e34fa2', 'ip_version': 4, 'cidr': '5.253.176.0/26', 'allocation_pools': [{'start': '5.253.176.2', 'end': '5.253.176.62'}], 'gateway_ip': '5.253.176.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.253.176.2', 'tags': [], 'project_id': '95adf7c93e81495fad27fb63442015c2'}}
2024-09-18 05:02:50,153 - INFO - Created VN ctest-vn-52798467
2024-09-18 05:02:50,212 - DEBUG - VN ctest-vn-52798467 UUID is 76f3951e-1a6e-4d94-8430-340447e34fa2
2024-09-18 05:02:50,347 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79831507:ctest-vn-28806314, 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-79831507:ctest-vn-52798467, 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-18 05:02:50,682 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3831b6b4-d997-4f94-80db-96571b4fa8e4', 'name': 'ctest-vn-28806314', 'tenant_id': '95adf7c93e81495fad27fb63442015c2', 'project_id': '95adf7c93e81495fad27fb63442015c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49ab8fa3-bb4c-43e5-8914-b88fe243f488'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79831507', 'ctest-vn-28806314'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79831507', 'ctest-policy-allow-all-10477647']], 'subnet_ipam': [{'subnet_cidr': '80.23.19.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-18 05:02:50,952 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '76f3951e-1a6e-4d94-8430-340447e34fa2', 'name': 'ctest-vn-52798467', 'tenant_id': '95adf7c93e81495fad27fb63442015c2', 'project_id': '95adf7c93e81495fad27fb63442015c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76025d85-053b-46af-be78-483e6e36fcd9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79831507', 'ctest-vn-52798467'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79831507', 'ctest-policy-allow-all-10477647']], 'subnet_ipam': [{'subnet_cidr': '5.253.176.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-18 05:02:51,116 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2024-09-18 05:02:51,425 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2024-09-18 05:02:51,459 - DEBUG - Requesting: http://10.0.0.55:8082/domain/39a159ba-11b2-44d3-967b-adba3792bf57
2024-09-18 05:02:51,475 - DEBUG - Requesting: http://10.0.0.55:8082/project/95adf7c9-3e81-495f-ad27-fb63442015c2
2024-09-18 05:02:51,581 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/3831b6b4-d997-4f94-80db-96571b4fa8e4
2024-09-18 05:02:51,601 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/3831b6b4-d997-4f94-80db-96571b4fa8e4
2024-09-18 05:02:51,616 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/1a905738-2ee9-44e3-ba46-330f303d26b9
2024-09-18 05:02:51,626 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/1a905738-2ee9-44e3-ba46-330f303d26b9
2024-09-18 05:02:51,637 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/ccaffef0-d462-4f31-963c-53d40dfcde54
2024-09-18 05:02:51,645 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-18 05:02:51,645 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/3831b6b4-d997-4f94-80db-96571b4fa8e4
2024-09-18 05:02:51,660 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/1a905738-2ee9-44e3-ba46-330f303d26b9
2024-09-18 05:02:51,684 - INFO - Verified VN network id 8 for VN 3831b6b4-d997-4f94-80db-96571b4fa8e4
2024-09-18 05:02:51,685 - INFO - Verifications in API Server for VN ctest-vn-28806314 passed
2024-09-18 05:02:51,685 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/3831b6b4-d997-4f94-80db-96571b4fa8e4
2024-09-18 05:02:51,700 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/1a905738-2ee9-44e3-ba46-330f303d26b9
2024-09-18 05:02:51,710 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/1a905738-2ee9-44e3-ba46-330f303d26b9
2024-09-18 05:02:51,721 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/ccaffef0-d462-4f31-963c-53d40dfcde54
2024-09-18 05:02:51,737 - DEBUG - Control-node 10.0.0.55 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79831507:ctest-vn-28806314', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79831507', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4049218427843727252', 'uuid-lslong': '9285180357618936036'}, 'enable': 'true', 'created': '2024-09-18T05:02:49', 'last-modified': '2024-09-18T05:02:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.084230'}
2024-09-18 05:02:51,745 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-18 05:02:51,745 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28806314 passed
2024-09-18 05:02:51,745 - DEBUG - ====Verifying policy data for ctest-vn-28806314 in API_Server ======
2024-09-18 05:02:51,745 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2024-09-18 05:02:51,752 - DEBUG - Requesting: http://10.0.0.55:8082/domain/39a159ba-11b2-44d3-967b-adba3792bf57
2024-09-18 05:02:51,765 - DEBUG - Requesting: http://10.0.0.55:8082/project/95adf7c9-3e81-495f-ad27-fb63442015c2
2024-09-18 05:02:51,849 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/3831b6b4-d997-4f94-80db-96571b4fa8e4
2024-09-18 05:02:51,862 - DEBUG - ==>Verifying data for policy with id: f4d752ee-f535-4b60-bfd1-5e38c11b97d9, fqn: ['default-domain', 'ctest-TestBasicPolicy-79831507', 'ctest-policy-allow-all-10477647']
2024-09-18 05:02:51,863 - INFO - VN ctest-vn-28806314 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-18 05:02:51,863 - DEBUG - Verifying the vn in opserver
2024-09-18 05:02:51,863 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79831507:ctest-vn-28806314 virtual network link through opserver 10.0.0.55
2024-09-18 05:02:51,863 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks
2024-09-18 05:02:52,164 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks
2024-09-18 05:02:52,236 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79831507:ctest-vn-28806314', 'href': 'http://10.0.0.55:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79831507:ctest-vn-28806314?flat'}
2024-09-18 05:02:52,236 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79831507:ctest-vn-28806314 is found in opserver
2024-09-18 05:02:52,250 - DEBUG - Do not have enough data to verify VN in agent
2024-09-18 05:02:52,257 - DEBUG - VRF ids for VN ctest-vn-28806314: {}
2024-09-18 05:02:52,257 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2024-09-18 05:02:52,263 - DEBUG - Requesting: http://10.0.0.55:8082/domain/39a159ba-11b2-44d3-967b-adba3792bf57
2024-09-18 05:02:52,280 - DEBUG - Requesting: http://10.0.0.55:8082/project/95adf7c9-3e81-495f-ad27-fb63442015c2
2024-09-18 05:02:52,370 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/76f3951e-1a6e-4d94-8430-340447e34fa2
2024-09-18 05:02:52,396 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/76f3951e-1a6e-4d94-8430-340447e34fa2
2024-09-18 05:02:52,412 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/639a643a-db7f-431b-9543-eccdee457bf4
2024-09-18 05:02:52,424 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/639a643a-db7f-431b-9543-eccdee457bf4
2024-09-18 05:02:52,434 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/0ac1a2e3-1114-4bca-86f4-ac9e7878973c
2024-09-18 05:02:52,443 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-18 05:02:52,443 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/76f3951e-1a6e-4d94-8430-340447e34fa2
2024-09-18 05:02:52,458 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/639a643a-db7f-431b-9543-eccdee457bf4
2024-09-18 05:02:52,481 - INFO - Verified VN network id 9 for VN 76f3951e-1a6e-4d94-8430-340447e34fa2
2024-09-18 05:02:52,481 - INFO - Verifications in API Server for VN ctest-vn-52798467 passed
2024-09-18 05:02:52,481 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/76f3951e-1a6e-4d94-8430-340447e34fa2
2024-09-18 05:02:52,497 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/639a643a-db7f-431b-9543-eccdee457bf4
2024-09-18 05:02:52,506 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/639a643a-db7f-431b-9543-eccdee457bf4
2024-09-18 05:02:52,516 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/0ac1a2e3-1114-4bca-86f4-ac9e7878973c
2024-09-18 05:02:52,531 - DEBUG - Control-node 10.0.0.55 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79831507:ctest-vn-52798467', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79831507', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8571358472341179796', 'uuid-lslong': '9525170404879191970'}, 'enable': 'true', 'created': '2024-09-18T05:02:49', 'last-modified': '2024-09-18T05:02:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.598430'}
2024-09-18 05:02:52,538 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-18 05:02:52,538 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52798467 passed
2024-09-18 05:02:52,538 - DEBUG - ====Verifying policy data for ctest-vn-52798467 in API_Server ======
2024-09-18 05:02:52,538 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2024-09-18 05:02:52,551 - DEBUG - Requesting: http://10.0.0.55:8082/domain/39a159ba-11b2-44d3-967b-adba3792bf57
2024-09-18 05:02:52,574 - DEBUG - Requesting: http://10.0.0.55:8082/project/95adf7c9-3e81-495f-ad27-fb63442015c2
2024-09-18 05:02:52,666 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/76f3951e-1a6e-4d94-8430-340447e34fa2
2024-09-18 05:02:52,681 - DEBUG - ==>Verifying data for policy with id: f4d752ee-f535-4b60-bfd1-5e38c11b97d9, fqn: ['default-domain', 'ctest-TestBasicPolicy-79831507', 'ctest-policy-allow-all-10477647']
2024-09-18 05:02:52,681 - INFO - VN ctest-vn-52798467 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-18 05:02:52,681 - DEBUG - Verifying the vn in opserver
2024-09-18 05:02:52,681 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79831507:ctest-vn-52798467 virtual network link through opserver 10.0.0.55
2024-09-18 05:02:52,681 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks
2024-09-18 05:02:52,694 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79831507:ctest-vn-52798467', 'href': 'http://10.0.0.55:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79831507:ctest-vn-52798467?flat'}
2024-09-18 05:02:52,694 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79831507:ctest-vn-52798467 is found in opserver
2024-09-18 05:02:52,705 - DEBUG - Do not have enough data to verify VN in agent
2024-09-18 05:02:52,711 - DEBUG - VRF ids for VN ctest-vn-52798467: {}
2024-09-18 05:02:52,775 - DEBUG - Services list from nova: [