2024-09-18 02:05:52,424 - INFO - Domain Default found not creating
2024-09-18 02:05:52,608 - INFO - Project ctest-TestBasicPolicy-77629561 not found, creating it
2024-09-18 02:05:53,107 - INFO - Created Project:ctest-TestBasicPolicy-77629561, ID : 4ec6c5a1-5abd-40cf-a01b-e621dfc5b680
2024-09-18 02:05:54,632 - INFO - ================================================================================
2024-09-18 02:05:54,633 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-18 02:05:54,633 - 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 02:05:54,888 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.11': '0'}} with
2024-09-18 02:05:54,888 - INFO - Initial checks done. Running the testcase now
2024-09-18 02:05:54,888 - INFO -
2024-09-18 02:05:55,507 - DEBUG - Response for create_network : {'network': {'id': 'c690d973-1d92-4e1f-b2e2-074c31dfe934', 'name': 'ctest-vn-40963985', 'tenant_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'project_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77629561', 'ctest-vn-40963985'], 'port_security_enabled': True, 'description': ''}}
2024-09-18 02:05:55,733 - DEBUG - Response for create_subnet : {'subnet': {'id': '552097fd-5bb8-465c-9a10-5c690f7a28aa', 'name': '', 'tenant_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'network_id': 'c690d973-1d92-4e1f-b2e2-074c31dfe934', 'ip_version': 4, 'cidr': '52.132.209.64/26', 'allocation_pools': [{'start': '52.132.209.66', 'end': '52.132.209.126'}], 'gateway_ip': '52.132.209.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.132.209.66', 'tags': [], 'project_id': '4ec6c5a15abd40cfa01be621dfc5b680'}}
2024-09-18 02:05:55,753 - INFO - Created VN ctest-vn-40963985
2024-09-18 02:05:55,810 - DEBUG - VN ctest-vn-40963985 UUID is c690d973-1d92-4e1f-b2e2-074c31dfe934
2024-09-18 02:05:56,138 - DEBUG - Response for create_network : {'network': {'id': 'be40a388-3f5e-40c9-8f0c-75797255305f', 'name': 'ctest-vn-50689829', 'tenant_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'project_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77629561', 'ctest-vn-50689829'], 'port_security_enabled': True, 'description': ''}}
2024-09-18 02:05:56,346 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f0d9f25-d66a-42ae-8924-1a0a6050e3c8', 'name': '', 'tenant_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'network_id': 'be40a388-3f5e-40c9-8f0c-75797255305f', 'ip_version': 4, 'cidr': '92.140.131.64/26', 'allocation_pools': [{'start': '92.140.131.66', 'end': '92.140.131.126'}], 'gateway_ip': '92.140.131.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.140.131.66', 'tags': [], 'project_id': '4ec6c5a15abd40cfa01be621dfc5b680'}}
2024-09-18 02:05:56,365 - INFO - Created VN ctest-vn-50689829
2024-09-18 02:05:56,422 - DEBUG - VN ctest-vn-50689829 UUID is be40a388-3f5e-40c9-8f0c-75797255305f
2024-09-18 02:05:56,542 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-40963985, 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-77629561:ctest-vn-50689829, 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 02:05:56,855 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c690d973-1d92-4e1f-b2e2-074c31dfe934', 'name': 'ctest-vn-40963985', 'tenant_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'project_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['552097fd-5bb8-465c-9a10-5c690f7a28aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77629561', 'ctest-vn-40963985'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77629561', 'ctest-policy-allow-all-68189106']], 'subnet_ipam': [{'subnet_cidr': '52.132.209.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-18 02:05:57,110 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be40a388-3f5e-40c9-8f0c-75797255305f', 'name': 'ctest-vn-50689829', 'tenant_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'project_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f0d9f25-d66a-42ae-8924-1a0a6050e3c8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77629561', 'ctest-vn-50689829'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77629561', 'ctest-policy-allow-all-68189106']], 'subnet_ipam': [{'subnet_cidr': '92.140.131.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-18 02:05:57,278 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-09-18 02:05:57,577 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-09-18 02:05:57,607 - DEBUG - Requesting: http://10.0.0.35:8082/domain/6ce9aeff-a803-4507-98ad-5a94fe98d8af
2024-09-18 02:05:57,621 - DEBUG - Requesting: http://10.0.0.35:8082/project/4ec6c5a1-5abd-40cf-a01b-e621dfc5b680
2024-09-18 02:05:57,708 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c690d973-1d92-4e1f-b2e2-074c31dfe934
2024-09-18 02:05:57,725 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c690d973-1d92-4e1f-b2e2-074c31dfe934
2024-09-18 02:05:57,739 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b3e3ca90-566b-4196-9dfa-3293dc493b37
2024-09-18 02:05:57,748 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b3e3ca90-566b-4196-9dfa-3293dc493b37
2024-09-18 02:05:57,756 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/dd5e05ad-3974-4707-b8c6-2e5c418c9849
2024-09-18 02:05:57,763 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-18 02:05:57,763 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c690d973-1d92-4e1f-b2e2-074c31dfe934
2024-09-18 02:05:57,776 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b3e3ca90-566b-4196-9dfa-3293dc493b37
2024-09-18 02:05:57,797 - INFO - Verified VN network id 9 for VN c690d973-1d92-4e1f-b2e2-074c31dfe934
2024-09-18 02:05:57,797 - INFO - Verifications in API Server for VN ctest-vn-40963985 passed
2024-09-18 02:05:57,797 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c690d973-1d92-4e1f-b2e2-074c31dfe934
2024-09-18 02:05:57,811 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b3e3ca90-566b-4196-9dfa-3293dc493b37
2024-09-18 02:05:57,822 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b3e3ca90-566b-4196-9dfa-3293dc493b37
2024-09-18 02:05:57,836 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/dd5e05ad-3974-4707-b8c6-2e5c418c9849
2024-09-18 02:05:57,853 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-40963985', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77629561', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14308175104596659743', 'uuid-lslong': '12889873107323447604'}, 'enable': 'true', 'created': '2024-09-18T02:05:55', 'last-modified': '2024-09-18T02:05:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.020185'}
2024-09-18 02:05:57,860 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-18 02:05:57,860 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40963985 passed
2024-09-18 02:05:57,860 - DEBUG - ====Verifying policy data for ctest-vn-40963985 in API_Server ======
2024-09-18 02:05:57,860 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-09-18 02:05:57,867 - DEBUG - Requesting: http://10.0.0.35:8082/domain/6ce9aeff-a803-4507-98ad-5a94fe98d8af
2024-09-18 02:05:57,881 - DEBUG - Requesting: http://10.0.0.35:8082/project/4ec6c5a1-5abd-40cf-a01b-e621dfc5b680
2024-09-18 02:05:57,966 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c690d973-1d92-4e1f-b2e2-074c31dfe934
2024-09-18 02:05:57,979 - DEBUG - ==>Verifying data for policy with id: 6c679c7b-4ab1-4cea-aa0c-d2c9d6e9ad45, fqn: ['default-domain', 'ctest-TestBasicPolicy-77629561', 'ctest-policy-allow-all-68189106']
2024-09-18 02:05:57,979 - INFO - VN ctest-vn-40963985 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-18 02:05:57,979 - DEBUG - Verifying the vn in opserver
2024-09-18 02:05:57,980 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-40963985 virtual network link through opserver 10.0.0.35
2024-09-18 02:05:57,980 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-09-18 02:05:58,277 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-09-18 02:05:58,341 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-40963985', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-40963985?flat'}
2024-09-18 02:05:58,341 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-40963985 is found in opserver
2024-09-18 02:05:58,352 - DEBUG - Do not have enough data to verify VN in agent
2024-09-18 02:05:58,358 - DEBUG - VRF ids for VN ctest-vn-40963985: {}
2024-09-18 02:05:58,358 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-09-18 02:05:58,363 - DEBUG - Requesting: http://10.0.0.35:8082/domain/6ce9aeff-a803-4507-98ad-5a94fe98d8af
2024-09-18 02:05:58,375 - DEBUG - Requesting: http://10.0.0.35:8082/project/4ec6c5a1-5abd-40cf-a01b-e621dfc5b680
2024-09-18 02:05:58,463 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/be40a388-3f5e-40c9-8f0c-75797255305f
2024-09-18 02:05:58,481 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/be40a388-3f5e-40c9-8f0c-75797255305f
2024-09-18 02:05:58,495 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d79e9807-6f63-42da-a633-6921b481b99d
2024-09-18 02:05:58,503 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d79e9807-6f63-42da-a633-6921b481b99d
2024-09-18 02:05:58,510 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/37972597-0b4a-4668-ae93-eb00958349c3
2024-09-18 02:05:58,517 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-18 02:05:58,517 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/be40a388-3f5e-40c9-8f0c-75797255305f
2024-09-18 02:05:58,531 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d79e9807-6f63-42da-a633-6921b481b99d
2024-09-18 02:05:58,551 - INFO - Verified VN network id 10 for VN be40a388-3f5e-40c9-8f0c-75797255305f
2024-09-18 02:05:58,552 - INFO - Verifications in API Server for VN ctest-vn-50689829 passed
2024-09-18 02:05:58,552 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/be40a388-3f5e-40c9-8f0c-75797255305f
2024-09-18 02:05:58,566 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d79e9807-6f63-42da-a633-6921b481b99d
2024-09-18 02:05:58,574 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d79e9807-6f63-42da-a633-6921b481b99d
2024-09-18 02:05:58,583 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/37972597-0b4a-4668-ae93-eb00958349c3
2024-09-18 02:05:58,596 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-50689829', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77629561', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13709137071289811145', 'uuid-lslong': '10307742811613900895'}, 'enable': 'true', 'created': '2024-09-18T02:05:56', 'last-modified': '2024-09-18T02:05:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.526594'}
2024-09-18 02:05:58,603 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-18 02:05:58,603 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50689829 passed
2024-09-18 02:05:58,603 - DEBUG - ====Verifying policy data for ctest-vn-50689829 in API_Server ======
2024-09-18 02:05:58,603 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-09-18 02:05:58,609 - DEBUG - Requesting: http://10.0.0.35:8082/domain/6ce9aeff-a803-4507-98ad-5a94fe98d8af
2024-09-18 02:05:58,623 - DEBUG - Requesting: http://10.0.0.35:8082/project/4ec6c5a1-5abd-40cf-a01b-e621dfc5b680
2024-09-18 02:05:58,711 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/be40a388-3f5e-40c9-8f0c-75797255305f
2024-09-18 02:05:58,725 - DEBUG - ==>Verifying data for policy with id: 6c679c7b-4ab1-4cea-aa0c-d2c9d6e9ad45, fqn: ['default-domain', 'ctest-TestBasicPolicy-77629561', 'ctest-policy-allow-all-68189106']
2024-09-18 02:05:58,725 - INFO - VN ctest-vn-50689829 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-18 02:05:58,725 - DEBUG - Verifying the vn in opserver
2024-09-18 02:05:58,725 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-50689829 virtual network link through opserver 10.0.0.35
2024-09-18 02:05:58,725 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-09-18 02:05:58,736 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-50689829', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-50689829?flat'}
2024-09-18 02:05:58,736 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-50689829 is found in opserver
2024-09-18 02:05:58,749 - DEBUG - Do not have enough data to verify VN in agent
2024-09-18 02:05:58,755 - DEBUG - VRF ids for VN ctest-vn-50689829: {}
2024-09-18 02:05:58,809 - DEBUG - Services list from nova: [